/* Snow Trip Planner — Futurecast-First Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #e0e0e0;
    height: 100vh;
    overflow: hidden;
}

/* ─── Top nav ─── */
.top-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: rgba(15, 52, 96, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    z-index: 1000;
    position: relative;
}

.nav-back {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    transition: color 0.2s, border-color 0.2s;
}

.nav-back:hover {
    color: #fff;
    border-color: #3b82f6;
}

.nav-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.nav-badge {
    font-size: 0.75rem;
    color: #94a3b8;
    background: rgba(255,255,255,0.08);
    padding: 3px 8px;
    border-radius: 10px;
}

.unit-toggle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.unit-toggle:hover {
    color: #fff;
    border-color: #3b82f6;
}

.unit-toggle.imperial {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    color: #60a5fa;
}

.nav-updated {
    font-size: 0.65rem;
    color: #64748b;
    display: none;
}

@media (min-width: 769px) {
    .nav-updated { display: inline; }
}

/* ─── Layout ─── */
.planner-layout {
    display: flex;
    height: calc(100vh - 45px);
}

/* ─── Side panel ─── */
.side-panel {
    width: 380px;
    min-width: 380px;
    background: linear-gradient(180deg, #16213e 0%, #1a1a2e 100%);
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.08);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.panel-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
}

/* ─── Search ─── */
.search-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #e0e0e0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #3b82f6;
}

.search-input::placeholder {
    color: #64748b;
}

