/* =============================================
   Concert Map Page - Enhanced 2026
   ============================================= */

.concert-map-page {
    padding-top: clamp(5rem, 8vw, 8rem);
    min-height: 100vh;
}

/* --- Header --- */
.concert-map-header {
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    padding: 0 1.5rem;
}

.concert-map-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.concert-map-header p {
    opacity: 0.5;
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    margin-inline: auto;
}

/* =============================================
   Decade Timeline Slider
   ============================================= */
.concert-map-decade-slider {
    padding: 0 1.5rem;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
    max-width: 720px;
    margin-inline: auto;
}

.decade-slider__track {
    position: relative;
    padding-bottom: 2rem;
}

.decade-slider__track input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
    margin: 0;
    position: relative;
    z-index: 1;
}

.decade-slider__track input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary, #dc2626);
    cursor: pointer;
    border: 3px solid var(--color-bg-base, #141416);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: box-shadow 0.2s, transform 0.15s;
}

.decade-slider__track input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.25), 0 2px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.15);
}

.decade-slider__track input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-primary, #dc2626);
    cursor: pointer;
    border: 3px solid var(--color-bg-base, #141416);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3), 0 2px 8px rgba(0, 0, 0, 0.4);
}

.decade-slider__track input[type="range"]::-moz-range-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
}

.decade-slider__track input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--color-primary, #dc2626);
    outline-offset: 3px;
}

.decade-slider__labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: auto;
}

.decade-slider__label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.4;
    cursor: pointer;
    padding: 4px 2px;
    transition: opacity 0.2s, color 0.2s;
    text-align: center;
    flex: 1;
    user-select: none;
}

.decade-slider__label:hover {
    opacity: 0.7;
}

.decade-slider__label--active {
    opacity: 1;
    color: var(--color-primary, #dc2626);
}

/* =============================================
   Stats Dashboard
   ============================================= */
.concert-map-stats-dashboard {
    padding: 0 1.5rem;
    margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
}

.concert-map-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

.concert-map-stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: transform 0.3s;
}

.concert-map-stat:hover {
    transform: translateY(-2px);
}

.concert-map-stat--type {
    flex-direction: row;
    gap: 6px;
}

.concert-map-stat__number {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.concert-map-stat--type .concert-map-stat__number {
    font-size: 1rem;
}

.concert-map-stat__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
}

.concert-map-stat--type .concert-map-stat__label {
    font-size: 0.75rem;
    opacity: 0.7;
}

.concert-map-stat__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* =============================================
   Map Controls Bar
   ============================================= */
.concert-map-controls {
    display: flex;
    gap: 6px;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.map-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.map-control-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.map-control-btn:focus-visible {
    outline: 2px solid var(--color-primary, #dc2626);
    outline-offset: 2px;
}

.map-control-btn--active {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    color: #fff;
}

.map-control-btn svg {
    flex-shrink: 0;
}

/* Legend dropdown */
.map-control-legend {
    position: relative;
}

.map-legend-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    background: var(--color-bg-elevated, #222228);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    min-width: 180px;
    animation: legend-fade-in 0.15s ease;
}

@keyframes legend-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    font-size: 0.8rem;
}

.map-legend-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.map-legend-item input[type="checkbox"] {
    accent-color: var(--color-primary, #dc2626);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.map-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.map-legend-label {
    flex: 1;
    opacity: 0.85;
}

/* =============================================
   Map + Sidebar Layout
   ============================================= */
.concert-map-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 0;
    height: calc(100vh - 380px);
    min-height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin: 0 1.5rem 2rem;
}

/* Map Container */
.concert-map-container {
    position: relative;
    min-height: 100%;
}

.concert-map-container #concert-map {
    width: 100%;
    height: 100%;
    background: #1a1a2e;
}

/* =============================================
   Leaflet Dark Theme Overrides
   ============================================= */
