/* ============================================
   Water Fountains of Switzerland - Premium UI
   ============================================ */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for theming */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --success: #10b981;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(59, 130, 246, 0.3);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-ambient: 0 8px 32px rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Smooth scrolling and selection */
html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--primary);
    color: white;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    overflow: hidden;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Header / Title - Premium Glass Design
   ============================================ */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 32px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(15, 23, 42, 0.85) 60%, transparent 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 16px;
}

#logo {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 2px 12px rgba(59, 130, 246, 0.5));
    animation: gentleFloat 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

#title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(59, 130, 246, 0.3);
}

#fountain-count {
    background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--border-glow);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    backdrop-filter: blur(12px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(6, 182, 212, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s var(--transition-smooth);
}

#fountain-count:hover {
    border-color: var(--accent);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(6, 182, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* ============================================
   Header Actions
   ============================================ */
#header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 22px;
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    box-shadow:
        0 4px 20px rgba(59, 130, 246, 0.4),
        0 0 0 0 rgba(59, 130, 246, 0.3);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.header-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-btn:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.5),
        0 0 0 4px rgba(59, 130, 246, 0.15);
}

.header-btn:hover::before {
    opacity: 1;
}

.header-btn:active {
    transform: scale(0.97) translateY(-1px);
}

.lucky-spin {
    animation: luckySpinAnim 0.7s var(--transition-bounce);
}

@keyframes luckySpinAnim {
    0% {
        transform: rotate(0deg) scale(1);
    }

    30% {
        transform: rotate(180deg) scale(1.15);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* ============================================
   Map Container
   ============================================ */
#map-container {
    position: relative;
    height: 100vh;
    width: 100vw;
}

#map {
    height: 100%;
    width: 100%;
}

/* Dark map styling adjustments */
.leaflet-container {
    background: var(--bg-dark);
    font-family: inherit;
}

/* Premium Zoom Controls */
.leaflet-control-zoom {
    border: none !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.95)) !important;
    color: var(--text-primary) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    font-weight: 300 !important;
    transition: all 0.2s var(--transition-smooth);
}

.leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
    background: var(--gradient-primary) !important;
    color: white !important;
}

.leaflet-control-layers {
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
    overflow: hidden;
}

.leaflet-control-layers-toggle {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-subtle) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
}

.leaflet-control-layers-expanded {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-subtle) !important;
    padding: 14px !important;
}

.leaflet-control-attribution {
    background: rgba(15, 23, 42, 0.85) !important;
    color: var(--text-muted) !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
    backdrop-filter: blur(12px);
    border-radius: 8px 0 0 0;
}

.leaflet-control-attribution a {
    color: var(--primary-light) !important;
}

/* ============================================
   Loading Indicator - Premium Animation
   ============================================ */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 48px 60px;
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow:
        var(--shadow-glow),
        0 24px 80px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: center;
    z-index: 1001;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 3px solid var(--border-subtle);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
    box-shadow:
        0 0 30px var(--accent-glow),
        inset 0 0 15px rgba(6, 182, 212, 0.1);
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-light);
    border-radius: 50%;
    animation: spin 1.2s linear infinite reverse;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   Water Droplet Markers - Look great when overlapping!
   ============================================ */
.water-droplet-marker {
    display: block;
}

.water-droplet-marker .droplet-inner {
    width: 14px;
    height: 14px;
    background: radial-gradient(circle at 30% 30%,
            rgba(147, 197, 253, 0.95) 0%,
            rgba(59, 130, 246, 0.85) 50%,
            rgba(37, 99, 235, 0.75) 100%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    box-shadow:
        0 0 6px rgba(59, 130, 246, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(30, 64, 175, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.water-droplet-marker:hover .droplet-inner {
    transform: scale(1.4);
    background: radial-gradient(circle at 30% 30%,
            rgba(191, 219, 254, 1) 0%,
            rgba(96, 165, 250, 1) 50%,
            rgba(59, 130, 246, 0.9) 100%);
    box-shadow:
        0 0 12px rgba(59, 130, 246, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.4),
        inset 0 -2px 4px rgba(30, 64, 175, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.5);
    z-index: 1000 !important;
}

/* ============================================
   Popup Styles - Glass Morphism
   ============================================ */
.leaflet-popup-content-wrapper {
    background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.98)) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    overflow: hidden;
}

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

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

.popup-inner {
    padding: 0;
}

.popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    filter: brightness(0.95);
}

.popup-image:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

.popup-info {
    padding: 16px 18px;
}

.popup-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popup-date {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-location {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   Image Modal - Cinematic Design
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: modalFadeIn 0.35s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(24px);
    }
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close {
    position: absolute;
    right: 28px;
    top: 28px;
    color: white;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    z-index: 2001;
    background: rgba(255, 255, 255, 0.08);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s var(--transition-smooth);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

#modal-body {
    display: flex;
    max-width: 95vw;
    max-height: 90vh;
    gap: 24px;
    padding: 24px;
    animation: modalContentIn 0.45s var(--transition-smooth);
}

@keyframes modalContentIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#modal-image-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

#modal-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.4s var(--transition-smooth);
}

#modal-image:hover {
    transform: scale(1.01);
}

#modal-info-section {
    width: 340px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-shrink: 0;
}

#modal-details {
    background: linear-gradient(145deg, var(--bg-card), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#modal-date-overlay {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

#modal-location-overlay {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
}

