/* ============================================================
   Satellite/Radar Page - meteorologia.com.ar
   ============================================================ */

.sat-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 52px); /* subtract nav height */
    overflow: hidden;
}

.sat-map {
    width: 100%;
    height: 100%;
}

/* Leaflet dark tiles filter */
.sat-map .leaflet-tile-pane {
    filter: var(--leaflet-filter, none);
}

/* Controls overlay */
.sat-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sat-layer-btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 4px 16px var(--shadow-color);
}

.sat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-dim);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.sat-btn:hover { background: var(--accent-dim); color: var(--text); }
.sat-btn.active { background: var(--accent-dim); color: var(--accent); }

/* Timeline */
.sat-timeline {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 20px var(--shadow-color);
    min-width: 300px;
    max-width: 90vw;
}

.sat-play-btn {
    background: var(--accent);
    border: none;
    color: var(--btn-primary-text);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.15s;
}
.sat-play-btn:hover { opacity: 0.85; }
.sat-play-btn.playing svg {
    display: none;
}
.sat-play-btn.playing::after {
    content: '||';
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
}

.sat-slider-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sat-slider-wrap input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.sat-slider-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.sat-time-label {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Legend */
.sat-legend {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 2px 12px var(--shadow-color);
}
.sat-legend-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}
.sat-legend-bar {
    display: flex;
    gap: 2px;
}
.sat-legend-bar span {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.68rem;
    color: #fff;
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 600px) {
    .sat-container { height: calc(100vh - 48px); }
    .sat-timeline { min-width: unset; padding: 8px 12px; bottom: 50px; }
    .sat-controls { top: 8px; right: 8px; }
    .sat-btn span { display: none; }
    .sat-legend { bottom: 8px; left: 8px; }
    .sat-legend-bar span { padding: 2px 4px; font-size: 0.6rem; }
}