.concert-map-container .leaflet-popup-content-wrapper {
    background: var(--color-bg-elevated, #1e1e2e);
    color: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.concert-map-container .leaflet-popup-tip {
    background: var(--color-bg-elevated, #1e1e2e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-right: none;
}

.concert-map-container .leaflet-popup-content {
    margin: 14px 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.concert-map-container .leaflet-popup-close-button {
    color: rgba(255, 255, 255, 0.5);
}

.concert-map-container .leaflet-popup-close-button:hover {
    color: #fff;
}

.concert-map-container .leaflet-control-zoom a {
    background: var(--color-bg-elevated, #1e1e2e);
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.1);
}

.concert-map-container .leaflet-control-zoom a:hover {
    background: var(--color-bg-surface, #2a2a3e);
}

.concert-map-container .leaflet-control-attribution {
    background: rgba(30, 30, 46, 0.8);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
}

.concert-map-container .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.5);
}

/* Satellite mode - lighten controls */
.concert-map-container--satellite .leaflet-control-zoom a {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(0, 0, 0, 0.15);
}

.concert-map-container--satellite .leaflet-control-zoom a:hover {
    background: #fff;
}

.concert-map-container--satellite .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.8);
    color: rgba(0, 0, 0, 0.6);
}

/* =============================================
   Marker Cluster Styles
   ============================================= */
.concert-cluster {
    display: flex;
    align-items: center;
    justify-content: center;
}

.concert-cluster .cluster-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.concert-cluster:hover .cluster-inner {
    transform: scale(1.1);
}

.concert-cluster--small .cluster-inner {
    background: rgba(220, 38, 38, 0.85);
    box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.2), 0 2px 8px rgba(0, 0, 0, 0.3);
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.concert-cluster--medium .cluster-inner {
    background: rgba(220, 38, 38, 0.9);
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.2), 0 2px 12px rgba(0, 0, 0, 0.4);
    width: 40px;
    height: 40px;
    font-size: 0.85rem;
}

.concert-cluster--large .cluster-inner {
    background: rgba(180, 20, 20, 0.95);
    box-shadow: 0 0 0 10px rgba(220, 38, 38, 0.25), 0 2px 16px rgba(0, 0, 0, 0.5);
    width: 48px;
    height: 48px;
    font-size: 0.95rem;
}

/* Override default markercluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: none !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background: none !important;
}

/* =============================================
   Marker Styles + Animations
   ============================================= */
.concert-marker {
    background: none !important;
    border: none !important;
}

.concert-marker svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.concert-marker:hover svg {
    transform: translateY(-4px) scale(1.15);
}

