:root {
    --bg-dark: rgba(10, 14, 39, 0.85);
    --bg-darker: rgba(5, 7, 20, 0.95);
    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --accent-blue: #4facfe;
    --accent-hover: #00f2fe;
    --border-color: rgba(255, 255, 255, 0.1);
    --panel-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    overflow: hidden;
}

.hidden {
    display: none !important;
}

#map {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* UI Panels */
.overlay-panel {
    position: absolute;
    z-index: 1000;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--panel-radius);
    padding: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Top Navigation Bar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background: var(--bg-dark);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-brand {
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-item.active {
    background: rgba(79, 172, 254, 0.2);
    color: var(--accent-blue);
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.nav-item.placeholder {
    cursor: pointer;
}

.controls-panel {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 280px;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.controls-panel:not(.active) {
    transform: translateX(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
}

.controls-panel h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.3px;
}

.control-divider {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin: 18px 0 12px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.control-group {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dropdown-label, .slider-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

select:hover, select:focus {
    border-color: var(--accent-blue);
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.25);
}

select option {
    background: #0f132e;
    color: white;
}

/* Custom Switch Toggle styling */
.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.control-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #e2e8f0;
}

.control-label i {
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    transition: .25s ease-in-out;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .25s ease-in-out;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.switch input:checked + .switch-slider {
    background-color: rgba(79, 172, 254, 0.5);
    border-color: rgba(79, 172, 254, 0.7);
}

.switch input:checked + .switch-slider:before {
    transform: translateX(20px);
    background-color: #ffffff;
    box-shadow: 0 0 6px rgba(79, 172, 254, 0.8);
}

.switch:hover .switch-slider {
    border-color: rgba(79, 172, 254, 0.5);
}

/* Radar Opacity Slider */
.radar-opacity-group {
    margin-top: 14px;
}

.radar-opacity-group input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    outline: none;
    margin-top: 6px;
}

.radar-opacity-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2.5px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(79, 172, 254, 0.5);
    transition: transform 0.15s ease-in-out;
}

.radar-opacity-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.radar-opacity-group input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2.5px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(79, 172, 254, 0.5);
    transition: transform 0.15s ease-in-out;
}

.radar-opacity-group input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.2);
}

/* Refresh Button */
.btn-refresh {
    width: 100%;
    padding: 10px;
    margin-top: 16px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
    color: white;
    border: 1px solid rgba(79, 172, 254, 0.4);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3), rgba(0, 242, 254, 0.3));
    border-color: rgba(79, 172, 254, 0.8);
    box-shadow: 0 0 12px rgba(79, 172, 254, 0.3);
    transform: translateY(-1px);
}

.btn-refresh:active {
    transform: translateY(1px);
}

.status-panel {
    bottom: 20px;
    left: 20px;
    width: 250px;
}

.legend h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.gradient-bar {
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #0000ff, #00ffff, #00ff00, #ffff00, #ff0000);
    margin-bottom: 5px;
}

.gradient-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.status-indicators {
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.status-item {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}
.dot.active { background: #00ff00; box-shadow: 0 0 5px #00ff00; }
.dot.error { background: #ff0000; box-shadow: 0 0 5px #ff0000; }
.dot.loading { background: #ffff00; animation: pulse 1s infinite alternate; }

/* Detail Panel */
.detail-panel {
    top: 80px;
    right: 240px; /* Left of controls */
    width: 320px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) rgba(255, 255, 255, 0.02);
}

.detail-panel::-webkit-scrollbar {
    width: 6px;
}

.detail-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
    margin: 6px 0;
}

.detail-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.detail-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(79, 172, 254, 0.45);
}

.detail-panel.hidden {
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

.btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-close:hover {
    color: white;
}

#close-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    top: 16px;
    right: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#close-controls:hover {
    background: rgba(79, 172, 254, 0.15);
    border-color: rgba(79, 172, 254, 0.4);
    color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(79, 172, 254, 0.2);
}

#close-controls i {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
}

#close-controls:hover i {
    transform: translateX(3px);
}

#location-name {
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.coords {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.provider-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: var(--transition);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: rgba(79, 172, 254, 0.2);
    color: var(--accent-blue);
}

.weather-main {
    text-align: center;
    margin-bottom: 25px;
}

.weather-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--accent-blue);
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.weather-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: capitalize;
}

.weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.weather-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.weather-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--accent-blue);
}

.weather-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.weather-item .value {
    font-weight: 600;
    font-size: 0.95rem;
}

