@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400&display=swap');

:root {
    --bg: #faf8f5;
    --text: #2d2a26;
    --accent: #b8432f;
    --accent-light: #e8c4a0;
    --accent-dark: #8a2e1f;
    --green: #4a7c59;
    --blue: #2e6b8a;
    --gold: #c49b3c;
    --card-bg: #ffffff;
    --border: #e5ddd4;
    --muted: #7a7267;
    --section-bg: #f3efe9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
}

/* ===== NAV ===== */
.nav {
    background: #2d2a26;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
}
.nav-logo {
    font-family: 'Playfair Display', serif;
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 700;
}
.nav-links { display: flex; gap: 4px; }
.nav-link {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s;
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link.active {
    color: white;
    background: var(--accent);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2d2a26 0%, #5a3e2b 50%, #8a5a3a 100%);
    color: white;
    padding: 64px 40px 48px;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 8px;
}
.hero .subtitle {
    font-size: 1.1em;
    font-weight: 300;
    opacity: 0.85;
}
.hero-tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}
.hero-tag {
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NARRATIVE ===== */
.narrative {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 48px;
    margin: 40px 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
}
.narrative h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: var(--accent-dark);
    margin-bottom: 24px;
    text-align: center;
}
.narrative p {
    margin-bottom: 16px;
    text-align: justify;
    font-size: 1.02em;
}
.narrative p:last-child { margin-bottom: 0; }

/* ===== ROUTE MAP ===== */
.route-map {
    background: linear-gradient(135deg, #2d2a26, #3d3530);
    color: white;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
}
.route-map h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 24px;
    color: var(--accent-light);
}
.route-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}
.route-dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    border: 2px solid var(--accent-light);
}
.route-city { font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 0.9em; }
.route-detail { color: rgba(255,255,255,0.55); font-size: 0.85em; margin-left: 4px; }
.route-line {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 2px 0 2px 5px;
    color: var(--accent-light);
    font-size: 0.8em;
    font-family: 'JetBrains Mono', monospace;
}
.route-line::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--accent-light);
    opacity: 0.3;
    flex-shrink: 0;
}

/* ===== DAYS TITLE ===== */
.days-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: var(--text);
    text-align: center;
    margin: 48px 0 32px;
}

/* ===== DAY ROW ===== */
.day-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}
.day-number-col {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding-top: 24px;
}
.day-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}
.day-location {
    font-size: 0.75em;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.3;
}
.day-content {
    flex: 1;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.day-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25em;
    color: var(--text);
}
.day-type {
    font-size: 0.7em;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}