/* Marker appear animation */
@keyframes marker-drop {
    0% { opacity: 0; transform: translateY(-20px) scale(0.6); }
    60% { opacity: 1; transform: translateY(2px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

.leaflet-marker-icon.concert-marker {
    animation: marker-drop 0.4s ease-out both;
}

/* =============================================
   Popup Content Styling
   ============================================= */
.map-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.map-popup-type {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}

.map-popup-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.map-popup-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 6px;
    color: #fff;
    line-height: 1.3;
}

.map-popup-count {
    font-weight: 400;
    font-size: 0.8rem;
    opacity: 0.5;
}

.map-popup-city {
    font-size: 0.82rem;
    opacity: 0.65;
    margin-bottom: 4px;
}

.map-popup-venue {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 4px;
}

.map-popup-date {
    font-size: 0.78rem;
    color: var(--color-primary, #dc2626);
    font-weight: 600;
}

.map-popup-desc {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 6px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
}

.map-popup-item {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-popup-item .map-popup-badge {
    margin-top: 5px;
}

.map-popup-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

/* =============================================
   Sidebar
   ============================================= */
.concert-map-sidebar {
    background: rgba(15, 15, 25, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.concert-map-sidebar__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.concert-map-sidebar__header h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.concert-map-sidebar__count {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Filter tabs */
.concert-map-filters {
    display: flex;
    gap: 4px;
    padding: 0.6rem 0.75rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.concert-map-filter {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.concert-map-filter span {
    opacity: 0.5;
    margin-left: 2px;
}

.concert-map-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
}

.concert-map-filter--active {
    background: rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.4);
    color: #fff;
}

.concert-map-filter--active span {
    opacity: 0.8;
}

/* Event list */
.concert-map-sidebar__list {
    flex: 1;
    overflow-y: auto;
    padding: 0.25rem 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.concert-map-sidebar__list::-webkit-scrollbar {
    width: 4px;
}

.concert-map-sidebar__list::-webkit-scrollbar-track {
    background: transparent;
}

.concert-map-sidebar__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Event card */
.concert-map-event {
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, opacity 0.3s, transform 0.3s;
    border-left: 3px solid transparent;
}

.concert-map-event:hover {
    background: rgba(255, 255, 255, 0.04);
}

.concert-map-event--active {
    background: rgba(220, 38, 38, 0.08);
    border-left-color: var(--color-primary, #dc2626);
}

.concert-map-event--concert.concert-map-event--active {
    border-left-color: #dc2626;
}

.concert-map-event--recording.concert-map-event--active {
    border-left-color: #3b82f6;
}

.concert-map-event--milestone.concert-map-event--active {
    border-left-color: #f59e0b;
}

/* Animate-in for sidebar cards */
@keyframes event-card-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.concert-map-event--animate-in {
    animation: event-card-in 0.3s ease-out both;
}

.concert-map-event__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.concert-map-event__badge {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    border-radius: 3px;
    color: #fff;
    font-weight: 600;
}

.concert-map-event__year {
    font-size: 0.72rem;
    opacity: 0.6;
    font-weight: 600;
    font-family: var(--font-display, 'Bebas Neue', sans-serif);
    letter-spacing: 0.04em;
}

.concert-map-event__title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.concert-map-event__meta {
    font-size: 0.72rem;
    opacity: 0.6;
    display: flex;
    gap: 0.75rem;
}

.concert-map-event__city::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary, #dc2626);
    margin-right: 4px;
    vertical-align: middle;
}

.concert-map-event__venue {
    opacity: 0.8;
}

/* Loading / Empty states */
.concert-map-loading,
.concert-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* =============================================
   Geo Stats Sidebar Section
   ============================================= */
.concert-map-sidebar__geo-stats {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.geo-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 0.78rem;
    line-height: 1.3;
}

.geo-stat + .geo-stat {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 5px;
    margin-top: 1px;
}

.geo-stat__icon {
    flex-shrink: 0;
    opacity: 0.5;
    color: var(--color-primary, #dc2626);
}

.geo-stat__label {
    opacity: 0.55;
    white-space: nowrap;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.geo-stat__value {
    font-weight: 600;
    color: #fff;
    margin-left: auto;
    text-align: right;
}

.geo-stat__value small {
    font-weight: 400;
    opacity: 0.5;
    font-size: 0.7rem;
}

/* =============================================
   Tour Route Lines - Animated Dash
   ============================================= */
.tour-route-line--animated {
    animation: tour-dash-march 1.2s linear infinite;
}

@keyframes tour-dash-march {
    to {
        stroke-dashoffset: -18;
    }
}

.tour-route-glow {
    pointer-events: none;
}

/* =============================================
   Tour Moving Marker
   ============================================= */
.tour-moving-marker {
    background: none !important;
    border: none !important;
    z-index: 1000 !important;
}

.tour-moving-marker__inner {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tour-moving-marker__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--color-primary, #dc2626);
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.tour-moving-marker__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.3);
    animation: tour-marker-pulse 1.5s ease-out infinite;
    z-index: 1;
}

@keyframes tour-marker-pulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* =============================================
   Tour Progress Bar
   ============================================= */
.tour-progress {
    position: relative;
    flex: 1;
    min-width: 80px;
    max-width: 200px;
    height: 22px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tour-progress__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.4), rgba(220, 38, 38, 0.7));
    border-radius: 11px;
    transition: width 0.5s ease;
}

.tour-progress__text {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* =============================================
   Tour Speed Selector
   ============================================= */
.map-control-select {
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 22px;
}

.map-control-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.map-control-select:focus-visible {
    outline: 2px solid var(--color-primary, #dc2626);
    outline-offset: 2px;
}

.map-control-select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.map-control-select option {
    background: var(--color-bg-elevated, #222228);
    color: #e0e0e0;
}

/* =============================================
   Route Legend Items
   ============================================= */
.map-legend-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 6px 10px;
}

.map-legend-line {
    width: 20px;
    height: 3px;
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
}

.map-legend-line::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: inherit;
    opacity: 0.25;
}

.map-legend-item--route {
    gap: 6px;
}

.map-legend-dist {
    font-size: 0.65rem;
    opacity: 0.4;
    margin-left: auto;
    white-space: nowrap;
}

.map-legend-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px 4px;
    font-size: 0.72rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.map-legend-total span {
    opacity: 0.5;
}

.map-legend-total strong {
    color: var(--color-primary, #dc2626);
    font-size: 0.78rem;
}

/* =============================================
   Light Theme Overrides
   ============================================= */
[data-theme="light"] .concert-map-page,
.light-theme .concert-map-page {
    color: #1a1a2e;
}

[data-theme="light"] .concert-map-container #concert-map,
.light-theme .concert-map-container #concert-map {
    background: #e8e8f0;
}

[data-theme="light"] .concert-map-layout,
.light-theme .concert-map-layout {
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .concert-map-sidebar,
.light-theme .concert-map-sidebar {
    background: rgba(255, 255, 255, 0.97);
    border-left-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .concert-map-sidebar__header,
.light-theme .concert-map-sidebar__header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .concert-map-filter,
.light-theme .concert-map-filter {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .concert-map-filter:hover,
.light-theme .concert-map-filter:hover {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.8);
}

[data-theme="light"] .concert-map-filter--active,
.light-theme .concert-map-filter--active {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.3);
    color: #b91c1c;
}

[data-theme="light"] .concert-map-event,
.light-theme .concert-map-event {
    color: #1a1a2e;
}

[data-theme="light"] .concert-map-event:hover,
.light-theme .concert-map-event:hover {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .concert-map-event--active,
.light-theme .concert-map-event--active {
    background: rgba(220, 38, 38, 0.06);
}

[data-theme="light"] .concert-map-sidebar__list,
.light-theme .concert-map-sidebar__list {
    scrollbar-color: rgba(0, 0, 0, 0.15) transparent;
}

[data-theme="light"] .concert-map-container .leaflet-popup-content-wrapper,
.light-theme .concert-map-container .leaflet-popup-content-wrapper {
    background: #fff;
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .concert-map-container .leaflet-popup-tip,
.light-theme .concert-map-container .leaflet-popup-tip {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .map-popup-title,
.light-theme .map-popup-title,
[data-theme="light"] .map-popup-item-title,
.light-theme .map-popup-item-title {
    color: #1a1a2e;
}

[data-theme="light"] .concert-map-container .leaflet-control-zoom a,
.light-theme .concert-map-container .leaflet-control-zoom a {
    background: #fff;
    color: #333;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .map-control-btn,
.light-theme .map-control-btn {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
}

[data-theme="light"] .map-control-btn:hover,
.light-theme .map-control-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

[data-theme="light"] .map-legend-dropdown,
.light-theme .map-legend-dropdown {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .map-legend-item:hover,
.light-theme .map-legend-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .decade-slider__track input[type="range"],
.light-theme .decade-slider__track input[type="range"] {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .decade-slider__track input[type="range"]::-webkit-slider-thumb,
.light-theme .decade-slider__track input[type="range"]::-webkit-slider-thumb {
    border-color: #fff;
}

[data-theme="light"] .decade-slider__track input[type="range"]::-moz-range-track,
.light-theme .decade-slider__track input[type="range"]::-moz-range-track {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .concert-map-sidebar__geo-stats,
.light-theme .concert-map-sidebar__geo-stats {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .geo-stat + .geo-stat,
.light-theme .geo-stat + .geo-stat {
    border-top-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .geo-stat__value,
.light-theme .geo-stat__value {
    color: #1a1a2e;
}

[data-theme="light"] .tour-progress,
.light-theme .tour-progress {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .tour-progress__text,
.light-theme .tour-progress__text {
    color: rgba(0, 0, 0, 0.8);
    text-shadow: none;
}

[data-theme="light"] .map-control-select,
.light-theme .map-control-select {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.7);
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(0,0,0,0.4)' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

[data-theme="light"] .map-control-select option,
.light-theme .map-control-select option {
    background: #fff;
    color: #333;
}

[data-theme="light"] .map-legend-divider,
.light-theme .map-legend-divider {
    background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .map-legend-total,
.light-theme .map-legend-total {
    border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .decade-slider__label,
.light-theme .decade-slider__label {
    opacity: 0.5;
    color: #333;
}

[data-theme="light"] .decade-slider__label--active,
.light-theme .decade-slider__label--active {
    color: var(--color-primary, #dc2626);
    opacity: 1;
}

[data-theme="light"] .concert-map-filters,
.light-theme .concert-map-filters {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* =============================================
   Responsive - Tablet
   ============================================= */
@media (max-width: 900px) {
    .concert-map-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: auto;
        margin: 0 0.75rem 2rem;
    }

    .concert-map-container {
        min-height: 400px;
        height: 50vh;
    }

    .concert-map-sidebar {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        max-height: 350px;
    }

    .concert-map-stats {
        gap: 1rem;
    }

    .concert-map-controls {
        padding: 0 0.75rem;
    }

    .concert-map-decade-slider {
        padding: 0 0.75rem;
    }

    .map-control-btn span {
        display: none;
    }

    .map-control-btn {
        padding: 6px 8px;
    }

    .tour-progress {
        min-width: 60px;
        max-width: 120px;
    }

    .map-control-select {
        padding: 4px 20px 4px 6px;
        font-size: 0.65rem;
    }

    .geo-stat {
        font-size: 0.72rem;
    }

    .geo-stat__label {
        font-size: 0.65rem;
    }
}

/* =============================================
   Responsive - Mobile
   ============================================= */
@media (max-width: 480px) {
    .concert-map-container {
        min-height: 300px;
        height: 40vh;
    }

    .concert-map-layout {
        margin: 0 0.5rem 1.5rem;
        border-radius: 8px;
    }

    .concert-map-stats {
        gap: 0.75rem;
        padding: 0 0.75rem;
    }

    .concert-map-stats-dashboard {
        padding: 0;
    }

    .concert-map-stat__number {
        font-size: 1.1rem;
    }

    .concert-map-stat--type {
        display: none;
    }

    .concert-map-filters {
        padding: 0.5rem;
    }

    .concert-map-decade-slider {
        padding: 0 0.75rem;
    }

    .decade-slider__label {
        font-size: 0.62rem;
    }

    .concert-map-controls {
        padding: 0 0.5rem;
        gap: 4px;
    }

    .concert-map-sidebar {
        max-height: 280px;
    }
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    .concert-marker svg,
    .concert-cluster .cluster-inner,
    .concert-map-stat {
        transition: none;
    }

    .leaflet-marker-icon.concert-marker {
        animation: none;
    }

    .concert-map-event--animate-in {
        animation: none;
    }

    .map-legend-dropdown {
        animation: none;
    }

    .tour-route-line--animated {
        animation: none;
    }

    .tour-moving-marker__pulse {
        animation: none;
    }

    .tour-progress__bar {
        transition: none;
    }
}
