/* ==========================================================================
   JRB Holiday — Maldives outbound pages (warm luxury layer)
   --------------------------------------------------------------------------
   Scope:  .mdv-lux  (wrapper rendered only by
           portal/outbound/destinations/maldives.php and maldives-resort.php)
   Purpose: present those two pages in the charcoal / deep-navy / champagne-gold
            brand direction without touching the shared theme, header or footer.
   Notes:   No layout rule here is global; every selector is scoped to .mdv-lux.
            Motion is limited to 150-250ms colour/shadow/border transitions and
            fully disabled under prefers-reduced-motion.
   ========================================================================== */

.mdv-lux {
    /* Palette ------------------------------------------------------------ */
    --mdv-navy: #0b1626;
    --mdv-navy-deep: #070f1a;
    --mdv-navy-soft: #16283f;
    --mdv-charcoal: #14161a;
    --mdv-gold: #c9a227;
    --mdv-gold-bright: #e0bc55;
    --mdv-gold-soft: #f0e2b6;
    --mdv-gold-ink: #241c05;
    --mdv-cream: #fcfaf5;
    --mdv-cream-2: #f5f0e6;
    --mdv-cream-3: #ece5d6;
    --mdv-ink: #1b2130;
    --mdv-ink-2: #4a5464;
    /* ink-3 is only ever used on light surfaces; #6e7787 measured 4.3:1 on
       cream, so it is darkened to clear 4.5:1 for body-sized labels. */
    --mdv-ink-3: #565e6c;
    --mdv-line: rgba(27, 33, 48, .12);
    --mdv-line-strong: rgba(27, 33, 48, .24);
    --mdv-line-light: rgba(252, 250, 245, .16);

    /* Themeable surfaces -------------------------------------------------
       These flip in the dark-theme block below. --mdv-cream* stay fixed:
       they are the *ink* used on navy bands and on the hero photo, so they
       must not follow the page background. */
    --mdv-paper: #fcfaf5;         /* page background */
    --mdv-paper-2: #f5f0e6;       /* warm band / inset */
    --mdv-paper-3: #ece5d6;       /* sand band / media placeholder */
    --mdv-surface: #ffffff;       /* cards, panels, inputs */
    --mdv-surface-2: #fdf8ec;     /* highlighted card */
    --mdv-row-alt: rgba(245, 240, 230, .55);
    --mdv-placeholder: #98a0ad;
    --mdv-success: #146c43;
    --mdv-danger: #b42318;
    --mdv-gold-text: #7d6410;     /* gold that clears 4.5:1 on paper */
    --mdv-money: #7d6410;         /* prices, icon accents (4.5:1+ on cream) */

    /* Type --------------------------------------------------------------- */
    --mdv-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --mdv-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* Shape --------------------------------------------------------------- */
    --mdv-r-sm: 8px;
    --mdv-r: 14px;
    --mdv-r-lg: 20px;
    --mdv-r-xl: 28px;

    /* Elevation ----------------------------------------------------------- */
    --mdv-shadow-xs: 0 1px 2px rgba(11, 22, 38, .06);
    --mdv-shadow-sm: 0 8px 20px -12px rgba(11, 22, 38, .25);
    --mdv-shadow-md: 0 22px 48px -26px rgba(11, 22, 38, .38);
    --mdv-shadow-lg: 0 40px 80px -40px rgba(11, 22, 38, .55);

    --mdv-ease: cubic-bezier(.22, .61, .36, 1);

    position: relative;
    z-index: 1;
    background-color: var(--mdv-paper);
    color: var(--mdv-ink);
    font-family: var(--mdv-sans);
    font-size: 1rem;
    line-height: 1.65;
    /* No overflow property here on purpose: an overflow/clip container on an
       ancestor breaks position: sticky for the quote card. Any wide child
       (the pricing tables) is contained by .mdv-table-scroll instead. */
}

/* ==========================================================================
   Dark theme
   --------------------------------------------------------------------------
   The site shell (includes/header.php) sets data-theme on <html> and dark is
   the default, so this layer must not paint a permanent cream page. Only the
   surfaces, ink, hairlines and accent-text tokens flip here. The navy bands,
   the hero photo scrim and the gold stay identical in both themes so the
   pages keep their identity instead of looking like a different site.

   --jrb-ui-dark-text-muted is re-pointed inside the layer because
   foundation.css paints every <p> with it at [data-theme="dark"] p (0,1,1);
   inheriting that #7a7a8a on a navy card drops to 3.6:1. Dark-on-dark
   contexts (navy bands, quote card, hero) get the cream ink instead.
   ========================================================================== */

[data-theme="dark"] .mdv-lux {
    --mdv-paper: #0a121e;
    --mdv-paper-2: #0d1826;
    --mdv-paper-3: #111f30;
    --mdv-surface: #122033;
    --mdv-surface-2: #16273c;
    --mdv-row-alt: rgba(240, 238, 232, .045);
    --mdv-placeholder: #8e99a8;
    --mdv-success: #6fd39b;
    --mdv-danger: #f97066;
    --mdv-gold-text: #e3c265;
    --mdv-money: #e3c265;

    --mdv-ink: #f2f0ea;
    --mdv-ink-2: #c3cad6;
    --mdv-ink-3: #9dabbe;
    --mdv-line: rgba(240, 238, 232, .13);
    --mdv-line-strong: rgba(240, 238, 232, .26);

    --mdv-shadow-xs: 0 1px 2px rgba(0, 0, 0, .45);
    --mdv-shadow-sm: 0 10px 24px -14px rgba(0, 0, 0, .7);
    --mdv-shadow-md: 0 24px 50px -26px rgba(0, 0, 0, .8);
    --mdv-shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, .9);

    --jrb-ui-dark-text-muted: #c3cad6;
}

