/* ==========================================================================
   DutchRadar.nl - GPS-storingskaart (/gpsjam/)
   Bouwt voort op /assets/css/style.css, zelfde opzet als mlat.css.
   ========================================================================== */

.gpsjam {
    --gj-good: #1f7a3a;
    --gj-good-bg: #e3f6e5;
    --gj-mid: #8a5a00;
    --gj-mid-bg: #fdf1d3;
    --gj-bad: #a3271b;
    --gj-bad-bg: #fbe4e1;
    /* vulkleuren op de kaart (zelfde als de MLAT-kaart) */
    --gj-fill-good: #1f7a3a;
    --gj-fill-mid: #e0a100;
    --gj-fill-bad: #c0392b;
}

.gpsjam h1 { font-size: 1.9rem; margin-bottom: 0.3em; }
.gpsjam__intro { font-size: 1.05rem; max-width: 75ch; }
.gpsjam__hint { color: var(--color-text-muted); font-size: 0.92rem; }

/* Datumkeuze */
.gj-datebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}
.gj-datebar__nav { display: flex; gap: 4px; }
.gj-datebar button,
.gj-datebar input[type="date"] {
    padding: 7px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: 0.95rem;
}
.gj-datebar button { cursor: pointer; min-width: 42px; }
.gj-datebar button:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.gj-datebar button:disabled { opacity: 0.45; cursor: default; }
.gj-datebar__today { background: var(--color-primary) !important; border-color: var(--color-primary) !important; color: #fff !important; }
.gj-status { margin: 0; font-size: 0.88rem; color: var(--color-text-muted); }
.gj-status.is-error { color: var(--gj-bad); font-weight: 600; }

.gj-live {
    display: inline-block;
    margin-left: 6px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    vertical-align: middle;
}

/* Kaart + zijkolom */
.gj-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}
.gj-map {
    height: 420px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    position: relative;   /* kaart blijft onder het uitklapmenu van de site */
    z-index: 0;
}
.gj-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Kerncijfers van de gekozen dag */
.gj-figures {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;   /* label mag krimpen/afbreken, getal niet */
    gap: 6px 12px;
    margin: 0;
    font-size: 0.95rem;
}
.gj-figures dt { color: var(--color-text-muted); }
.gj-figures dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Legenda: kleur én betekenis */
.gj-legend__lead { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 10px; }
.gj-legend li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 0.92rem; }
.gj-swatch {
    flex: 0 0 auto;
    width: 18px;
    height: 16px;
    clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
    opacity: 0.8;
}
.gj-swatch--good { background: var(--gj-fill-good); }
.gj-swatch--mid  { background: var(--gj-fill-mid); }
.gj-swatch--bad  { background: var(--gj-fill-bad); }
.gj-legend b { font-weight: 600; }
.gj-legend span { color: var(--color-text-muted); }

/* Tooltip op de kaart */
.gj-tip { font-family: var(--font-body); font-size: 0.85rem; line-height: 1.4; }
.gj-tip b { font-size: 0.95rem; }

@media (min-width: 960px) {
    .gj-layout { flex-direction: row; align-items: flex-start; }
    .gj-map { flex: 1 1 auto; height: 600px; }
    .gj-side { flex: 0 0 320px; }
}
