/* CheckNews clima.css v1.0.0 — Clima en vivo */
.cl { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cl-stage { position: relative; height: calc(100vh - 210px); min-height: 460px; border-radius: 14px; overflow: hidden; background: #0b1220; isolation: isolate; }
.cl-map { position: absolute; inset: 0; background: #0b1220; }
.cl-map.leaflet-container { background: #0b1220; font: inherit; }
.cl-canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.cl-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: .95rem; z-index: 800; pointer-events: none; text-align: center; padding: 20px; }
.cl-msg[hidden] { display: none; }

.cl-tools { position: absolute; top: 12px; right: 12px; z-index: 900; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cl-tg { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #e2e8f0; font-size: .8rem; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); user-select: none; }
.cl-tg input { accent-color: #f59e0b; margin: 0; }

.cl-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 900; padding: 10px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: end;
    background: linear-gradient(to top, rgba(8, 13, 24, .88), rgba(8, 13, 24, 0)); pointer-events: none; }
.cl-bottom > * { pointer-events: auto; }
.cl-time { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; grid-column: 1 / -1; }
.cl-time::-webkit-scrollbar { display: none; }
.cl-time button { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 70px; padding: 6px 10px; border: 0; border-radius: 10px;
    background: rgba(30, 41, 59, .8); color: #cbd5e1; font: inherit; font-size: .78rem; cursor: pointer; }
.cl-time button b { font-weight: 700; text-transform: capitalize; color: #f1f5f9; }
.cl-time button span { font-size: .72rem; opacity: .8; }
.cl-time button.is-on { background: #f59e0b; color: #1f2937; }
.cl-time button.is-on b { color: #111827; }
.cl-legend { position: relative; display: flex; align-items: center; gap: 8px; color: #cbd5e1; font-size: .7rem; min-width: 220px; padding-bottom: 12px; }
.cl-leg-bar { position: relative; flex: 1; height: 8px; border-radius: 4px; }
.cl-leg-n { position: absolute; left: 38px; right: 0; bottom: 0; height: 12px; }
.cl-leg-n i { position: absolute; transform: translateX(-50%); font-style: normal; opacity: .8; }
.cl-src { position: absolute; top: 12px; left: 56px; z-index: 900; max-width: calc(100% - 330px); color: #cbd5e1; font-size: .7rem; padding: 4px 8px; border-radius: 6px; background: rgba(15, 23, 42, .55); pointer-events: none; }

.cl-probe { position: absolute; z-index: 950; transform: translate(14px, -50%); pointer-events: none; display: flex; align-items: center; gap: 6px;
    padding: 5px 9px; border-radius: 8px; background: rgba(15, 23, 42, .9); color: #f8fafc; font-size: .8rem; white-space: nowrap; }
.cl-probe.is-left { transform: translate(calc(-100% - 14px), -50%); }
.cl-probe[hidden] { display: none; }
.cl-arrow { display: inline-block; font-weight: 700; color: #f59e0b; }

.cl-count { display: flex !important; align-items: center; justify-content: center; color: #fff; font-size: .72rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.cl-map .leaflet-control-zoom a { background: rgba(15, 23, 42, .8); color: #e2e8f0; border-color: rgba(255,255,255,.12); }
.cl-map .leaflet-tooltip { background: rgba(15, 23, 42, .92); color: #f1f5f9; border: 0; box-shadow: none; }
.cl-map .leaflet-tooltip-top:before { border-top-color: rgba(15, 23, 42, .92); }

.cl-side { background: var(--surface, #fff); border: 1px solid var(--line, rgba(0,0,0,.08)); border-radius: 14px; padding: 12px; max-height: calc(100vh - 210px); min-height: 460px; display: flex; flex-direction: column; }
.cl-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cl-side-head h2 { font-size: 1rem; margin: 0; }
.cl-chip { border: 0; border-radius: 999px; padding: 4px 10px; background: var(--surface-2, #eef2f7); color: inherit; font: inherit; font-size: .75rem; cursor: pointer; }
.cl-list { overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 2px; margin: 0 -4px; }
.cl-item { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; }
.cl-item:has(> img:first-child) { grid-template-columns: 64px 1fr; }
.cl-item > img:first-child { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; grid-row: span 2; }
.cl-item:hover { background: var(--surface-2, #f1f5f9); }
.cl-item-t { font-size: .86rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cl-item-m { font-size: .74rem; color: var(--muted, #64748b); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.cl-flag { width: 14px; height: 10px; object-fit: cover; border-radius: 2px; }
.cl-empty { color: var(--muted, #64748b); font-size: .85rem; padding: 10px 4px; }
.cl-more { display: block; margin-top: 8px; font-size: .82rem; font-weight: 600; text-decoration: none; }

@media (max-width: 980px) {
    .cl { grid-template-columns: 1fr; }
    .cl-stage { height: 62vh; min-height: 380px; }
    .cl-side { max-height: none; min-height: 0; }
    .cl-bottom { grid-template-columns: 1fr; }
    .cl-src { top: auto; bottom: 108px; left: 10px; max-width: calc(100% - 20px); }
    .cl-legend { min-width: 0; }
}
