/* ===== Mikor hová? – vidám, világos téma ===== */
:root {
  color-scheme: light;
  --bg: #fffaf2;
  --surface: #ffffff;
  --surface-2: #fff5e8;
  --surface-3: #ffe9d0;
  --ink: #2b2240;
  --ink-2: #5b5470;
  --muted: #908aa3;
  --line: #f2e7da;
  --line-2: #e6d7c4;
  --link: #1769b0;

  --coral: #ff6b57; --coral-ink: #c43c2b; --coral-soft: #ffe6e1;
  --sun: #ffbf2e;   --sun-ink: #8a5a00;   --sun-soft: #fff3cf;
  --sky: #3da5f5;   --sky-ink: #1769b0;   --sky-soft: #e3f2fe;
  --mint: #1bb38a;  --mint-ink: #0b7356;  --mint-soft: #ddf6ee;
  --violet: #8c6cf2; --violet-ink: #5a3fc0; --violet-soft: #efeafe;
  --pink: #f25c9b;  --pink-ink: #b8306c;  --pink-soft: #fde6f0;
  --orange: #ff8a3d; --orange-ink: #b4520f; --orange-soft: #ffeadb;

  --star: #ffb400; --star-ink: #8a5a00; --star-soft: #fff3cf;
  --good: #0ca30c; --warn: #fab219; --serious: #ec835a; --crit: #d03b3b;
  --crit-soft: #fdecec;

  /* pontszám: türkiz „tenger” skála, világos = rossz, mély = ideális */
  --s1: #e3f6ef; --s2: #b4e9d7; --s3: #6fd4b3; --s4: #23b386; --s5: #0b7356;
  --s1-ink: #10302a; --s2-ink: #10302a; --s3-ink: #10302a; --s4-ink: #0c2620; --s5-ink: #ffffff;

  --shadow: 0 1px 2px rgba(90, 60, 20, .05), 0 4px 14px rgba(90, 60, 20, .06);
  --shadow-lg: 0 14px 36px rgba(90, 60, 20, .14);
  --radius: 16px;
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--ink); font: 14.5px/1.5 var(--font); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, #dcefff 0, #eef6ff 140px, #fff4e4 380px, var(--bg) 620px) no-repeat, var(--bg);
}
a { color: var(--link); }
button { font: inherit; color: inherit; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: clamp(16px, 3vw, 32px); padding-right: clamp(16px, 3vw, 32px); }
.muted { color: var(--muted); }

/* ---------- fejléc ---------- */
header.top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--sun) 0%, var(--coral) 100%); box-shadow: 0 6px 16px rgba(255, 107, 87, .3); }
.logo svg { width: 26px; height: 26px; }
h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
h1 .hl { color: var(--coral); }
.tag { margin: 0; color: var(--ink-2); font-size: 13.5px; }

.yearbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
.year { padding: 5px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.year:hover { color: var(--ink); background: var(--surface-2); }
.year.active { background: var(--coral); color: #fff; }
.yearinfo { font-size: 12.5px; color: var(--ink-2); max-width: 380px; }
.yearinfo button { color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* ---------- fülek ---------- */
nav.tabs { display: flex; gap: 6px; overflow-x: auto; padding-top: 4px; padding-bottom: 4px; }
.tab { padding: 8px 18px; border: 1px solid transparent; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--ink-2); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .12s, color .12s; }
.tab:hover { background: var(--surface); color: var(--ink); }
.tab.active { background: var(--sky); color: #fff; box-shadow: 0 4px 12px rgba(61, 165, 245, .3); }

/* ---------- szűrők ---------- */
section.filters { padding-top: 14px; padding-bottom: 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search { position: relative; flex: 1 1 220px; max-width: 330px; display: block; }
.search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
#search { width: 100%; font: inherit; font-size: 14px; padding: 7px 12px 7px 36px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); outline: none; }
#search:focus { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  --c: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); transition: border-color .12s, background .12s, color .12s;
}
.chip:hover { border-color: var(--c); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip svg { width: 14px; height: 14px; flex: none; }
.chip.ghost.open { border-color: var(--ink-2); color: var(--ink); }

/* kontinens-színek (azonosító színek, fix sorrendben) */
[data-cont="europa"] { --c: #2a78d6; }
[data-cont="azsia"] { --c: #eb6834; }
[data-cont="kozel-kelet"] { --c: #1baf7a; }
[data-cont="afrika"] { --c: #eda100; }
[data-cont="eszak-amerika"] { --c: #e87ba4; }
[data-cont="kozep-amerika"] { --c: #008300; }
[data-cont="del-amerika"] { --c: #6250d6; }
[data-cont="oceania"] { --c: #e34948; }
.chip[data-cont]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.chip[data-cont].active { background: color-mix(in srgb, var(--c) 14%, white); border-color: var(--c); color: var(--ink); }

/* hónap- és címke-chipek */
.chip[data-tag].active { background: var(--violet-soft); border-color: var(--violet); color: var(--violet-ink); }
.chip[data-visa].active { background: var(--sky-soft); border-color: var(--sky); color: var(--sky-ink); }

.count { min-width: 19px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); font-size: 11px; font-weight: 800; line-height: 19px; text-align: center; }
.count:empty { display: none; }
.chip.active .count { background: rgba(255, 255, 255, .25); color: inherit; }
.fav-chip svg { fill: none; stroke: var(--star); stroke-width: 2; stroke-linejoin: round; }
.fav-chip:hover { border-color: var(--star); }
.fav-chip.active { background: var(--star-soft); border-color: var(--star); color: var(--star-ink); }
.fav-chip.active svg { fill: var(--star); }
.fav-chip.active .count { background: var(--star); color: #3a2600; }
.sep { width: 1px; height: 22px; background: var(--line-2); margin: 0 2px; }
.link-btn { border: 0; background: none; padding: 4px 6px; color: var(--coral-ink); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.more-panel { margin-top: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.gl { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.gl2 { margin-top: 14px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.toggles { display: flex; flex-direction: column; gap: 7px; }
.toggle { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.toggle input { accent-color: var(--coral); width: 16px; height: 16px; margin: 0; }
.chip.fav-item { padding-right: 9px; }
.chip.fav-item .x { color: var(--muted); font-size: 15px; line-height: 1; }
.chip.fav-item:hover .x { color: var(--crit); }

/* ---------- fő terület ---------- */
main { padding-top: 6px; padding-bottom: 44px; min-height: 50vh; }
.view { display: none; }
.view.active { display: block; }
h2 { font-size: 19px; font-weight: 800; margin: 0; letter-spacing: -.005em; }
.section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }
.section-head .sub { color: var(--ink-2); font-size: 13.5px; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 2px dashed var(--line-2); border-radius: var(--radius); margin-top: 18px; line-height: 1.6; }
.empty .big { font-size: 34px; display: block; margin-bottom: 6px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* közös apró elemek */
.flag { font-size: 17px; line-height: 1; width: 22px; text-align: center; flex: none; }
.score { display: inline-block; min-width: 36px; padding: 2px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; flex: none; }
.s1 { --b: var(--s1); --t: var(--s1-ink); } .s2 { --b: var(--s2); --t: var(--s2-ink); } .s3 { --b: var(--s3); --t: var(--s3-ink); }
.s4 { --b: var(--s4); --t: var(--s4-ink); } .s5 { --b: var(--s5); --t: var(--s5-ink); }
.score, td.cell, .strip .m, .sw { background: var(--b); color: var(--t); }

/* biztonsági pötty (konzuli besorolás) */
.sd { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; vertical-align: middle; }
.sd.l1 { background: var(--good); }
.sd.l2 { background: linear-gradient(90deg, var(--good) 50%, var(--warn) 50%); }
.sd.l3 { background: var(--warn); }
.sd.l4 { background: var(--serious); }
.sd.l5 { background: var(--crit); }

/* tömeg-mérő: 5 szegmens, a kitöltöttek száma = tömeg */
.meter { --m-on: var(--coral); --m-off: var(--line-2); position: relative; display: inline-block; width: 23px; height: 7px; flex: none; vertical-align: middle;
  background: repeating-linear-gradient(90deg, var(--m-off) 0 3px, transparent 3px 5px); }
.meter::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; background: repeating-linear-gradient(90deg, var(--m-on) 0 3px, transparent 3px 5px); }
.meter.c1::before { width: 3px; } .meter.c2::before { width: 8px; } .meter.c3::before { width: 13px; } .meter.c4::before { width: 18px; } .meter.c5::before { width: 23px; }

/* kedvenc csillag */
.fav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--line-2); cursor: pointer; flex: none; }
.fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.fav:hover { color: var(--star); }
.fav.on { color: var(--star); }
.fav.on svg { fill: currentColor; }
.fav:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; opacity: 1 !important; }
.fav.labeled { width: auto; height: auto; padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 13.5px; font-weight: 700; background: var(--surface); }
.fav.labeled svg { stroke: var(--star); }
.fav.labeled:hover { border-color: var(--star); color: var(--star-ink); }
.fav.labeled.on { background: var(--star-soft); border-color: var(--star); color: var(--star-ink); }
.fav.labeled.on svg { fill: var(--star); }
@media (hover: hover) {
  .mcard li .fav:not(.on), table.matrix tr .fav:not(.on) { opacity: 0; }
  .mcard li:hover .fav, table.matrix tr:hover .fav { opacity: 1; }
}

/* konzuli oldal link */
a.klink { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; color: var(--muted); text-decoration: none; flex: none; vertical-align: middle; }
a.klink svg { width: 14px; height: 14px; }
a.klink:hover { color: var(--sky-ink); background: var(--sky-soft); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.visa { background: var(--violet-soft); color: var(--violet-ink); }

/* események (ünnep, fesztivál) */
.events { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.ev { padding: 1px 9px; border-radius: 999px; background: var(--sky-soft); color: var(--sky-ink); font-size: 12px; font-weight: 600; line-height: 1.7; }
.ev b { font-weight: 800; font-variant-numeric: tabular-nums; }
.ev.fest { background: var(--pink-soft); color: var(--pink-ink); }
.ev.big { background: var(--orange-soft); color: var(--orange-ink); }

/* ---------- áttekintés ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 18px; }
.lead { margin: 0; color: var(--ink-2); max-width: 64ch; font-size: 15px; }
.lead b { color: var(--ink); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { --t: var(--sky); --tb: var(--sky-soft); background: var(--tb); border-radius: 14px; padding: 10px 14px; }
.stat:nth-child(2) { --t: var(--violet-ink); --tb: var(--violet-soft); }
.stat:nth-child(3) { --t: var(--coral-ink); --tb: var(--coral-soft); }
.stat:nth-child(4) { --t: var(--sun-ink); --tb: var(--sun-soft); }
.stat:nth-child(5) { --t: var(--pink-ink); --tb: var(--pink-soft); }
.stat:nth-child(6) { --t: var(--mint-ink); --tb: var(--mint-soft); }
.stat:nth-child(1) { --t: var(--sky-ink); }
.stat .n { font-size: 22px; font-weight: 800; color: var(--t); line-height: 1.2; }
.stat .l { font-size: 12.5px; color: var(--ink-2); }

.months-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.mcard { overflow: hidden; }
.mcard.winter { --se: var(--sky); --se-soft: var(--sky-soft); --se-ink: var(--sky-ink); }
.mcard.spring { --se: var(--pink); --se-soft: var(--pink-soft); --se-ink: var(--pink-ink); }
.mcard.summer { --se: var(--sun); --se-soft: var(--sun-soft); --se-ink: var(--sun-ink); }
.mcard.autumn { --se: var(--orange); --se-soft: var(--orange-soft); --se-ink: var(--orange-ink); }
.mhead { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--se-soft); border-bottom: 3px solid var(--se); }
.mhead .se { font-size: 17px; line-height: 1; }
.mname { flex: 1; font-size: 16px; font-weight: 800; }
.mname::first-letter { text-transform: uppercase; }
.mnum { font-size: 13px; font-weight: 800; color: var(--se-ink); font-variant-numeric: tabular-nums; }
.mcard ol { list-style: none; margin: 0; padding: 6px 8px 4px; display: flex; flex-direction: column; }
.mcard li { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 10px; cursor: pointer; }
.mcard li:hover { background: var(--surface-2); }
.mcard li .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .fest { margin: 4px 14px 12px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mcard .fest b { font-weight: 700; color: var(--ink-2); }

/* ---------- mátrix ---------- */
.matrix-tip { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; max-width: 100ch; }
.matrix-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-height: 78vh; box-shadow: var(--shadow); }
table.matrix { border-collapse: separate; border-spacing: 3px; min-width: 900px; width: 100%; }
table.matrix th { position: sticky; top: 0; z-index: 3; background: var(--surface); font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 9px 2px; }
table.matrix th:first-child { left: 0; z-index: 4; text-align: left; padding-left: 12px; }
table.matrix td.name { position: sticky; left: 0; z-index: 2; background: var(--surface); padding: 2px 8px 2px 4px; min-width: 240px; max-width: 300px; }
.nc { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.nc .nm { overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; }
.nc .cnt { color: var(--muted); font-size: 12px; }
.caret { width: 10px; flex: none; color: var(--muted); font-size: 10px; text-align: center; }
tr.country .caret::before { content: "▸"; }
tr.country.open .caret::before { content: "▾"; }
tr.country > td.name { cursor: pointer; }
tr.country > td.name .nm { font-weight: 800; }
tr.region > td.name .nc { padding-left: 46px; color: var(--ink-2); }
tr.region > td.name .nm { font-weight: 600; }
tr.unsafe .nm { text-decoration: line-through; text-decoration-color: var(--crit); color: var(--muted); }
table.matrix tr.group td { position: sticky; left: 0; background: var(--surface); padding: 16px 10px 5px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--c, var(--muted)); }
table.matrix tr.group td::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--muted)); margin-right: 8px; vertical-align: 1px; }
td.cell { position: relative; height: 36px; min-width: 52px; border-radius: 9px; text-align: center; cursor: pointer; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
td.cell:hover { outline: 2px solid var(--ink); outline-offset: -1px; z-index: 1; }
td.cell .meter { position: absolute; left: 6px; bottom: 4px; height: 3px; --m-on: currentColor; --m-off: transparent; opacity: .5; }
td.cell .hb { position: absolute; right: 5px; top: 2px; font-size: 9.5px; font-weight: 800; opacity: .8; }
td.cell .pk, .demo-pk { position: absolute; left: 5px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 1.5px var(--surface); }

/* ---------- hónap nézet ---------- */
.month-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.month-chips .chip.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.dcard { padding: 14px 16px 16px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dcard .hd { display: flex; align-items: center; gap: 10px; }
.dcard .rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); font-size: 12px; font-weight: 800; flex: none; }
.dcard:nth-child(1) .rank { background: var(--sun); color: #3a2600; }
.dcard:nth-child(2) .rank { background: #dfe6ee; color: #3d4a5c; }
.dcard:nth-child(3) .rank { background: #f3c9a4; color: #6b3a12; }
.dcard .flag { font-size: 26px; width: 30px; }
.ttl { flex: 1; min-width: 0; }
.dcard .nm { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.dcard .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard .rg { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.facts b { color: var(--coral-ink); font-weight: 800; }
.facts .meter { margin-right: 5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.note { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- úti cél nézet ---------- */
.dest-picker { margin: 18px 0 12px; }
.dest-picker select { font: inherit; font-size: 14.5px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); max-width: 100%; }
.dest-detail { padding: 22px 24px; }
.dest-detail .hd { display: flex; align-items: flex-start; gap: 14px; }
.dest-detail .flag { font-size: 46px; width: auto; }
.dest-detail h3 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.dest-detail .hl { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.dest-detail .tg { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }
.dest-detail .tg span { padding: 1px 9px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); font-size: 12px; font-weight: 700; }
.best { margin: 18px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--mint-soft); font-size: 14px; color: var(--mint-ink); }
.best b { font-weight: 800; }
.chart-label { margin: 20px 0 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 12px; }
.strip .m { border-radius: 10px; padding: 8px 2px; text-align: center; cursor: pointer; transition: transform .12s; }
.strip .m:hover { transform: translateY(-2px); outline: 2px solid var(--ink); outline-offset: -1px; }
.strip .mn { font-size: 11.5px; font-weight: 800; }
.strip .sc { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.strip .t { font-size: 11.5px; opacity: .85; font-variant-numeric: tabular-nums; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 110px; align-items: end; margin-top: 24px; }
.bars .b { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.bars .hi { background: linear-gradient(180deg, var(--coral), var(--sun)); border-radius: 6px 6px 0 0; min-height: 3px; }
.bars .lo { background: var(--surface-3); border-radius: 0 0 6px 6px; min-height: 2px; }
.bars .v { position: absolute; top: -19px; left: 0; right: 0; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rainrow { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 32px; align-items: end; }
.rainrow .r { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.rainrow .r i { display: block; width: 55%; min-height: 2px; background: var(--sky); border-radius: 5px 5px 0 0; }
.rainrow .r0 i { background: var(--line-2); }
.months-detail { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 22px; }
.md { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px 16px; box-shadow: inset 4px 0 0 var(--b); background: var(--surface); }
.md .mh { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.md .mh span:first-child::first-letter { text-transform: uppercase; }
.md .meta { font-size: 12.5px; color: var(--muted); margin: 4px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.md .note { margin: 6px 0 0; }
.evlist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.evlist li { position: relative; padding-left: 14px; }
.evlist li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.evlist li.festival::before, .evlist li.event::before { background: var(--pink); }
.evlist li.peak::before, .evlist li.religious::before, .evlist li.closure::before { background: var(--orange); }
.evlist li.regional { opacity: .7; }
.evlist .d { font-weight: 800; color: var(--ink); margin-right: 6px; font-variant-numeric: tabular-nums; }
.evlist .muted { font-size: 12.5px; }

/* konzuli doboz */
.konz { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--sky-soft); border: 1px solid #cfe6fb; }
.konz.l4 { background: var(--orange-soft); border-color: var(--serious); }
.konz.l5 { background: var(--crit-soft); border-color: var(--crit); }
.konz .t { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--sky-ink); }
.konz.l4 .t, .konz.l5 .t { color: var(--ink-2); }
.konz .cls { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 800; }
.konz p { margin: 6px 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.konz p b, .konz .vh { color: var(--ink); font-weight: 800; }
.konz .meta { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- oldalpanel ---------- */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(450px, 100vw); z-index: 50; padding: 24px 22px 40px; overflow: auto;
  background: linear-gradient(180deg, var(--sky-soft) 0, var(--surface) 200px); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform .22s ease;
}
.drawer.open { transform: none; }
.drawer .close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.drawer .close svg { width: 16px; height: 16px; }
.drawer .close:hover { background: var(--coral-soft); color: var(--coral-ink); }
.backdrop { position: fixed; inset: 0; background: rgba(43, 34, 64, .25); z-index: 40; display: none; }
.backdrop.show { display: block; }
.dh { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.dh .flag { font-size: 40px; width: auto; }
.dh h3 { margin: 0; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.dh .sub { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.drawer .hl { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.drawer .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0 4px; }
.kv .k { border-radius: 12px; padding: 9px 12px; background: var(--surface-2); }
.kv .k:nth-child(2) { background: var(--coral-soft); }
.kv .k:nth-child(3) { background: var(--sky-soft); }
.kv .k:nth-child(5) { background: var(--mint-soft); }
.kv .l { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.kv .v { display: flex; align-items: center; gap: 8px; margin-top: 2px; font-size: 16px; font-weight: 800; }
.kv .v small { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.drawer .tags { margin-top: 12px; }
.drawer .warn { font-size: 13px; color: var(--ink-2); margin: 8px 0 0; }
.btn { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.primary:hover { background: #f25a45; }

/* ---------- jelmagyarázat ---------- */
footer.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 18px; padding-bottom: 40px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.lg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lt { font-weight: 800; color: var(--ink-2); margin-right: 4px; }
.sw { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-left: 4px; }
.lg .sd, .lg .meter { margin-left: 4px; }
.demo-hb { font-size: 10px; font-weight: 800; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 4px; margin-left: 4px; }
.demo-pk { position: static; display: inline-block; margin-left: 8px; box-shadow: none; }
footer .src { flex-basis: 100%; }

/* ---------- értesítés ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: 90vw; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); }
.toast.err { background: var(--crit); }

@media (max-width: 800px) {
  .intro { grid-template-columns: 1fr; gap: 14px; }
  .strip { grid-template-columns: repeat(6, 1fr); }
  .bars, .rainrow, .chart-label.opt { display: none; }
  table.matrix td.name { min-width: 160px; max-width: 180px; }
  td.cell { min-width: 44px; }
  .sep { display: none; }
  .search { max-width: none; flex-basis: 100%; }
  h1 { font-size: 22px; }
}
