/* ============================================================
   SM Mega Menu v4 — Frontend
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap');

.smmm-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    width: min(1100px, calc(100vw - 40px));
    background: #fff;
    border-radius: 20px;
    box-shadow:
        0 2px 4px rgba(0,0,0,.04),
        0 12px 32px rgba(0,0,0,.10),
        0 32px 64px rgba(0,0,0,.08);
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
    /* No bottom padding — columns fill to the bottom edge */
}

.smmm-hidden  { display: none !important; }
.smmm-visible {
    display: block;
    animation: smmm-drop .2s cubic-bezier(.22,.68,0,1.2) both;
}

@keyframes smmm-drop {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px) scale(.98); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0)      scale(1);  }
}

/* ---- Two columns — full height ---- */
.smmm-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* No explicit height needed — columns stretch naturally */
}

.smmm-col {
    padding: 0 32px 32px;
}

/* Self-Guided column — tinted background, stretches full height */
.smmm-col + .smmm-col {
    background: #f8f4ef;
    border-left: 2px solid #e8e0d8;
    /* overflow:hidden on panel + no panel bottom padding = bg fills to bottom */
}

/* ---- Column headings ---- */
.smmm-col-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 0 -32px 20px;
    padding: 16px 32px;
    color: #fff;
}

.smmm-col:first-child .smmm-col-heading {
    background: #e6722a;
}
.smmm-col + .smmm-col .smmm-col-heading {
    background: #1d140d;
}

.smmm-col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(255,255,255,0.5);
}