[data-theme="dark"] .mdv-lux .mdv-sec--navy,
[data-theme="dark"] .mdv-lux .mdv-on-navy,
[data-theme="dark"] .mdv-lux .mdv-quote,
[data-theme="dark"] .mdv-lux .mdv-hero,
[data-theme="dark"] .mdv-lux .mdv-tablehead {
    --jrb-ui-dark-text-muted: rgba(252, 250, 245, .8);
}

/* The navy band and the quote card sit on a navy page now, so each needs one
   step of separation to still read as a distinct surface. */
[data-theme="dark"] .mdv-lux .mdv-sec--navy { background-color: #060d17; }
[data-theme="dark"] .mdv-lux .mdv-quote { background-color: #0f1d30; }

/* Native date picker chrome follows the theme. */
[data-theme="dark"] .mdv-lux .form-control[type="date"] { color-scheme: dark; }
[data-theme="dark"] .mdv-lux .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23c3cad6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
}

.mdv-lux *,
.mdv-lux *::before,
.mdv-lux *::after { box-sizing: border-box; }

.mdv-lux img { max-width: 100%; }

.mdv-lux p { color: var(--mdv-ink-2); }
.mdv-lux li { color: var(--mdv-ink-2); }
.mdv-lux a { text-decoration: none; }

.mdv-lux [id] { scroll-margin-top: 96px; }

/* Visible keyboard focus everywhere inside the layer. */
.mdv-lux a:focus-visible,
.mdv-lux button:focus-visible,
.mdv-lux input:focus-visible,
.mdv-lux select:focus-visible,
.mdv-lux textarea:focus-visible,
.mdv-lux [tabindex]:focus-visible {
    outline: 2px solid var(--mdv-gold);
    outline-offset: 3px;
    border-radius: var(--mdv-r-sm);
}

/* ==========================================================================
   1. Typography helpers
   ========================================================================== */

.mdv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    font-family: var(--mdv-sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mdv-gold);
}
.mdv-eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}
.mdv-eyebrow--center { justify-content: center; }
.mdv-eyebrow--center::after {
    content: "";
    width: 34px;
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.mdv-h2 {
    margin: 0;
    font-family: var(--mdv-serif);
    font-size: clamp(1.75rem, 3.2vw, 2.6rem);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--mdv-ink);
}
.mdv-h3 {
    margin: 0;
    font-family: var(--mdv-serif);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--mdv-ink);
}
.mdv-h4 {
    margin: 0;
    font-family: var(--mdv-sans);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mdv-ink);
}
.mdv-lede {
    margin: 14px 0 0;
    max-width: 62ch;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--mdv-ink-2);
}
.mdv-muted { color: var(--mdv-ink-3); }
.mdv-small { font-size: .85rem; }

/* Text colours for content sitting on navy. */
.mdv-on-navy .mdv-h2,
.mdv-on-navy .mdv-h3,
.mdv-on-navy .mdv-h4 { color: var(--mdv-cream); }
.mdv-on-navy p,
.mdv-on-navy li,
.mdv-on-navy .mdv-lede { color: rgba(252, 250, 245, .78); }

.mdv-sec-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.mdv-sec-head .mdv-lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   2. Buttons
   ========================================================================== */

.mdv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: var(--mdv-r-sm);
    font-family: var(--mdv-sans);
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s var(--mdv-ease),
                border-color .2s var(--mdv-ease),
                color .2s var(--mdv-ease),
                box-shadow .2s var(--mdv-ease),
                transform .2s var(--mdv-ease);
}
.mdv-btn i { font-size: .95em; }

.mdv-btn--gold {
    background-color: var(--mdv-gold);
    border-color: var(--mdv-gold);
    color: var(--mdv-gold-ink);
    box-shadow: 0 10px 24px -14px rgba(201, 162, 39, .9);
}
.mdv-btn--gold:hover,
.mdv-btn--gold:focus-visible {
    background-color: var(--mdv-gold-bright);
    border-color: var(--mdv-gold-bright);
    color: var(--mdv-gold-ink);
    box-shadow: 0 14px 30px -14px rgba(201, 162, 39, .95);
    transform: translateY(-1px);
}

.mdv-btn--navy {
    background-color: var(--mdv-navy);
    border-color: var(--mdv-navy);
    color: var(--mdv-cream);
}
.mdv-btn--navy:hover,
.mdv-btn--navy:focus-visible {
    background-color: var(--mdv-navy-soft);
    border-color: var(--mdv-navy-soft);
    color: var(--mdv-cream);
    transform: translateY(-1px);
}

.mdv-btn--outline {
    background-color: transparent;
    border-color: var(--mdv-line-strong);
    color: var(--mdv-ink);
}
.mdv-btn--outline:hover,
.mdv-btn--outline:focus-visible {
    border-color: var(--mdv-gold);
    color: var(--mdv-ink);
    background-color: rgba(201, 162, 39, .08);
}

.mdv-btn--ghost-light {
    background-color: rgba(252, 250, 245, .08);
    border-color: rgba(252, 250, 245, .34);
    color: var(--mdv-cream);
    backdrop-filter: blur(6px);
}
.mdv-btn--ghost-light:hover,
.mdv-btn--ghost-light:focus-visible {
    background-color: rgba(252, 250, 245, .16);
    border-color: var(--mdv-gold-bright);
    color: #fff;
}

