/* ============================================================
   Destinations Mega Menu — desktop only (>= 1200px)
   Palette: #1E5A38 (green) / #C9A961 (gold) on white
   NOTE: selectors are scoped under .mega-menu so the site's
   `.nav-links li a` rules (white text, flex, nowrap) don't bleed in.
   ============================================================ */

.nav-wrapper {
    position: relative; /* containing block for the full-width panel */
}

.nav-mega-item {
    position: static;
}

.nav-mega-item > a {
    cursor: pointer;
}

/* Positioning wrapper — also bridges the gap to the trigger (anti-flicker) */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(1180px, 94vw);
    padding-top: 14px;
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mega-menu .mega-menu-inner {
    display: grid;
    grid-template-columns: 1.05fr 1.05fr 1.45fr 1.45fr;
    gap: 28px;
    background: #fff;
    border: 1px solid #eef1ee;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(16, 40, 28, 0.18);
    padding: 30px 34px;
    transform: translateY(12px);
    transition: transform 0.27s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.27s ease;
    opacity: 0;
}

/* Open state (hover or keyboard focus, toggled via .is-open) */
.nav-mega-item.is-open .mega-menu,
.nav-mega-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-mega-item.is-open .mega-menu .mega-menu-inner,
.nav-mega-item:hover .mega-menu .mega-menu-inner {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Link columns ---- */
.mega-menu .mm-col { min-width: 0; }

.mega-menu .mm-col-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1E5A38;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef1ee;
}

.mega-menu .mm-links {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mega-menu .mm-links li {
    margin: 0;
    padding: 0;
}

.mega-menu .mm-link {
    display: block;
    padding: 7px 10px;
    margin-left: -10px;
    border-radius: 8px;
    color: #344b3f;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0;
    white-space: normal;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.mega-menu .mm-link:hover,
.mega-menu .mm-link:focus-visible {
    background: #f3f8f4;
    color: #1E5A38;
    transform: translateX(3px);
    outline: none;
    opacity: 1;
}

.mega-menu .mm-link-empty {
    color: #9aa6a0;
    cursor: default;
}

.mega-menu .mm-col-footer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #C9A961;
    white-space: nowrap;
    text-decoration: none;
    transition: gap 0.18s ease, color 0.18s ease;
}

.mega-menu .mm-col-footer:hover,
.mega-menu .mm-col-footer:focus-visible {
    color: #b08f43;
    gap: 11px;
    outline: none;
    opacity: 1;
}

/* ---- Banner / featured cards ---- */
.mega-menu .mm-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #fbfcfb;
    border: 1px solid #eef1ee;
    white-space: normal;
    text-decoration: none;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.mega-menu .mm-card:hover,
.mega-menu .mm-card:focus-visible {
    box-shadow: 0 14px 30px rgba(16, 40, 28, 0.16);
    transform: translateY(-3px);
    outline: none;
    opacity: 1;
}

.mega-menu .mm-card-img {
    display: block;
    width: 100%;
    height: 150px;
    background: #dfe7e1 center / cover no-repeat;
    transition: transform 0.4s ease;
}

.mega-menu .mm-card:hover .mm-card-img {
    transform: scale(1.06);
}

.mega-menu .mm-card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px 17px 17px;
}

.mega-menu .mm-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2d26;
    line-height: 1.3;
}

.mega-menu .mm-card-desc {
    font-size: 0.85rem;
    color: #5f6f67;
    line-height: 1.5;
}

.mega-menu .mm-card-btn {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 8px 16px;
    border-radius: 999px;
    background: #1E5A38;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 600;
    transition: background 0.18s ease, gap 0.18s ease;
}

.mega-menu .mm-card:hover .mm-card-btn {
    background: #C9A961;
    gap: 10px;
}

/* ---- Desktop only: hide entirely below 1200px so mobile nav is untouched ---- */
@media (max-width: 1199.98px) {
    .mega-menu {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mega-menu .mega-menu-inner,
    .mega-menu .mm-link,
    .mega-menu .mm-card,
    .mega-menu .mm-card-img,
    .mega-menu .mm-card-btn {
        transition: none !important;
    }
}
