:root {
    --bg: #0f172a;
    --sidebar-bg: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --accent: #6366f1;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.sidebar {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 380px;
    max-height: calc(100vh - 48px);
    background: var(--sidebar-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    z-index: 1000;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.selector-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

select {
    width: 100%;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: white;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
}

select:hover {
    border-color: var(--accent);
}

.series-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.series-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.locations-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 4px;
}

.location-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.location-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.location-item h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.location-item span {
    font-size: 12px;
    color: var(--text-muted);
}

/* Custom Popup Styles */
.leaflet-popup-content-wrapper {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    color: white !important;
    border-radius: 16px !important;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: 280px !important;
}

.popup-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popup-text {
    padding: 16px;
}

.popup-text h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.popup-text p {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