.search-results {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.search-results:empty {
    display: none;
}

.search-results li {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.search-results li:hover {
    background: rgba(255,255,255,0.1);
}

.search-results .result-region {
    font-size: 0.7rem;
    color: #64748b;
}

.search-more {
    color: #64748b;
    font-size: 0.8rem;
    font-style: italic;
    cursor: default !important;
    justify-content: center !important;
}

.search-more:hover {
    background: none !important;
}

/* ─── Month selector ─── */
.month-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.month-nav {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.month-nav:hover {
    color: #fff;
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.month-display {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    min-width: 160px;
    text-align: center;
}

/* ─── ENSO badge ─── */
.enso-badge {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    margin: 0 auto;
}

.enso-la_nina {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.enso-el_nino {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.enso-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* ─── View toggle (Regions / Heatmap) ─── */
.view-toggle {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 3px;
}

.view-btn {
    flex: 1;
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    color: #94a3b8;
}

.view-btn.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ─── Station futurecast bars ─── */
.station-futurecast {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.fc-month-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.fc-month-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fc-week-bars {
    display: flex;
    gap: 3px;
    align-items: flex-end;
    height: 80px;
}

.fc-week-bar {
    width: 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    cursor: default;
}

.fc-bar-fill {
    width: 100%;
    border-radius: 3px 3px 0 0;
    min-height: 2px;
    transition: height 0.3s;
}

.fc-bar-score {
    font-size: 0.55rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1;
}

/* ─── Heatmap ─── */
.heatmap-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
}

.heatmap-table {
    border-collapse: collapse;
    font-size: 0.7rem;
    width: 100%;
    min-width: 300px;
}

.heatmap-table th {
    color: #64748b;
    font-weight: 600;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 3px 2px;
    text-align: center;
}

.hm-month {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.heatmap-row {
    cursor: pointer;
    transition: background 0.15s;
}

.heatmap-row:hover {
    background: rgba(255,255,255,0.06);
}

.hm-name {
    color: #cbd5e1;
    padding: 3px 6px;
    font-size: 0.7rem;
    white-space: nowrap;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.hm-cell {
    text-align: center;
    padding: 3px 1px;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    border-radius: 2px;
    min-width: 20px;
}

/* ─── Collapsible sections ─── */
.collapsible-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    user-select: none;
    transition: color 0.2s;
}

.collapsible-header:hover {
    color: #94a3b8;
}

.collapse-icon {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 400;
    width: 18px;
    text-align: center;
}

.collapsible-body {
    padding-top: 8px;
}

/* ─── Plan trip button ─── */
.plan-trip-btn {
    width: 100%;
    padding: 10px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.plan-trip-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #93bbfc;
}

.plan-trip-btn.btn-applied {
    background: rgba(34, 197, 94, 0.25);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

/* ─── Date picker ─── */
.date-row {
    display: flex;
    gap: 10px;
}

.date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.date-label {
    font-size: 0.7rem;
    color: #94a3b8;
}

.date-input {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 10px;
    color: #e0e0e0;
    font-size: 0.85rem;
    outline: none;
    color-scheme: dark;
}

.date-input:focus {
    border-color: #3b82f6;
}

.date-warning {
    font-size: 0.75rem;
    color: #f59e0b;
    margin-top: 2px;
}

.date-warning:empty {
    display: none;
}

/* ─── Station detail ─── */
.detail-close {
    display: block;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 auto 10px;
    transition: color 0.2s, border-color 0.2s;
}

.detail-close:hover {
    color: #fff;
    border-color: #3b82f6;
}

.detail-header {
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.detail-header h2 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 4px;
}

.detail-region {
    font-size: 0.8rem;
    color: #94a3b8;
}

.snow-score-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.detail-subsection {
    margin-top: 14px;
}

.detail-subsection h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 8px;
}

/* ─── Forecast strip (16-day live weather) ─── */
.forecast-strip {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.fc-day {
    flex: 0 0 auto;
    width: 70px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s;
}

.fc-day.in-range {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.12);
}

.fc-day .fc-date {
    font-size: 0.65rem;
    color: #94a3b8;
}

.fc-day .fc-icon {
    font-size: 1.3rem;
    margin: 4px 0;
}

.fc-day .fc-snow {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
}

.fc-day .fc-temp {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 2px;
}

.fc-day .fc-wind {
    font-size: 0.55rem;
    color: #64748b;
    margin-top: 1px;
}

/* ─── History card ─── */
.history-card {
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 12px;
}

.history-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
}

.history-row .hist-label {
    color: #94a3b8;
}

.history-row .hist-value {
    color: #e0e0e0;
    font-weight: 500;
}

/* ─── Recent observations ─── */
.recent-obs table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.recent-obs th {
    color: #64748b;
    font-weight: 600;
    text-align: left;
    padding: 4px 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-obs td {
    padding: 4px 6px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #cbd5e1;
}

/* ─── Nearby list ─── */
.nearby-list {
    list-style: none;
}

.nearby-list li {
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.nearby-list li:hover {
    background: rgba(255,255,255,0.08);
}

.nearby-dist {
    font-size: 0.7rem;
    color: #64748b;
}

/* ─── Data source badge ─── */
.data-source-badge {
    display: inline-block;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
}

.data-source-badge:empty { display: none; }

.data-source-badge.source-snotel {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.data-source-badge.source-noaa {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.data-source-badge.source-open-meteo {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ─── Region list ─── */
.region-list {
    list-style: none;
}

.region-group-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 700;
    padding: 10px 12px 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: color 0.2s;
}

.region-group-header:first-child {
    padding-top: 0;
}

.region-group-header:hover {
    color: #94a3b8;
}

.region-group-header .group-toggle {
    font-size: 0.65rem;
    color: #475569;
    transition: transform 0.2s;
}

.region-group-header.collapsed .group-toggle {
    transform: rotate(-90deg);
}

.region-group-items {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.region-group-items.collapsed {
    max-height: 0 !important;
}

.region-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.15s;
}

.region-list li:hover {
    background: rgba(255,255,255,0.08);
}

.region-count {
    font-size: 0.7rem;
    color: #64748b;
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 10px;
}

/* ─── Marker clusters (dark theme override) ─── */
.marker-cluster {
    background: rgba(22, 33, 62, 0.8) !important;
    border: 2px solid rgba(59, 130, 246, 0.5) !important;
}

.marker-cluster div {
    background: rgba(59, 130, 246, 0.3) !important;
    color: #e0e0e0 !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.marker-cluster-small {
    background: rgba(22, 33, 62, 0.8) !important;
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.marker-cluster-small div {
    background: rgba(99, 102, 241, 0.3) !important;
}

.marker-cluster-medium {
    background: rgba(22, 33, 62, 0.8) !important;
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.marker-cluster-medium div {
    background: rgba(59, 130, 246, 0.3) !important;
}

.marker-cluster-large {
    background: rgba(22, 33, 62, 0.8) !important;
    border-color: rgba(34, 197, 94, 0.5) !important;
}

.marker-cluster-large div {
    background: rgba(34, 197, 94, 0.3) !important;
}

/* ─── Map ─── */
.map-container {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* ─── Map legend ─── */
.map-legend {
    position: absolute;
    bottom: 30px;
    right: 10px;
    z-index: 1000;
    background: rgba(22, 33, 62, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.7rem;
    color: #cbd5e1;
    line-height: 1.8;
}

.legend-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
    font-size: 0.72rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* ─── Leaflet popup override ─── */
.leaflet-popup-content-wrapper {
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    color: #e0e0e0;
}

.leaflet-popup-tip {
    background: rgba(22, 33, 62, 0.95);
}

.leaflet-popup-content {
    margin: 10px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.leaflet-popup-content .popup-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.leaflet-popup-content .popup-region {
    color: #94a3b8;
    font-size: 0.75rem;
}

.leaflet-popup-content .popup-snow {
    margin-top: 6px;
    font-size: 0.9rem;
}

.popup-link {
    display: inline-block;
    margin-top: 6px;
    color: #3b82f6;
    cursor: pointer;
    font-size: 0.8rem;
}

.popup-link:hover {
    text-decoration: underline;
}

/* ─── Favorite star ─── */
.fav-star {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #64748b;
    vertical-align: middle;
    margin-left: 6px;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s, transform 0.15s;
}

.fav-star:hover {
    color: #f59e0b;
    transform: scale(1.2);
}

.fav-star.starred {
    color: #f59e0b;
}

/* ─── Favorites list ─── */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.favorites-empty {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    padding: 16px 0;
    text-align: center;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.fav-item:hover {
    background: rgba(255,255,255,0.08);
}

.fav-item-name {
    flex: 1;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.fav-item-score {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 28px;
    text-align: center;
}

.fav-item-remove {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 2px 4px;
    line-height: 1;
    transition: color 0.2s;
}

.fav-item-remove:hover {
    color: #ef4444;
}

/* ─── Never Summer button ─── */
.neversummer-btn {
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(234, 179, 8, 0.15));
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    color: #fbbf24;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.neversummer-btn:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(234, 179, 8, 0.25));
    border-color: #f59e0b;
    color: #fde68a;
}

/* ─── Never Summer panel ─── */
.ns-back-row {
    margin-bottom: 8px;
}

.ns-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ns-stat {
    background: rgba(255,255,255,0.06);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    color: #94a3b8;
}

.ns-stat strong {
    color: #e0e0e0;
}

.ns-coverage-bar {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ns-coverage-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #22c55e);
    border-radius: 2px;
    transition: width 0.6s ease;
}

.ns-coverage-label {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 4px;
}

/* Timeline */
.ns-timeline {
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 14px;
}

.ns-timeline-grid {
    display: flex;
    gap: 2px;
    min-width: max-content;
}

.ns-month-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ns-month-label {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.ns-week-cell {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    transition: transform 0.1s;
    position: relative;
}

.ns-week-cell:hover {
    transform: scale(1.3);
    z-index: 1;
}

.ns-week-cell.ns-empty-cell {
    background: rgba(255,255,255,0.05);
    color: #475569;
    cursor: default;
}

.ns-week-cell.ns-empty-cell:hover {
    transform: none;
}

/* Itinerary */
.ns-itinerary {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ns-itinerary-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
}

.ns-leg {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}

.ns-leg:hover {
    background: rgba(255,255,255,0.08);
}

.ns-leg-num {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 700;
    min-width: 14px;
}

.ns-leg-info {
    flex: 1;
    min-width: 0;
}

.ns-leg-name {
    font-size: 0.85rem;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ns-leg-dates {
    font-size: 0.7rem;
    color: #64748b;
}

.ns-leg-stats {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.ns-leg-score {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
}

.ns-leg-snow {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Empty / low coverage state */
.ns-low-coverage {
    text-align: center;
    padding: 20px 10px;
    color: #64748b;
    font-size: 0.85rem;
}

.ns-low-coverage p {
    margin-bottom: 8px;
}

/* ─── Score badge colors ─── */
.badge-high { background: rgba(59,130,246,0.25); color: #60a5fa; }
.badge-moderate { background: rgba(99,102,241,0.25); color: #818cf8; }
.badge-low { background: rgba(148,163,184,0.2); color: #94a3b8; }

/* ─── Scrollbar ─── */
.side-panel::-webkit-scrollbar,
.forecast-strip::-webkit-scrollbar,
.search-results::-webkit-scrollbar,
.station-futurecast::-webkit-scrollbar,
.heatmap-wrap::-webkit-scrollbar,
.ns-timeline::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.side-panel::-webkit-scrollbar-thumb,
.forecast-strip::-webkit-scrollbar-thumb,
.search-results::-webkit-scrollbar-thumb,
.station-futurecast::-webkit-scrollbar-thumb,
.heatmap-wrap::-webkit-scrollbar-thumb,
.ns-timeline::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}

/* ─── No data message ─── */
.no-data {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
    padding: 8px 0;
}

/* ─── Loading ─── */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .planner-layout {
        flex-direction: column-reverse;
    }

    .map-container {
        height: 300px;
        min-height: 300px;
    }

    .side-panel {
        width: 100%;
        min-width: 100%;
        height: calc(100vh - 345px);
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.08);
    }

    .nav-title {
        font-size: 0.95rem;
    }

    .fc-day {
        width: 62px;
    }

    .fc-week-bar {
        width: 18px;
    }

    .fc-week-bars {
        height: 60px;
    }

    .month-display {
        font-size: 0.9rem;
        min-width: 130px;
    }

    .hm-name {
        max-width: 70px;
        font-size: 0.6rem;
    }

    .hm-cell {
        min-width: 16px;
        font-size: 0.5rem;
    }
}

/* ─── Snow Report Card ─── */
.snow-report-card {
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-depths {
    display: flex;
    gap: 16px;
}

.sr-depth-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 16px;
    min-width: 72px;
}

.sr-depth-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1.1;
}

.sr-depth-label {
    font-size: 0.68rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.sr-newsnow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sr-ns-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-ns-item {
    display: flex;
    align-items: center;
    gap: 3px;
    background: rgba(96, 165, 250, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 5px;
    padding: 2px 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #93c5fd;
}

.sr-ns-period {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 400;
    text-transform: uppercase;
    margin-right: 2px;
}

.sr-season {
    font-size: 0.82rem;
    color: #94a3b8;
}

.sr-season strong {
    color: #e2e8f0;
}

.sr-ops {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.sr-ops-item {
    font-weight: 600;
    color: #e2e8f0;
}

.sr-ops-sep {
    color: #475569;
}

.sr-meta {
    font-size: 0.68rem;
    color: #475569;
    margin-top: 2px;
}
