/* ==========================================================================
   THUIS-MODULE: PERSOONLIJKE WEERSAMENVATTING
   Lucht-kaart (kleur volgt weer en dagdeel) + rustige, contrastrijke kaarten.
   Alle kleuren lopen via de --th-*-tokens hieronder; het lichte thema
   overschrijft alleen die tokens (onderaan dit bestand).
   ========================================================================== */
#thuis-workspace {
  --th-bg: #0b0f15;
  --th-kaart: #141a23;
  --th-rand: rgba(255, 255, 255, 0.08);
  --th-tekst: var(--gray-100);
  --th-tekst-2: #b4bec9;
  --th-tekst-3: #808a96;
  --th-lijn: rgba(255, 255, 255, 0.16);
  --th-nacht: rgba(130, 150, 210, 0.08);
  --th-hover: rgba(255, 255, 255, 0.06);
  --th-temp: #ff8a4c;
  --th-regen: #4c9dff;
  --th-schaduw: 0 1px 2px rgba(0, 0, 0, 0.3);
}

#thuis-workspace.thuis-layout {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--th-bg);
  color: var(--th-tekst);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px 40px 28px;
  z-index: 20;
}

#thuis-workspace .thuis-inner {
  max-width: 1080px;
  margin: 0 auto;
}

/* Flash die kort over de hele workspace loopt zodra een locatie net gekozen is. */
#thuis-workspace.thuis-layout .thuis-reveal-flash {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, rgba(255, 107, 53, 0.3), rgba(255, 107, 53, 0) 60%);
  animation: thuisRevealFlash 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes thuisRevealFlash {
  0%   { opacity: 0; transform: scale(0.85); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.4); }
}

/* --- Kop --- */
#thuis-workspace .thuis-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

#thuis-workspace .thuis-title {
  font-family: var(--font-impact);
  font-size: 26px;
  letter-spacing: 0.8px;
  color: var(--th-tekst);
  margin: 0 0 2px 0;
}

#thuis-workspace .thuis-station-label {
  font-size: 13px;
  color: var(--th-tekst-3);
}

/* --- Locatie picker --- */
#thuis-workspace .thuis-picker {
  position: relative;
  max-width: 520px;
  padding: 20px 22px;
  margin-bottom: 20px;
}

#thuis-workspace .thuis-picker-uitleg {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--th-tekst-2);
  margin: 10px 0 16px 0;
}

#thuis-workspace .thuis-picker-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

#thuis-workspace .btn-welcome-primary.thuis-btn-geo {
  width: auto;
  flex: 1 1 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#thuis-workspace .thuis-picker-search {
  margin-top: 16px;
}

#thuis-workspace .thuis-search-input {
  width: 100%;
  background: var(--th-kaart);
  border: 1px solid var(--th-rand);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  color: var(--th-tekst);
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

#thuis-workspace .thuis-search-input:focus {
  outline: none;
  border-color: var(--accent-orange);
}

#thuis-workspace .thuis-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
}

#thuis-workspace .thuis-search-result {
  text-align: left;
  background: var(--th-kaart);
  border: 1px solid var(--th-rand);
  border-radius: var(--radius-md);
  padding: 9px 11px;
  color: var(--th-tekst);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

#thuis-workspace .thuis-search-result:hover {
  border-color: var(--accent-orange);
}

#thuis-workspace .thuis-search-result-country,
#thuis-workspace .thuis-search-empty,
#thuis-workspace .thuis-picker-status {
  font-size: 0.8rem;
  color: var(--th-tekst-3);
}

#thuis-workspace .thuis-search-empty { padding: 6px 2px; }
#thuis-workspace .thuis-picker-status { margin-top: 12px; }
#thuis-workspace .thuis-picker-status-error { color: var(--status-red); }

