/* ═══════════════════════════════════════════════════════════
   Summerland Mega Menu — Frontend v2
   Matches reference: white bar, teal pill hover, white dropdown,
   uppercase column headings, plain text links
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
    --smm-primary:      #10847E;
    --smm-hover-bg:     rgba(16, 132, 126, 0.12);
    --smm-text:         #222222;
    --smm-hover-text:   #10847E;
    --smm-spacing:      8px;
    --smm-radius:       40px;
    --smm-font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Nav Bar Shell ─────────────────────────────────────────── */
.smm-bar {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    z-index: 9000;
    box-sizing: border-box;
}
.smm-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

/* ── Desktop Nav ────────────────────────────────────────────── */
.smm-nav-wrap {
    width: 100%;
}
.smm-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

/* ── Top-level nav item ─────────────────────────────────────── */
.smm-item {
    position: static; /* important: mega needs to break out of this */
    list-style: none;
}
.smm-item.smm-has-mega {
    position: static;
}

/* ── Nav Link ───────────────────────────────────────────────── */
.smm-link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 5px 12px;
    border-radius: var(--smm-radius);
    font-family: var(--smm-font);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--smm-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease;
    line-height: 1;
}
/* Hide icons on desktop nav bar */
.smm-nav .smm-item-icon { display: none !important; }
.smm-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--smm-radius);
    background-color: var(--smm-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.smm-link-text {
    position: relative;
    z-index: 1;
}
/* Hide the dropdown arrow completely */
.smm-arrow {
    display: none !important;
}

/* ── Hover & active state: teal pill ───────────────────────── */
.smm-item:hover > .smm-link::before,
.smm-item.smm-current > .smm-link::before {
    opacity: 0.15;
}
.smm-item:hover > .smm-link,
.smm-item.smm-current > .smm-link {
    color: var(--smm-hover-text) !important;
}

/* ── Mega Dropdown ──────────────────────────────────────────── */
.smm-mega-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #ffffff;
    border-top: 2px solid var(--smm-primary);
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
    z-index: 9999;
    width: 100%;
}
.smm-item.smm-has-mega:hover > .smm-mega-dropdown {
    display: block;
}
.smm-mega-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 28px 30px 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 32px;
}

/* ── Mega Column ────────────────────────────────────────────── */
.smm-mega-column {
    min-width: 160px;
    flex: 1;
    padding: 0 8px 12px 0;
}

/* ── Column Heading ─────────────────────────────────────────── */
.smm-mega-heading {
    font-family: var(--smm-font) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #1a1a1a !important;
    margin: 0 0 12px 0 !important;
    padding: 0 0 8px 0 !important;
    border-bottom: none !important;
    line-height: 1.2 !important;
}
.smm-mega-heading a {
    color: #1a1a1a !important;
    text-decoration: none !important;
}
.smm-mega-heading a:hover {
    color: var(--smm-primary) !important;
}

/* ── Column Links ───────────────────────────────────────────── */
.smm-mega-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.smm-mega-link-item {
    list-style: none;
    margin: 0;
    padding: 0;
}
.smm-mega-link-item a {
    display: block;
    font-family: var(--smm-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #444444 !important;
    text-decoration: none !important;
    padding: 4px 0 !important;
    transition: color 0.15s ease !important;
    line-height: 1.5 !important;
}
.smm-mega-link-item a:hover {
    color: var(--smm-primary) !important;
}

/* ── Mobile Toggle (desktop: hidden) ───────────────────────── */
.smm-mobile-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--smm-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--smm-text);
    cursor: pointer;
}

/* ── Mobile Panel ───────────────────────────────────────────── */
.smm-mobile-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 340px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.smm-mobile-panel.smm-panel-open {
    display: block;
    transform: translateX(0);
}
.smm-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}
.smm-mobile-title {
    font-family: var(--smm-font);
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.smm-mobile-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.smm-mobile-body {
    padding: 8px 0;
}

/* Mobile menu items */
.smm-mobile-body .smm-mob-item { border-bottom: 1px solid #f5f5f5; }
.smm-mobile-body .smm-mob-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-family: var(--smm-font);
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    cursor: pointer;
}
.smm-mobile-body .smm-mob-top a {
    flex: 1;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
/* Mobile item icons */
.smm-mobile-body .smm-mob-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(16, 132, 126, 0.10);
    border-radius: 10px;
    flex-shrink: 0;
    color: var(--smm-primary);
}
.smm-mobile-body .smm-mob-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--smm-primary);
}
.smm-mobile-body .smm-mob-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    transition: transform 0.2s;
}
.smm-mobile-body .smm-mob-toggle.open { transform: rotate(90deg); }
.smm-mobile-body .smm-mob-cols { display: none; padding: 0 0 8px 0; }
.smm-mobile-body .smm-mob-cols.open { display: block; }
.smm-mobile-body .smm-mob-col-heading {
    font-family: var(--smm-font);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--smm-primary);
    padding: 10px 20px 4px;
}
.smm-mobile-body .smm-mob-col-link {
    display: block;
    font-family: var(--smm-font);
    font-size: 13px;
    color: #555;
    padding: 6px 28px;
    text-decoration: none;
}
.smm-mobile-body .smm-mob-col-link:hover { color: var(--smm-primary); }

/* Overlay */
.smm-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
}
.smm-mobile-overlay.smm-overlay-open { display: block; }

/* ── Responsive breakpoint (992px default, override by settings inline CSS) ── */
@media (max-width: 992px) {
    .smm-nav-wrap { display: none; }
    .smm-mobile-toggle { display: flex; }
}
@media (min-width: 993px) {
    .smm-mobile-toggle { display: none !important; }
    .smm-mobile-panel,
    .smm-mobile-overlay { display: none !important; }
}