.mdv-btn--block { width: 100%; }
.mdv-btn--sm { min-height: 40px; padding: 0 18px; font-size: .85rem; }
.mdv-btn--lg { min-height: 54px; padding: 0 34px; font-size: 1rem; }

/* Quiet text link used where a full button would add clutter. */
.mdv-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--mdv-ink);
    border-bottom: 1px solid var(--mdv-line-strong);
    padding-bottom: 2px;
    transition: color .2s var(--mdv-ease), border-color .2s var(--mdv-ease);
}
.mdv-link:hover,
.mdv-link:focus-visible { color: var(--mdv-money); border-color: var(--mdv-gold); }
.mdv-on-navy .mdv-link { color: var(--mdv-cream); border-color: var(--mdv-line-light); }
.mdv-on-navy .mdv-link:hover,
.mdv-on-navy .mdv-link:focus-visible { color: var(--mdv-gold-bright); border-color: var(--mdv-gold); }

.mdv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    margin-top: 30px;
}

/* ==========================================================================
   3. Hero
   ========================================================================== */

.mdv-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 620px;
    padding: 96px 0 132px;
    background-color: var(--mdv-navy-deep);
    color: var(--mdv-cream);
    overflow: hidden;
}
.mdv-hero--compact { min-height: 520px; padding-bottom: 112px; }

.mdv-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.mdv-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(7, 15, 26, .94) 0%, rgba(7, 15, 26, .82) 42%, rgba(7, 15, 26, .38) 78%, rgba(7, 15, 26, .30) 100%),
        linear-gradient(180deg, rgba(7, 15, 26, .55) 0%, rgba(7, 15, 26, .05) 36%, rgba(7, 15, 26, .72) 100%);
}

.mdv-hero__inner { position: relative; z-index: 2; width: 100%; }

.mdv-hero__copy { max-width: 720px; }

.mdv-hero__title {
    margin: 0;
    font-family: var(--mdv-serif);
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.02em;
    color: #fff;
    text-wrap: balance;
}

.mdv-hero__lede {
    margin: 18px 0 0;
    max-width: 54ch;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.7;
    color: rgba(252, 250, 245, .84);
}

.mdv-hero .mdv-eyebrow { color: var(--mdv-gold-bright); }

.mdv-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: .86rem;
    font-weight: 500;
    color: rgba(252, 250, 245, .74);
    transition: color .2s var(--mdv-ease);
}
.mdv-hero__back:hover,
.mdv-hero__back:focus-visible { color: var(--mdv-gold-bright); }

.mdv-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

.mdv-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid rgba(252, 250, 245, .26);
    border-radius: 999px;
    background-color: rgba(252, 250, 245, .07);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--mdv-cream);
}
.mdv-chip--gold {
    border-color: rgba(224, 188, 85, .5);
    background-color: rgba(201, 162, 39, .16);
    color: var(--mdv-gold-soft);
}
.mdv-chip .bi-star-fill { color: var(--mdv-gold-bright); font-size: .72rem; }

/* ==========================================================================
   4. Facts strip (quick info bar)
   ========================================================================== */

.mdv-facts {
    position: relative;
    z-index: 3;
    background-color: var(--mdv-navy);
    border-top: 1px solid rgba(201, 162, 39, .22);
    border-bottom: 1px solid rgba(252, 250, 245, .08);
    padding: 26px 0;
}
.mdv-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background-color: rgba(252, 250, 245, .10);
}
.mdv-facts--five .mdv-facts__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mdv-facts--six .mdv-facts__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.mdv-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 22px;
    background-color: var(--mdv-navy);
    min-width: 0;
}
.mdv-fact i {
    flex: 0 0 auto;
    margin-top: 3px;
    font-size: 1.15rem;
    color: var(--mdv-gold);
}
.mdv-fact__body { min-width: 0; }
.mdv-fact__value {
    display: block;
    font-size: .94rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mdv-cream);
    overflow-wrap: anywhere;
}
.mdv-fact__label {
    display: block;
    margin-top: 2px;
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(252, 250, 245, .58);
}

/* ==========================================================================
   5. Sections
   ========================================================================== */

.mdv-sec { padding: 88px 0; background-color: var(--mdv-paper); }
.mdv-sec--tight { padding: 64px 0; }
.mdv-sec--warm { background-color: var(--mdv-paper-2); }
.mdv-sec--sand { background-color: var(--mdv-paper-3); }
.mdv-sec--navy {
    background-color: var(--mdv-navy);
    background-image:
        radial-gradient(900px 420px at 12% 0%, rgba(201, 162, 39, .13), transparent 62%),
        radial-gradient(700px 380px at 92% 100%, rgba(201, 162, 39, .08), transparent 60%);
    color: var(--mdv-cream);
}

.mdv-sec--navy + .mdv-sec--navy { border-top: 1px solid rgba(252, 250, 245, .08); }

/* ==========================================================================
   6. Cards
   ========================================================================== */

.mdv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r-lg);
    box-shadow: var(--mdv-shadow-xs);
    overflow: hidden;
    transition: border-color .2s var(--mdv-ease),
                box-shadow .25s var(--mdv-ease),
                transform .25s var(--mdv-ease);
}
.mdv-card--pad { padding: 28px; }