/* --- Entree-animatie --- */
@keyframes thuisFadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#thuis-workspace .thuis-melding,
#thuis-workspace .thuis-hero,
#thuis-workspace .thuis-details,
#thuis-workspace .thuis-kaart,
#thuis-workspace .thuis-cta-row {
  animation: thuisFadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#thuis-workspace .thuis-hero { animation-delay: 0.03s; }
#thuis-workspace .thuis-details { animation-delay: 0.09s; }
#thuis-workspace .thuis-kaart { animation-delay: 0.15s; }
#thuis-workspace .thuis-cta-row { animation-delay: 0.21s; }

/* --- Meldingen (waarschuwing / gladheid): alleen zichtbaar als er iets is --- */
#thuis-workspace .thuis-melding {
  --thuis-melding-kleur: var(--status-orange);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--th-kaart);
  border: 1px solid var(--th-rand);
  border-left: 4px solid var(--thuis-melding-kleur);
  border-radius: var(--radius-xl);
  padding: 12px 14px 12px 16px;
  margin-bottom: 12px;
}

#thuis-workspace .thuis-melding[data-gladheid-status="critical"] { --thuis-melding-kleur: var(--status-red); }

#thuis-workspace .thuis-melding-tekst {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

#thuis-workspace .thuis-melding-tekst strong {
  font-size: 14px;
  color: var(--th-tekst);
}

#thuis-workspace .thuis-melding-tekst span {
  font-size: 13px;
  color: var(--th-tekst-2);
}

#thuis-workspace .thuis-warning-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--thuis-melding-kleur);
  flex-shrink: 0;
}

#thuis-workspace .thuis-gladheid-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--thuis-melding-kleur);
  background: color-mix(in srgb, var(--thuis-melding-kleur) 15%, transparent);
}

#thuis-workspace .thuis-melding-btn {
  background: transparent;
  border: 1px solid var(--th-rand);
  color: var(--th-tekst);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  flex-shrink: 0;
}

#thuis-workspace .thuis-melding-btn:hover { border-color: var(--thuis-melding-kleur); }

/* --- Lucht-kaart --- */
#thuis-workspace .thuis-hero {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  color: #ffffff;
  margin-bottom: 14px;
  background: linear-gradient(165deg, #1b62b8 0%, #3f8ddb 60%, #64a8e6 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.6s ease;
}

#thuis-workspace .thuis-hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px 28px;
}

#thuis-workspace .thuis-hero-tekst { min-width: 0; }

#thuis-workspace .thuis-hero-plaats {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#thuis-workspace .thuis-hero-plaats i { font-size: 12px; margin-right: 2px; }

#thuis-workspace .thuis-nu-temp {
  font-family: var(--font-ui);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2px;
  margin: 8px 0 6px -3px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

#thuis-workspace .thuis-hero-omschrijving {
  font-size: 20px;
  font-weight: 600;
}

#thuis-workspace .thuis-hero-sub {
  font-size: 14.5px;
  margin-top: 6px;
  opacity: 0.92;
}

#thuis-workspace .thuis-nu-icon {
  font-size: 88px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.18));
  padding-right: 6px;
}

#thuis-workspace .thuis-hero[data-weer="helder"][data-tijd="dag"] .thuis-nu-icon { color: #ffd34d; }

#thuis-workspace .thuis-hero-voet {
  font-size: 12.5px;
  padding: 10px 28px;
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.92);
}

/* Achtergrond per weertype (overdag) */
#thuis-workspace .thuis-hero[data-weer="bewolkt"] { background: linear-gradient(165deg, #44546a 0%, #627389 60%, #7a8a9e 100%); }
#thuis-workspace .thuis-hero[data-weer="regen"]   { background: linear-gradient(165deg, #2f3d52 0%, #4a5b71 60%, #5d6e84 100%); }
#thuis-workspace .thuis-hero[data-weer="onweer"]  { background: linear-gradient(165deg, #241f3a 0%, #3d3558 60%, #544a70 100%); }
#thuis-workspace .thuis-hero[data-weer="sneeuw"]  { background: linear-gradient(165deg, #4f6584 0%, #6d83a2 60%, #8396b2 100%); }
#thuis-workspace .thuis-hero[data-weer="mist"]    { background: linear-gradient(165deg, #555d69 0%, #707884 60%, #838b96 100%); }

