/* ============================================================
   REALIVO Header Mega-Menu + Contact controls
   Extends header-footer.css
   ============================================================ */

.rv-header__nav { gap: 2px; }
.rv-nav__item { position: relative; }

.rv-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    color: var(--rv-text, #E8E2D3);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background 200ms, color 200ms, border-color 200ms;
}
.rv-nav__link:hover,
.rv-nav__link.is-active,
.rv-nav__item:focus-within .rv-nav__link {
    background: var(--rv-surface, rgba(255,255,255,0.05));
    border-color: var(--rv-stroke, rgba(255,255,255,0.12));
    color: var(--rv-brand, #C9A961);
}
.rv-nav__caret { opacity: 0.6; transition: transform 200ms, opacity 200ms; }
.rv-nav__item:hover .rv-nav__caret,
.rv-nav__item:focus-within .rv-nav__caret { opacity: 1; transform: rotate(180deg); }

/* ============================================================
   RIGHT CONTROLS — Phone/Email/Lang/Contact CTA always visible
   ============================================================ */
.rv-header__right { gap: 8px; align-items: center; }

/* PHONE BUTTON — visible label "Call" */
.rv-header__phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--rv-stroke, rgba(255,255,255,0.14));
    border-radius: 6px;
    color: var(--rv-text, #E8E2D3);
    cursor: pointer;
    transition: all 200ms;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
}
.rv-header__phone-label { color: var(--rv-text, #E8E2D3); }
.rv-header__phone-btn:hover,
.rv-header__phones:focus-within .rv-header__phone-btn {
    background: var(--rv-surface, rgba(255,255,255,0.06));
    border-color: var(--rv-brand, #C9A961);
    color: var(--rv-brand, #C9A961);
}
.rv-header__phone-btn:hover .rv-header__phone-label,
.rv-header__phones:focus-within .rv-header__phone-label { color: var(--rv-brand, #C9A961); }
.rv-header__phone-btn svg { color: var(--rv-brand, #C9A961); }
.rv-dropdown__arrow { opacity: 0.5; }

/* PHONE DROPDOWN — Direct lines panel */
.rv-phones__menu {
    min-width: 280px;
    padding: 10px;
}
.rv-phones__head,
.rv-lang__head {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rv-muted, #9A9385);
    padding: 6px 12px 10px;
    border-bottom: 1px solid var(--rv-stroke, rgba(255,255,255,0.08));
    margin-bottom: 6px;
}
.rv-phones__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    color: var(--rv-text, #E8E2D3);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    transition: background 200ms, color 200ms;
}
.rv-phones__item:hover {
    background: rgba(201,169,97,0.08);
    color: var(--rv-brand, #C9A961);
}
.rv-phones__flag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rv-brand, #C9A961);
    background: rgba(201,169,97,0.08);
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid rgba(201,169,97,0.22);
    min-width: 30px;
    text-align: center;
}
.rv-phones__num {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.rv-phones__divider {
    height: 1px;
    background: var(--rv-stroke, rgba(255,255,255,0.08));
    margin: 6px 12px;
}

/* EMAIL BUTTON — separate, always visible */
.rv-header__email-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--rv-stroke, rgba(255,255,255,0.14));
    border-radius: 6px;
    color: var(--rv-text, #E8E2D3);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 200ms;
}
.rv-header__email-btn svg { color: var(--rv-brand, #C9A961); }
.rv-header__email-btn:hover {
    background: var(--rv-surface, rgba(255,255,255,0.06));
    border-color: var(--rv-brand, #C9A961);
    color: var(--rv-brand, #C9A961);
}

/* LANG TRIGGER */
.rv-lang__trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--rv-stroke, rgba(255,255,255,0.14));
    border-radius: 6px;
    color: var(--rv-text, #E8E2D3);
    cursor: pointer;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: all 200ms;
}
.rv-lang__trigger svg:first-of-type { color: var(--rv-brand, #C9A961); }
.rv-lang__trigger:hover,
.rv-header__lang:focus-within .rv-lang__trigger {
    background: var(--rv-surface, rgba(255,255,255,0.06));
    border-color: var(--rv-brand, #C9A961);
    color: var(--rv-brand, #C9A961);
}
.rv-lang__current {
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* LANG DROPDOWN */
.rv-lang__menu {
    min-width: 200px;
    padding: 10px;
}
.rv-lang__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--rv-text, #E8E2D3);
    text-decoration: none;
    border-radius: 4px;
    transition: background 200ms, color 200ms;
}
.rv-lang__item:hover { background: rgba(201,169,97,0.08); color: var(--rv-brand, #C9A961); }
.rv-lang__item.is-active {
    background: rgba(201,169,97,0.14);
    color: var(--rv-brand, #C9A961);
}
.rv-lang__code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rv-brand, #C9A961);
    background: rgba(201,169,97,0.08);
    padding: 4px 8px;
    border-radius: 2px;
    border: 1px solid rgba(201,169,97,0.22);
    min-width: 32px;
    text-align: center;
}
.rv-lang__title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
}

/* CONTACT US CTA — solid brass, primary action */
.rv-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    background: var(--rv-brand, #C9A961);
    color: #0A0E1A;
    border: none;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: all 200ms;
}
.rv-header__cta:hover {
    background: #A88947;
    color: #0A0E1A;
    transform: translateY(-1px);
}
.rv-header__cta svg { color: #0A0E1A; }

/* ============================================================
   FLYOUT (single-column dropdowns)
   ============================================================ */
.rv-flyout {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    padding: 8px;
    background: rgba(7,10,16,0.97);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--rv-stroke, rgba(255,255,255,0.12));
    border-radius: 8px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 200ms, transform 200ms;
    z-index: 1003;
}
.rv-nav__item:hover .rv-flyout,
.rv-nav__item:focus-within .rv-flyout {
    opacity: 1; transform: translateY(0); pointer-events: auto;
}
.rv-flyout ul { list-style: none; margin: 0; padding: 0; }
.rv-flyout li { margin: 0; }
.rv-flyout a {
    display: block; padding: 10px 14px;
    color: var(--rv-text, #E8E2D3); text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px; border-radius: 6px;
    transition: background 200ms, color 200ms;
}
.rv-flyout a strong { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
.rv-flyout a span {
    display: block; font-size: 11px;
    color: var(--rv-muted, #9A9385);
    font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em;
}
.rv-flyout a:hover { background: rgba(201,169,97,0.08); color: var(--rv-brand, #C9A961); }
.rv-flyout a:hover strong { color: var(--rv-brand, #C9A961); }
.rv-flyout__cta {
    border-top: 1px solid var(--rv-stroke, rgba(255,255,255,0.12));
    margin-top: 6px; padding-top: 6px;
}
.rv-flyout__cta a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--rv-brand, #C9A961);
}

/* ============================================================
   MEGA-MENU (Hotels 5-col, Real Estate 4-col)
   ============================================================ */
.rv-mega {
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    top: 68px;
    width: min(96vw, 1340px);
    background: rgba(7,10,16,0.97);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--rv-stroke, rgba(255,255,255,0.12));
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    opacity: 0; pointer-events: none;
    transition: opacity 200ms, transform 200ms;
    z-index: 1003;
    margin-top: 4px;
    overflow: hidden;
}
.rv-header.is-scrolled .rv-mega { top: 64px; }
.rv-nav__item--mega:hover .rv-mega,
.rv-nav__item--mega:focus-within .rv-mega {
    opacity: 1; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.rv-mega__inner { display: grid; gap: 32px; padding: 32px 36px; }

.rv-mega--3col .rv-mega__inner {
    grid-template-columns: 1fr 1fr 1fr;
}
.rv-mega--5col .rv-mega__inner { grid-template-columns: 1.1fr 1.1fr 1.1fr 1.1fr 1.3fr; }
.rv-mega--4col .rv-mega__inner { grid-template-columns: 1.1fr 1.4fr 1fr 1.3fr; }

.rv-mega__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rv-brand, #C9A961);
    margin: 0 0 14px;
}
.rv-mega__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rv-mega__col a {
    display: block; padding: 7px 0;
    color: var(--rv-text, #E8E2D3); text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif; font-size: 13px;
    border-bottom: 1px solid transparent;
    transition: color 200ms;
}
.rv-mega__col a strong { display: block; font-weight: 600; color: #fff; margin-bottom: 2px; }
.rv-mega__col a span {
    display: block; font-size: 11px;
    color: var(--rv-muted, #9A9385);
    font-family: 'JetBrains Mono', monospace; letter-spacing: 0.04em;
}
.rv-mega__col a:hover { color: var(--rv-brand, #C9A961); }
.rv-mega__col a:hover strong { color: var(--rv-brand, #C9A961); }
.rv-mega__soon {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px; color: var(--rv-muted, #9A9385); padding: 7px 0;
}
.rv-mega__soon em { font-style: italic; color: rgba(154,147,133,0.7); }

.rv-mega__pills { display: flex; flex-wrap: wrap; gap: 5px; }
.rv-mega__pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--rv-brand, #C9A961);
    padding: 4px 9px;
    border: 1px solid var(--rv-stroke, rgba(192,169,119,0.18));
    background: rgba(192,169,119,0.06);
    border-radius: 3px;
    text-decoration: none;
    transition: all 200ms;
}
.rv-mega__pill:hover {
    background: var(--rv-brand, #C9A961); color: #0A0E1A;
    border-color: var(--rv-brand, #C9A961);
}

/* FEATURED PANEL with contact info */
.rv-mega__feat {
    background: linear-gradient(135deg, rgba(192,169,119,0.06), rgba(192,169,119,0.02));
    border: 1px solid var(--rv-stroke, rgba(192,169,119,0.18));
    padding: 24px;
    border-radius: 8px;
    display: flex; flex-direction: column; gap: 8px;
}
.rv-mega__feat-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--rv-brand, #C9A961);
}
.rv-mega__feat-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700; font-size: 18px; line-height: 1.2;
    color: #fff; margin-top: 4px;
}
.rv-mega__feat-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; color: var(--rv-muted, #9A9385);
    letter-spacing: 0.06em; margin-bottom: 6px;
}
.rv-mega__feat-cta {
    display: inline-block;
    background: var(--rv-brand, #C9A961);
    color: #0A0E1A;
    padding: 10px 16px;
    border-radius: 4px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
    text-decoration: none; text-align: center;
    transition: background 200ms;
}
.rv-mega__feat-cta:hover { background: #A88947; color: #0A0E1A; }
.rv-mega__feat-divider {
    height: 1px;
    background: var(--rv-stroke, rgba(255,255,255,0.1));
    margin: 8px 0 4px;
}
.rv-mega__feat-contact { display: flex; flex-direction: column; gap: 6px; }
.rv-mega__feat-contact-h {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rv-muted, #9A9385);
    margin-bottom: 2px;
}
.rv-mega__feat-phone {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 13px; font-weight: 500;
    color: var(--rv-text, #E8E2D3);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: color 200ms;
}
.rv-mega__feat-phone:hover { color: var(--rv-brand, #C9A961); }

/* ============================================================
   MOBILE — drawer + sticky bottom bar
   ============================================================ */
@media (max-width: 1100px) {
    .rv-header__nav { display: none !important; }
    .rv-mega, .rv-flyout { display: none !important; }
    .rv-header__phone-btn .rv-header__phone-label,
    .rv-header__email-btn .rv-header__email-label { display: none; }
    .rv-header__phone-btn, .rv-header__email-btn { padding: 8px; }
}

/* Mobile drawer — quick contact at TOP */
.rv-mobile-top {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(201,169,97,0.06), transparent);
}
.rv-mobile-top__h {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--rv-brand, #C9A961);
    margin-bottom: 16px;
}
.rv-mobile-top__contacts {
    display: flex; flex-direction: column; gap: 8px;
    margin-bottom: 16px;
}
.rv-mobile-top__phone,
.rv-mobile-top__email {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--rv-text, #E8E2D3);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px; font-weight: 500;
    transition: all 200ms;
}
.rv-mobile-top__phone svg, .rv-mobile-top__email svg { color: var(--rv-brand, #C9A961); flex-shrink: 0; }
.rv-mobile-top__phone:hover, .rv-mobile-top__email:hover {
    background: rgba(201,169,97,0.08);
    border-color: var(--rv-brand, #C9A961);
    color: var(--rv-brand, #C9A961);
}
.rv-mobile-top__flag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rv-brand, #C9A961);
    background: rgba(201,169,97,0.1);
    padding: 3px 7px;
    border-radius: 2px;
    border: 1px solid rgba(201,169,97,0.22);
    margin-right: 8px;
}
.rv-mobile-top__phone span,
.rv-mobile-top__email span {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.rv-mobile-top__cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: var(--rv-brand, #C9A961);
    color: #0A0E1A;
    border-radius: 6px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    margin-bottom: 16px;
    transition: background 200ms;
}
.rv-mobile-top__cta:hover { background: #A88947; }

/* Mobile drawer — language switcher right at top */
.rv-mobile-top__langs {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.rv-mobile-top__lang {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--rv-text, #E8E2D3);
    text-decoration: none;
    min-width: 48px; text-align: center;
    transition: all 200ms;
}
.rv-mobile-top__lang.is-active,
.rv-mobile-top__lang:hover {
    background: rgba(201,169,97,0.14);
    border-color: var(--rv-brand, #C9A961);
    color: var(--rv-brand, #C9A961);
}

/* Mobile drawer accordions */
.rv-mobile-acc {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
}
.rv-mobile-acc > summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0;
}
.rv-mobile-acc > summary::-webkit-details-marker { display: none; }
.rv-mobile-acc > summary::after {
    content: '+';
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px; color: var(--rv-brand, #C9A961);
    transition: transform 200ms;
}
.rv-mobile-acc[open] > summary::after { transform: rotate(45deg); }
.rv-mobile-acc a {
    display: block;
    padding: 8px 16px;
    color: rgba(232,226,211,0.85);
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
}
.rv-mobile-acc a:hover { color: var(--rv-brand, #C9A961); }
.rv-mobile-acc__sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px; font-weight: 700;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--rv-muted, #9A9385);
    padding: 14px 16px 6px;
}

/* STICKY BOTTOM BAR (mobile only) */
.rv-mobile-stickybar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: rgba(7,10,16,0.97);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-top: 1px solid var(--rv-stroke, rgba(201,169,97,0.18));
    box-shadow: 0 -8px 24px rgba(0,0,0,0.3);
    z-index: 999;
    padding: 10px 12px env(safe-area-inset-bottom, 10px);
}
.rv-mobile-stickybar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 8px;
    text-decoration: none;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px; font-weight: 600;
    border-radius: 6px;
    transition: all 200ms;
}
.rv-mobile-stickybar__phone,
.rv-mobile-stickybar__email {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--rv-text, #E8E2D3);
}
.rv-mobile-stickybar__phone svg,
.rv-mobile-stickybar__email svg { color: var(--rv-brand, #C9A961); }
.rv-mobile-stickybar__cta {
    flex: 1.4;
    background: var(--rv-brand, #C9A961);
    color: #0A0E1A;
    font-weight: 700;
}
.rv-mobile-stickybar__cta:hover { background: #A88947; }






/* ============================================================
   HOVER GAP FIX v2 — padding-bottom trick
   Extends physical hover area of nav items downward.
   No invisible pseudo-elements; mouse stays inside item:hover
   while traversing the gap between trigger and dropdown.
   ============================================================ */

/* Wrap each dropdown item with extra hover padding-bottom
   compensated by negative margin-bottom (visual layout unchanged). */
.rv-nav__item.rv-dropdown {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: -18px;
}

/* Flyout: no gap from trigger now (item has 18px padding-bottom),
   so dropdown sits right at item bottom */
.rv-flyout {
    top: 100%;
    margin-top: 0;
}

/* Mega-menu is position: fixed at top: 68px, but item padding-bottom
   keeps :hover alive even when mouse moves from nav link (~52px from top)
   down to mega-menu (~68px from top) */
.rv-nav__item--mega.rv-dropdown { padding-bottom: 18px; margin-bottom: -18px; }

/* Once dropdown is shown, hovering over it must keep it open.
   This is already true via :focus-within and :hover on item,
   but reinforce in case of focus issues. */
.rv-flyout:hover,
.rv-mega:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Force dropdown open while hover-intent timer active */
.rv-nav__item.rv-hover-intent-delay .rv-flyout {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
.rv-nav__item.rv-hover-intent-delay .rv-mega {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}


/* ============================================================
   HOVER GAP FIX v3 — radical: position absolute on header,
   JS state-based .is-open class (works independent of :hover)
   ============================================================ */

/* Make header__inner the positioning context for dropdowns */
.rv-header__inner { position: relative; }

/* MEGA — switch from fixed to absolute, touching header bottom */
.rv-header .rv-mega {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    margin-top: 0 !important;
    transform: translateX(-50%) translateY(-4px);
    width: min(96vw, 1340px);
    z-index: 1003;
}
.rv-header.is-scrolled .rv-mega { top: 100% !important; }

/* Hide by default — opacity + pointer */
.rv-header .rv-mega:not(.is-open) {
    opacity: 0;
    pointer-events: none;
}
/* Show when .is-open OR when CSS :hover (fallback for keyboard) */
.rv-header .rv-mega.is-open,
.rv-nav__item--mega:hover .rv-mega,
.rv-nav__item--mega:focus-within .rv-mega {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* FLYOUT — same treatment */
.rv-flyout:not(.is-open) {
    opacity: 0;
    pointer-events: none;
}
.rv-flyout.is-open,
.rv-nav__item:hover .rv-flyout,
.rv-nav__item:focus-within .rv-flyout {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

/* Bigger physical hover zone on items (cushion) */
.rv-nav__item.rv-dropdown {
    padding-bottom: 24px;
    margin-bottom: -24px;
}

/* ============================================================
   HOVER GAP FIX v4 — invisible padding cushion on mega itself
   Makes mega physically catch mouse 30px ABOVE its visual top.
   ============================================================ */

/* Pull mega up 30px and add 30px padding-top → visual unchanged,
   but mega hover-area now overlaps with item bottom. */
.rv-header .rv-mega {
    margin-top: -30px !important;
    padding-top: 30px !important;
    /* Account: visual top is item-bottom + 0px (touches),
       hover catch zone extends 30px into item area. */
}

/* Same trick on flyouts, smaller cushion */
.rv-flyout {
    margin-top: -16px !important;
    padding-top: 16px !important;
}

/* Force mega-inner padding to keep visual content position unchanged */
.rv-mega .rv-mega__inner {
    padding-top: 32px;  /* unchanged from base */
}

/* Add big invisible LEFT/RIGHT cushion so mouse moving sideways
   from item still lands on mega even if mouse drifted past item edge */
.rv-header .rv-mega {
    padding-left: 0 !important;
    padding-right: 0 !important;
    /* inner already has horizontal padding via .rv-mega__inner */
}

/* Make the mega panel a single capture zone — every pixel inside
   .rv-mega should keep dropdown open */
.rv-mega, .rv-mega * {
    /* No special rule needed — but ensure no pointer-events: none on children */
}

/* In case any decorative child accidentally has pointer-events: none,
   force them to accept pointer so mouseenter on .rv-mega fires reliably */
.rv-mega::before, .rv-mega::after { pointer-events: none; }


/* ============================================================
   HOVER GAP FIX v5 — mega centered inside header__inner (not viewport)
   + cushion on right-side dropdowns (Call, Email, Lang)
   ============================================================ */

/* Center mega within header content area (1220px), not viewport */
.rv-header__inner { position: relative; }
.rv-header .rv-mega {
    position: absolute !important;
    top: 100% !important;
    /* Anchor left edge of header__inner, then extend by negative margin */
    left: 0 !important;
    right: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: translateY(-4px) !important;
    width: 100% !important;
    max-width: 1220px !important;
}
.rv-header.is-scrolled .rv-mega { top: 100% !important; }
.rv-nav__item--mega:hover .rv-mega,
.rv-nav__item--mega:focus-within .rv-mega,
.rv-mega.is-open {
    transform: translateY(0) !important;
}

/* Right-side dropdowns (Phones / Lang) — same invisible cushion as flyouts */
.rv-header__phones.rv-dropdown,
.rv-header__lang.rv-dropdown {
    padding-bottom: 24px;
    margin-bottom: -24px;
    position: relative;
}
.rv-header__phones .rv-dropdown__menu,
.rv-header__lang .rv-dropdown__menu {
    margin-top: -16px !important;
    padding-top: 16px !important;
}

/* Force right-side dropdowns to also obey .is-open class set by JS */
.rv-header__phones .rv-dropdown__menu.is-open,
.rv-header__lang .rv-dropdown__menu.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}


/* ============================================================
   HOVER GAP FIX v6 — mega anchored to header__inner, not nav item
   FINAL FIX for cropping. Mega-items use static so absolute mega
   bubbles up to header__inner (which has position: relative).
   ============================================================ */

/* nav-item--mega: static so absolute mega anchors to .rv-header__inner */
.rv-header .rv-nav__item.rv-nav__item--mega {
    position: static !important;
    padding-bottom: 24px !important;
    margin-bottom: -24px !important;
}

/* Flyout items keep position relative (they are inside item) */
.rv-header .rv-nav__item.rv-dropdown:not(.rv-nav__item--mega) {
    position: relative;
}

/* .rv-header__inner is the positioning context for mega */
.rv-header .rv-header__inner {
    position: relative !important;
}

/* Mega: absolute relative to header__inner, full width inside it */
.rv-header .rv-mega {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    transform: translateY(-4px) !important;
}
.rv-nav__item--mega:hover .rv-mega,
.rv-nav__item--mega:focus-within .rv-mega,
.rv-mega.is-open {
    transform: translateY(0) !important;
}

