/* ==========================================================
   ATATÜRK ATLASI — main.css
   Base layout, glass panels, filter pills, brand badge,
   sidebar panel, scrollbar utilities
   ========================================================== */

/* --- RESET & BASE --- */
body, html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    background: #f8fafc;
}

/* --- MAP FULL SCREEN --- */
#map {
    height: 100%;
    width: 100%;
    z-index: 0;
    background: #f1f5f9;
}

/* --- FLOATING UI LAYER --- */
.ui-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 400;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- GLASS PANEL BASE --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    pointer-events: auto;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- TOP BAR WRAPPER --- */
.top-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
}

/* --- BRAND BADGE --- */
.brand-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    width: fit-content;
}

.brand-logo {
    width: 40px; height: 40px;
    background: #dc2626;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

.brand-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    line-height: 1;
    color: #0f172a;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.brand-text span {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 800;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
}

/* --- FILTER PILLS --- */
.filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-container::-webkit-scrollbar { display: none; }

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.filter-pill:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0f172a;
    transform: translateY(-1px);
}

/* Active states per category */
.filter-pill.active { color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-color: transparent; }
.filter-pill.active[data-cat="all"]      { background: #1e293b; }
.filter-pill.active[data-cat="youth"]    { background: #10b981; }
.filter-pill.active[data-cat="war"]      { background: #3b82f6; }
.filter-pill.active[data-cat="struggle"] { background: #f59e0b; }
.filter-pill.active[data-cat="republic"] { background: #ef4444; }

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* --- DURAKLAR NAV (dropdown — haritayı kaydırmaz) --- */
.stops-nav {
    position: relative;
    width: 320px;
    max-width: calc(100vw - 48px);
    pointer-events: auto;
    z-index: 460;
}

.stops-nav-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 16px;
    cursor: pointer;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.85);
}
.stops-nav-toggle:hover { background: rgba(255, 255, 255, 0.96); }
.stops-nav-toggle-label {
    flex: 1;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.stops-nav-chevron {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #64748b;
}
.stops-nav.open .stops-nav-chevron { transform: rotate(180deg); }

.stops-nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: max-height 0.38s cubic-bezier(0.25, 0.8, 0.25, 1),
                opacity 0.25s ease,
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.stops-nav.open .stops-nav-panel {
    max-height: min(62vh, 540px);
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Sabit kalan Spotify banner */
.stops-nav-spotify {
    position: relative;
    display: block;
    flex-shrink: 0;
    height: 84px;
    overflow: hidden;
}
.stops-nav-spotify-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.12) 60%, transparent 100%);
}

.stops-nav-head {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

/* Scroll edilebilir liste */
.stops-nav-list {
    flex: 1 1 auto;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.35);
}

/* --- CUSTOM SCROLLBAR --- */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .ui-layer { padding: 16px; gap: 12px; }
    .top-bar-wrapper { gap: 10px; }
    .brand-badge { width: fit-content; }
    .filter-container { width: 100%; padding-right: 20px; }
    .stops-nav { width: 100%; max-width: 100%; }
    .stops-nav.open .stops-nav-panel { max-height: min(55vh, 460px); }
}

/* ── DB Zone label ───────────────────────────────────────── */
.dz-label {
    display: inline-block;
    transform: translateX(-50%);
    cursor: default;
    user-select: none;
}

/* ── DB Zone tooltip ─────────────────────────────────────── */
.db-zone-tooltip {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(148, 163, 184, 0.3) !important;
    color: #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}
.db-zone-tooltip::before { display: none !important; }