/* Schemering (rond zon op/onder) bij weinig bewolking */
#thuis-workspace .thuis-hero[data-tijd="schemer"][data-weer="helder"] {
  background: linear-gradient(165deg, #263a6e 0%, #7d4f86 55%, #d9805a 100%);
}
#thuis-workspace .thuis-hero[data-tijd="schemer"][data-weer="bewolkt"] {
  background: linear-gradient(165deg, #34405a 0%, #5d5670 60%, #8a6c6c 100%);
}

/* Nacht */
#thuis-workspace .thuis-hero[data-tijd="nacht"] { background: linear-gradient(165deg, #141b2b 0%, #212b40 60%, #2b364d 100%); }
#thuis-workspace .thuis-hero[data-tijd="nacht"][data-weer="helder"] { background: linear-gradient(165deg, #0a1430 0%, #17275a 60%, #24366b 100%); }
#thuis-workspace .thuis-hero[data-tijd="nacht"][data-weer="onweer"] { background: linear-gradient(165deg, #140f24 0%, #262040 60%, #342c52 100%); }

/* Icoon-animaties per weertype */
#thuis-workspace .thuis-icon-sun i { animation: thuisIconSpin 24s linear infinite; display: inline-block; }
#thuis-workspace .thuis-icon-drift i { animation: thuisIconDrift 5s ease-in-out infinite; display: inline-block; }
#thuis-workspace .thuis-icon-rain i { animation: thuisIconBounce 1.8s ease-in-out infinite; display: inline-block; }
#thuis-workspace .thuis-icon-snow i { animation: thuisIconTwinkle 2.6s ease-in-out infinite; display: inline-block; }
#thuis-workspace .thuis-icon-storm i { animation: thuisIconFlicker 2.2s ease-in-out infinite; display: inline-block; }

@keyframes thuisIconSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes thuisIconDrift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes thuisIconBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes thuisIconTwinkle { 0%, 100% { opacity: 1; transform: rotate(0deg); } 50% { opacity: 0.8; transform: rotate(10deg); } }
@keyframes thuisIconFlicker { 0%, 45%, 55%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* --- Detailtegels --- */
#thuis-workspace .thuis-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

#thuis-workspace .thuis-tegel {
  background: var(--th-kaart);
  border: 1px solid var(--th-rand);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  min-width: 0;
}

#thuis-workspace .thuis-tegel-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--th-tekst-3);
  margin-bottom: 6px;
}

#thuis-workspace .thuis-tegel-label i {
  width: 14px;
  margin-right: 3px;
  color: var(--th-tekst-3);
}

#thuis-workspace .thuis-tegel-waarde {
  font-size: 22px;
  font-weight: 700;
  color: var(--th-tekst);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#thuis-workspace .thuis-tegel-waarde small {
  font-size: 13px;
  font-weight: 600;
  color: var(--th-tekst-2);
  margin-left: 1px;
}

#thuis-workspace .thuis-tegel-sub {
  font-size: 12.5px;
  color: var(--th-tekst-2);
  margin-top: 4px;
}

/* --- Algemene kaart --- */
#thuis-workspace .thuis-kaart {
  position: relative;
  background: var(--th-kaart);
  border: 1px solid var(--th-rand);
  border-radius: var(--radius-2xl);
  padding: 18px 20px 14px 20px;
}

#thuis-workspace .thuis-kaart-kop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 12px;
}

#thuis-workspace .thuis-kaart-titel {
  font-size: 17px;
  font-weight: 700;
  color: var(--th-tekst);
  margin: 0 0 3px 0;
}