.type-travel { background: #e8f0fe; color: var(--blue); }
.type-explore { background: #e8f5e9; color: var(--green); }
.type-free { background: #fff8e1; color: var(--gold); }

/* ===== COMMUTE BOX ===== */
.commute-box {
    background: #f8f6f3;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    border: 1px dashed var(--border);
}
.commute-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
}
.commute-icon { font-size: 1.2em; flex-shrink: 0; margin-top: 2px; }
.commute-step strong { font-size: 0.93em; }
.commute-step p { font-size: 0.85em; color: var(--muted); margin-top: 2px; }
.commute-arrow {
    text-align: center;
    color: var(--muted);
    font-size: 0.9em;
    padding: 2px 0;
}
.commute-simple {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    padding: 12px 16px;
    flex-wrap: wrap;
}
.commute-simple .commute-icon { margin-top: 0; }

/* Commute box internal sections */
.commute-section-label {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--accent);
    margin: 14px 0 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.commute-section-label:first-of-type {
    margin-top: 4px;
    padding-top: 0;
    border-top: none;
}

/* ===== LODGING INDICATOR ===== */
.lodging {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0ece4;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 0.82em;
    color: var(--muted);
    margin-bottom: 16px;
}
.lodging strong { color: var(--accent-dark); font-weight: 600; }
.lodging.lodging-checkout {
    background: #fdf0ea;
    border-color: #f0d4c4;
}

/* ===== COMMUTE TITLE ===== */
.commute-title {
    font-weight: 600;
    font-size: 0.85em;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* ===== INFO STEPS ===== */
.info-steps {
    background: #f0f3f8;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid #d0d8e4;
}
.info-step-title {
    font-weight: 700;
    font-size: 0.85em;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.info-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.9em;
    color: var(--text);
    line-height: 1.6;
}
.info-step + .info-step {
    border-top: 1px solid #dce3ed;
}
.step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== MAP LINKS ===== */
.map-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: border-color 0.2s, color 0.2s;
}
.map-link:hover {
    color: var(--accent);
    border-bottom-style: solid;
}
.map-link::after {
    content: ' 📍';
    font-size: 0.8em;
}

/* ===== ROUTE VARIANT BOX ===== */
.variant-box {
    border: 2px solid var(--gold);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}
.variant-header {
    background: #fef9f0;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.variant-header:hover { background: #fdf0da; }
.variant-icon {
    font-size: 1.2em;
}
.variant-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.95em;
    color: var(--gold);
    flex: 1;
}
.variant-toggle {
    font-size: 0.8em;
    color: var(--muted);
    transition: transform 0.2s;
}
.variant-body {
    padding: 16px 20px;
    background: #fffdf8;
    display: none;
}
.variant-box.open .variant-body { display: block; }
.variant-box.open .variant-toggle { transform: rotate(180deg); }

/* ===== ITINERARY SECTIONS ===== */
.itinerary-section {
    margin-bottom: 20px;
}
.itinerary-period {
    font-family: 'Playfair Display', serif;
    font-size: 1em;
    color: var(--accent-dark);
    padding: 8px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.itinerary-period .window {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72em;
    font-weight: 600;
    color: var(--blue);
    background: #e8f0fe;
    border-radius: 12px;
    padding: 2px 10px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.3px;
}
.itinerary-item {
    padding: 10px 0 10px 18px;
    border-left: 3px solid var(--border);
    margin-bottom: 6px;
    transition: border-color 0.2s;
    position: relative;
}
.itinerary-item:hover { border-left-color: var(--accent); }
.itinerary-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95em;
}
.itinerary-meta {
    font-size: 0.82em;
    color: var(--muted);
    margin-top: 2px;
}
.itinerary-note {
    font-size: 0.85em;
    color: var(--muted);
    margin-top: 4px;
    line-height: 1.5;
}

/* Transport leg within a section */
.itinerary-leg {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85em;
    color: var(--blue);
    background: #f0f5fb;
    border: 1px dashed #c4d4e8;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
}
.itinerary-leg .leg-icon { flex-shrink: 0; }

/* Tags */
.tag {
    display: inline-block;
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
}
.tag-must {
    background: #fde8e8;
    color: #c0392b;
}
.tag-nice {
    background: #e8f0fe;
    color: var(--blue);
}
.tag-skip {
    background: var(--section-bg);
    color: var(--muted);
}

/* ===== DAY ACTIVITIES LIST ===== */
.day-activities {
    list-style: none;
    padding: 0;
    margin-top: 8px;
}
.day-activities li {
    padding: 8px 0 8px 18px;
    border-left: 2px solid var(--border);
    font-size: 0.93em;
    color: var(--muted);
    margin-bottom: 4px;
    transition: border-color 0.2s;
}
.day-activities li:hover { border-left-color: var(--accent); }
.day-activities li strong { color: var(--text); }

/* ===== DAY DESCRIPTION ===== */
.day-description h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05em;
    color: var(--accent-dark);
    margin-bottom: 8px;
}
.day-description p {
    font-size: 0.95em;
    color: var(--muted);
    line-height: 1.7;
}

/* ===== ATTRACTIONS LINK ===== */
.attractions-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
.attractions-link:hover { color: var(--accent-dark); text-decoration: underline; }

/* ===== ATTRACTIONS PAGE ===== */
.location-section {
    margin: 48px 0;
}
.location-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.location-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
}
.location-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: var(--text);
}
.location-days {
    font-size: 0.85em;
    color: var(--muted);
    margin-left: 72px;
    margin-bottom: 24px;
}
.location-intro {
    font-size: 1.02em;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 24px;
    padding: 0 0 0 4px;
}

