/* DonerIndex — White Theme with Red Accents */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f7f5;
    --surface: #f0f0ee;
    --surface2: #e8e8e6;
    --border: #dededb;
    --red: #B4382F;
    --red-dark: #b52525;
    --red-light: rgba(214, 48, 49, 0.08);
    --text: #111111;
    --text-dim: #555555;
    --text-muted: #999999;
    --green: #27ae60;
    --green-light: rgba(39, 174, 96, 0.1);
    --yellow: #e67e22;
    --yellow-light: rgba(230, 126, 34, 0.1);
    --radius: 12px;
    --transition: 0.2s ease;
}




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

html { margin: 0 !important; padding: 0 !important; overflow-x: hidden; }

body {
    font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0 !important;
    padding-top: 0 !important;
    -webkit-font-smoothing: antialiased;
}

/* ── Body text links ── */
a:not(.nav-logo):not(.nav-link):not(.hero-cta):not(.footer-link):not(.contribute-btn) {
    color: #888888;
    font-weight: 600;
    text-decoration: none;
}
a:not(.nav-logo):not(.nav-link):not(.hero-cta):not(.footer-link):not(.contribute-btn):hover {
    color: #555555;
}


/* ── Hero ── */
.hero {
    min-height: unset;
    padding-top: 40px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg);
}

.hero-bg-accent {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--red-light) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    padding: 60px 40px 12px;
    max-width: 1000px;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 300px;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    border-radius: 8px;
}

.hero-eyebrow {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 44px;
    font-weight: 400;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 52px;
}

.stat-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 12px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.stat-card:hover {
    border-color: var(--red);
    box-shadow: 0 4px 20px rgba(214, 48, 49, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.hero-cta {
    display: inline-block;
    background: var(--red);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    padding: 16px 40px;
    border-radius: 100px;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 16px rgba(214, 48, 49, 0.25);
}

.hero-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(214, 48, 49, 0.35);
}

/* ── Sections ── */
section { padding: 72px 0; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 0 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

/* ── Map ── */
.map-section {
    position: relative;
    padding: 0;
    background: var(--bg);
}

#map {
    height: 70vh;
    width: 100%;
}

.map-legend-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.92);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}
.map-legend-label {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 4px;
}
.map-legend-bar .legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.legend-dot.dot-cheap { background: #6fcf97; }
.legend-dot.dot-mid { background: #f5c842; }
.legend-dot.dot-expensive { background: #eb5757; }

/* City Table search */
.table-search-wrap {
    margin-bottom: 20px;
}
.table-search-wrap .table-search-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 8px;
}
.table-search-wrap #table-search {
    flex: 0 0 auto;
    width: 240px;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition);
    box-sizing: border-box;
}
.table-search-wrap #table-search:focus { border-color: var(--red); }
.table-search-wrap #table-search::placeholder { color: var(--text-muted); }
.search-btn {
    padding: 11px 18px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}
.search-btn:hover { opacity: 0.85; }
.map-legend-bar > span:not(.legend-dot):not(.map-legend-label) {
    margin-right: 6px;
}
.map-legend-bar > * {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-controls select {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
}

.map-controls select:focus { border-color: var(--red); }

/* Leaflet popup */
.leaflet-popup-content-wrapper {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    color: var(--text);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content { margin: 0; min-width: 200px; }
.leaflet-popup-tip { background: #ffffff; }

.popup-inner { padding: 16px; }

.popup-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.popup-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
}

.popup-price small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-dim);
}

.popup-address {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.popup-rating {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.popup-link {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--red);
    text-decoration: none;
    font-weight: 500;
}

.popup-link:hover { text-decoration: underline; }

/* ── Table ── */
.table-section {
    background: var(--bg-alt);
    padding: 72px 0;
}

.table-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color var(--transition);
}

th.sortable:hover { color: var(--red); }

th.sortable .sort-icon {
    opacity: 0.4;
    font-size: 0.65rem;
    margin-left: 4px;
}

th.sorted .sort-icon { opacity: 1; color: var(--red); }
th.sorted.desc .sort-icon { opacity: 1; color: var(--red); }

/* ── WARM BANDED TABLE + FADE-IN ── */

@keyframes rowFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Banded rows — warm alternating */
tbody tr {
    border-bottom: 1px solid #f0ebe0;
    transition: background var(--transition), opacity 0.4s ease, transform 0.4s ease;
    animation: rowFadeIn 0.35s ease-out both;
}



tbody tr:hover {
    background: #f0f0ee !important;
}

/* Staggered delays per row */
tbody tr:nth-child(1)  { animation-delay: 0ms; }
tbody tr:nth-child(2)  { animation-delay: 30ms; }
tbody tr:nth-child(3)  { animation-delay: 60ms; }
tbody tr:nth-child(4)  { animation-delay: 90ms; }
tbody tr:nth-child(5)  { animation-delay: 120ms; }
tbody tr:nth-child(6)  { animation-delay: 150ms; }
tbody tr:nth-child(7)  { animation-delay: 180ms; }
tbody tr:nth-child(8)  { animation-delay: 210ms; }
tbody tr:nth-child(9)  { animation-delay: 240ms; }
tbody tr:nth-child(10) { animation-delay: 270ms; }
tbody tr:nth-child(n+11) { animation-delay: 300ms; }