#thuis-workspace .thuis-verloop-samenvatting {
  font-size: 14px;
  color: var(--th-tekst-2);
}

#thuis-workspace .thuis-verloop-legenda {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--th-tekst-3);
}

#thuis-workspace .thuis-verloop-legenda i {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

#thuis-workspace .thuis-leg-lijn { width: 14px; height: 3px; border-radius: 2px; background: var(--th-temp); }
#thuis-workspace .thuis-leg-balk { width: 8px; height: 11px; border-radius: 2px 2px 0 0; background: var(--th-regen); }
#thuis-workspace .thuis-leg-nacht { width: 12px; height: 12px; border-radius: 3px; background: var(--th-nacht); border: 1px solid var(--th-lijn); }

#thuis-workspace .thuis-verloop-bron {
  font-size: 11.5px;
  color: var(--th-tekst-3);
  margin-top: 8px;
}

/* --- Grafiek "Vandaag en morgen": op desktop passend in de kaartbreedte, op mobiel (.vl-swipe)
   horizontaal te swipen met vaste kolombreedte (zie renderVerloop() in thuis.js) --- */
#thuis-workspace .thuis-verloop-venster {
  position: relative;
}

#thuis-workspace .thuis-verloop-scroll {
  overflow: visible;
  padding-bottom: 6px;
}

#thuis-workspace .thuis-verloop-scroll.vl-swipe {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

#thuis-workspace .thuis-verloop-scroll.vl-swipe::-webkit-scrollbar { display: none; }

/* Swipen moet de grafiek kunnen scrollen; een tik toont de tooltip. */
#thuis-workspace .thuis-verloop-scroll.vl-swipe .vl-hit { touch-action: auto; }

#thuis-workspace .thuis-verloop-fade {
  display: none;
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 56px;
  z-index: 4;
  pointer-events: none;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  color: var(--th-tekst-3);
  font-size: 14px;
  transition: opacity 0.2s ease;
}

#thuis-workspace .thuis-verloop-fade-rechts {
  right: 0;
  background: linear-gradient(to right, transparent, var(--th-kaart) 85%);
}

#thuis-workspace .thuis-verloop-fade-links {
  left: 0;
  width: 32px;
  background: linear-gradient(to left, transparent, var(--th-kaart) 85%);
}

#thuis-workspace .thuis-verloop-venster:has(.vl-swipe) .thuis-verloop-fade { display: flex; opacity: 0; }
#thuis-workspace .thuis-verloop-venster.kan-rechts .thuis-verloop-fade-rechts,
#thuis-workspace .thuis-verloop-venster.kan-links .thuis-verloop-fade-links { opacity: 1; }

/* Het pijltje knikt even naar rechts als uitnodiging om te swipen. */
#thuis-workspace .thuis-verloop-fade-rechts i { animation: thuisSwipeHint 2.4s ease-in-out infinite; }

@keyframes thuisSwipeHint {
  0%, 60%, 100% { transform: translateX(0); }
  75% { transform: translateX(4px); }
}

#thuis-workspace .thuis-verloop-leeg {
  padding: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--th-tekst-3);
}

#thuis-workspace .vl-binnen {
  position: relative;
}

#thuis-workspace .vl-achtergrond {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

#thuis-workspace .vl-nacht {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--th-nacht);
}

#thuis-workspace .vl-scheiding {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px solid var(--th-rand);
}

#thuis-workspace .vl-dagen {
  position: relative;
  height: 28px;
}

#thuis-workspace .vl-dag {
  position: absolute;
  top: 4px;
  padding-left: 8px;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--th-tekst);
}

#thuis-workspace .vl-dag span {
  color: var(--th-tekst-2);
  font-weight: 500;
}

#thuis-workspace .vl-rij {
  position: relative;
  display: flex;
}

/* Smalle kolommen: een label is breder dan zijn kolom en loopt gecentreerd over de (lege)
   buurkolommen heen. */