/* Equal heights are only wanted inside the card grids. Applying height:100%
   to every card made the resort "Quick facts" card stretch to the full row
   height and spill over the following section heading, so the base .mdv-card
   keeps height:auto and only these grid children stretch. */
#villa-types .mdv-card,
.mdv-sec--navy .row > [class*="col"] > .mdv-card { height: 100%; }
.mdv-card--flat { box-shadow: none; }
.mdv-card--hover:hover,
.mdv-card--hover:focus-within {
    border-color: rgba(201, 162, 39, .55);
    box-shadow: var(--mdv-shadow-md);
    transform: translateY(-3px);
}

.mdv-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--mdv-paper-3);
}
.mdv-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--mdv-ease);
}
.mdv-card--hover:hover .mdv-card__media img { transform: scale(1.04); }
.mdv-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 15, 26, .34) 0%, rgba(7, 15, 26, 0) 38%, rgba(7, 15, 26, .55) 100%);
    pointer-events: none;
}

.mdv-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px 24px 24px;
}

.mdv-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1.2;
}
.mdv-badge--gold {
    background-color: var(--mdv-gold);
    color: var(--mdv-gold-ink);
}
.mdv-badge--glass {
    background-color: rgba(7, 15, 26, .62);
    border: 1px solid rgba(252, 250, 245, .22);
    color: var(--mdv-cream);
    backdrop-filter: blur(6px);
    letter-spacing: .06em;
    text-transform: none;
}

.mdv-card__flags {
    position: absolute;
    inset: 14px 14px auto 14px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.mdv-card__loc {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .78rem;
    font-weight: 500;
    color: rgba(252, 250, 245, .92);
}
.mdv-card__loc i { color: var(--mdv-gold-bright); font-size: .82rem; }

/* Price block: the label gets its own line so "RM 12,740 /night" never
   wraps mid-number inside a narrow three-up card. */
.mdv-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    min-width: 0;
    color: var(--mdv-ink);
}
.mdv-price__from {
    flex: 0 0 100%;
    margin-bottom: 3px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mdv-ink-3);
}
.mdv-price__amount {
    font-family: var(--mdv-serif);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
    color: var(--mdv-money);
}
.mdv-price__unit { font-size: .76rem; color: var(--mdv-ink-3); white-space: nowrap; }

.mdv-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--mdv-line);
}
.mdv-card__foot .mdv-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}
.mdv-card__body > .mdv-card__foot { margin-top: auto; }

.mdv-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.mdv-tag {
    padding: 3px 9px;
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r-sm);
    background-color: var(--mdv-paper-2);
    font-size: .72rem;
    font-weight: 500;
    color: var(--mdv-ink-2);
}

/* Card variant that sits on the navy sections. */
.mdv-on-navy .mdv-card {
    background-color: rgba(252, 250, 245, .045);
    border-color: rgba(252, 250, 245, .12);
    color: var(--mdv-cream);
    box-shadow: none;
}
.mdv-on-navy .mdv-card .mdv-h4 { color: var(--mdv-cream); }
.mdv-on-navy .mdv-card p { color: rgba(252, 250, 245, .74); }
.mdv-on-navy .mdv-card--hover:hover {
    border-color: rgba(201, 162, 39, .45);
    background-color: rgba(252, 250, 245, .07);
}

/* ==========================================================================
   7. Experience / feature rows
   ========================================================================== */

.mdv-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    padding: 24px;
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r);
    transition: border-color .2s var(--mdv-ease), box-shadow .2s var(--mdv-ease);
}
.mdv-feature:hover { border-color: rgba(201, 162, 39, .5); box-shadow: var(--mdv-shadow-sm); }

.mdv-feature__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 162, 39, .38);
    border-radius: var(--mdv-r-sm);
    background-color: rgba(201, 162, 39, .12);
    color: var(--mdv-money);
    font-size: 1.1rem;
}
.mdv-feature__body { min-width: 0; }
.mdv-feature__body p { margin: 6px 0 0; font-size: .88rem; line-height: 1.6; }

/* ==========================================================================
   8. Stat panel (About blocks)
   ========================================================================== */

.mdv-figure {
    position: relative;
    border-radius: var(--mdv-r-xl);
    overflow: hidden;
    box-shadow: var(--mdv-shadow-md);
    background-color: var(--mdv-paper-3);
    min-height: 320px;
}
.mdv-figure img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.mdv-statpanel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: var(--mdv-line);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r-lg);
    overflow: hidden;
}
.mdv-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 20px;
    background-color: var(--mdv-surface);
}
.mdv-stat i { color: var(--mdv-money); font-size: 1.2rem; margin-top: 2px; }
.mdv-stat__value {
    display: block;
    font-size: .98rem;
    font-weight: 600;
    color: var(--mdv-ink);
    line-height: 1.3;
}
.mdv-stat__label {
    display: block;
    margin-top: 3px;
    font-size: .78rem;
    color: var(--mdv-ink-3);
}