.hourly-forecast h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.forecast-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.forecast-scroll::-webkit-scrollbar {
    height: 6px;
}

.forecast-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.forecast-item {
    min-width: 60px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 5px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.forecast-item .time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.forecast-item .icon {
    font-size: 1.2rem;
}

.forecast-item .temp {
    font-weight: 600;
    font-size: 0.9rem;
}

.forecast-view-selector {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.forecast-view-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 8px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.forecast-view-btn:hover {
    color: white;
}

.forecast-view-btn.active {
    background: rgba(79, 172, 254, 0.2);
    color: var(--accent-blue);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.1);
}

.minutely-summary-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(79, 172, 254, 0.06);
    border: 1px solid rgba(79, 172, 254, 0.15);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: white;
}

.minutely-summary-box i {
    color: var(--accent-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Interactive Minutely Chart (Minutna napoved) */
.minutely-chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2);
}

.minutely-scrub-detail {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 15px;
    min-height: 58px; /* Prevents layout shifting */
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.scrub-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.scrub-desc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 10px;
    flex-wrap: wrap;
}

.scrub-type {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e2e8f0;
}

.scrub-vals {
    display: flex;
    gap: 12px;
    font-weight: 600;
}

.val-precip {
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.val-prob {
    color: #a78bfa;
    display: flex;
    align-items: center;
    gap: 4px;
}

.minutely-chart-wrapper {
    position: relative;
    width: 100%;
    height: 100px;
    margin-top: 10px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.15);
    cursor: crosshair;
}

.minutely-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.svg-scrub-line,
.svg-scrub-dot {
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.minutely-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 4px;
}

.panel-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--panel-radius);
    z-index: 10;
}

.panel-loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-blue);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* Leaflet Customizations */
.leaflet-popup-content-wrapper {
    background: var(--bg-darker);
    color: white;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.leaflet-popup-tip {
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
}
.station-popup h4 { margin: 0 0 5px 0; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.station-popup p { margin: 3px 0; font-size: 0.9rem; }
.station-popup .update-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 5px; }

/* Custom Marker */
.station-marker {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 9px;
    text-shadow: 0 0 3px rgba(0,0,0,0.8);
    transition: transform 0.2s;
}
.station-marker:hover {
    transform: scale(1.2);
    z-index: 1000 !important;
}

/* Radar Heatmap/Grid Base Style */
.radar-cell {
    opacity: 0.6;
    transition: opacity 0.3s;
}

/* Radar Controls */
#radar-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 24px;
    border-radius: 30px;
    pointer-events: auto;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
#radar-play-btn {
    background: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}
#radar-play-btn:hover {
    background: var(--accent-hover);
}
#radar-slider {
    width: 280px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, rgba(79,172,254,0.5), rgba(79,172,254,0.3));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    pointer-events: auto;
}
#radar-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(79,172,254,0.5);
    cursor: grab;
}
#radar-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 6px rgba(79,172,254,0.5);
    cursor: grab;
}
#radar-time {
    min-width: 120px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Camera Modal */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}
.modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: var(--panel-radius);
    padding: 20px;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}
.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
}
.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
}
#close-camera {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}
#close-camera:hover {
    color: white;
}
.camera-container {
    width: 100%;
    height: 450px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#camera-loading,
#camera-error {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    color: var(--text-muted);
    background: rgba(0,0,0,0.6);
    z-index: 5;
    pointer-events: none;
}
#camera-loading.hidden,
#camera-error.hidden {
    display: none !important;
}
/* Camera Toolbar: Compass + Timeline */
.camera-toolbar {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

/* Compass Direction Selector */
.compass-wrapper {
    flex-shrink: 0;
}
.compass {
    position: relative;
    width: 90px;
    height: 90px;
}
.compass-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}
.compass-label {
    position: absolute;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 2;
}
.compass-label.compass-n {
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-blue);
    font-size: 0.7rem;
}
.compass-btn {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 3;
    padding: 0;
}
.compass-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.25);
    box-shadow: 0 0 8px var(--accent-blue);
}
.compass-btn.active {
    background: var(--accent-blue);
    border-color: #fff;
    box-shadow: 0 0 12px var(--accent-blue), 0 0 4px rgba(255,255,255,0.5);
}
.compass-btn.unavailable {
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
}
.compass-center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Timeline Scrubber */
.timeline-wrapper {
    flex: 1;
    min-width: 0;
}
.timeline-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
#cam-time-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}
.cam-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #00ff00;
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s;
}
.cam-live-badge.faded {
    opacity: 0.3;
}
.timeline-slider-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.timeline-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.timeline-btn:hover {
    background: rgba(79,172,254,0.2);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}