#thuis-workspace .vl-cel {
  flex: 0 0 var(--vl-kol);
  width: var(--vl-kol);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#thuis-workspace .vl-tijden .vl-cel {
  font-size: 12.5px;
  color: var(--th-tekst-3);
  height: 20px;
  line-height: 20px;
}

#thuis-workspace .vl-tijden strong { color: var(--th-tekst); }

#thuis-workspace .vl-iconen .vl-cel {
  font-size: 18px;
  height: 32px;
  line-height: 32px;
  color: var(--th-tekst-2);
}

#thuis-workspace .vl-iconen .fa-sun { color: #f2a900; }
#thuis-workspace .vl-iconen .fa-moon { color: #93a6d8; }
#thuis-workspace .vl-iconen .fa-cloud-rain,
#thuis-workspace .vl-iconen .fa-cloud-showers-heavy,
#thuis-workspace .vl-iconen .fa-cloud-sun-rain,
#thuis-workspace .vl-iconen .fa-cloud-moon-rain { color: var(--th-regen); }

#thuis-workspace .vl-temps .vl-cel {
  font-size: 15px;
  font-weight: 700;
  color: var(--th-tekst);
  height: 22px;
  line-height: 22px;
}

#thuis-workspace .vl-svg {
  position: relative;
  display: block;
  overflow: visible;
}

#thuis-workspace .vl-lijn {
  fill: none;
  stroke: var(--th-temp);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

#thuis-workspace .vl-vlak-stop { stop-color: var(--th-temp); }

#thuis-workspace .vl-nu-punt {
  fill: var(--th-temp);
  stroke: var(--th-kaart);
  stroke-width: 2;
}

#thuis-workspace .vl-balk { fill: var(--th-regen); }

#thuis-workspace .vl-basis {
  stroke: var(--th-lijn);
  stroke-width: 1;
}

#thuis-workspace .vl-mm {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 600;
  fill: var(--th-tekst-2);
  text-anchor: middle;
}

#thuis-workspace .vl-kans .vl-cel {
  font-size: 11.5px;
  color: var(--th-regen);
  font-weight: 600;
  height: 18px;
  line-height: 18px;
}

#thuis-workspace .vl-wind .vl-cel {
  font-size: 12px;
  color: var(--th-tekst-2);
  height: 26px;
  line-height: 26px;
}

#thuis-workspace .vl-wind i {
  font-size: 10px;
  margin-right: 3px;
  color: var(--th-tekst-3);
}

/* Klik-/hovervlakken per uur (boven alles, zodat de hele kolom reageert) */
#thuis-workspace .vl-hit {
  touch-action: pan-y;
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
}

#thuis-workspace .vl-kol {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: var(--radius-xs);
  cursor: default;
}

#thuis-workspace .vl-kol:hover,
#thuis-workspace .vl-kol.actief {
  background: var(--th-hover);
}

#thuis-workspace .thuis-verloop-tip {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  min-width: 170px;
  max-width: 260px;
  padding: 9px 11px;
  border-radius: var(--radius-lg);
  background: var(--th-tekst);
  color: var(--th-bg);
  font-size: 12.5px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(calc(-100% - 6px));
  opacity: 0;
  transition: opacity 0.12s ease;
}

#thuis-workspace .thuis-verloop-tip.zichtbaar { opacity: 1; }

/* --- Verdieping --- */
#thuis-workspace .thuis-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

#thuis-workspace .thuis-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--th-kaart);
  border: 1px solid var(--th-rand);
  color: var(--th-tekst);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

#thuis-workspace .thuis-cta-btn:hover { border-color: var(--accent-orange); }
#thuis-workspace .thuis-cta-btn i { color: var(--accent-orange); }