/* Definition list used for resort "quick facts". */
.mdv-facts-list { margin: 0; }
.mdv-facts-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid var(--mdv-line);
}
.mdv-facts-list > div:last-child { border-bottom: 0; }
.mdv-facts-list dt {
    margin: 0;
    font-size: .86rem;
    font-weight: 400;
    color: var(--mdv-ink-3);
    white-space: nowrap;
}
.mdv-facts-list dd {
    margin: 0;
    font-size: .88rem;
    font-weight: 600;
    color: var(--mdv-ink);
    text-align: right;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   9. Search panel
   ========================================================================== */

/* The panel used to be pulled up by -84px so the card floated over the hero.
   The quick-facts strip now sits between the hero and this panel, so that
   pull-up landed on the strip and covered the fact values and their labels.
   The panel keeps its own breathing space instead of overlapping anything. */
.mdv-searchbar {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 40px 0 0;
}
.mdv-searchbar__card {
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r-xl);
    box-shadow: var(--mdv-shadow-lg);
    padding: 26px 28px 22px;
}
.mdv-searchbar__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mdv-line);
}
.mdv-searchbar__title {
    margin: 0;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mdv-ink-3);
}
.mdv-searchbar__form {
    display: grid;
    /* type · stars · adults · children · occasion · depart · return · button */
    grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
}
.mdv-searchbar__submit { align-self: end; }

/* Guest steppers (adults / children): − value + in one bordered control so
   the count is adjusted without a native spinner or a long dropdown. */
.mdv-lux .mdv-stepper {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: stretch;
    min-height: 48px;
    border: 1px solid var(--mdv-line-strong);
    border-radius: var(--mdv-r-sm);
    background-color: var(--mdv-surface);
    overflow: hidden;
    transition: border-color .18s var(--mdv-ease), box-shadow .18s var(--mdv-ease);
}
.mdv-lux .mdv-stepper:hover { border-color: rgba(201, 162, 39, .55); }
.mdv-lux .mdv-stepper:focus-within {
    border-color: var(--mdv-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
.mdv-stepper__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background-color: transparent;
    color: var(--mdv-ink-2);
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s var(--mdv-ease), color .18s var(--mdv-ease);
}
.mdv-stepper__btn:hover:not(:disabled) {
    background-color: rgba(201, 162, 39, .16);
    color: var(--mdv-ink);
}
/* The stepper clips its children, so the focus ring is drawn inside the button
   instead of 3px outside it where it would be cut off. */
.mdv-stepper__btn:focus-visible {
    outline: 2px solid var(--mdv-gold);
    outline-offset: -3px;
    border-radius: 0;
    background-color: rgba(201, 162, 39, .16);
    color: var(--mdv-ink);
}
.mdv-stepper__btn:disabled {
    color: var(--mdv-placeholder);
    cursor: not-allowed;
    opacity: .55;
}
.mdv-lux .mdv-stepper__input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 0 2px;
    border: 0;
    border-left: 1px solid var(--mdv-line);
    border-right: 1px solid var(--mdv-line);
    border-radius: 0;
    background-color: transparent;
    color: var(--mdv-ink);
    font-family: var(--mdv-sans);
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}
.mdv-lux .mdv-stepper__input:focus {
    outline: none;
    box-shadow: none;
}
.mdv-stepper__input::-webkit-outer-spin-button,
.mdv-stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mdv-searchbar__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--mdv-line);
}
.mdv-resultcount {
    font-size: .86rem;
    font-weight: 600;
    color: var(--mdv-ink);
}
.mdv-resultcount::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background-color: var(--mdv-gold);
    vertical-align: middle;
}

/* ==========================================================================
   10. Form controls (page-scoped, overrides the dark global theme)
   ========================================================================== */

.mdv-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }

.mdv-label {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mdv-ink-3);
}

.mdv-lux .form-control,
.mdv-lux .form-select,
.mdv-lux .mdv-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid var(--mdv-line-strong);
    border-radius: var(--mdv-r-sm);
    background-color: var(--mdv-surface);
    color: var(--mdv-ink);
    font-family: var(--mdv-sans);
    font-size: .92rem;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .18s var(--mdv-ease), box-shadow .18s var(--mdv-ease);
}
.mdv-lux .form-control::placeholder { color: var(--mdv-placeholder); opacity: 1; }
.mdv-lux .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%234a5464' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}
.mdv-lux textarea.form-control { min-height: 110px; resize: vertical; }
.mdv-lux .form-control:hover,
.mdv-lux .form-select:hover { border-color: rgba(201, 162, 39, .55); }
.mdv-lux .form-control:focus,
.mdv-lux .form-select:focus {
    border-color: var(--mdv-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
    outline: none;
}
.mdv-lux .form-control[type="date"] { color-scheme: light; }

.mdv-form-card {
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r-xl);
    box-shadow: var(--mdv-shadow-md);
    padding: 40px;
}
.mdv-form-head { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.mdv-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mdv-form-grid .span-2 { grid-column: span 2; }
.mdv-form-grid .span-3 { grid-column: span 3; }
.mdv-form-grid .span-4 { grid-column: span 4; }
.mdv-form-actions { margin-top: 26px; text-align: center; }
.mdv-form-note {
    margin: 14px 0 0;
    font-size: .8rem;
    color: var(--mdv-ink-3);
    text-align: center;
}

/* Inline radio group (preferred contact method). */
.mdv-radios { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mdv-radio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 68px;
    padding: 10px;
    border: 1px solid var(--mdv-line-strong);
    border-radius: var(--mdv-r-sm);
    background-color: var(--mdv-paper);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 500;
    color: var(--mdv-ink-2);
    transition: border-color .18s var(--mdv-ease), background-color .18s var(--mdv-ease), color .18s var(--mdv-ease);
}
.mdv-radio i { font-size: 1.05rem; color: var(--mdv-money); }
.mdv-radio:hover { border-color: var(--mdv-gold); }
.mdv-radio:has(input:checked) {
    border-color: var(--mdv-gold);
    background-color: rgba(201, 162, 39, .12);
    color: var(--mdv-ink);
    box-shadow: inset 0 0 0 1px var(--mdv-gold);
}
.mdv-radio:has(input:focus-visible) { outline: 2px solid var(--mdv-gold); outline-offset: 3px; }
.mdv-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ==========================================================================
   11. Tables
   ========================================================================== */

.mdv-tablewrap {
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r-lg);
    box-shadow: var(--mdv-shadow-xs);
    overflow: hidden;
}
.mdv-tablewrap + .mdv-tablewrap { margin-top: 22px; }