/* ---- Cards ---- */
.smmm-cards {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.smmm-card {
    display: grid;
    grid-template-columns: 88px 1fr 18px;
    align-items: center;
    gap: 14px;
    padding: 10px 10px 10px 8px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.smmm-card:hover { background: #f0ece6; }
.smmm-col:first-child .smmm-card:hover { background: #f5f3f1; }

.smmm-card-img {
    width: 88px;
    height: 66px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e0d8;
}
.smmm-card-img-empty { background: #e8e3dd; }

.smmm-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.smmm-card:hover .smmm-card-img img { transform: scale(1.07); }

.smmm-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.smmm-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    display: block;
}

.smmm-card-text {
    font-size: 12.5px;
    color: #999;
    line-height: 1.45;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.smmm-card-arrow {
    font-size: 15px;
    color: #ddd;
    flex-shrink: 0;
    transition: color .15s, transform .15s;
    line-height: 1;
}
.smmm-card:hover .smmm-card-arrow {
    color: #e6722a;
    transform: translateX(3px);
}

/* ---- CTA bar — outside columns, so white background ---- */
.smmm-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 32px 24px;
    border-top: 1px solid #e8e0d8;
    background: #fff;
    flex-wrap: wrap;
}

.smmm-cta-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}

.smmm-cta-copy span {
    font-size: 13px;
    color: #aaa;
}

.smmm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;
    background: #1d140d;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 999px;
    transition: background .18s, transform .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.smmm-cta-btn:hover {
    background: #e6722a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,114,42,.3);
}
.smmm-cta-btn::after {
    content: '→';
    font-size: 15px;
}

.smmm-empty { color: #bbb; font-size: 13px; font-style: italic; margin: 8px 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .smmm-panel { border-radius: 14px; }
    .smmm-columns { grid-template-columns: 1fr; }
    .smmm-col { padding: 0 20px 24px; }
    .smmm-col + .smmm-col { border-left: 0; border-top: 2px solid #e8e0d8; }
    .smmm-col-heading { margin: 0 -20px 16px; padding: 14px 20px; }
    .smmm-card { grid-template-columns: 72px 1fr 16px; }
    .smmm-card-img { width: 72px; height: 54px; }
    .smmm-cta { padding: 16px 20px 20px; }
}


/* ============================================================
   3-Column menu type — image-first card layout
   ============================================================ */

/* Panel width slightly narrower for 3-col */
/* ============================================================
   3-Column terrain menu (Equipment Hire style)
   Reuses .smmm-panel base, .smmm-4col-topbar, .smmm-4col-cat-head,
   .smmm-4col-column, and .smmm-card for rows
   ============================================================ */

.smmm-panel-columns {
    width: min(960px, calc(100vw - 40px));
}

.smmm-threecol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid #e8e0d8;
}

.smmm-threecol-col + .smmm-threecol-col {
    border-left: 1px solid #e8e0d8;
}

/* Standard card sizing */
.smmm-threecol-col .smmm-cards { gap: 2px; }
.smmm-threecol-col .smmm-card { grid-template-columns: 88px 1fr 18px; }
.smmm-threecol-col .smmm-card-img { width: 88px; height: 66px; }

@media (max-width: 768px) {
    .smmm-threecol-grid { grid-template-columns: 1fr; }
    .smmm-threecol-col + .smmm-threecol-col {
        border-left: none;
        border-top: 1px solid #e8e0d8;
    }
}

@media (max-width: 767px) {
    .smmm-panel-columns.smmm-drawer-open .smmm-threecol-grid {
        grid-template-columns: 1fr !important;
    }
    .smmm-panel-columns.smmm-drawer-open .smmm-threecol-col + .smmm-threecol-col {
        border-left: none !important;
        border-top: 1px solid #e8e0d8;
    }
}/* ============================================================
   2-Column terrain menu (Multi-Day Journey style)
   Reuses .smmm-panel base, .smmm-4col-topbar, .smmm-4col-cat-head,
   .smmm-4col-column, and .smmm-card for rows
   ============================================================ */

.smmm-panel-twocol {
    width: min(900px, calc(100vw - 40px));
}

.smmm-twocol-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e8e0d8;
}

/* Right col tinted background, same as guided self-guided */
.smmm-twocol-col--col2 {
    background: #f8f4ef;
    border-left: 1px solid #e8e0d8;
}

/* Standard card sizing */
.smmm-twocol-col .smmm-cards { gap: 2px; }
.smmm-twocol-col .smmm-card { grid-template-columns: 88px 1fr 18px; }
.smmm-twocol-col .smmm-card-img { width: 88px; height: 66px; }
.smmm-twocol-col--col2 .smmm-card:hover { background: #ede9e3; }

/* Responsive */
@media (max-width: 640px) {
    .smmm-twocol-grid { grid-template-columns: 1fr; }
    .smmm-twocol-col--col2 {
        border-left: none;
        border-top: 1px solid #e8e0d8;
    }
}

/* Mobile drawer */
@media (max-width: 767px) {
    .smmm-panel-twocol.smmm-drawer-open .smmm-twocol-grid {
        grid-template-columns: 1fr !important;
    }
    .smmm-panel-twocol.smmm-drawer-open .smmm-twocol-col--col2 {
        border-left: none !important;
        border-top: 1px solid #e8e0d8;
    }
}

/* ============================================================
   Mobile drawer
   ============================================================ */

@media (max-width: 767px) {

    /* Drawer state — slides down from top */
    .smmm-panel.smmm-drawer-open {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        border-radius: 0 0 16px 16px !important;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 999999;
        animation: smmm-drawer-in .25s ease both;
        padding-top: 48px; /* room for close button */
    }

    @keyframes smmm-drawer-in {
        from { opacity: 0; transform: translateY(-12px) !important; }
        to   { opacity: 1; transform: translateY(0) !important; }
    }

    /* Dim page behind drawer */
    body.smmm-drawer-active::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.4);
        z-index: 99998;
        animation: smmm-fade-in .2s ease both;
    }

    @keyframes smmm-fade-in {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Close button */
    .smmm-close-btn {
        display: flex !important;
        position: absolute;
        top: 12px;
        right: 16px;
        background: #f0f0f0;
        border: none;
        border-radius: 999px;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #444;
        cursor: pointer;
        z-index: 10;
    }

    /* Stack columns vertically in drawer */
    .smmm-panel.smmm-drawer-open .smmm-columns {
        grid-template-columns: 1fr !important;
    }

    .smmm-panel.smmm-drawer-open .smmm-col {
        padding: 0 20px 20px !important;
        background: #fff !important;
        border-left: none !important;
        border-top: 1px solid #f0f0f0;
    }

    .smmm-panel.smmm-drawer-open .smmm-col:first-child {
        border-top: none;
    }

    .smmm-panel.smmm-drawer-open .smmm-col-heading {
        margin: 0 -20px 16px !important;
        padding: 12px 20px !important;
    }

    /* Restore list-style cards (not image-first) in drawer for guided menus */
    .smmm-panel.smmm-drawer-open .smmm-card {
        grid-template-columns: 64px 1fr 16px !important;
        display: grid !important;
        flex-direction: unset !important;
        padding: 8px 4px !important;
    }

    .smmm-panel.smmm-drawer-open .smmm-card-img {
        width: 64px !important;
        height: 48px !important;
    }

    /* Image-first cards in drawer: keep image but smaller */
    .smmm-panel.smmm-drawer-open.smmm-panel-columns .smmm-card {
        flex-direction: column !important;
        display: flex !important;
    }

    .smmm-panel.smmm-drawer-open.smmm-panel-columns .smmm-card-img {
        width: 100% !important;
        height: 120px !important;
    }

    .smmm-panel.smmm-drawer-open .smmm-cta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        margin: 0 !important;
        padding: 16px 20px 20px !important;
    }
}

/* Hide close button on desktop */
@media (min-width: 768px) {
    .smmm-close-btn { display: none !important; }
}

/* ============================================================
   4-Column Terrain Menu
   Reuses .smmm-card for tour rows — only grid & header styles here
   ============================================================ */

/* Panel inherits .smmm-panel base styles; just override width */
.smmm-panel-4col {
    width: min(1200px, calc(100vw - 40px));
}

/* Orange topbar */
.smmm-4col-topbar {
    background: #e6722a;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.smmm-4col-topbar-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}
.smmm-4col-topbar-sep { width: 1px; height: 12px; background: rgba(255,255,255,0.35); }
.smmm-4col-topbar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* 4-col grid */
.smmm-4col-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #e8e0d8;
}

.smmm-4col-column {
    padding: 0 20px 24px;
    --col-accent: #e6722a;
    --col-icon-bg: #fdf0e8;
}
.smmm-4col-column + .smmm-4col-column {
    border-left: 1px solid #e8e0d8;
}

/* Category heading row */
.smmm-4col-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0 12px;
    margin-bottom: 6px;
    border-bottom: 2px solid var(--col-accent);
}
.smmm-4col-cat-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--col-icon-bg);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}
.smmm-4col-cat-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    color: #111;
    display: block;
    line-height: 1.2;
}
.smmm-4col-cat-sub { font-size: 11px; color: #bbb; display: block; margin-top: 1px; }

/* Cards inside each column — use standard .smmm-card sizing */
.smmm-4col-column .smmm-cards { gap: 2px; }

.smmm-4col-column .smmm-card {
    grid-template-columns: 72px 1fr 16px;
    padding: 8px 6px;
}
.smmm-4col-column .smmm-card-img {
    width: 72px;
    height: 54px;
}
.smmm-4col-column .smmm-card-title { font-size: 13px; }
.smmm-4col-column .smmm-card-text  {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.smmm-4col-column .smmm-card:hover { background: #f5f3f1; }

/* CTA bar — mirrors .smmm-cta exactly */
.smmm-4col-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px 24px;
    border-top: 1px solid #e8e0d8;
    background: #fff;
    flex-wrap: nowrap;
}
.smmm-4col-cta-copy { min-width: 0; flex: 1; }
.smmm-4col-cta-copy strong { display: block; font-size: 15px; font-weight: 600; color: #111; margin-bottom: 3px; }
.smmm-4col-cta-copy span   { font-size: 13px; color: #aaa; }
.smmm-4col-cta-btn {
    display: inline-flex; align-items: center; gap: 8px;
    white-space: nowrap; text-decoration: none;
    background: #1d140d; color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px; font-weight: 700;
    padding: 12px 24px; border-radius: 999px;
    transition: background .18s, transform .18s, box-shadow .18s;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.smmm-4col-cta-btn:hover {
    background: #e6722a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230,114,42,.3);
}
.smmm-4col-cta-btn::after { content: '→'; font-size: 15px; }

/* Responsive */
@media (max-width: 960px) {
    .smmm-panel-4col .smmm-4col-grid { grid-template-columns: repeat(2, 1fr); }
    .smmm-panel-4col .smmm-4col-column:nth-child(3) { border-left: none; border-top: 1px solid #e8e0d8; }
    .smmm-panel-4col .smmm-4col-column:nth-child(4) { border-top: 1px solid #e8e0d8; }
}
@media (max-width: 600px) {
    .smmm-panel-4col { border-radius: 14px; }
    .smmm-panel-4col .smmm-4col-grid { grid-template-columns: 1fr; }
    .smmm-panel-4col .smmm-4col-column + .smmm-4col-column { border-left: none; border-top: 1px solid #e8e0d8; }
    .smmm-4col-cta { padding: 14px 20px 18px; flex-wrap: wrap; flex-direction: column; align-items: flex-start; }
}

/* Mobile drawer */
@media (max-width: 767px) {
    .smmm-panel-4col.smmm-drawer-open {
        display: block !important;
        position: fixed !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important; max-width: 100% !important;
        transform: none !important;
        border-radius: 0 0 16px 16px !important;
        max-height: 90vh; overflow-y: auto;
        z-index: 999999;
        animation: smmm-drawer-in .25s ease both;
        padding-top: 48px;
    }
    .smmm-panel-4col.smmm-drawer-open .smmm-4col-grid {
        grid-template-columns: 1fr !important;
    }
    .smmm-panel-4col.smmm-drawer-open .smmm-4col-column + .smmm-4col-column {
        border-left: none !important;
        border-top: 1px solid #e8e0d8;
    }
}

/* ============================================================
   Guided/Self-Guided panel — terrain header style (2 columns)
   Reuses .smmm-panel base, .smmm-4col-topbar, .smmm-4col-cat-head,
   .smmm-4col-column, and .smmm-card for tour rows
   ============================================================ */

.smmm-panel-guided {
    width: min(900px, calc(100vw - 40px));
}

.smmm-guided-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e8e0d8;
}

/* Left col accent — orange (guided) */
.smmm-guided-col--guided {
    --col-accent: #e6722a;
    --col-icon-bg: #fdf0e8;
}

/* Right col accent — dark (self-guided), tinted bg */
.smmm-guided-col--self {
    --col-accent: #1d140d;
    --col-icon-bg: #f0ece6;
    background: #f8f4ef;
    border-left: 1px solid #e8e0d8;
}

/* Cards inside guided cols use standard sizing */
.smmm-guided-col .smmm-cards { gap: 2px; }
.smmm-guided-col .smmm-card { grid-template-columns: 88px 1fr 18px; }
.smmm-guided-col .smmm-card-img { width: 88px; height: 66px; }
.smmm-guided-col--self .smmm-card:hover { background: #ede9e3; }

/* Responsive */
@media (max-width: 640px) {
    .smmm-guided-grid { grid-template-columns: 1fr; }
    .smmm-guided-col--self {
        border-left: none;
        border-top: 1px solid #e8e0d8;
        background: #f8f4ef;
    }
}

/* Mobile drawer */
@media (max-width: 767px) {
    .smmm-panel-guided.smmm-drawer-open .smmm-guided-grid {
        grid-template-columns: 1fr !important;
    }
    .smmm-panel-guided.smmm-drawer-open .smmm-guided-col--self {
        border-left: none !important;
        border-top: 1px solid #e8e0d8;
    }
}

/* Sub-section type headers inside fourcol columns (Guided / Self-Guided) */
.smmm-type-band {
    display: flex;
    align-items: center;
    gap: 7px;
    border-radius: 6px;
    padding: 5px 10px;
    margin: 12px 0 8px;
}
.smmm-type-band + .smmm-type-band,
.smmm-card + .smmm-type-band {
    margin-top: 18px;
}
.smmm-type-band-icon {
    font-size: 13px;
    line-height: 1;
}
.smmm-type-band-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
}
.smmm-type-band--self  { background: #e1f0fa; }
.smmm-type-band--self  .smmm-type-band-label { color: #0c447c; }
.smmm-type-band--guided { background: #fdf0e8; }
.smmm-type-band--guided .smmm-type-band-label { color: #7a2e12; }
