:root {
    --bg-color: #0d0d0d;
    --panel-bg: rgba(25, 25, 25, 0.8);
    --accent-color: #00f2ff;
    --text-color: #ffffff;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --glass-border: rgba(255, 255, 255, 0.1);
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-color);
    font-family: var(--font-main);
    color: var(--text-color);
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

.overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    padding: 24px;
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    max-width: 320px;
}

.overlay h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00f2ff 0%, #0072ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.overlay p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

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

.route-selector {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.route-selector label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.route-selector select {
    width: 100%;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.route-selector select:focus {
    border-color: #00f2fe;
}

.route-comparison {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.8rem;
    letter-spacing: 0.1em;
}

.route-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid transparent;
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 0.6rem;
    transition: all 0.2s;
    cursor: pointer;
}

.route-card:hover,
.route-card.active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.route-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.route-card .card-stats {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.route-details {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: #00f2fe;
    font-weight: 600;
}

.stat-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
}

.legend {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.legend-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.gradient-bar {
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #2ECC71, #F1C40F, #E74C3C);
    border-radius: 4px;
    margin-bottom: 8px;
}

.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.controls-hint {
    position: absolute;
    bottom: 20px;
    right: 20px;
    padding: 8px 16px;
    background: var(--panel-bg);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}