#modal-minimap {
    flex: 1;
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.minimap-marker {
    background: var(--gradient-primary);
    border: 3px solid white;
    border-radius: 50%;
    width: 28px !important;
    height: 28px !important;
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.6),
        0 0 24px rgba(59, 130, 246, 0.3);
    animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow:
            0 4px 16px rgba(59, 130, 246, 0.6),
            0 0 24px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow:
            0 4px 20px rgba(59, 130, 246, 0.8),
            0 0 40px rgba(59, 130, 246, 0.5);
    }
}

/* ============================================
   Marker Clusters - Premium Dark Theme
   ============================================ */

/* Smooth cluster animations */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
    transition: transform 0.35s var(--transition-smooth), opacity 0.35s ease !important;
}

/* Reset default MarkerCluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: transparent !important;
    background-clip: padding-box !important;
}

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

/* Base cluster styling */
.marker-cluster {
    position: relative !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
    cursor: pointer !important;
}

/* NO transform on hover - causes stuttering with MarkerCluster */
.marker-cluster:hover {
    z-index: 10000 !important;
}

/* Cluster inner text */
.marker-cluster>div,
.marker-cluster .cluster-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 700 !important;
    text-align: center !important;
    background: transparent !important;
}

/* ===== SMALL CLUSTERS (2-9) ===== */
.marker-cluster-small {
    width: 38px !important;
    height: 38px !important;
    margin-left: -19px !important;
    margin-top: -19px !important;
    border: 2px solid rgba(59, 130, 246, 0.8) !important;
    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.1),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.marker-cluster-small:hover {
    border-color: rgba(59, 130, 246, 1) !important;
    box-shadow:
        0 0 0 5px rgba(59, 130, 246, 0.25),
        0 10px 32px rgba(0, 0, 0, 0.55),
        0 0 45px rgba(59, 130, 246, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.marker-cluster-small>div {
    font-size: 14px !important;
    color: #93c5fd !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* ===== MEDIUM CLUSTERS (10-99) ===== */
.marker-cluster-medium {
    width: 44px !important;
    height: 44px !important;
    margin-left: -22px !important;
    margin-top: -22px !important;
    border: 2px solid rgba(6, 182, 212, 0.8) !important;
    box-shadow:
        0 0 0 4px rgba(6, 182, 212, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(6, 182, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
}

.marker-cluster-medium:hover {
    border-color: rgba(6, 182, 212, 1) !important;
    box-shadow:
        0 0 0 6px rgba(6, 182, 212, 0.25),
        0 6px 24px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(6, 182, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.marker-cluster-medium>div {
    font-size: 15px !important;
    color: #67e8f9 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

/* ===== LARGE CLUSTERS (100+) ===== */
.marker-cluster-large {
    width: 52px !important;
    height: 52px !important;
    margin-left: -26px !important;
    margin-top: -26px !important;
    border: 3px solid transparent !important;
    background:
        linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98)) padding-box,
        linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%) border-box !important;
    box-shadow:
        0 0 0 5px rgba(139, 92, 246, 0.1),
        0 6px 20px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(139, 92, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.marker-cluster-large:hover {
    box-shadow:
        0 0 0 8px rgba(139, 92, 246, 0.2),
        0 8px 28px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(139, 92, 246, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.marker-cluster-large>div {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
}

/* Spiderfied leg lines */
.leaflet-cluster-spider-leg {
    stroke: rgba(59, 130, 246, 0.65) !important;
    stroke-width: 2.5 !important;
}

/* ============================================
   Utilities & Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s var(--transition-smooth) infinite;
}

/* ============================================
   Responsive Design - Premium Mobile
   ============================================ */
@media (max-width: 900px) {
    #modal-body {
        flex-direction: column;
        max-height: 95vh;
        padding: 18px;
        gap: 16px;
    }

    #modal-image-section {
        max-height: 50vh;
    }

    #modal-image {
        max-height: 50vh;
    }

    #modal-info-section {
        width: 100%;
        flex-direction: row;
        gap: 14px;
    }

    #modal-details {
        flex: 1;
        padding: 18px;
    }

    #modal-minimap {
        width: 160px;
        min-height: 130px;
        flex: none;
    }
}

@media (max-width: 768px) {
    #header {
        padding: 16px 20px;
    }

    #logo {
        font-size: 30px;
    }

    #title {
        font-size: 18px;
    }

    .loading {
        padding: 36px 44px;
        margin: 0 20px;
        border-radius: 20px;
    }

    .spinner {
        width: 48px;
        height: 48px;
    }

    .close {
        right: 18px;
        top: 18px;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .custom-marker {
        width: 20px !important;
        height: 20px !important;
    }

    .popup-image {
        height: 130px;
    }
}

@media (max-width: 600px) {
    #header-actions {
        gap: 10px;
    }

    .header-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 24px;
    }

    #fountain-count {
        padding: 6px 12px;
        font-size: 12px;
    }

    #modal-info-section {
        flex-direction: column;
    }

    #modal-minimap {
        width: 100%;
        height: 160px;
    }

    #modal-details {
        padding: 16px;
    }

    #modal-date-overlay {
        font-size: 15px;
    }

    #modal-location-overlay {
        font-size: 14px;
    }
}

/* ============================================
   Reduced Motion - Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #logo {
        animation: none;
    }

    .spinner::after {
        animation: none;
    }
}