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

:root {
    --primary: #2563eb;
    --primary-light: #60a5fa;
    --accent: #f59e0b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --radius: 16px;
    --drawer-z: 3000;
}

[data-theme="dark"] {
    --background: #0f172a;
    --surface: #1e293b;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.3);
}

[data-theme="dark"] .search-modal-content,
[data-theme="dark"] .search-modal-header,
[data-theme="dark"] .search-modal-footer,
[data-theme="dark"] .drawer,
[data-theme="dark"] .drawer-header,
[data-theme="dark"] .drawer-footer {
    background-color: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .search-modal-body {
    background-color: var(--background);
}

[data-theme="dark"] .search-modal-header h2,
[data-theme="dark"] .advanced-filter-item label {
    color: var(--text-main);
}

[data-theme="dark"] .advanced-filter-item select,
[data-theme="dark"] .advanced-filter-item input {
    background-color: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
}

[data-theme="dark"] .drawer-content {
    background-color: var(--background);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    padding: 2rem 0 80px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Header & Navigation --- */
nav.main-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1500;
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
}

[data-theme="dark"] nav.main-nav {
    background: rgba(15, 23, 42, 0.8);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-section img {
    max-height: var(--logo-max-height, 80px);
    height: auto;
    width: auto;
    max-width: var(--logo-max-width, 600px);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-section:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-section img {
        height: 50px;
        /* Slightly smaller on mobile to save space */
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--surface);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    z-index: 2000;
    top: 100%;
    margin-top: 5px;
    border: 1px solid var(--border);
    padding: 0.5rem 0;
}

.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
}

.dropdown-content a {
    color: var(--text-main);
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f5f9;
    color: var(--primary);
}

[data-theme="dark"] .dropdown-content a:hover {
    background-color: #334155;
}

.badge {
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 4px;
}

.btn-planner {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-planner:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-clear-favs {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear-favs:hover {
    background: #ef4444;
    color: white;
}

.hero-section {
    padding: 6rem 0 4rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.initiative-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.init-tab {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.init-tab:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.init-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.theme-toggle {
    position: absolute;
    top: 0;
    right: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.2s;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* --- Search & Filters --- */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    flex-wrap: nowrap;
    position: sticky;
    top: 5rem;
    z-index: 100;
}

.filter-event-info {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    padding: 0 1.5rem 0 0.5rem;
    white-space: nowrap;
    letter-spacing: -0.04em;
    font-family: 'Barlow', sans-serif;
}

.filter-actions {
    display: flex;
    gap: 0.75rem;
    width: auto;
    justify-content: flex-end;
}

.btn-advanced {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-advanced:hover {
    background: var(--accent);
    filter: brightness(0.9);
    transform: scale(1.02);
}

.btn-main-reset {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.btn-near {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    display: none !important;
    /* Hidden on desktop, shown on mobile only */
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-near:hover {
    background: var(--accent);
    filter: brightness(0.9);
    transform: translateY(-2px);
}

.btn-near.active {
    animation: pulse-teal 2s infinite;
}

@keyframes pulse-teal {
    0% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(20, 184, 166, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(20, 184, 166, 0);
    }
}

.distance-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(4px);
}

/* --- Advanced Search Modal --- */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
    backdrop-filter: blur(4px);
}

.search-modal.active {
    display: flex;
}

.search-modal-content {
    background: #fff;
    width: 98%;
    max-width: 1550px;
    max-height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.search-modal-header {
    background: #fff;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.search-modal-header h2 {
    font-size: 1.5rem;
    color: #475569;
    font-weight: 600;
}

.close-search {
    background: #87a9ad;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.search-modal-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1.8fr 0.8fr;
    gap: 1.5rem;
    background: #fff;
    overflow-y: auto;
    flex: 1;
}

.search-modal-body.flex-body {
    display: flex;
    flex-direction: column;
}

.map-container {
    height: 100%;
    min-height: 450px;
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.advanced-filters-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.advanced-filter-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.advanced-filter-item label {
    font-weight: 700;
    font-size: 1rem;
    color: #1e293b;
}

.advanced-filter-item select,
.advanced-filter-item input {
    padding: 0.8rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    outline: none;
}

.advanced-filter-item select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 1rem center;
    background-size: 1em;
    appearance: none;
    cursor: pointer;
}

.search-modal-footer {
    padding: 1.5rem 2rem;
    background: #fff;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-search-exec {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-search-close {
    background: #64748b;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
}

.btn-search-reset {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search-reset:hover {
    background: #e2e8f0;
    color: #1e293b;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Quick Filters */
.quick-filters-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0 1.5rem;
    margin-top: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.quick-filters-bar::-webkit-scrollbar {
    display: none;
}

.qf-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.qf-btn i {
    color: var(--primary);
    font-size: 1rem;
}

.qf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.qf-btn.active {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.qf-btn.active i {
    color: white !important;
}

.quick-filters-bar::-webkit-scrollbar {
    display: none;
}

/* Skeleton Loaders */
.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    height: 100%;
    min-height: 540px;
}

.skeleton-shimmer {
    background: #f1f5f9;
    background-image: linear-gradient(to right, #f1f5f9 0%, #e2e8f0 20%, #f1f5f9 40%, #f1f5f9 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    display: block;
    animation: shimmer 1.5s infinite linear forward;
}

@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.skeleton-header {
    width: 100%;
    height: 240px;
}

.skeleton-body {
    padding: 1.5rem;
}

.skeleton-title {
    width: 80%;
    height: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.skeleton-text {
    width: 60%;
    height: 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.skeleton-meta {
    width: 40%;
    height: 0.75rem;
    border-radius: 4px;
}

.skeleton-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-btn {
    width: 80px;
    height: 35px;
    border-radius: 20px;
}

/* View Toggle Button (Integrated in Search) */
.btn-view-toggle {
    background: #86cbd3;
    /* Teal/Cyan like screenshot */
    color: #1e293b;
    border: none;
    padding: 0 2rem;
    min-width: 140px;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 46px;
    box-shadow: 0 4px 12px rgba(134, 203, 211, 0.3);
}

.btn-view-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(134, 203, 211, 0.4);
    filter: brightness(1.05);
}

.btn-view-toggle.active {
    background: var(--text-main);
    color: white;
}

.btn-view-toggle i {
    font-size: 1rem;
}

/* --- Events Grid --- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

.event-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    height: 100%;
    min-height: 540px;
    /* Intersection Observer handles reveal */
    opacity: 0;
    transform: translateY(20px);
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.card-header {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9;
}

.card-header img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, opacity 0.6s ease;
}

.lazy-img {
    opacity: 0;
}

.lazy-img.loaded {
    opacity: 1;
}

.event-card:hover .card-header img {
    transform: scale(1.1);
}

.date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.7rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    text-transform: uppercase;
}

.time-badge {
    position: absolute;
    top: 3.2rem;
    right: 1rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.65rem;
    color: #fff;
    z-index: 10;
}

.fav-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.fav-btn.active {
    color: #ef4444;
}

.fav-btn:hover {
    transform: scale(1.1);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.location-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-snippet {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: -0.25rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 5px;
}

.share-btn:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.2s;
}

.social-links a:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: translateY(-2px);
}

.btn-ver {
    background: var(--accent);
    color: white;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-ver:hover {
    box-shadow: 0 6px 12px -2px rgba(37, 99, 235, 0.3);
    transform: scale(1.03);
}

/* --- Skeleton Loading --- */
.skeleton-card {
    background: #fff;
    border-radius: var(--radius);
    height: 540px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.skeleton-img {
    height: 250px;
    background: #f1f5f9;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: #f1f5f9;
    margin: 1.5rem;
    border-radius: 4px;
}

.skeleton-text {
    height: 16px;
    width: 60%;
    background: #f1f5f9;
    margin: 0 1.5rem 1rem;
    border-radius: 4px;
}

.skeleton-anim {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Side Drawer --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: var(--drawer-z);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 700px;
    height: 100%;
    background: #fff;
    z-index: calc(var(--drawer-z) + 1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-close {
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: var(--text-main);
    padding: 0;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: #e2e8f0;
}

.drawer-content {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
}

.drawer-hero {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.drawer-description {
    line-height: 1.8;
    color: #475569;
    margin-bottom: 2rem;
}

.drawer-info-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.action-bar {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.btn-calendar {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    background: var(--accent);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.related-title {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.related-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.related-mini-card:hover {
    border-color: var(--primary);
    background: #f1f5f9;
}

[data-theme="dark"] .related-mini-card:hover {
    background: #334155;
}

.related-mini-card h4 {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-mini-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.loader-container {
    grid-column: 1 / -1;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    width: 100%;
}

.loader {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Footer --- */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    margin-top: 6rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-large {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-circle {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s;
}

[data-theme="dark"] .social-circle {
    background: #334155;
    color: #cbd5e1;
}

.social-circle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}


.search-quick-group {
    flex: 2;
    min-width: 400px;
    position: relative;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.search-quick-input {
    flex: 1;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 1rem;
    transition: all 0.2s;
    height: 46px;
}

.search-quick-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.search-quick-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.active-filters-container {
    width: 100%;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    min-height: 32px;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    animation: slideInUp 0.3s ease;
}

.filter-chip i {
    cursor: pointer;
    font-size: 0.75rem;
}

.filter-chip i:hover {
    color: #ef4444;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.event-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.newsletter-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-box input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--background);
    color: var(--text-main);
}

.newsletter-box button {
    background: var(--accent);
    border: none;
    padding: 0 1rem;
    border-radius: 8px;
    color: white;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .filter-bar {
        flex-direction: column !important;
        height: auto !important;
        padding: 1.5rem 1rem !important;
        position: static !important;
        width: 100% !important;
        gap: 1.2rem !important;
    }

    .filter-event-info {
        padding: 0 !important;
        text-align: center !important;
        font-size: 1.5rem !important;
        width: 100% !important;
    }

    .search-quick-group {
        flex-direction: column !important;
        width: 100% !important;
        min-width: 100% !important;
        align-items: stretch !important;
        gap: 0.8rem !important;
        position: relative !important;
    }

    .search-quick-group i {
        top: 25px !important;
        /* Center of the first element (input) */
    }

    .search-quick-input {
        width: 100% !important;
        padding: 0.85rem 1rem 0.85rem 2.8rem !important;
        height: 50px !important;
        font-size: 1rem !important;
    }

    .btn-view-toggle {
        width: 100% !important;
        padding: 0.85rem !important;
        height: 50px !important;
        justify-content: center !important;
    }

    .quick-filters-bar {
        padding: 0.5rem 1.5rem 1.5rem !important;
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
    }

    .qf-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .filter-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }

    .btn-near {
        display: flex !important;
    }

    .filter-actions button {
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        padding: 0.85rem 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .btn-main-reset {
        grid-column: span 2 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-section {
        padding: 3rem 1rem 2rem;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-banner-img {
        height: auto;
        max-height: 400px;
        min-height: 200px;
    }

    .search-modal-body {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .search-modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 5000 !important;
    }

    .search-modal.active {
        display: block !important;
    }

    .search-modal.active~.mobile-bottom-nav {
        display: none !important;
    }

    .search-modal-content {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        background: var(--surface) !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        z-index: 10000 !important;
    }

    .search-modal-footer .flex-grow-spacer {
        display: none !important;
    }

    .map-container {
        height: 300px;
        min-height: 300px;
        border-radius: 8px;
        overflow: hidden;
    }

    .search-modal-header {
        padding: 1rem !important;
    }

    .search-modal-header h2 {
        font-size: 1.2rem !important;
    }

    .advanced-filters-grid {
        gap: 0.8rem !important;
    }

    .advanced-filter-item label {
        font-size: 0.9rem !important;
    }

    .advanced-filter-item select,
    .advanced-filter-item input {
        padding: 0.6rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .drawer {
        max-width: 100%;
        width: 100vw;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-banner-img {
        height: auto;
        max-height: 250px;
        min-height: 150px;
        margin-top: 0;
    }

    .search-modal-footer {
        padding: 1rem !important;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
        flex-direction: row !important;
        display: flex !important;
        background-color: var(--surface) !important;
        border-top: 1px solid var(--border) !important;
        flex-shrink: 0 !important;
        gap: 10px !important;
        position: relative !important;
    }

    .search-modal-footer button {
        flex: 1 !important;
        margin: 0 !important;
        height: 48px !important;
        font-size: 0.9rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    body {
        padding-bottom: 90px !important;
    }

    .sticky-footer-wrapper {
        bottom: calc(75px + env(safe-area-inset-bottom)) !important;
        z-index: 2500 !important;
    }

    body.modal-open .sticky-footer-wrapper {
        display: none !important;
    }
}

/* Mobile Bottom Nav Bar Styles */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    z-index: 2000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.95);
}

.mobile-bottom-nav button {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
}

.mobile-bottom-nav button i {
    font-size: 1.4rem;
}

.mobile-bottom-nav button:active {
    transform: scale(0.9);
}

.badge-dot {
    position: absolute;
    top: -4px;
    right: -10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}


/* --- PDF Template (Hidden) --- */
#planner-template {
    padding: 40px;
    font-family: 'Barlow', sans-serif;
    color: #1e293b;
    background: white;
}

.planner-header {
    text-align: center;
    border-bottom: 3px solid #0d5c63;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.planner-event {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    page-break-inside: avoid;
}

.planner-event h2 {
    color: #0d5c63;
    margin-bottom: 10px;
}

.planner-event .meta {
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
}

.planner-event .desc {
    line-height: 1.6;
}

/* Sessions List in Drawer */
.sessions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.session-item {
    background: #fff;
    border: 1px solid var(--border);
    padding: 0.8rem;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    transition: all 0.2s;
}

.session-item.active {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
    border-left: 4px solid var(--primary);
}

.session-item:not(.active):hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.sess-date,
.sess-time {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.sess-title {
    grid-column: span 2;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 0.3rem;
    margin-top: 0.3rem;
}

[data-theme="dark"] .session-item {
    background: #0f172a;
}

[data-theme="dark"] .session-item.active {
    background: rgba(37, 99, 235, 0.15);
}

/* --- Improved Drawer Details --- */
.drawer-detail-view {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.drawer-hero-container {
    position: relative;
    width: 100%;
    margin-bottom: 0.5rem;
}

.drawer-hero {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
}

.cost-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cost-badge.paid {
    background: #ef4444;
    color: white;
}

.cost-badge.static {
    position: static;
    display: inline-block;
    margin-bottom: 1rem;
    box-shadow: none;
}

.cost-badge.free {
    background: #22c55e;
    color: white;
}

.drawer-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.drawer-main-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag-item {
    background: var(--background);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.drawer-section {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.drawer-description {
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-main);
    opacity: 0.9;
}

.details-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: var(--background);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

@media (max-width: 600px) {
    .details-info-grid {
        grid-template-columns: 1fr;
    }
}

.detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-content strong {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.detail-content span {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.detail-content small {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-item.highlight {
    background: rgba(37, 99, 235, 0.05);
    margin: -0.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.external-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.qr-info-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.qr-img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.qr-text strong {
    display: block;
    margin-bottom: 0.3rem;
}

.qr-text p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.action-bar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.btn-calendar.full,
.btn-maps.full {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-calendar.full {
    background: var(--accent);
    color: white;
}

.btn-maps.full {
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.related-mini-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.related-mini-card:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.related-mini-card img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.rel-info h5 {
    margin: 0 0 0.2rem 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.rel-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sidebar Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #1a1a1a;
    color: #fff;
    z-index: 2500;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

.side-menu.active {
    transform: translateX(0);
}

.side-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2400;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.side-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.side-menu-header span {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
}

.close-side-menu {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.close-side-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

.side-menu-body {
    padding: 1rem 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu-body a {
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    text-transform: uppercase;
}

.side-menu-body a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.side-dropdown {
    display: flex;
    flex-direction: column;
}

.side-submenu {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: max-height 0.3s ease-out;
}

.side-submenu.active {
    max-height: 500px;
}

.side-submenu a {
    padding: 0.8rem 2rem 0.8rem 3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.side-menu-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.side-archive-selector {
    position: relative;
}

.side-archive-btn {
    width: auto;
    padding: 0.6rem 1rem;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
}

.side-archive-content {
    display: none;
    margin-top: 5px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.side-archive-content.active {
    display: block;
}

.side-archive-year {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 800;
}

.side-archive-content a {
    color: #333;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: none;
    border-bottom: 1px solid #f1f5f9;
    text-transform: none;
}

.side-archive-content a:hover {
    background: #f8fafc;
    color: var(--primary);
}

/* --- Sticky Collapsible Footer Refined --- */
.sticky-footer-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1800;
    background: var(--surface);
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(calc(100% - 40px));
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-footer-wrapper.expanded {
    transform: translateY(0);
}

.footer-toggle-bar {
    height: 40px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.footer-toggle-bar:hover {
    background: var(--primary-light);
}

.peek-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.footer-chevron {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 25px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
    color: white;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}

.sticky-footer-wrapper.expanded .footer-chevron {
    top: 0;
    border-radius: 0 0 12px 12px;
}

.sticky-footer-wrapper footer {
    margin-top: 0 !important;
    padding: 3rem 0 2rem !important;
    max-height: 70vh;
    overflow-y: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .sticky-footer-wrapper {
    background: #1e293b;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .footer-toggle-bar .peek-info span {
        font-size: 0.85rem;
    }
}

/* --- Modal Document Sections --- */
.modal-docs-section {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 2px solid #333;
    /* Darker line as in image */
    margin-left: -2.5rem;
    margin-right: -2.5rem;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.modal-docs-title {
    font-size: 1.05rem;
    font-weight: 800;
    /* Extra bold as in image */
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    text-transform: none;
}

[data-theme="dark"] .modal-docs-title {
    color: #fff;
}

.modal-docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-docs-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.modal-docs-dot {
    width: 5px;
    height: 5px;
    background-color: #2563eb;
    /* Strong blue for the dot */
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-docs-link {
    color: #2563eb;
    /* Blue link */
    text-decoration: underline;
    /* Underline as in standard links if needed, or keep clean */
    text-underline-offset: 3px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.modal-docs-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

[data-theme="dark"] .modal-docs-link,
[data-theme="dark"] .modal-docs-dot {
    color: #60a5fa;
    background-color: #60a5fa;
}

.modal-docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-docs-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.modal-docs-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.modal-docs-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.modal-docs-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

[data-theme="dark"] .modal-docs-link {
    color: var(--primary-light);
}

[data-theme="dark"] .modal-docs-dot {
    background-color: var(--primary-light);
}

@media (max-width: 768px) {
    .modal-docs-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .modal-docs-title {
        font-size: 1.1rem;
    }

    .modal-docs-link {
        font-size: 0.95rem;
    }
}

/* --- Cookie Consent Banner (RGPD) --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

[data-theme="dark"] .cookie-consent-banner {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.cookie-content {
    flex: 1;
}

.cookie-content h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie-accept {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-settings {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cookie-accept:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Global rule to hide bottom nav when any modal is open */
body.modal-open .mobile-bottom-nav {
    display: none !important;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        flex-direction: column;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
        gap: 1.5rem;
        text-align: center;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-actions button {
        flex: 1;
    }
}