@media (prefers-reduced-motion: reduce) {
  #thuis-workspace .thuis-melding,
  #thuis-workspace .thuis-hero,
  #thuis-workspace .thuis-details,
  #thuis-workspace .thuis-kaart,
  #thuis-workspace .thuis-cta-row,
  #thuis-workspace .thuis-nu-icon i,
  #thuis-workspace .thuis-verloop-fade-rechts i,
  .thuis-reveal-flash {
    animation: none !important;
  }
  .thuis-reveal-flash { opacity: 0; }
}

/* ==========================================================================
   MOBIELE WEERGAVE (globale 768px-breakpoint uit hub.css)
   ========================================================================== */
@media (max-width: 768px) {
  #thuis-workspace.thuis-layout {
    padding: 16px 16px calc(32px + env(safe-area-inset-bottom, 0px)) 16px;
  }

  #thuis-workspace .thuis-header { margin-bottom: 14px; }
  #thuis-workspace .thuis-title { font-size: 22px; }

  #thuis-workspace #thuis-btn-wijzig-locatie {
    padding: 9px 12px;
    font-size: 0.74rem;
  }

  #thuis-workspace .thuis-picker {
    max-width: 100%;
    padding: 16px;
  }

  #thuis-workspace .thuis-picker-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #thuis-workspace .btn-welcome-primary.thuis-btn-geo,
  #thuis-workspace #thuis-btn-toon-zoeken {
    flex: 1 1 auto;
    width: 100%;
    min-height: 46px;
  }

  #thuis-workspace .thuis-hero-main { padding: 20px 20px 16px 20px; }
  #thuis-workspace .thuis-hero-voet { padding: 9px 20px; }
  #thuis-workspace .thuis-nu-temp { font-size: 62px; }
  #thuis-workspace .thuis-hero-omschrijving { font-size: 18px; }
  #thuis-workspace .thuis-nu-icon { font-size: 64px; }

  #thuis-workspace .thuis-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #thuis-workspace .thuis-tegel { padding: 12px 14px; }
  #thuis-workspace .thuis-tegel-waarde { font-size: 20px; }

  #thuis-workspace .thuis-kaart { padding: 16px 16px 12px 16px; }
  /* Swipegebied loopt door tot de randen van de kaart. */
  #thuis-workspace .thuis-verloop-venster { margin: 0 -16px; }
  #thuis-workspace .thuis-verloop-scroll { padding: 0 16px 6px 16px; }
  #thuis-workspace .thuis-verloop-fade { bottom: 6px; }

  #thuis-workspace .thuis-melding { flex-wrap: wrap; }

  #thuis-workspace .thuis-cta-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 44px;
  }

  #thuis-workspace .thuis-search-result { min-height: 40px; }
}

@media (max-width: 420px) {
  #thuis-workspace.thuis-layout { padding: 14px 12px calc(28px + env(safe-area-inset-bottom, 0px)) 12px; }
  #thuis-workspace .thuis-nu-temp { font-size: 54px; }
  #thuis-workspace .thuis-nu-icon { font-size: 52px; }
  #thuis-workspace .thuis-cta-row { flex-direction: column; }
  #thuis-workspace .thuis-cta-btn { width: 100%; }
}

/* ==========================================================================
   VOYAGER (LICHT THEMA): alleen de tokens wisselen; de lucht-kaart houdt
   zijn eigen kleuren.
   ========================================================================== */
body.theme-voyager #thuis-workspace {
  --th-bg: #eef2f7;
  --th-kaart: #ffffff;
  --th-rand: rgba(15, 23, 42, 0.09);
  --th-tekst: var(--slate-900);
  --th-tekst-2: var(--slate-600);
  --th-tekst-3: var(--slate-500);
  --th-lijn: rgba(15, 23, 42, 0.12);
  --th-nacht: rgba(30, 58, 138, 0.06);
  --th-hover: rgba(15, 23, 42, 0.05);
  --th-temp: #e8590c;
  --th-regen: #2563eb;
}

body.theme-voyager #thuis-workspace .thuis-hero { box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
