/*
 * Catering layout stability (N5). Loaded AFTER the vendored theme (style.css /
 * responsive.css), which is left untouched. Images are presented with a fixed aspect
 * ratio + object-fit (CSS crop), so a provider can upload ANY dimensions without
 * breaking a card, and nothing shifts, jumps or spins on hover.
 */

/* ------------------------------------------------------------------ */
/* C12 - menu (non-featured) item cards                                */
/* The theme rotated the image 90deg on hover (only the "special-box"  */
/* variant opted out), so a normal card looked like a moving square.   */
/* ------------------------------------------------------------------ */
.offer-block-three .inner-box .image {
    aspect-ratio: 1 / 1;
    width: 100%;
}

.offer-block-three .inner-box .image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

.offer-block-three .inner-box:hover .image img {
    transform: scale(1.04); /* gentle feedback only - never a rotation */
}

.offer-block-three .inner-box.special-box:hover .image img {
    transform: none;
}

/* Text is clamped so a long title/description cannot change a card's height. */
.offer-block-three h5,
.offer-block-two h5 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.offer-block-three .desc,
.offer-block-two .desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.offer-block-three .catering-item-link,
.offer-block-two .catering-item-link {
    color: inherit;
    text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* C7 - popular ("special dishes") carousel cards                      */
/* Cards used to have the image's natural height (uneven cards), a     */
/* vertical stagger on every other slide and a tilt on hover.          */
/* ------------------------------------------------------------------ */
.offer-block-two .inner-box .image {
    aspect-ratio: 4 / 5;
    width: 100%;
}

.offer-block-two .inner-box .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-block-two .inner-box:hover .image img {
    transform: scale(1.05); /* the theme also rotated it 2deg */
}

.special-offer .offer-block-two.margin-top {
    margin-top: 0;
}

/* Every slide of the carousel is as tall as the tallest one, so the cards are equal and the
   section never changes height while it rotates (no vertical jumping). */
.special-offer .owl-carousel .owl-stage {
    display: flex;
}

.special-offer .owl-carousel .owl-item {
    display: flex;
    float: none;
}

.dish-gallery-slider .offer-block-two {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.offer-block-two .inner-box {
    height: 100%;
}

/* ------------------------------------------------------------------ */
/* C10 / C18 - category cards and landing feature cards                */
/* An uploaded image used to size the whole row by its natural size.   */
/* ------------------------------------------------------------------ */
.menu-cat .menucat-list .image-box.has-photo {
    align-self: center; /* a stretched flex item would ignore aspect-ratio */
    flex: 0 0 auto;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 5 / 2;
    overflow: hidden;
    border-radius: 300px;
}

.menu-cat .menucat-list .image-box.has-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 300px;
}

@media (max-width: 991px) {
    .menu-cat .menucat-list .image-box.has-photo {
        width: min(300px, 60%);
    }
}

/* Landing feature with an icon instead of a photo. */
.menu-cat .menucat-list .image-box .catering-feature-icon {
    font-size: 60px;
    color: var(--color-one, #c9a24b);
}

/* ------------------------------------------------------------------ */
/* Item detail page                                                    */
/* ------------------------------------------------------------------ */
.catering-item-detail .item-detail-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
}

.catering-item-detail .item-detail-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catering-item-detail .item-detail-meta {
    margin: 0 0 12px;
    opacity: .85;
}

.catering-item-detail .item-detail-price {
    font-size: 28px;
    margin: 16px 0;
}

.catering-item-detail .item-detail-note {
    margin: 20px 0;
    padding: 14px 18px;
    border-inline-start: 3px solid var(--main-color, #c9a24b);
    background: rgba(255, 255, 255, .04);
}

.catering-item-detail .item-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}


/* ------------------------------------------------------------------ */
/* R6 - hover must never change geometry                                */
/* The theme grew the card's padding (40px -> 80px) and set the image   */
/* box to display:none on :hover, so the card resized UNDER the cursor, */
/* the pointer fell outside it, the hover ended, the card grew back and */
/* the whole row jumped/shook. Keep the box identical on hover: only    */
/* colours/background/arrow animate; the image just fades out in place. */
/* ------------------------------------------------------------------ */
.menu-cat .menucat-list:hover {
    padding: 40px 0 !important;
}

.menu-cat .menucat-list:hover .image-box,
.menu-cat .menucat-list:hover .image-box.has-photo {
    display: block !important;
    visibility: hidden;
}

.menu-cat .menucat-list .image-box {
    min-height: 120px;
}

.menu-cat .menucat-list .data-colom {
    min-width: 0;
}

.menu-cat .menucat-list .title-box h3 {
    overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* R6 - map: theme set height:100% on a parent with no height (-> 150px) */
/* ------------------------------------------------------------------ */
.main-footer .footer-map {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-height: 320px;
    overflow: hidden;
}

.main-footer .footer-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

@media (min-width: 992px) {
    .main-footer .footer-map-col {
        display: flex;
    }

    .main-footer .footer-map {
        flex: 1 1 auto;
        min-height: 460px;
    }

    .main-footer .footer-map iframe {
        min-height: 460px;
    }
}

/* ------------------------------------------------------------------ */
/* R6 - long provider names wrap instead of overflowing                 */
/* ------------------------------------------------------------------ */
.header-upper .logo-box,
.main-header .logo-box {
    min-width: 0;
    max-width: 100%;
}

.main-header .logo a > span,
.main-footer .logo a > span,
.banner-section .subtitle span {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.main-header .logo a > span {
    max-width: 320px;
}

@media (max-width: 767px) {
    .main-header .logo a > span {
        max-width: 220px;
        font-size: 1rem !important;
    }
}

.main-footer .bottom_footer p {
    overflow-wrap: anywhere;
}

/* Social icons rendered by the shared inline-SVG partial */
.social_media li a svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
    margin: auto;
}

.social_media li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Contact details next to the contact form */
.catering-contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    justify-content: center;
    margin-top: 10px;
}

.catering-contact-details a,
.catering-contact-details span {
    overflow-wrap: anywhere;
}

/* "Contact for price" reads as a label, not a number */
.price.price-contact,
.item-detail-price.is-contact {
    font-size: .85em;
    opacity: .85;
}

/* The theme also changed the text column's padding on hover (0 -> 0 40px; on small screens 15px 0 0 0 -> 0 40px),
   re-wrapping long names and so changing the card height. Same padding in both states. */
.menu-cat .menucat-list .data-colom,
.menu-cat .menucat-list:hover .data-colom {
    padding: 0 40px !important;
}

@media (max-width: 479px) {
    .menu-cat .menucat-list .data-colom,
    .menu-cat .menucat-list:hover .data-colom {
        padding: 15px 0 0 0 !important;
    }

    .menu-cat .menucat-list:hover .title-box {
        text-align: inherit;
    }
}

/* ------------------------------------------------------------------ */
/* CAT2 - footer map fills its column; social icons centred; no overlap */
/* The map iframe sat in an unclassed wrapper (auto height), so the     */
/* theme's iframe{height:100%} collapsed to the height attribute (460px) */
/* inside a column stretched to ~830px. The frame is now absolutely     */
/* positioned inside the (relative) .footer-map, so it always matches   */
/* it; .footer-map keeps a floor so it can never collapse.              */
/* ------------------------------------------------------------------ */
.main-footer .footer-map {
    position: relative;
    min-height: 360px;
}

.main-footer .footer-map .catering-map-frame,
.main-footer .footer-map > iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.main-footer .footer-map .catering-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* The theme's "footer .bottom_footer .social_media li a" (display:block; line-height:34px) outranked the generic
   ".social_media li a" flex rule above, leaving each icon at the top of its circle. Same specificity, loaded later. */
footer .bottom_footer .social_media li a {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* The theme's global "a:focus { outline:none !important }" removes outlines, so the keyboard focus ring is a box-shadow. */
footer .bottom_footer .social_media li a:focus-visible {
    box-shadow: 0 0 0 2px var(--main-color, #c9a24b);
}

/* The fixed scroll-to-top button (right:20px, 50px wide) sat on the last social icon when the page is scrolled to its end. */
@media (min-width: 768px) {
    .main-footer .bottom_footer {
        padding-inline-end: 76px;
    }
}

/* ------------------------------------------------------------------ */
/* CAT3 - provider detail polish                                       */
/* ------------------------------------------------------------------ */

/* The theme hides the whole contact bar (.header-top{display:none}, again at a small breakpoint), so a provider's address,
   hours, phone and email were only reachable at the very bottom. The markup is rendered only when there is something to
   show; this shows it as a compact wrapping bar at every width. */
.main-header .header-top {
    display: block;
}

.main-header .header-top .inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2px 28px;
}

.main-header .header-top .top-left,
.main-header .header-top .top-right {
    display: block;
    float: none;
    width: auto;
    max-width: 100%;
    text-align: start;
}

.main-header .header-top .top-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-header .header-top .top-info li,
.main-header .header-top .top-right ul li,
.main-header .header-top .top-right ul li:last-child {
    float: none;
    display: block;
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.main-header .header-top .top-info li:after {
    display: none;
}

.main-header .header-top .top-info a {
    color: inherit;
}

@media (max-width: 767px) {
    .main-header .header-top .inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-header .header-top .top-left,
    .main-header .header-top .top-right {
        text-align: center;
    }

    .main-header .header-top .top-info {
        justify-content: center;
    }
}

/* Provider footer map without an embed: a link block and a cover image fill the (stretched) column instead of a fixed 500px. */
.main-footer .footer-map .catering-map-link-block,
.main-footer .footer-map .catering-map-cover {
    width: 100%;
    height: 100%;
    min-height: 240px;
    background-color: #f5f5f5;
}

.main-footer .footer-map .catering-map-link-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.main-footer .footer-map .catering-map-cover {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Long unbroken text (a 100-character token) must wrap inside its card/column instead of being cut or forcing a scrollbar.
   Scoped to the provider text elements only - never a page-wide word-break. */
.catering-item-detail h2,
.catering-item-detail .text,
.catering-item-detail .item-detail-meta,
.catering-item-detail .item-detail-note,
.inner-banner h1,
.inner-banner .sub_text p,
.special-offer-two .offer-block-three .inner-box h5,
.special-offer-two .offer-block-three .inner-box .text,
.special-offer-two .offer-block-three .inner-box p {
    overflow-wrap: anywhere;
}