/* ===== ATTRACTION CATEGORY ===== */
.category {
    margin-bottom: 28px;
}
.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15em;
    color: var(--accent-dark);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.attraction-card {
    padding: 12px 0 12px 20px;
    border-left: 3px solid var(--border);
    margin-bottom: 8px;
    transition: border-color 0.2s;
}
.attraction-card:hover { border-left-color: var(--accent); }
.attraction-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95em;
}
.attraction-desc {
    color: var(--muted);
    font-size: 0.9em;
    margin-top: 2px;
}

/* ===== FOOD BOX ===== */
.food-box {
    background: #fdf6ee;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border: 1px solid #f0e0c8;
}
.food-box h4 {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
    font-size: 1.05em;
}
.food-item {
    padding: 4px 0;
    font-size: 0.93em;
}
.food-item strong { color: var(--text); }
.food-item span { color: var(--muted); }

/* ===== TIP BOX ===== */
.tip-box {
    background: #eef6f0;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 12px 0;
    border: 1px solid #c8e0d0;
    font-size: 0.9em;
}
.tip-box::before { content: '💡 '; }

/* ===== DAY TRIP BOX ===== */
.daytrip-box {
    background: #f0f3f8;
    border-radius: 10px;
    padding: 20px 24px;
    margin-top: 16px;
    border: 1px solid #d0d8e4;
}
.daytrip-box h4 {
    color: var(--blue);
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* ===== PRACTICAL INFO ===== */
.practical-box {
    background: var(--section-bg);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 12px 0;
    font-size: 0.9em;
}
.practical-box strong { color: var(--text); }

/* ===== SUGGESTION BOX ===== */
.suggestion-box {
    background: #fef9f0;
    border-radius: 12px;
    padding: 22px 26px;
    margin: 20px 0;
    border: 1px solid #eedcb8;
    border-left: 4px solid var(--gold);
}
.suggestion-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: var(--gold);
    margin-bottom: 10px;
}
.suggestion-box > p {
    font-size: 0.93em;
    color: var(--muted);
    margin-bottom: 10px;
}
.suggestion-list {
    list-style: none;
    padding: 0;
}
.suggestion-list li {
    padding: 8px 0 8px 18px;
    border-left: 2px solid #eedcb8;
    font-size: 0.93em;
    color: var(--muted);
    margin-bottom: 4px;
    transition: border-color 0.2s;
}
.suggestion-list li:hover { border-left-color: var(--gold); }
.suggestion-list li strong { color: var(--text); }

/* ===== BACK TO TOP ===== */
.back-to-top {
    display: block;
    text-align: center;
    margin: 20px 0;
    color: var(--accent);
    font-size: 0.85em;
    text-decoration: none;
    font-weight: 500;
}
.back-to-top:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 48px 40px;
    background: linear-gradient(135deg, #2d2a26, #5a3e2b);
    color: white;
    margin-top: 48px;
}
.footer p {
    font-family: 'Playfair Display', serif;
    font-size: 1.6em;
    font-style: italic;
}
.footer-flag { font-size: 1.8em; margin-top: 12px; }
.footer-sub { font-size: 0.8em; opacity: 0.5; margin-top: 8px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2em; }
    .hero { padding: 48px 24px 36px; }
    .narrative { padding: 28px 20px; }
    .day-row { flex-direction: column; gap: 0; }
    .day-number-col {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 0 8px;
    }
    .day-number { margin: 0; width: 40px; height: 40px; font-size: 1.1em; }
    .day-content { border-radius: 0 0 12px 12px; }
    .day-header { flex-direction: column; align-items: flex-start; }
    .location-header { flex-direction: column; align-items: flex-start; gap: 8px; }
    .location-days { margin-left: 0; }
    .route-map { padding: 24px 16px; }
}

/* ===== LAYOUT WRAPPER (sidebar + content) ===== */
.layout-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .layout-wrapper {
        display: flex;
        gap: 32px;
        max-width: 1180px;
        padding: 0 24px;
        align-items: flex-start;
    }
    .layout-wrapper > .container {
        flex: 1;
        min-width: 0;
        padding: 0;
    }
}

/* ===== SIDEBAR (desktop ≥1200px) ===== */
.page-sidebar {
    display: none;
}