tbody tr:last-child { border-bottom: none; }

td {
    padding: 14px 16px;
    color: var(--text-dim);
    vertical-align: middle;
    text-align: center;
}

td.city-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
    text-align: left;
}

a.city-link {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

a.city-link:hover {
    text-decoration: underline;
    color: #B4382F;
}

td.price {
    font-weight: 700;
    color: var(--red);
    font-variant-numeric: tabular-nums;
}

td.price-none {
    color: var(--text-muted);
    font-style: italic;
}

.status-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--surface2);
    color: var(--text-muted);
}

.status-badge.pending { background: var(--red-light); color: var(--red-dark); }
.status-badge.done { background: var(--green-light); color: var(--green); }

.table-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── FAQ ── */
.faq-section {
    background: var(--bg);
    padding: 80px 0;
}

.faq-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 40px;
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-item {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:hover {
    border-color: var(--red);
    box-shadow: 0 4px 16px rgba(214, 48, 49, 0.08);
}

.faq-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
    background: var(--text);
    padding: 20px 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-brand {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    white-space: nowrap;
}
.footer-copy {
    color: rgba(255,255,255,0.4);
}

/* ── Floating Contribute Button ── */
.contribute-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--red);
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 14px 22px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(214, 48, 49, 0.35);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    z-index: 1000;
}

.contribute-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(214, 48, 49, 0.45);
}

.contribute-btn svg { width: 18px; height: 18px; }

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 24px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    max-width: 440px;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.25s ease;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--surface);
    border: none;
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), color var(--transition);
}

.modal-close:hover { background: var(--surface2); color: var(--text); }

.modal h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 28px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}

.form-group input:focus { border-color: var(--red); }
.form-group input::placeholder { color: var(--text-muted); }
.form-group select {
    width: 100%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.form-group select:focus { border-color: var(--red); }

/* ── GPS Button ── */
.gps-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
    vertical-align: middle;
    margin-left: 6px;
}
.gps-btn:hover { color: var(--red); background: var(--red-light); }
.gps-btn.loading { color: var(--red); animation: gps-pulse 1s infinite; }
@keyframes gps-pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* ── Nearby Shops List ── */
.nearby-shops {
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
}
.nearby-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.nearby-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
    font-size: 0.88rem;
    color: var(--text);
}
.nearby-item:hover { background: var(--surface); }
.nearby-dist {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 32px;
    text-align: right;
    flex-shrink: 0;
}
.nearby-name { font-weight: 600; }
.nearby-addr { font-size: 0.78rem; color: var(--text-dim); margin-top: 1px; }

.btn-primary {
    width: 100%;
    background: var(--red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    padding: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 8px;
}

.btn-primary:hover { background: var(--red-dark); }

.form-success {
    display: none;
    text-align: center;
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    padding: 12px;
    background: var(--green-light);
    border-radius: var(--radius);
}

.form-success.show { display: block; }


/* ── Navigation ── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    z-index: 2000;
    height: 60px;
    transition: top 0.3s ease;
}
.navbar.visible {
    top: 0;
}
.nav-logo {
    font-weight: 700;
    font-size: 1.3rem;
    /* 1. Red fill */
    color: #B4382F;
    /* 2. White outline (paint-order: stroke drawn BEHIND fill) */
    -webkit-text-stroke: 2px #ffffff;
    text-stroke: 2px #ffffff;
    paint-order: stroke fill;
    -webkit-paint-order: stroke fill;
    /* 3. Sharp 1px red outer outline via stacked text-shadow */
    text-shadow:
        /* top */     0 -1px 0 #B4382F,
        /* bottom */  0  1px 0 #B4382F,
        /* left */   -1px  0 0 #B4382F,
        /* right */   1px  0 0 #B4382F,
        /* top-left */    -1px -1px 0 #B4382F,
        /* top-right */    1px -1px 0 #B4382F,
        /* bottom-left */ -1px  1px 0 #B4382F,
        /* bottom-right */  1px  1px 0 #B4382F;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 3px;
}
.nav-logo-emoji {
    font-size: 1.5em;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: none !important;
    filter: none !important;
    color: inherit !important;
    text-transform: none !important;
    vertical-align: middle;
}
.nav-beta {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.35em;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #B4382F;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: none !important;
    paint-order: unset;
    -webkit-paint-order: unset;
    vertical-align: super;
    margin-left: 5px;
    border: 1px solid #B4382F;
    border-radius: 3px;
    padding: 0px 4px;
    line-height: 1.6;
}
.menu-toggle {
    font-size: 2rem;
    cursor: pointer;
    display: none;
    z-index: 2100;
    color: #111111;
    line-height: 1;
    padding: 4px;
    background: none;
    border: none;
}
.nav-list {
    padding: 0;
    display: flex;
    list-style: none;
    gap: 1.5rem;
    white-space: nowrap;
}
.nav-list li a {
    color: #444444;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    letter-spacing: 0.3px;
}
.nav-list li a:hover { color: #B4382F; }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-link:hover { color: #ffffff; text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 900px) and (min-width: 641px) {
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .menu-toggle { display: block; }
    .nav-list {
        display: none;
        flex-direction: column;
        background: #ffffff;
        position: absolute;
        top: 60px;
        right: 0;
        width: 220px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12);
        white-space: normal;
        gap: 0;
        padding: 8px 0;
    }
    .nav-list.active { display: flex; }
    .nav-list li a {
        display: block;
        padding: 12px 20px;
        text-align: right;
        color: #333333;
        font-size: 1rem;
    }
    .nav-list li a:hover { color: #B4382F; background: #fafafa; }
    .hero-stats { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .section-header { flex-direction: column; align-items: center; gap: 12px; }
    .contribute-btn { bottom: 20px; right: 20px; padding: 12px 18px; }
    .modal { padding: 28px 24px; }
}

/* ── Dashboard Dropdown ── */
.has-dropdown { position: relative; }

.dropdown-toggle { cursor: pointer; user-select: none; }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    padding: 6px 0;
    z-index: 1000;
    white-space: nowrap;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    padding: 10px 16px 4px;
    pointer-events: none;
}