.mdv-tablehead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 22px;
    background-color: var(--mdv-navy);
    border-bottom: 1px solid rgba(201, 162, 39, .3);
}
.mdv-tablehead h3,
.mdv-tablehead .mdv-h4 {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    color: var(--mdv-cream);
    letter-spacing: .01em;
}
.mdv-tablehead i { color: var(--mdv-gold); }

.mdv-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.mdv-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: .86rem;
    color: var(--mdv-ink);
}
.mdv-table thead th {
    padding: 12px 18px;
    background-color: var(--mdv-paper-2);
    border-bottom: 1px solid var(--mdv-line);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mdv-ink-3);
    text-align: left;
    white-space: nowrap;
}
.mdv-table tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--mdv-line);
    vertical-align: middle;
}
.mdv-table tbody tr:last-child td { border-bottom: 0; }
.mdv-table tbody tr:nth-child(even) { background-color: var(--mdv-row-alt); }
.mdv-table tbody tr:hover { background-color: rgba(201, 162, 39, .08); }
.mdv-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.mdv-table .center { text-align: center; }
.mdv-table td strong { color: var(--mdv-ink); font-weight: 600; }
.mdv-table .rate { color: var(--mdv-money); font-weight: 600; font-variant-numeric: tabular-nums; }
.mdv-table .rate-child { color: var(--mdv-ink-2); font-weight: 500; font-variant-numeric: tabular-nums; }
.mdv-table .notes { color: var(--mdv-ink-3); font-size: .8rem; }

.mdv-season {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border: 1px solid var(--mdv-line);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--mdv-ink);
}
.mdv-season::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--season, var(--mdv-gold));
}

/* ==========================================================================
   12. Media gallery
   ========================================================================== */

.mdv-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.mdv-gallery__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--mdv-r);
    overflow: hidden;
    background-color: var(--mdv-paper-3);
    border: 1px solid var(--mdv-line);
}
.mdv-gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.mdv-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s var(--mdv-ease);
}
.mdv-gallery__item:hover img { transform: scale(1.04); }

/* ==========================================================================
   13. Quote / price summary card
   ========================================================================== */

.mdv-quote {
    /* Deliberately not position: sticky — the site shell sets
       body { overflow-x: hidden }, which makes body a scroll container here
       and stops sticky from ever engaging inside the page body. The card is
       laid out in normal flow instead of silently sitting inert. */
    position: relative;
    background-color: var(--mdv-navy);
    border: 1px solid rgba(201, 162, 39, .32);
    border-radius: var(--mdv-r-xl);
    box-shadow: var(--mdv-shadow-lg);
    padding: 30px;
    color: var(--mdv-cream);
}
.mdv-quote .mdv-h3 { color: var(--mdv-cream); font-size: 1.35rem; }
.mdv-quote__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 4px 0 20px;
}
.mdv-quote__amount {
    font-family: var(--mdv-serif);
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1;
    color: var(--mdv-gold-bright);
}
.mdv-quote__unit { font-size: .82rem; color: rgba(252, 250, 245, .66); }
.mdv-quote__list { margin: 0 0 22px; padding: 0; list-style: none; }
.mdv-quote__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(252, 250, 245, .1);
    font-size: .87rem;
    color: rgba(252, 250, 245, .82);
}
.mdv-quote__list li:last-child { border-bottom: 0; }
.mdv-quote__list i { color: var(--mdv-gold); font-size: .9rem; margin-top: 2px; }

/* Checklist (highlight bullets). */
.mdv-check { margin: 0; padding: 0; list-style: none; }
.mdv-check li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    font-size: .93rem;
    line-height: 1.6;
    color: var(--mdv-ink-2);
}
.mdv-check li i {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--mdv-gold);
    font-size: .95rem;
}

/* ==========================================================================
   14. Misc blocks (meal plans, inclusions, empty states)
   ========================================================================== */

.mdv-meal {
    height: 100%;
    padding: 24px;
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r);
    transition: border-color .2s var(--mdv-ease), box-shadow .2s var(--mdv-ease);
}
.mdv-meal:hover { border-color: rgba(201, 162, 39, .45); box-shadow: var(--mdv-shadow-sm); }
.mdv-meal--default {
    border-color: var(--mdv-gold);
    box-shadow: 0 0 0 1px var(--mdv-gold), var(--mdv-shadow-sm);
    background-color: var(--mdv-surface-2);
}
.mdv-meal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.mdv-meal__name {
    margin: 0;
    font-family: var(--mdv-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mdv-ink);
}
.mdv-meal p { margin: 0; font-size: .87rem; line-height: 1.65; }

.mdv-inc {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    height: 100%;
    padding: 22px 16px;
    text-align: center;
    background-color: var(--mdv-surface);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r);
    transition: border-color .2s var(--mdv-ease);
}
.mdv-inc:hover { border-color: rgba(201, 162, 39, .45); }
.mdv-inc i { font-size: 1.5rem; color: var(--mdv-money); }
.mdv-inc__name { font-size: .88rem; font-weight: 600; color: var(--mdv-ink); }
.mdv-inc__desc { font-size: .77rem; color: var(--mdv-ink-3); line-height: 1.5; }