@media (min-width: 1200px) {
    .page-sidebar {
        display: block;
        position: sticky;
        top: 72px;
        width: 220px;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
        padding: 16px 0;
        z-index: 50;
        flex-shrink: 0;
    }
    .sidebar-title {
        font-family: 'Playfair Display', serif;
        font-size: 0.85em;
        color: var(--accent-dark);
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 0 12px 10px;
        border-bottom: 1px solid var(--border);
        margin-bottom: 8px;
    }
    .sidebar-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .sidebar-group { list-style: none; }
    .sidebar-main-link {
        padding: 6px 12px;
        font-size: 0.8em;
        color: var(--muted);
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: all 0.2s;
        line-height: 1.4;
        display: block;
    }
    .sidebar-main-link.has-subs {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
    }
    .sidebar-main-link.has-subs::after {
        content: '\25B8';
        font-size: 0.9em;
        opacity: 0.45;
        transition: transform 0.2s;
        flex-shrink: 0;
    }
    .sidebar-group.open .sidebar-main-link.has-subs::after {
        transform: rotate(90deg);
    }
    .sidebar-main-link:hover {
        color: var(--text);
        border-left-color: var(--border);
    }
    .sidebar-main-link.active {
        color: var(--accent);
        border-left-color: var(--accent);
        font-weight: 600;
    }
    .sidebar-sublist {
        list-style: none;
        margin: 0;
        padding: 0;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.28s ease;
    }
    .sidebar-group.open .sidebar-sublist {
        max-height: 1200px;
    }
    .sidebar-subitem a {
        display: block;
        padding: 5px 12px 5px 24px;
        font-size: 0.75em;
        color: var(--muted);
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: all 0.2s;
        line-height: 1.4;
    }
    .sidebar-subitem a:hover {
        color: var(--text);
        border-left-color: var(--border);
    }
    .sidebar-subitem.active a {
        color: var(--accent);
        border-left-color: var(--accent);
        font-weight: 600;
    }
    /* Scrollbar */
    .page-sidebar::-webkit-scrollbar { width: 3px; }
    .page-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
}

/* ===== FAB + PANEL (mobile <1200px) ===== */
.fab-index {
    display: block;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    font-size: 1.4em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    z-index: 200;
    transition: all 0.2s;
    line-height: 1;
}
.fab-index:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}
.fab-index.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

@media (min-width: 1200px) {
    .fab-index { display: none; }
}

/* Overlay */
.fab-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 210;
    opacity: 0;
    transition: opacity 0.25s;
}
.fab-overlay.open {
    display: block;
    opacity: 1;
}

/* Panel */
.fab-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
    z-index: 220;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.fab-panel.open {
    transform: translateY(0);
}
.fab-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
}
.fab-panel-header span {
    font-family: 'Playfair Display', serif;
    font-size: 1.1em;
    color: var(--accent-dark);
}
.fab-panel-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: var(--muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.fab-panel-list {
    list-style: none;
    padding: 8px 0 24px;
    margin: 0;
}
.fab-panel-group { list-style: none; }
.fab-panel-main-link {
    padding: 11px 20px;
    font-size: 0.9em;
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    display: block;
    font-weight: 500;
}
.fab-panel-main-link.has-subs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.fab-panel-main-link.has-subs::after {
    content: '\25B8';
    font-size: 0.85em;
    opacity: 0.4;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.fab-panel-group.open .fab-panel-main-link.has-subs::after {
    transform: rotate(90deg);
}
.fab-panel-main-link:hover,
.fab-panel-main-link:active {
    background: var(--section-bg);
}
.fab-panel-main-link.active {
    background: var(--section-bg);
    color: var(--accent);
}
.fab-panel-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}
.fab-panel-group.open .fab-panel-sublist {
    max-height: 1600px;
}
.fab-panel-sublist li a {
    display: block;
    padding: 9px 20px 9px 36px;
    font-size: 0.82em;
    color: var(--muted);
    text-decoration: none;
    transition: background 0.15s;
}
.fab-panel-sublist li a:hover,
.fab-panel-sublist li a:active {
    background: var(--section-bg);
}
.fab-panel-subitem.active a {
    color: var(--accent);
}

@media print {
    .nav { display: none; }
    .page-sidebar { display: none; }
    .fab-index { display: none; }
    .hero { background: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .day-row { break-inside: avoid; }
}