.timeline-live-btn {
    color: #00ff00;
}
.timeline-live-btn:hover {
    background: rgba(0,255,0,0.15);
    border-color: #00ff00;
}
.timeline-play-btn {
    color: var(--accent-blue);
}
.timeline-play-btn:hover {
    background: rgba(79,172,254,0.25);
    border-color: var(--accent-blue);
}
.timeline-play-btn.playing {
    background: rgba(79,172,254,0.3);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(79,172,254,0.3);
}
#cam-timeline {
    flex: 1;
    min-width: 0;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--accent-blue), rgba(255,255,255,0.15));
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    direction: rtl; /* 0=now on left, 144=24h ago on right */
}
#cam-timeline::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(79,172,254,0.5);
    cursor: grab;
}
#cam-timeline::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-blue);
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(79,172,254,0.5);
    cursor: grab;
}
.timeline-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.65rem;
    color: var(--text-muted);
    padding: 0 2px;
}

/* Camera Preview on Hover */
.station-camera-preview {
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
    pointer-events: auto;
}
.station-camera-preview img {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
}
.station-camera-preview img:hover {
    border-color: var(--accent-blue);
}
.station-popup h4 .fa-camera {
    margin-left: 8px;
    color: var(--accent-blue);
}

/* --- Camera Markers & Popups --- */
.camera-marker {
    border-radius: 50%;
    border: 1.5px solid white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s, background-color 0.2s;
    cursor: pointer;
}
.camera-marker i {
    font-size: 8px;
    pointer-events: none;
}
.camera-marker:hover {
    transform: scale(1.25);
    z-index: 1000 !important;
}
.camera-marker.dars-camera {
    background-color: #2f4368;
    border-color: #4facfe;
}
.camera-marker.drsi-camera {
    background-color: #d97706;
    border-color: #fbbf24;
}
.camera-marker.haloze-camera {
    background-color: #16a34a;
    border-color: #4ade80;
}
.camera-marker.radar-station {
    background-color: #8b5cf6;
    border-color: #c084fc;
}

.camera-popup h4 {
    margin: 0 0 8px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
}
.camera-popup h4 i {
    color: var(--accent-blue);
}
.camera-images-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 2px;
}
.camera-images-container::-webkit-scrollbar {
    width: 4px;
}
.camera-images-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}
.camera-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s;
}
.camera-image-wrapper:hover {
    border-color: var(--accent-blue);
}
.camera-image-wrapper img {
    display: block;
    width: 100%;
    height: auto;
}
.camera-image-label {
    display: block;
    padding: 4px 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-darker);
    text-align: center;
    line-height: 1.2;
}

/* Static Camera Modal overrides */
#camera-modal.static-camera-mode .timeline-wrapper {
    display: none !important;
}
#camera-modal.static-camera-mode .camera-toolbar {
    justify-content: center;
    padding: 10px;
}

.compass-view-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 15px;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 40px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.radar-details-panel {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(10, 14, 39, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.radar-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.radar-detail-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.radar-detail-value {
    font-size: 0.85rem;
    color: var(--text-main);
    font-weight: 500;
}
.radar-description-full {
    grid-column: span 3;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
    line-height: 1.4;
}

.radar-desc-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px auto 5px auto;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(192, 132, 252, 0.3);
    border-radius: 6px;
    color: #c084fc;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.radar-desc-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(192, 132, 252, 0.6);
    color: #e9d5ff;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}
.radar-desc-toggle-btn.active {
    background: rgba(139, 92, 246, 0.35);
    border-color: #c084fc;
    color: #fff;
}
.radar-desc-toggle-btn.hidden,
.radar-description-extended.hidden {
    display: none !important;
}
.radar-description-extended {
    margin-top: 10px;
    padding: 15px;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}
.radar-description-extended h4 {
    margin: 15px 0 8px 0;
    color: #c084fc;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 4px;
}
.radar-description-extended h4:first-of-type {
    margin-top: 0;
}
.radar-description-extended p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 10px 0;
}
.radar-description-extended ul {
    margin: 0 0 10px 0;
    padding-left: 20px;
}
.radar-description-extended li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 5px;
}
.radar-description-extended li strong {
    color: var(--text-main);
}
.radar-description-extended::-webkit-scrollbar {
    width: 6px;
}
.radar-description-extended::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.radar-description-extended::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}
.radar-description-extended::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

