/* =========================================================
   Nature Holiday Trip — professional site header + mega menu
   ========================================================= */

.site-header.nh-header-pro {
    --nh-ink: #0f172a;
    --nh-muted: #64748b;
    --nh-line: rgba(15, 23, 42, 0.08);
    --nh-soft: #f8fafc;
    --nh-accent: #ea580c;
    --nh-navy: #1e3a5f;
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--nh-line);
    font-family: "DM Sans", Inter, sans-serif;
}

.header-main {
    min-height: 76px;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Brand — logo only (image already includes wordmark) */
.brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    max-width: 200px;
    text-decoration: none;
    line-height: 0;
}

.brand-logo img,
.brand-mark {
    display: block;
    height: 48px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
}

/* Primary nav */
.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.desktop-nav > a,
.nav-dropdown-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
    appearance: none;
    -webkit-appearance: none;
}

.desktop-nav > a:hover,
.nav-dropdown-btn:hover,
.desktop-nav > a.is-active,
.nav-mega-wrap.is-open .nav-dropdown-btn {
    color: var(--nh-ink);
    background: var(--nh-soft);
}

.desktop-nav > a.is-active {
    color: var(--nh-navy);
}

.desktop-nav > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--nh-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.is-active::after {
    transform: scaleX(1);
}

.nav-dropdown-btn i {
    font-size: 10px;
    opacity: 0.65;
    transition: transform 0.2s ease;
}

.nav-mega-wrap.is-open .nav-dropdown-btn i {
    transform: rotate(180deg);
}

/* Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.header-phone-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff7ed;
    color: var(--nh-accent);
    flex-shrink: 0;
}

.header-phone-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.header-phone-copy small {
    font-size: 11px;
    font-weight: 600;
    color: var(--nh-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.header-phone-copy strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--nh-ink);
    white-space: nowrap;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--nh-navy);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta:hover {
    background: #152a45;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(30, 58, 95, 0.28);
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: var(--nh-soft);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    color: var(--nh-ink);
    align-items: center;
    justify-content: center;
}

.mobile-menu {
    display: none;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--nh-line);
    background: #fff;
}

.mobile-menu a,
.mobile-menu .mobile-cta {
    display: block;
    width: 100%;
    padding: 13px 4px;
    font-weight: 600;
    color: #334155;
    text-align: left;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
}

.mobile-menu .mobile-phone {
    color: var(--nh-accent);
}

.mobile-menu .mobile-cta {
    margin-top: 12px;
    border: 0;
    text-align: center;
}

/* ---------- Mega menu ---------- */
.nav-mega-wrap {
    position: relative;
}

.nh-mega {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(840px, calc(100vw - 32px));
    padding: 0;
    background: #fff;
    border: 1px solid var(--nh-line);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 50;
    overflow: hidden;
}

.nav-mega-wrap.is-open .nh-mega,
.nav-mega-wrap:hover .nh-mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Keep panel open while pointer moves; JS also toggles .is-open */
.nh-mega[hidden] {
    display: none !important;
}

.nh-mega-inner {
    display: grid;
    grid-template-columns: 210px 1fr;
    min-height: 260px;
}

.nh-mega-cats {
    background: linear-gradient(180deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 18px 14px;
}

.nh-mega-label {
    margin: 0 0 12px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.nh-mega-cat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nh-mega-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.nh-mega-cat:hover,
.nh-mega-cat.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nh-mega-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.nh-mega-cat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nh-mega-cat-text strong {
    font-size: 13px;
    font-weight: 700;
}

.nh-mega-cat-text small {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nh-mega-panels {
    padding: 14px 14px 16px;
    background: #fff;
}

.nh-mega-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.nh-mega-panel-title {
    margin: 0;
    color: var(--nh-muted);
}

.nh-mega-region-tabs {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #f1f5f9;
    gap: 2px;
}

.nh-mega-region-tab {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--nh-muted);
    cursor: pointer;
}

.nh-mega-region-tab.is-active {
    background: #fff;
    color: var(--nh-ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.nh-mega-region {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--nh-ink);
}

.nh-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.nh-mega-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nh-mega-tile {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
    max-height: 88px;
    background: #e2e8f0;
    text-decoration: none;
}

.nh-mega-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.nh-mega-tile:hover img {
    transform: scale(1.06);
}

.nh-mega-tile-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px 8px 7px;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.82));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

/* Responsive */
@media (max-width: 1180px) {
    .header-phone-copy {
        display: none;
    }

    .desktop-nav > a,
    .nav-dropdown-btn {
        padding: 0 9px;
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-actions {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .brand-mark {
        height: 44px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .mobile-menu.active {
        display: block;
    }

    .nh-mega {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .nh-mega-inner {
        grid-template-columns: 1fr;
    }

    .nh-mega-grid,
    .nh-mega-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
