/* =========================================================
   MuchoShare — mobile app shell + home responsiveness
   ========================================================= */

:root {
    --ms-app-tabbar-h: 64px;
    --ms-app-safe-bottom: env(safe-area-inset-bottom, 0px);
    --ms-app-accent: var(--primary, #c9b290);
    --ms-app-ink: #1a2332;
    --ms-app-muted: #6b7280;
    --ms-app-surface: #ffffff;
    --ms-app-bg: #f4f7fb;
}

/* ---------- Bottom tab bar (phones / tablets < lg) ---------- */
.ms-app-tabbar {
    display: none;
}

@media (max-width: 991.98px) {
    .ms-app-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1050;
        height: calc(var(--ms-app-tabbar-h) + var(--ms-app-safe-bottom));
        padding: 0 4px var(--ms-app-safe-bottom);
        margin: 0;
        background: var(--ms-app-surface);
        border-top: 1px solid rgba(15, 23, 42, 0.08);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
        align-items: stretch;
        justify-content: space-around;
    }

    .ms-app-tabbar__item {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 0;
        padding: 8px 2px 6px;
        text-decoration: none !important;
        color: var(--ms-app-muted) !important;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.15;
        -webkit-tap-highlight-color: transparent;
    }

    .ms-app-tabbar__item i {
        font-size: 22px;
        line-height: 1;
        color: inherit;
    }

    .ms-app-tabbar__item span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ms-app-tabbar__item.is-active {
        color: var(--ms-app-accent) !important;
    }

    .ms-app-tabbar__item:active {
        opacity: 0.75;
    }

    /* room for tab bar + safe area */
    body {
        padding-bottom: calc(var(--ms-app-tabbar-h) + var(--ms-app-safe-bottom)) !important;
    }

    .scroll-up {
        bottom: calc(var(--ms-app-tabbar-h) + var(--ms-app-safe-bottom) + 16px) !important;
    }

    footer.ms-site-footer {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .cookies-card {
        bottom: calc(var(--ms-app-tabbar-h) + var(--ms-app-safe-bottom) + 12px) !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        max-width: 420px;
    }

    /* ---------- App header sits above hero (image starts right after it) ---------- */
    .header_area {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: #fff !important;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06) !important;
        backdrop-filter: none;
    }

    .header_area .navbar,
    .header_area .navbar.bg-body-tertiary {
        position: relative;
        padding: 0.4rem 0.65rem !important;
        min-height: 52px;
        background: #fff !important;
        background-color: #fff !important;
    }

    .header_area .navbar > .container-fluid {
        position: relative;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 0.35rem;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .header_area .ms-hdr-brand {
        flex-shrink: 0;
        line-height: 0;
    }

    .header_area .navbar-toggler {
        border: 0 !important;
        box-shadow: none !important;
        padding: 0.35rem !important;
        font-size: 1.25rem;
        color: #1a2332 !important;
        background: rgba(15, 23, 42, 0.06) !important;
        border-radius: 12px !important;
        width: 40px;
        height: 40px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        z-index: 2;
        flex-shrink: 0;
        margin-left: 2px;
    }

    .header_area .home-logo {
        width: 52px !important;
        height: 52px !important;
        max-height: 52px !important;
        object-fit: contain;
        filter: none;
    }

    .header_area .navbar .btn:not(.ms-hdr-host-btn) {
        font-size: 0.72rem !important;
        padding: 0.4rem 0.7rem !important;
        border-radius: 999px !important;
        margin-top: 0 !important;
    }

    /* Quick actions: icon pills, label expands on hover */
    .ms-hdr-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 2px;
    }

    .ms-hdr-action-wrap {
        display: inline-flex;
        position: relative;
    }

    .ms-hdr-action {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        height: 40px;
        min-width: 40px;
        max-width: 40px;
        padding: 0 10px;
        margin: 0;
        border: 0;
        border-radius: 12px;
        color: #1a2332 !important;
        background: rgba(15, 23, 42, 0.055);
        text-decoration: none !important;
        overflow: hidden;
        white-space: nowrap;
        cursor: pointer;
        transition: max-width 0.28s ease, gap 0.28s ease, background 0.2s ease, color 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .ms-hdr-action i,
    .ms-hdr-action .fas {
        font-size: 1.15rem;
        line-height: 1;
        flex-shrink: 0;
    }

    .ms-hdr-action__label {
        display: inline-block;
        max-width: 0;
        opacity: 0;
        overflow: hidden;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        line-height: 1;
        transition: max-width 0.28s ease, opacity 0.2s ease;
    }

    .ms-hdr-action__badge {
        position: absolute;
        top: 4px;
        right: 4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--primary, #c9b290);
        color: #fff;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 16px;
        text-align: center;
        pointer-events: none;
    }

    .ms-hdr-action--host {
        border: 0 !important;
        box-shadow: none !important;
        background: var(--primary, #c9b290) !important;
        color: #fff !important;
    }

    .ms-hdr-action--host i {
        color: #fff !important;
    }

    .ms-hdr-action.is-active {
        background: rgba(15, 23, 42, 0.1);
    }

    @media (hover: hover) and (pointer: fine) {
        .ms-hdr-action:hover,
        .ms-hdr-action:focus-visible {
            max-width: 148px;
            gap: 6px;
            background: rgba(15, 23, 42, 0.09);
            color: #0f172a !important;
        }

        .ms-hdr-action--host:hover,
        .ms-hdr-action--host:focus-visible {
            border: 0 !important;
            box-shadow: none !important;
            background: #b89f78 !important;
            color: #fff !important;
        }

        .ms-hdr-action:hover .ms-hdr-action__label,
        .ms-hdr-action:focus-visible .ms-hdr-action__label {
            max-width: 110px;
            opacity: 1;
        }

        .ms-hdr-action--cart:hover .ms-hdr-action__badge {
            right: 8px;
        }
    }

    .ms-hdr-action-wrap .dropdown-menu {
        margin-top: 6px !important;
        min-width: 168px;
        border-radius: 12px !important;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14) !important;
        z-index: 1200 !important;
    }

    /* overlay menu — floats over page, does not push content down */
    .header_area .navbar-collapse {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 10px !important;
        right: 10px !important;
        float: none !important;
        width: auto !important;
        z-index: 1055 !important;
        background: #fff !important;
        border-radius: 16px;
        margin: 0 !important;
        padding: 0.5rem 0.75rem 0.75rem;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
        max-height: min(70vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .header_area .navbar-collapse.collapsing,
    .header_area .navbar-collapse.show {
        display: block !important;
    }

    .header_area .navbar-nav .nav-link {
        padding: 0.65rem 0.35rem !important;
        font-size: 0.95rem;
        border-bottom: 1px solid #f0f2f5;
        color: #1a2332 !important;
    }

    .header_area .navbar-nav .nav-link:last-child {
        border-bottom: 0;
    }

    /* submenu floats over items below (classic dropdown, no push) */
    .header_area .nav-item.dropdown {
        position: relative !important;
    }

    .header_area .navbar-collapse {
        overflow: visible !important;
    }

    .header_area .navbar-collapse .dropdown-menu,
    .header_area .navbar-collapse .dropdown-menu[data-bs-popper] {
        position: absolute !important;
        float: none !important;
        inset: auto !important;
        transform: none !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        margin: 2px 0 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        border: 1px solid rgba(15, 23, 42, 0.1) !important;
        border-radius: 12px !important;
        background: #fff !important;
        background-color: #fff !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16) !important;
        padding: 0 !important;
        overflow: hidden !important;
        z-index: 1200 !important;
    }

    .header_area .navbar-collapse .dropdown-menu > li {
        background: transparent !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header_area .navbar-collapse .dropdown-item {
        padding: 0.65rem 0.85rem !important;
        font-size: 0.9rem;
        color: #1a2332 !important;
        background: #fff !important;
        background-color: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .header_area .navbar-collapse .dropdown-item:hover,
    .header_area .navbar-collapse .dropdown-item:focus,
    .header_area .navbar-collapse .dropdown-item:focus-visible,
    .header_area .navbar-collapse .dropdown-item.active,
    .header_area .navbar-collapse .dropdown-item:active {
        color: #fff !important;
        background: #0d2f5c !important;
        background-color: #0d2f5c !important;
    }


    /* ---------- Global containment ---------- */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .container-fluid {
        max-width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* ---------- Full-bleed hero + centered copy + compact search ---------- */
    .home-landing {
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background-color: #f4f7fb !important;
    }

    .home-landing::before,
    .home-landing::after {
        display: none !important;
    }

    .ms-home-hero-block {
        position: relative;
        display: flex;
        flex-direction: column;
        margin: 0 !important;
        margin-bottom: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
        /* keep search + dropdowns above category cards */
        z-index: 40 !important;
    }

    .home-landing > .ms-home-hero-block {
        z-index: 40 !important;
    }

    .ms-home-hero {
        aspect-ratio: auto !important;
        width: 100% !important;
        min-height: min(52vh, 380px);
        height: min(52vh, 380px);
        border-radius: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
    }

    .ms-home-hero__img {
        object-fit: cover !important;
        object-position: center 28% !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
    }

    .ms-home-hero__veil {
        background: linear-gradient(
            180deg,
            rgba(8, 20, 40, 0.38) 0%,
            rgba(8, 20, 40, 0.22) 38%,
            rgba(8, 20, 40, 0.55) 100%
        ) !important;
        -webkit-mask-image: none !important;
        mask-image: none !important;
    }

    /* text higher on hero; search overlaps bottom */
    .ms-home-hero__inner {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        height: 100% !important;
        min-height: 100% !important;
        padding: 1.35rem 1.1rem 5.5rem !important;
    }

    .ms-home-hero__copy {
        max-width: 100% !important;
        width: 100%;
        text-align: center !important;
        margin-top: 0.15rem !important;
    }

    .ms-home-hero__kicker {
        font-size: 0.68rem !important;
        letter-spacing: 0.18em !important;
        margin-bottom: 0.4rem !important;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
    }

    .ms-home-hero__title {
        font-size: clamp(1.55rem, 7.2vw, 2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0.4rem !important;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    }

    .ms-home-hero__sub {
        font-size: 0.82rem !important;
        max-width: 22rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
        line-height: 1.4 !important;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    }

    /* search overlaps lower hero / wave */
    .ms-home-hero__search {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin: -165px 0 0 !important;
        padding: 0 12px 4px !important;
        z-index: 50 !important;
        background: transparent;
    }

    .ms-home-hero__search .home-search-panel {
        position: relative;
        width: 100%;
        border-radius: 18px !important;
        padding: 10px !important;
        background: #fff !important;
        box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
        border: 1px solid rgba(15, 23, 42, 0.05);
        overflow: visible !important;
        z-index: 50;
    }

    /* dropdowns / suggestions always on top */
    .ms-home-hero__search .hs-dropdown {
        position: relative;
        z-index: 1;
    }

    .ms-home-hero__search .hs-dropdown.is-open {
        z-index: 80 !important;
    }

    .ms-home-hero__search .hs-dropdown__menu,
    .ms-home-hero__search #suggestions,
    .ms-home-hero__search #suggestions.dropdown {
        z-index: 9999 !important;
        position: absolute !important;
    }

    .home-search-panel .row {
        --bs-gutter-x: 0.4rem;
        --bs-gutter-y: 0.4rem;
    }

    .home-search-panel .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
    }

    /* compact pairs: category|dates, offers|review */
    .home-search-form > .row:first-child > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .home-search-form > .row:last-child > .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .hs-field,
    .hs-search-btn {
        width: 100%;
        border-radius: 12px !important;
        min-height: 42px !important;
        height: 42px !important;
    }

    .hs-field {
        padding-left: 0.45rem !important;
        padding-right: 0.45rem !important;
    }

    .hs-field__icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.95rem !important;
        border-radius: 8px !important;
    }

    .hs-field__control {
        font-size: 0.84rem !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hs-search-btn {
        margin-top: 2px;
        font-weight: 700;
        font-size: 0.88rem !important;
        letter-spacing: 0.04em;
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
    }

    /* Category / listing cards */
    .home-landing .card {
        border-radius: 16px !important;
    }

    .home-landing section.container,
    .home-landing .container.pt-5,
    .home-landing .container.py-3 {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .home-listing-cards .col-lg-4,
    .home-listing-cards .col-md-6 {
        margin-bottom: 1rem;
    }

    /* Section headings */
    .home-landing h2.fw-bold {
        font-size: clamp(1.25rem, 5.5vw, 1.55rem) !important;
        line-height: 1.25;
    }

    .home-landing .btn {
        white-space: nowrap;
    }

    /* CTA destination block */
    .cta-box.position-relative {
        padding-left: 12px !important;
        padding-right: 12px !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .cta-box .row.justify-content-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100%;
        padding-top: 3.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    .cta-box .col-md-9 {
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .cta-box h3 {
        font-size: clamp(1.05rem, 4.5vw, 1.35rem) !important;
        line-height: 1.35 !important;
    }

    /*
     * Footer mobile — natural PNG wave (desktop-like).
     * Clip PNG's flat cyan crown + alpha so page white meets the curve
     * (no blue/cyan bar above the scallop). Logo sits on the crest.
     */
    .ms-site-footer {
        --ms-footer-blue: #0176b4 !important;
        position: relative !important;
        background-color: #0176b4 !important;
        background-image: linear-gradient(#0176b4, #0176b4) !important;
        background-size: 100% 40px !important;
        background-position: top center !important;
        background-repeat: no-repeat !important;
        text-align: center !important;
        overflow: hidden !important;
        isolation: isolate;
        padding: 0 !important;
        margin-top: 0 !important;
    }

    .ms-site-footer::before {
        content: none !important;
        display: none !important;
    }

    .ms-site-footer__wave {
        display: block !important;
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        z-index: 0 !important;
        margin: 0 0 -2px !important;
        padding: 0 !important;
        line-height: 0 !important;
        pointer-events: none !important;
        /* white behind PNG alpha — NEVER footer-blue (that was the bar above curve) */
        background: #0176b4 !important;
        overflow: visible !important;
    }

    .ms-site-footer__wave img {
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        object-position: center top !important;
        margin-top: 0 !important;
        transform: none !important;
    }

    .ms-site-footer__inner {
        position: relative !important;
        z-index: 2 !important;
        /* crest ~20px into wave; logo just below it (not deep, not overlapping) */
        margin: -5.15rem auto 0 !important;
        padding: 0 1rem 1.1rem !important;
        background: transparent !important;
        max-width: 380px;
        text-align: center !important;
    }

    /*
     * Order: brand → Links|Policies (1 row) → Subscribe
     */
    .ms-site-footer__inner > .row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .ms-site-footer__inner > .row > [class*="col-"] {
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    .ms-site-footer__inner > .row > .ms-site-footer__brand-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 1 !important;
        margin: 0 0 0.15rem !important;
        padding: 0 !important; /* logo right under curve */
    }

    .ms-site-footer__brand {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.8rem !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .ms-site-footer__logo {
        margin: 0 auto !important;
        display: block !important;
    }

    .ms-site-footer__logo-badge {
        width: 90px !important;
        height: 90px !important;
        margin: 0 auto !important;
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22) !important;
    }

    .ms-site-footer__brand-copy {
        padding: 0 !important;
        width: 100% !important;
        max-width: 20rem !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .ms-site-footer__desc {
        font-size: 0.84rem !important;
        line-height: 1.5 !important;
        max-width: 20rem !important;
        margin: 0 auto 0.35rem !important;
        text-align: center !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .ms-site-footer__desc--subscribe {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin: 0 auto 0.65rem !important;
        max-width: 18rem !important;
        text-align: center !important;
        color: #ffffff !important;
    }

    .ms-site-footer__social {
        display: none !important;
    }

    /* Links + Policies — same row; extra space after description line */
    .ms-site-footer__inner > .row > .ms-site-footer__col--links,
    .ms-site-footer__inner > .row > .ms-site-footer__col--policies {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        margin: 1.35rem 0 0 !important;
        padding: 1.15rem 0.45rem 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        text-align: center !important;
        background: transparent !important;
    }

    .ms-site-footer__inner > .row > .ms-site-footer__col--links {
        order: 2 !important;
        padding-left: 0.15rem !important;
        padding-right: 0.55rem !important;
    }

    .ms-site-footer__inner > .row > .ms-site-footer__col--policies {
        order: 3 !important;
        padding-left: 0.55rem !important;
        padding-right: 0.15rem !important;
    }

    /* Subscribe — full width; same breathing room after links row */
    .ms-site-footer__inner > .row > .ms-site-footer__col--subscribe {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 4 !important;
        margin: 1.35rem auto 0 !important;
        padding: 1.15rem 0.25rem 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        text-align: center !important;
        background: transparent !important;
    }

    .ms-site-footer__title,
    .ms-site-footer h5.ms-site-footer__title,
    .ms-site-footer__title span {
        color: #c9b290 !important;
        -webkit-text-fill-color: #c9b290 !important;
        font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.08em !important;
        margin: 0 0 0.55rem !important;
        line-height: 1.25 !important;
        opacity: 1 !important;
        text-align: center !important;
    }

    .ms-site-footer__title-full {
        display: none !important;
    }

    .ms-site-footer__title-short {
        display: inline !important;
    }

    .ms-site-footer__links {
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .ms-site-footer__links li {
        margin: 0 0 0.4rem !important;
    }

    .ms-site-footer__links li:last-child {
        margin-bottom: 0 !important;
    }

    .ms-site-footer__links a {
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
        font-weight: 500;
        color: #fff !important;
    }

    .ms-site-footer__links p {
        margin: 0 !important;
        font-size: inherit !important;
    }

    .ms-site-footer__subscribe {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
        border-radius: 14px;
        overflow: hidden;
    }

    .ms-site-footer__subscribe .form-control {
        min-width: 0;
        min-height: 46px !important;
        font-size: 0.86rem !important;
        border-radius: 0 !important;
        border: 0 !important;
        text-align: left;
    }

    .ms-site-footer__subscribe-btn {
        font-size: 0.82rem !important;
        padding-left: 0.95rem !important;
        padding-right: 0.95rem !important;
        border-radius: 0 !important;
        white-space: nowrap;
        background: #c9b290 !important;
        color: #fff !important;
    }

    footer.ms-site-footer .ms-site-footer__copy {
        position: relative !important;
        z-index: 2 !important;
        margin-top: 0 !important;
        padding: 0.85rem 14px !important;
        font-size: 0.74rem !important;
        line-height: 1.4 !important;
        background: #0176b4 !important;
        border-top: 0 !important;
        box-shadow: none !important;
        text-align: center !important;
    }

    /* Listing section banners */
    .ms-home-listings,
    .ms-home-boat-charters,
    .ms-home-boats,
    .ms-home-hotels,
    .ms-home-offer,
    .ms-home-mucho {
        background-size: cover !important;
        background-position: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .ms-home-offer {
        padding: 1.85rem 0 2.1rem !important;
    }

    .ms-home-offer__inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .ms-home-offer__title {
        font-size: clamp(1.4rem, 5.5vw, 1.7rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.55rem !important;
        text-align: center;
    }

    .ms-home-offer__text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 0.95rem !important;
        text-align: center;
    }

    .ms-home-offer__list {
        max-width: 24rem;
        margin: 0 auto !important;
    }

    .ms-home-offer__list li {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
    }

    .ms-home-offer__img {
        max-height: 230px !important;
    }

    .ms-home-mucho {
        padding: 1.6rem 0 2rem !important;
    }

    .ms-home-mucho__inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .ms-home-mucho__eyebrow {
        font-size: 0.98rem !important;
    }

    .ms-home-mucho__heading {
        font-size: clamp(1.12rem, 4.8vw, 1.35rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.55rem !important;
    }

    .ms-home-mucho__heading br {
        display: none;
    }

    .ms-home-mucho__text {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }

    .ms-home-mucho__img {
        height: auto !important;
        max-height: 230px !important;
        width: 100% !important;
        margin-top: 0.35rem !important;
        object-fit: cover !important;
        border-radius: 14px !important;
    }

    .ms-home-boat-charters .charter-results {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ms-home-boat-charters .charter-card {
        border-radius: 18px !important;
    }

    /*
     * Listing headers — app toolbar style:
     * title left, View All right (same as big-screen side button intent)
     */
    .ms-home-listings {
        padding: 1.1rem 0 1.5rem !important;
        margin-top: 0.25rem !important;
    }

    .ms-home-listings__inner {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ms-home-listings__head {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.35rem 0.75rem !important;
        margin-bottom: 0.85rem !important;
        min-height: 0 !important;
    }

    .ms-home-listings__titles {
        flex: 1 1 auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        min-width: 0;
    }

    .ms-home-listings__title {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
        margin: 0 0 0.15rem !important;
    }

    .ms-home-listings__sub {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        color: #64748b !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .ms-home-listings__viewall {
        position: static !important;
        flex: 0 0 auto !important;
        align-self: center !important;
        margin: 0 !important;
        padding: 0.4rem 0.85rem !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 12px rgba(201, 178, 144, 0.28) !important;
        order: 0 !important;
    }

    .ms-home-listings__viewall i {
        font-size: 0.7rem;
    }

    .ms-home-listings .home-listing-cards {
        margin-left: -4px;
        margin-right: -4px;
    }

    /*
     * Listing cards — 1 per row on phones (cleaner with badges).
     * Tablets (576–991) can still use 2-col via the rule below.
     */
    .home-listing-cards > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        margin-top: 0.55rem !important;
    }

    .home-listing-cards .yachts_wrap {
        margin-bottom: 0.25rem !important;
        border-radius: 14px !important;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08) !important;
    }

    .home-listing-cards .yachts_img {
        height: 160px !important;
        overflow: hidden;
        position: relative;
    }

    .home-listing-cards .yachts_img img,
    .home-listing-cards .boat-image {
        width: 100% !important;
        height: 160px !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .home-listing-cards .badge-overlay {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
        padding: 6px !important;
        align-items: flex-start;
    }

    .home-listing-cards .badge-overlay > span,
    .home-listing-cards .listing-price-drop-pill {
        padding: 3px 8px !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        gap: 3px !important;
        line-height: 1.1 !important;
        border-radius: 999px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    }

    .home-listing-cards .badge-overlay > span i,
    .home-listing-cards .listing-price-drop-pill i {
        font-size: 9px !important;
    }

    .home-listing-cards .yachts_content {
        padding: 0.55rem 0.7rem 0.4rem !important;
    }

    .home-listing-cards .yachts_content h6 {
        font-size: 0.92rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin: 0 0 0.2rem !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-listing-cards .yachts_content p {
        font-size: 0.75rem !important;
        margin: 0 !important;
        line-height: 1.3 !important;
        color: #64748b !important;
    }

    .home-listing-cards .yachts_content p i {
        font-size: 0.72rem !important;
    }

    .home-listing-cards .boat-attr {
        margin-top: 0.4rem !important;
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .home-listing-cards .boat-attr > span:first-child {
        font-size: 0.72rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    .home-listing-cards .boat-attr .d-flex {
        gap: 0.45rem;
        font-size: 0.72rem;
    }

    .home-listing-cards .boat-attr .d-flex i {
        font-size: 0.75rem !important;
    }

    .home-listing-cards .theme_btn_sm,
    .home-listing-cards a.theme_btn_sm {
        font-size: 0.78rem !important;
        padding: 0.5rem 0.65rem !important;
        min-height: 0 !important;
        border-radius: 0 0 14px 14px !important;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .home-listing-cards > [class*="col-"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .home-listing-cards .yachts_img,
    .home-listing-cards .yachts_img img,
    .home-listing-cards .boat-image {
        height: 130px !important;
    }
}

@media (max-width: 575.98px) {
    .ms-home-hero {
        min-height: min(50vh, 340px);
        height: min(50vh, 340px);
    }

    .ms-home-hero__inner {
        padding: 1.15rem 1rem 5.25rem !important;
    }

    .ms-home-hero__search {
        margin-top: -155px !important;
        padding: 0 10px 2px !important;
    }

    .ms-home-hero__search .home-search-panel {
        border-radius: 16px !important;
        padding: 8px !important;
    }

    .hs-field,
    .hs-search-btn {
        min-height: 40px !important;
        height: 40px !important;
    }

    .hs-search-btn {
        min-height: 42px !important;
        height: 42px !important;
    }

    /* Category cards — compact app chips + soft leaf BG */
    .home-category-cards {
        padding: 0.65rem 0 1rem !important;
        overflow: hidden;
        background:
            radial-gradient(ellipse 80% 70% at 0% 50%, rgba(186, 219, 245, 0.45) 0%, transparent 60%),
            radial-gradient(ellipse 80% 70% at 100% 50%, rgba(186, 219, 245, 0.38) 0%, transparent 58%),
            #f4f7fb !important;
    }

    .home-category-cards::before,
    .home-category-cards::after {
        display: block !important;
        opacity: 0.55;
        width: min(200px, 48vw) !important;
        height: min(260px, 62vw) !important;
        top: 50% !important;
        background-color: rgba(168, 206, 236, 0.55) !important;
    }

    .home-category-cards::before {
        left: -72px !important;
        transform: translateY(-50%) scaleX(-1) !important;
    }

    .home-category-cards::after {
        right: -64px !important;
        transform: translateY(-50%) !important;
    }

    .home-category-cards__inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .home-category-cards__card {
        border-radius: 14px !important;
        min-height: 0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
    }

    .home-category-cards__card .card-body {
        padding: 0.55rem 0.3rem 0.6rem !important;
    }

    .home-category-cards__icon {
        font-size: 1.05rem !important;
        margin-bottom: 0.3rem !important;
        color: #4b5565 !important;
    }

    .home-category-cards__title {
        font-size: 0.62rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.01em;
    }
}

@media (min-width: 992px) {
    /* ensure leaf fronds show on large screens behind categories */
    .home-category-cards::before,
    .home-category-cards::after {
        display: block;
        opacity: 1;
    }
}