.dropdown-divider {
    border-top: 1px solid #eee;
    margin: 4px 0;
}

.dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    color: #333;
    transition: background 0.15s;
}

.dropdown li a:hover {
    background: #f5f5f5;
    color: #B4382F;
}


/* Mobile dropdown */
@media (max-width: 640px) {
    .has-dropdown { position: static; }
    .has-dropdown:hover .dropdown { display: none; }
    .has-dropdown.open .dropdown { display: block; position: static; box-shadow: none; border-left: 3px solid #B4382F; margin-left: 8px; border-radius: 0; }
    .has-dropdown.open .dropdown-toggle { color: #B4382F; }
    .dropdown-toggle::after { content: ' ▾'; font-size: 0.7em; }
    .has-dropdown.open .dropdown-toggle::after { content: ' ▴'; }
    .dropdown-header { padding: 8px 16px 2px; }
    .dropdown-divider { margin: 2px 0; }
    .dropdown li a { padding: 8px 16px; font-size: 0.9rem; }
}

/* ── SCROLL ANIMATIONS ── */

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.7); }
    to   { opacity: 1; transform: scale(1); }
}

/* Base state for animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

/* Visible state — triggered by JS */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stat cards — individual delays */
.stat-card.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stat-card.animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stat-card.animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stat-card.animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stat-card.animate-on-scroll:nth-child(5) { transition-delay: 320ms; }

/* FAQ items — staggered slide-in */
.faq-item.animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.faq-item.animate-on-scroll:nth-child(2) { transition-delay: 100ms; }
.faq-item.animate-on-scroll:nth-child(3) { transition-delay: 200ms; }
.faq-item.animate-on-scroll:nth-child(4) { transition-delay: 300ms; }
.faq-item.animate-on-scroll:nth-child(5) { transition-delay: 400ms; }

/* Counter animation for stat values */
.stat-value.counted {
    animation: countUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Leaflet z-index fix — keep below navbar ── */
.leaflet-container { z-index: 1; }
.leaflet-control-attribution { z-index: 10 !important; }
.leaflet-control { z-index: 100 !important; }
.leaflet-overlay-pane { z-index: 200; }

/* ── Fade-in Animation ── */
/* ── Stats Section ── */
.stats-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}
.stats-section.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
.stats-headline {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: center;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
}
.stats-section.revealed .stats-headline {
    opacity: 1;
}

/* ── Scroll Hint ── */
.scroll-hint {
    display: none;
    text-align: center;
    margin: 60px auto 0;
    cursor: pointer;
    color: var(--red);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    width: 64px;
}
.scroll-hint:hover { opacity: 1; }
.scroll-hint svg {
    width: 64px;
    height: 64px;
    animation: bounceDown 1.8s ease-in-out infinite;
}
@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Mobile (< 768px) ── */
@media (max-width: 767px) {
    .scroll-hint {
        display: block;
    }
    .stats-section {
        opacity: 0;
        transform: translateY(30px);
        pointer-events: none;
    }
}

/* ── Desktop (>= 768px) ── */
@media (min-width: 768px) {
    .stats-section {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    .scroll-hint {
        display: none !important;
    }
}

/* ── City table: avg price column wider ── */
td.city-avg {
    min-width: 80px;
    white-space: nowrap;
}

.animate-in {
    opacity: 0;
    transition: opacity 0.4s ease-out;
}
.animate-in.fade-visible {
    opacity: 1;
}