.radar-details-modal-content {
    max-width: 750px !important;
    width: 90% !important;
}
.radar-details-modal-body {
    padding-right: 5px;
}
#radar-details-specs-grid {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}
#close-radar-details {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
#close-radar-details:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
}
.radar-description-extended-modal {
    margin-top: 15px;
    padding: 15px;
    background: rgba(10, 14, 39, 0.45);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: left;
}
.radar-description-extended-modal h4 {
    margin: 15px 0 8px 0;
    color: #c084fc;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}
.radar-description-extended-modal h4:first-of-type {
    margin-top: 0;
}
.radar-description-extended-modal p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 12px 0;
}
.radar-description-extended-modal ul {
    margin: 0 0 12px 0;
    padding-left: 20px;
}
.radar-description-extended-modal li {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
}
.radar-description-extended-modal li strong {
    color: var(--text-main);
}
.radar-description-extended-modal::-webkit-scrollbar {
    width: 6px;
}
.radar-description-extended-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}
.radar-description-extended-modal::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: 3px;
}
.radar-description-extended-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.5);
}

/* Camera Metadata Status Bar */
.camera-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(10, 14, 39, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.meta-left, .meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.meta-separator {
    color: rgba(255, 255, 255, 0.25);
    font-weight: bold;
    margin: 0 4px;
}
.live-dot-pulsate {
    width: 8px;
    height: 8px;
    background-color: #00ff00;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #00ff00;
    animation: pulse-live 1.2s infinite;
    display: inline-block;
}
.live-text {
    font-weight: 700;
    letter-spacing: 0.5px;
}
@keyframes pulse-live {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 12px #00ff00;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

/* Views Selector inside camera-toolbar */
.views-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}
.view-tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.view-tab-btn:hover {
    background: rgba(79, 172, 254, 0.15);
    color: var(--text-main);
    border-color: var(--accent-blue);
}
.view-tab-btn.active {
    background: rgba(79, 172, 254, 0.25);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    font-weight: 600;
}

/* --- Mobile Responsive Optimizations --- */

/* Hide mobile-only elements by default */
.mobile-only {
    display: none !important;
}

/* Floating controls button */
.floating-controls-btn {
    position: absolute;
    top: 80px;
    right: 20px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    font-size: 1.1rem;
}
.floating-controls-btn.hidden {
    display: none !important;
}
.floating-controls-btn:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    /* Show mobile-only */
    .mobile-only {
        display: block !important;
    }
    span.mobile-only, button.mobile-only {
        display: inline-block !important;
    }
    div.mobile-only {
        display: block !important;
    }

    /* Navbar styling adjustments */
    .navbar {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    .navbar-toggle-btn {
        background: transparent;
        border: none;
        color: white;
        font-size: 1.3rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }
    .navbar-toggle-btn:hover {
        color: var(--accent-blue);
    }
    .navbar .nav-right {
        width: 100%;
        display: none; /* Hidden on mobile by default */
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
        align-items: stretch;
    }
    .navbar.expanded .nav-right {
        display: flex; /* Shown when expanded */
    }
    .navbar .nav-right .nav-item.placeholder {
        display: flex !important; /* Force show the placeholders in mobile expanded menu */
    }
    .navbar .nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
        justify-content: flex-start;
        border-radius: 8px;
    }

    /* Controls Panel - Slide in from right */
    .controls-panel {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 280px;
        z-index: 2200; /* Above navbar and popups */
        border-radius: 0;
        border-left: 1px solid var(--border-color);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding-top: 50px; /* Space for close button */
    }
    .controls-panel.active {
        transform: translateX(0);
    }
    .controls-panel .btn-close {
        top: 15px;
        right: 15px;
    }

    /* Detail Panel - Bottom Sheet style */
    .detail-panel {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        z-index: 2100;
        border-radius: 16px 16px 0 0;
        border: 1px solid var(--border-color);
        border-bottom: none;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        padding-top: 25px; /* space for drag handle */
    }
    .detail-panel.hidden {
        transform: translateY(100%);
        opacity: 1 !important; /* Keep opaque for transition */
        pointer-events: none;
    }
    .detail-panel:not(.hidden) {
        transform: translateY(0);
        pointer-events: auto;
    }
    .drag-handle {
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 2px;
        margin: -10px auto 15px auto;
    }

    /* Hide legend status panel when weather details are open on mobile */
    body.detail-panel-open .status-panel {
        display: none !important;
    }
    /* Lift legend on mobile above attributions */
    .status-panel {
        bottom: 85px; 
        width: 220px;
        font-size: 0.8rem;
    }
    @media (max-width: 480px) {
        .status-panel {
            display: none !important;
        }
        .radar-details-panel {
            grid-template-columns: 1fr;
        }
        .radar-description-full {
            grid-column: span 1;
        }
        .camera-meta-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }
        .modal-header h3 {
            font-size: 1rem;
        }
    }

    /* Hide radar controls when weather detail panel is open on mobile */
    body.detail-panel-open #radar-controls {
        display: none !important;
    }
    
    /* Radar slider sizing on mobile */
    #radar-controls {
        width: 90%;
        padding: 8px 16px;
        bottom: 15px;
    }
    #radar-slider {
        width: 150px;
    }
    #radar-time {
        font-size: 0.75rem;
        min-width: 80px;
    }

    /* Camera Modal mobile sizes */
    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 15px;
    }
    .camera-container {
        height: 260px; /* Shrunk for portrait mobile displays */
    }
    .camera-toolbar {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }
    .radar-details-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    .radar-description-full {
        grid-column: span 2;
    }
    .compass {
        width: 80px;
        height: 80px;
    }
    .compass-btn {
        width: 14px;
        height: 14px;
    }
    .compass-view-name {
        width: 100%;
        text-align: center;
        justify-content: center;
        font-size: 0.85rem;
        padding: 8px 12px;
        min-height: auto;
    }
    #cam-timeline {
        width: 100%;
    }
    .camera-meta-bar {
        font-size: 0.7rem;
        padding: 8px 10px;
        margin-top: 8px;
    }
    .meta-separator {
        margin: 0 2px;
    }

    /* Provider tabs on mobile */
    .provider-tabs {
        flex-wrap: wrap;
        gap: 4px;
    }
    .tab-btn {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    .weather-grid {
        gap: 10px;
    }
    .weather-item {
        padding: 8px;
    }
    .weather-temp {
        font-size: 2rem;
    }
    .weather-icon {
        font-size: 2.2rem;
    }
}