.mdv-empty {
    padding: 56px 32px;
    text-align: center;
    background-color: var(--mdv-surface);
    border: 1px dashed var(--mdv-line-strong);
    border-radius: var(--mdv-r-lg);
}
.mdv-empty i { font-size: 2.2rem; color: var(--mdv-gold); }
.mdv-empty .mdv-h3 { margin-top: 14px; }
.mdv-empty p { margin: 8px auto 0; max-width: 52ch; }

.mdv-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 760px;
    margin: 26px auto 0;
    padding: 16px 20px;
    background-color: var(--mdv-paper-2);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r);
    font-size: .85rem;
    color: var(--mdv-ink-2);
}
.mdv-note i { color: var(--mdv-money); margin-top: 2px; }
.mdv-note a { color: var(--mdv-money); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mdv-note a:hover { color: var(--mdv-ink); }

/* Villa rate block + meta row. */
.mdv-ratebox {
    margin-top: 16px;
    padding: 4px 16px;
    background-color: var(--mdv-paper-2);
    border: 1px solid var(--mdv-line);
    border-radius: var(--mdv-r);
}
.mdv-ratebox .mdv-facts-list > div { padding: 9px 0; }
.mdv-ratebox dt { font-size: .82rem; }
.mdv-ratebox dd { font-size: .86rem; }
.mdv-rate { color: var(--mdv-money); font-weight: 600; font-variant-numeric: tabular-nums; }
.mdv-rate--soft { color: var(--mdv-ink-2); font-weight: 600; }
.mdv-rate--free { color: var(--mdv-success); font-weight: 600; }

.mdv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 10px;
    font-size: .8rem;
    color: var(--mdv-ink-3);
}
.mdv-meta i { color: var(--mdv-money); margin-right: 4px; }

.mdv-callout {
    margin-top: 14px;
    padding: 12px 16px;
    background-color: rgba(201, 162, 39, .1);
    border: 1px solid rgba(201, 162, 39, .3);
    border-radius: var(--mdv-r-sm);
    font-size: .82rem;
    line-height: 1.55;
    color: var(--mdv-ink-2);
}
.mdv-callout strong {
    display: block;
    margin-bottom: 3px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mdv-gold-text);
}

