/* --- TEMEL DEĞİŞKENLER VE AYARLAR --- */
:root {
    --accent: #e74c3c;
    --gold: #FFD700;
    --bg-panel: rgba(255, 255, 255, 0.75);
    --glass: rgba(255, 255, 255, 0.65);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0; 
    padding: 0;
    font-family: 'Segoe UI', sans-serif; 
    background-color: #a2b5c4; 
    overflow: hidden;
}

#map { 
    height: 85vh; 
    max-width: 1200px;
    width: 100%; 
    margin: 0 auto; 
    border-radius: 16px; 
    box-shadow: var(--shadow); 
    border: 4px solid #fff; 
    position: relative; 
    overflow: hidden;
    background-color: transparent;
}

/* --- ARAYÜZ (UI) PANELLERİ VE ARAMA --- */
.search-container {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
}

.search-container input {
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    box-shadow: var(--shadow);
    width: 220px;
    outline: none;
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
}

.stats-container {
    position: fixed;
    top: 80px;
    left: 15px;
    z-index: 1000;
    background: var(--bg-panel);
    padding: 15px;
    border-radius: 12px;
    width: 180px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.stat-group {
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
}

.stat-label {
    font-size: 10px;
    color: #444;
    text-transform: uppercase;
    font-weight: bold;
}

.stat-value {
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.ui-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bg-panel);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1000;
    border-left: 5px solid var(--accent);
    backdrop-filter: blur(12px);
}

.ui-panel h1 {
    margin: 0;
    font-size: 14px;
    color: #2c3e50;
}

#update-info {
    font-size: 11px;
    color: #555;
}

.forum-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1100;
    background: rgba(231, 76, 60, 0.85);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    backdrop-filter: blur(5px);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

/* --- HARİTA İKONLARI VE BALONCUKLAR --- */
.weather-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px !important;
    cursor: pointer;
}

.temp-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    padding: 4px 6px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

.wind-dir {
    font-size: 14px;
    color: #2c3e50;
    font-weight: bold;
    margin-top: 2px;
}

.gold-node .temp-badge {
    background: var(--gold) !important;
    border: 2px solid #b8860b !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.gold-label {
    font-size: 10px;
    font-weight: bold;
    color: #b8860b;
    text-shadow: 1px 1px 0 #fff;
    margin-top: 2px;
}

.district-badge {
    padding: 2px 5px;
    font-size: 11px;
    border: 1px dashed #666;
}

.district-label {
    font-size: 10px;
    font-weight: bold;
    color: #34495e;
    background: rgba(255, 255, 255, 0.85);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
}

/* --- LEAFLET POPUP TASARIMI --- */
.leaflet-popup-content-wrapper {
    background: var(--glass) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #000 !important;
    border-radius: 15px !important;
    box-shadow: var(--shadow) !important;
}

.leaflet-popup-tip {
    background: var(--glass) !important;
}

/* --- MOBİL UYUM (RESPONSIVE) --- */
@media (max-width: 768px) {
    .forum-btn {
        bottom: 80px;
        left: 10px;
        right: 10px;
        justify-content: center;
    }

    .stats-container {
        top: auto;
        bottom: 140px;
        left: 10px;
        width: calc(100% - 40px);
        display: flex;
    }

    .ui-panel {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}

/* --- GENEL KAYDIRMA ÇUBUĞU --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- MODEL GÖRÜNTÜLEYİCİ ÖZEL SCROLLBAR (HOVER EFEKTİ) --- */
#model-hour-sidebar {
    /* Başlangıçta kaydırma çubuğunu gizle */
    scrollbar-width: none; /* Firefox için */
}

#model-hour-sidebar::-webkit-scrollbar {
    display: none; /* Chrome/Safari için başlangıçta gizle */
}

/* Fare sidebar üzerine geldiğinde kaydırma çubuğunu göster */
#model-hour-sidebar:hover {
    scrollbar-width: thin;
    scrollbar-color: #9ca3af transparent;
}

#model-hour-sidebar:hover::-webkit-scrollbar {
    display: block;
    width: 6px;
}

#model-hour-sidebar:hover::-webkit-scrollbar-track {
    background: transparent;
}

#model-hour-sidebar:hover::-webkit-scrollbar-thumb {
    background-color: #9ca3af;
    border-radius: 10px;
}

#model-hour-sidebar:hover::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}