/* Multi-Window comparison styles */
.floating-page-btn {
    position: absolute;
    top: 80px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-page-btn:hover {
    background: rgba(79, 172, 254, 0.2);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.05);
}

.floating-page-btn.waiting {
    animation: button-pulse 1.5s infinite ease-in-out;
    background: rgba(79, 172, 254, 0.35) !important;
    border-color: var(--accent-blue) !important;
    color: white !important;
}

.comparison-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2050;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid var(--accent-blue);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 10px rgba(79, 172, 254, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.comparison-banner.hidden {
    display: none !important;
}

@keyframes button-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 172, 254, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(79, 172, 254, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(79, 172, 254, 0); }
}

/* Draggable & Resizable Window styles */
.detail-panel {
    cursor: default;
    user-select: none;
}

.detail-panel.floating-window {
    position: fixed;
    top: 80px;
    bottom: auto;
    left: auto;
    width: 320px;
    max-height: calc(100vh - 100px);
    border-radius: var(--panel-radius);
    border: 1px solid var(--border-color);
    transform: none;
    transition: none;
    margin: 0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

/* All 8 edges and corners resize handles styles */
.window-resize-handle {
    position: absolute;
    z-index: 20;
}
.window-resize-handle-r {
    top: 0; right: -4px; width: 8px; height: 100%; cursor: ew-resize;
}
.window-resize-handle-l {
    top: 0; left: -4px; width: 8px; height: 100%; cursor: ew-resize;
}
.window-resize-handle-t {
    top: -4px; left: 0; height: 8px; width: 100%; cursor: ns-resize;
}
.window-resize-handle-b {
    bottom: -4px; left: 0; height: 8px; width: 100%; cursor: ns-resize;
}
.window-resize-handle-br {
    bottom: -6px; right: -6px; width: 14px; height: 14px; cursor: se-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(255, 255, 255, 0.35) 50%);
    border-bottom-right-radius: var(--panel-radius);
}
.window-resize-handle-bl {
    bottom: -6px; left: -6px; width: 14px; height: 14px; cursor: sw-resize;
}
.window-resize-handle-tr {
    top: -6px; right: -6px; width: 14px; height: 14px; cursor: ne-resize;
}
.window-resize-handle-tl {
    top: -6px; left: -6px; width: 14px; height: 14px; cursor: nw-resize;
}

/* Mouse cursor helper when waiting for map clicks */
body.waiting-for-comparison {
    cursor: cell !important;
}
body.waiting-for-comparison #map {
    cursor: cell !important;
}

