/* i18n rules — keep in sync with base.html inline block */
.i18n-en { display: none; }

/* Glassmorphism */
.glass-nav {
    background: rgba(251, 249, 248, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Ambient shadow */
.ambient-shadow {
    box-shadow: 0 4px 60px rgba(27, 28, 28, 0.05);
}

/* Ghost border */
.ghost-border {
    box-shadow: inset 0 0 0 1px rgba(222, 192, 179, 0.15);
}

/* Line-trace progress bar */
.line-trace {
    height: 2px;
    background: #dec0b3;
    position: relative;
}
.line-trace-active {
    height: 2px;
    background: linear-gradient(90deg, #f67a32 0%, #9f4200 100%);
    box-shadow: 0 0 12px rgba(246, 122, 50, 0.4);
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Time breakdown bar */
.time-bar {
    display: flex;
    width: 100%;
    height: 28px;
    border-radius: 9999px;
    overflow: hidden;
}
.time-bar > div {
    min-width: 2px;
}
.time-bar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    font-size: 0.8rem;
    color: #5f5e5e;
}
.time-bar-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 0.2rem;
}

/* Hotspot items — JS renders these */
.hotspot-item {
    display: block;
    width: 100%;
    text-align: left;
    background: #ffffff;
    padding: 0.75rem 0.8rem;
    border: none;
    border-left: 4px solid #d0d0d0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 20px rgba(27, 28, 28, 0.04);
}
.hotspot-item:hover {
    background: #fbf9f8;
}
.hotspot-item.is-active {
    box-shadow: 0 0 0 2px rgba(159, 66, 0, 0.15), 0 4px 20px rgba(27, 28, 28, 0.06);
    background: #f6f3f2;
}
.hotspot-item:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 122, 50, 0.25);
}
.hotspot-item--traffic_light { border-left-color: #d64545; }
.hotspot-item--combined { border-left-color: #e2722c; }
.hotspot-item--tram_stop { border-left-color: #3f9f67; }
.hotspot-item--bottleneck { border-left-color: #2d6fae; }
.hotspot-item-top {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}
.hotspot-item-rank {
    color: #757575;
    font-size: 0.76rem;
    font-weight: 700;
}
.hotspot-item-cat {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.68rem;
    color: #5a5a5a;
    font-weight: 700;
}
.hotspot-item-wait {
    margin-left: auto;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1b1c1c;
}
.hotspot-item-meta {
    margin-top: 0.28rem;
    font-size: 0.76rem;
    color: #5f5e5e;
    line-height: 1.3;
}
.hotspot-item-lines {
    margin-top: 0.24rem;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #444;
}
.hotspots-empty {
    margin: 0.4rem 0;
    color: #777;
    font-size: 0.88rem;
}
.hotspots-list-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Leaflet popup overrides */
.hotspot-popup h3 {
    margin: 0 0 0.1rem;
    text-transform: capitalize;
}
.hotspot-popup p {
    margin: 0.35rem 0;
    font-size: 0.85rem;
}
.hotspot-popup ul {
    margin: 0.2rem 0 0.5rem;
    padding-left: 1rem;
}
.hotspot-popup li {
    margin: 0.2rem 0;
    font-size: 0.82rem;
}
.hotspot-popup-coord {
    color: #5f5e5e;
    font-size: 0.75rem !important;
}
.hotspot-popup-sub {
    color: #5f5e5e;
    font-size: 0.75rem;
}

/* Leaflet container — font + keep below fixed navbar */
.leaflet-container {
    font-family: Inter, -apple-system, sans-serif;
    z-index: 0;
}

/* Custom scrollbar */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Category toggle buttons */
.hotspot-cat-btn {
    background: rgba(27, 28, 28, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.hotspot-cat-btn.is-active {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.hotspot-cat-btn:not(.is-active) {
    opacity: 0.4;
}
.hotspot-cat-btn:not(.is-active) .cat-icon {
    filter: grayscale(1);
}
.hotspot-cat-btn:not(.is-active) .cat-label {
    color: #999;
}
.hotspot-cat-btn:not(.is-active) .cat-desc {
    color: #bbb;
}
.hotspot-cat-btn:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

/* Time band toggle buttons */
.hotspot-band-btn {
    color: #5f5e5e;
}
.hotspot-band-btn .band-icon {
    color: #8b7266;
}
.hotspot-band-btn.is-active {
    background: #ffffff;
    color: #1b1c1c;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    ring: 1px solid rgba(0, 0, 0, 0.05);
}
.hotspot-band-btn.is-active .band-icon {
    color: #9f4200;
}
.hotspot-band-btn:hover:not(.is-active) {
    color: #1b1c1c;
}

/* Commute select styling */
.commute-select {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(222, 192, 179, 0.3);
    border-radius: 0.75rem;
    background: #ffffff;
    color: #1b1c1c;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    transition: all 0.15s;
}
.commute-select:disabled {
    border-color: #e4e2e1;
    color: #999;
    cursor: default;
}
.commute-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 122, 50, 0.15);
    border-color: #f67a32;
}