/* Divider used between stacked blocks. */
.mdv-rule { height: 1px; background-color: var(--mdv-line); border: 0; margin: 0; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */

/* Eight controls no longer fit one row below ~1400px without squeezing the
   guest steppers and the date fields, so the panel drops to a 4-up grid. */
@media (max-width: 1399.98px) {
    .mdv-searchbar__form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mdv-searchbar__submit { grid-column: span 4; }
    .mdv-searchbar__submit .mdv-btn { width: 100%; }
}

@media (max-width: 1199.98px) {
    .mdv-searchbar__form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mdv-searchbar__submit { grid-column: span 3; }
    .mdv-searchbar__submit .mdv-btn { width: 100%; }
    .mdv-facts--six .mdv-facts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .mdv-hero { min-height: 520px; padding: 72px 0 118px; }
    .mdv-hero--compact { min-height: 460px; }
    .mdv-hero__scrim {
        background:
            linear-gradient(180deg, rgba(7, 15, 26, .55) 0%, rgba(7, 15, 26, .2) 30%, rgba(7, 15, 26, .9) 100%),
            linear-gradient(90deg, rgba(7, 15, 26, .82) 0%, rgba(7, 15, 26, .55) 100%);
    }
    .mdv-hero__copy { max-width: none; }
    .mdv-sec { padding: 68px 0; }
    .mdv-sec-head { margin-bottom: 40px; }
    .mdv-quote { position: static; }
    .mdv-facts__grid,
    .mdv-facts--five .mdv-facts__grid,
    .mdv-facts--six .mdv-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mdv-fact { padding: 10px 18px; }
    .mdv-form-card { padding: 28px; }
    .mdv-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mdv-form-grid .span-3,
    .mdv-form-grid .span-4 { grid-column: span 2; }
    .mdv-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mdv-gallery__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
}

@media (max-width: 767.98px) {
    .mdv-hero { min-height: 460px; padding: 56px 0 104px; }
    .mdv-hero__title { font-size: clamp(2.2rem, 10vw, 3rem); }
    .mdv-searchbar { padding-top: 28px; }
    .mdv-searchbar__card { padding: 20px; }
    .mdv-searchbar__form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mdv-searchbar__submit { grid-column: span 2; }
    .mdv-actions { gap: 12px 18px; }
    .mdv-actions .mdv-btn { flex: 1 1 100%; }
    .mdv-actions .mdv-link { flex: 0 1 auto; }
    .mdv-statpanel { grid-template-columns: 1fr; }
    .mdv-card__body { padding: 20px; }
    .mdv-card__foot { flex-direction: column; align-items: stretch; }
    .mdv-card__foot .mdv-btn { width: 100%; }
    .mdv-sec { padding: 56px 0; }
    .mdv-form-card { padding: 22px; }
    .mdv-form-grid { grid-template-columns: 1fr; }
    .mdv-form-grid .span-2,
    .mdv-form-grid .span-3,
    .mdv-form-grid .span-4 { grid-column: span 1; }
    .mdv-radios { grid-template-columns: 1fr; }
    .mdv-quote { padding: 24px; }
    .mdv-table { min-width: 620px; }
}

@media (max-width: 575.98px) {
    .mdv-facts__grid,
    .mdv-facts--five .mdv-facts__grid,
    .mdv-facts--six .mdv-facts__grid { grid-template-columns: 1fr; }
    .mdv-searchbar__form { grid-template-columns: 1fr; }
    .mdv-searchbar__submit { grid-column: span 1; }
    .mdv-gallery { grid-template-columns: 1fr; }
    .mdv-gallery__item:first-child { grid-column: span 1; }
    .mdv-btn { width: 100%; }
    .mdv-searchbar__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   16. Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .mdv-lux *,
    .mdv-lux *::before,
    .mdv-lux *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
    .mdv-card--hover:hover,
    .mdv-card--hover:focus-within,
    .mdv-btn:hover,
    .mdv-btn:focus-visible,
    .mdv-card--hover:hover .mdv-card__media img,
    .mdv-gallery__item:hover img { transform: none; }
}

/* ==========================================================================
   17. Theme-layer colour repair
   --------------------------------------------------------------------------
   foundation.css ships  [data-theme="dark"] a { color: … }  at specificity
   (0,1,1). That outranks a single-class component rule, so every anchor in
   this layer — buttons, quiet links, the back link — was being repainted to
   the muted theme link colour. These scoped re-assertions sit at (0,2,0)+ and
   are declared last, so the layer keeps its intended ink on every anchor.
   ========================================================================== */

/* The brand gold is a surface colour, not a text colour: #c9a227 on cream is
   only 2.3:1. Eyebrows on light cards use a darkened gold (6.1:1) and switch
   back to the bright gold on navy, where it reads at 10:1. */
.mdv-lux .mdv-eyebrow { color: var(--mdv-gold-text); }
.mdv-lux .mdv-on-navy .mdv-eyebrow,
.mdv-lux .mdv-quote .mdv-eyebrow,
.mdv-lux .mdv-hero .mdv-eyebrow { color: var(--mdv-gold-bright); }

.mdv-lux .mdv-btn--gold { color: var(--mdv-gold-ink); }
.mdv-lux .mdv-btn--gold:hover,
.mdv-lux .mdv-btn--gold:focus-visible { color: var(--mdv-gold-ink); }

.mdv-lux .mdv-btn--navy { color: var(--mdv-cream); }
.mdv-lux .mdv-btn--navy:hover,
.mdv-lux .mdv-btn--navy:focus-visible { color: var(--mdv-cream); }

.mdv-lux .mdv-btn--outline { color: var(--mdv-ink); }
.mdv-lux .mdv-btn--outline:hover,
.mdv-lux .mdv-btn--outline:focus-visible { color: var(--mdv-ink); }

.mdv-lux .mdv-btn--ghost-light { color: var(--mdv-cream); }
.mdv-lux .mdv-btn--ghost-light:hover,
.mdv-lux .mdv-btn--ghost-light:focus-visible { color: #fff; }

.mdv-lux .mdv-link { color: var(--mdv-ink); }
.mdv-lux .mdv-link:hover,
.mdv-lux .mdv-link:focus-visible { color: var(--mdv-money); }

.mdv-lux .mdv-on-navy .mdv-link { color: var(--mdv-cream); }
.mdv-lux .mdv-on-navy .mdv-link:hover,
.mdv-lux .mdv-on-navy .mdv-link:focus-visible { color: var(--mdv-gold-bright); }

.mdv-lux .mdv-hero__back { color: rgba(252, 250, 245, .76); }
.mdv-lux .mdv-hero__back:hover,
.mdv-lux .mdv-hero__back:focus-visible { color: var(--mdv-gold-bright); }

.mdv-lux .mdv-note a { color: var(--mdv-money); }
.mdv-lux .mdv-note a:hover,
.mdv-lux .mdv-note a:focus-visible { color: var(--mdv-ink); }

/* Quiet hero links get their own row under the primary buttons. */
.mdv-quiet {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 26px;
    margin-top: 18px;
}

/* Headings: foundation.css also paints [data-theme="dark"] h1…h6 at (0,1,1).
   Reset them to layer ink, then re-assert the handful of headings that must
   stay light (hero title, navy table headers, the muted search caption). */
.mdv-lux h1,
.mdv-lux h2,
.mdv-lux h3,
.mdv-lux h4,
.mdv-lux h5,
.mdv-lux h6 { color: var(--mdv-ink); }

.mdv-lux .mdv-hero__title { color: #fff; }
.mdv-lux .mdv-hero__lede { color: rgba(252, 250, 245, .84); }
.mdv-lux .mdv-searchbar__title { color: var(--mdv-ink-3); }
.mdv-lux .mdv-tablehead h3,
.mdv-lux .mdv-tablehead .mdv-h4 { color: var(--mdv-cream); }
.mdv-lux .mdv-quote .mdv-h3 { color: var(--mdv-cream); }
.mdv-lux .mdv-meal__name { color: var(--mdv-ink); }
.mdv-lux .mdv-inc__name { color: var(--mdv-ink); }

/* Prices and body copy that sit on the navy cards / quote card rather than a
   light surface: the light-theme money gold would drop to 3.2:1 there. */
.mdv-lux .mdv-on-navy .mdv-rate,
.mdv-lux .mdv-quote .mdv-rate { color: var(--mdv-gold-bright); }
.mdv-lux .mdv-quote p:not(.mdv-eyebrow) { color: rgba(252, 250, 245, .82); }
