:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface2: #f7f8fb;
  --ink: #1b1f2a;
  --muted: #667085;
  --line: #e2e5ee;
  --brand: #1c3f94;
  --brand-ink: #ffffff;
  --accent: #dc241f;
  --up: #2f9e44;
  --down: #e03131;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
  }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12151c;
  --surface: #1b2030;
  --surface2: #222839;
  --ink: #eceff6;
  --muted: #9aa3b8;
  --line: #2c3347;
  --brand: #5b86f0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .25);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand); }
.muted { color: var(--muted); font-weight: 400; }

/* ---------- shell ---------- */
#shell { display: flex; flex-direction: column; height: 100dvh; }
.top {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top));
  background: var(--brand); color: var(--brand-ink);
}
.brand { font-size: 17px; white-space: nowrap; }
.brand .muted { color: rgba(255, 255, 255, .75); font-size: 13px; }
.topnav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.topnav button {
  background: transparent; border: 0; color: rgba(255, 255, 255, .8);
  padding: 8px 14px; border-radius: 10px; font-weight: 600;
}
.topnav button:hover { background: rgba(255, 255, 255, .12); }
.topnav button.on { background: rgba(255, 255, 255, .2); color: #fff; }
.top .me { margin-left: auto; width: 34px; height: 34px; border: 2px solid rgba(255, 255, 255, .6); }

.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(380px, 470px) 1fr; }
body[data-view="plan"] .layout { grid-template-columns: minmax(440px, 580px) 1fr; }
#side { overflow-y: auto; padding: 14px; background: var(--bg); }
#mapwrap { position: relative; border-left: 1px solid var(--line); }
#map { position: absolute; inset: 0; background: #dfe4ea; }
.mapmode {
  position: absolute; top: 10px; left: 56px; z-index: 500; display: flex;
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); padding: 3px;
}
.mapmode button { border: 0; background: transparent; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mapmode button.on { background: var(--brand); color: #fff; }
.tabbar { display: none; }

@media (max-width: 860px) {
  .topnav { display: none; }
  .brand { flex: 1; }
  .top { padding: 6px 14px; padding-top: max(6px, env(safe-area-inset-top)); }
  .layout, body[data-view="plan"] .layout { display: block; position: relative; }
  #side, #mapwrap { position: absolute; inset: 0; }
  #side { padding: 12px 12px 20px; }
  body[data-map="1"] #side { display: none; }
  body:not([data-map="1"]) #mapwrap { display: none; }
  #mapwrap { border-left: 0; }
  .tabbar {
    display: flex; background: var(--surface); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar button {
    flex: 1; border: 0; background: transparent; padding: 7px 0 6px; font-size: 11px;
    color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; font-weight: 600;
  }
  .tabbar button span { font-size: 20px; line-height: 1.1; }
  .tabbar button.on { color: var(--brand); }
}

/* ---------- login ---------- */
#login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--brand), #0d2260); }
.login-card { background: var(--surface); border-radius: 20px; padding: 28px 24px; width: 100%; max-width: 380px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); text-align: center; }
.login-card h1 { margin: 0 0 4px; font-size: 24px; }
.login-card p { margin: 0 0 18px; color: var(--muted); }
.who { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.who button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line); background: var(--surface2); border-radius: 14px; font-weight: 600; }
.who button.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.login-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); margin-bottom: 10px; }
.err { color: var(--down); min-height: 1.3em; font-size: 14px; margin: 0 0 6px; }

/* ---------- shared bits ---------- */
.btn { border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 10px; font-weight: 600; }
.btn:hover { background: var(--surface2); }
.btn.primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--down); }
.btn.block { width: 100%; padding: 11px; }
.btn.small { padding: 4px 9px; font-size: 13px; }

.av {
  --c: #888; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: var(--t, #fff);
  font-size: 11px; font-weight: 700; flex: none; position: relative; border: 0; padding: 0;
}
.av.lg { width: 30px; height: 30px; font-size: 13px; }
[data-tip] { cursor: default; }
[data-tip]:hover::after, [data-tip]:focus::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500;
  white-space: nowrap; z-index: 1000; pointer-events: none;
}
.top .av[data-tip]:hover::after { bottom: auto; top: calc(100% + 6px); right: 0; left: auto; transform: none; }
.approx { color: var(--muted); font-size: .92em; white-space: nowrap; }

/* ---------- ideas ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.toolbar .grow { flex: 1; }
.toolbar select { padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin: 0 -2px 6px; scrollbar-width: thin; }
.chip { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.count { font-size: 13px; color: var(--muted); margin: 0 2px 8px; }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px 14px; margin-bottom: 10px; border: 2px solid transparent; cursor: pointer;
}
.card.sel { border-color: var(--brand); }
.card-top { display: flex; align-items: flex-start; gap: 10px; }
.catdot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, var(--surface)); font-size: 18px; flex: none; }
.card h3 { margin: 0; font-size: 16px; line-height: 1.3; flex: 1; padding-top: 1px; }
.score { font-weight: 800; font-size: 15px; min-width: 34px; text-align: center; padding: 3px 7px; border-radius: 8px; background: var(--surface2); }
.score.pos { color: var(--up); }
.score.neg { color: var(--down); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0 44px; font-size: 13px; color: var(--muted); }
.meta .price { color: var(--ink); font-weight: 600; }
.notes { margin: 6px 0 0 44px; font-size: 14px; color: var(--ink); opacity: .85; white-space: pre-wrap; overflow-wrap: anywhere; }
.voters { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 0 44px; min-height: 22px; }
.voters .g { display: inline-flex; align-items: center; gap: 3px; margin-right: 8px; font-size: 13px; }
.voters .av { width: 20px; height: 20px; font-size: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0 44px; }
.vote { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--surface2); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 14px; }
.vote.up.on { background: color-mix(in srgb, var(--up) 18%, var(--surface)); border-color: var(--up); color: var(--up); }
.vote.down.on { background: color-mix(in srgb, var(--down) 16%, var(--surface)); border-color: var(--down); color: var(--down); }
.actions select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface2); font-size: 13px; max-width: 120px; }
.by { display: flex; align-items: center; gap: 5px; margin: 10px 0 0 44px; font-size: 12px; color: var(--muted); }
.by .av { width: 18px; height: 18px; font-size: 9px; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
@media (max-width: 860px) {
  .meta, .notes, .voters, .actions, .by { margin-left: 0; }
}

/* ---------- plan ---------- */
.trip { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.trip h2 { margin: 0 0 8px; font-size: 16px; }
.flight { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.flight:first-of-type { border-top: 0; }
.flight .fi { grid-row: span 3; font-size: 20px; }
.flight b { font-size: 14px; }
.flight small { color: var(--muted); }
.tz { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface2); font-size: 13px; color: var(--muted); }
.hotel { display: flex; gap: 10px; align-items: flex-start; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; margin-top: 8px; }
.daypills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 4px; position: sticky; top: -14px; background: var(--bg); padding-top: 4px; z-index: 5; }
.pill { flex: none; border: 2px solid var(--c, var(--line)); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; }
.pill.on { background: var(--c, var(--ink)); color: #fff; }
.day { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; border-top: 4px solid var(--c); }
.day > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 14px 0; cursor: pointer; flex-wrap: wrap; }
.day h3 { margin: 0; font-size: 16px; }
.day .cost { font-size: 13px; color: var(--muted); }
.hint { margin: 4px 14px 0; font-size: 13px; color: var(--muted); }
.dropzone { list-style: none; margin: 0; padding: 8px 10px 10px; min-height: 52px; transition: background .15s; }
.dropzone.over { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.dropzone:empty::before, .dropzone .ph { content: "Húzz ide ötleteket, vagy válassz napot a kártyán"; display: block; text-align: center; color: var(--muted); font-size: 13px; padding: 14px 0; }
.pitem { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface2); margin-bottom: 6px; cursor: pointer; flex-wrap: wrap; }
.pitem.sel { border-color: var(--brand); }
.pitem.dragging { opacity: .4; }
.pitem[draggable="true"] { cursor: grab; }
.num { width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; flex: none; }
.pitem .t { flex: 1; min-width: 120px; font-weight: 600; font-size: 14px; }
.pitem .t small { display: block; font-weight: 400; color: var(--muted); }
.pitem input[type="time"] { border: 1px solid var(--line); border-radius: 8px; padding: 3px 5px; background: var(--surface); width: 92px; font-size: 13px; }
.pitem .ctl { display: flex; gap: 4px; align-items: center; }
.pitem .ctl button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; width: 28px; height: 28px; padding: 0; }
.pitem select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 12px; max-width: 86px; }
.poolhead { margin: 18px 2px 6px; font-weight: 700; }

/* ---------- info ---------- */
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; }
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.row input { padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); width: 110px; }
.row input[type="password"] { width: 100%; max-width: 220px; }
.people { display: flex; gap: 12px; flex-wrap: wrap; }
.people span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- map ---------- */
.pin {
  width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--c, #555);
  border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); display: grid; place-items: center;
  font-size: 16px; color: #fff; font-weight: 800; transition: transform .12s;
}
.pin.sel { transform: scale(1.35); border-color: #ffd43b; box-shadow: 0 0 0 4px rgba(255, 212, 59, .55), 0 3px 10px rgba(0, 0, 0, .5); }
.pin.dim { opacity: .45; transform: scale(.8); }
.pin.faint { width: 20px; height: 20px; margin: -10px 0 0 -10px; font-size: 10px; background: #868e96; opacity: .7; border-width: 2px; }
.pin.hotel { background: #111827; border-color: #ffd43b; }
.leaflet-popup-content { margin: 12px 14px; min-width: 190px; font: 14px/1.4 system-ui, sans-serif; color: var(--ink); }
.pop h4 { margin: 0 0 4px; font-size: 15px; }
.pop .m { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.pop .row { margin: 6px 0 0; }

/* ---------- modal ---------- */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, 100vw - 24px); max-height: calc(100dvh - 24px); background: var(--surface); color: var(--ink); box-shadow: 0 25px 70px rgba(0, 0, 0, .4); }
dialog::backdrop { background: rgba(10, 14, 25, .55); }
dialog form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
dialog header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
dialog header h2 { margin: 0; font-size: 17px; }
.dbody { padding: 14px 18px; overflow-y: auto; display: grid; gap: 12px; }
.dbody label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dbody input, .dbody select, .dbody textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface2); color: var(--ink); font-weight: 400; font-size: 15px; width: 100%; }
.dbody textarea { min-height: 80px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dfoot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: space-between; padding-bottom: max(12px, env(safe-area-inset-bottom)); }
.results { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.results button { display: block; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; padding: 8px 12px; font-size: 13px; }
.results button:first-child { border-top: 0; }
.results button:hover { background: var(--surface2); }
.results b { display: block; font-size: 14px; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--up) 14%, var(--surface)); font-size: 13px; font-weight: 500; color: var(--ink); }
@media (max-width: 860px) {
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  dialog form { max-height: 100dvh; height: 100%; }
  .dbody { flex: 1; }
}

#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); background: #111827; color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 3000; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }

#pickMap { height: 240px; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; z-index: 0; }

/* sötét téma: a térkép csempéi is sötétre színezve (a pinek és popupok maradnak) */
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.8); }
:root[data-theme="dark"] #map, :root[data-theme="dark"] #pickMap { background: #262a33; }
.top .themebtn { background: rgba(255, 255, 255, .15); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 16px; padding: 0; margin-left: auto; }
.top .themebtn + .me { margin-left: 0; }
.seg { display: inline-flex; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--brand); color: #fff; }

/* Leaflet elemek a témához igazítva (popup, zoom gombok, forrásjelölés) */
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-bar a, .leaflet-bar a:hover { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
.leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--muted); }
.leaflet-control-attribution a { color: var(--brand); }

.hoursfs { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 12px; margin: 0; display: grid; gap: 8px; min-width: 0; }
.hoursfs legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0 6px; }
.hrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.hrow .hl { font-size: 13px; font-weight: 600; }
.hrow input[type="time"] { padding: 7px 8px; }
.hrow .check input { width: auto; }
@media (max-width: 420px) { .hrow { grid-template-columns: 46px minmax(0, 1fr) auto minmax(0, 1fr); } .hrow .check { grid-column: 2 / -1; } }

.hday { border-top: 1px solid var(--line); padding-top: 8px; }
.hday:first-of-type { border-top: 0; padding-top: 0; }
.hhead { display: flex; align-items: center; gap: 12px; }
.hhead b { min-width: 46px; font-size: 13px; }
.hhead .btn { margin-left: auto; }
.slots { display: grid; gap: 6px; margin-top: 6px; }
.slot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.slot .sl { grid-column: 1 / 4; }
.slot .btn { grid-row: 1; grid-column: 4; }
.slot input[type="time"] { padding: 7px 8px; }
.tier { display: grid; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.tier:last-child { border-bottom: 0; }
.tline { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; align-items: center; }
.tline select, .tline input[type="time"], .tline input[type="number"] { padding: 7px 8px; min-width: 0; }
.tline .check input { width: auto; }
.dbody label.check, .hoursfs label.check { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }

/* csak olvasható részletek + popup extra adatok */
.viewbox { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.viewbox > header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.viewbox > header h2 { margin: 0; font-size: 18px; }
.vrow { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.vrow:first-child { border-top: 0; }
.vl { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 2px; }
.vdays { display: grid; gap: 4px; }
.vday { display: grid; grid-template-columns: 62px 1fr; gap: 8px; font-size: 14px; }
.vday b { font-weight: 600; }
.pdet { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13px; }
.pdet > b { display: block; margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.pdet .vday { grid-template-columns: 52px 1fr; font-size: 13px; }
.leaflet-popup-content { max-height: 58vh; overflow-y: auto; }
@media (max-width: 860px) { dialog .viewbox { height: 100dvh; max-height: 100dvh; } .viewbox .dbody { flex: 1; } }
.vby .by { margin-left: 0; }
@media (max-width: 520px) { .vrow { grid-template-columns: 1fr; gap: 2px; } }

/* előzmények */
.hv { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.hv.cur { border-color: var(--brand); }
.hvhead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.hvlines { margin: 0; padding-left: 18px; font-size: 13px; color: var(--muted); }
.tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.feed { display: grid; gap: 8px; }
.fitem { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.fitem:last-child { border-bottom: 0; padding-bottom: 0; }
.fitem .btn { margin-left: auto; }

/* hely mező: a cím a keresőben, törlés gombbal */
.placeField { position: relative; display: block; }
.placeField input { padding-right: 40px; text-overflow: ellipsis; }
.clrbtn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 13px; line-height: 1; padding: 0; }
.clrbtn:hover { background: color-mix(in srgb, var(--down) 25%, var(--line)); }

.warnbox { margin: 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--ink); }

/* repülők: minden időponthoz látható időzóna */
.ftimes { display: grid; grid-template-columns: auto auto 1fr; gap: 3px 10px; align-items: center; margin: 4px 0; font-size: 15px; }
.ftimes .fl { font-size: 12px; color: var(--muted); }
.tzt { justify-self: start; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.tzt.hu { background: var(--surface2); color: var(--ink); }
.tzt.uk { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ki lájkolta szűrő */
.chiplabel { flex: none; align-self: center; font-size: 13px; font-weight: 600; color: var(--muted); padding-right: 2px; }
.chip .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: baseline; border: 1px solid rgba(255, 255, 255, .5); }
.likemode { margin: 0 0 10px; }
.likemode .seg button { padding: 5px 12px; font-size: 13px; }

/* szavazat szerinti szűrő: lépésenként, mondattal */
.vfilter { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 12px 12px; margin-bottom: 10px; }
.vfilter .chips { margin: 0 -2px 8px; padding-bottom: 4px; }
.vf-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 2px 0 6px; }
.vfilter .seg { margin-bottom: 8px; }
.filterhint { margin: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface2); font-size: 13px; line-height: 1.4; }
/* a szűrő gombjai törjenek sorba, ne kelljen vízszintesen görgetni */
.vfilter .chips { flex-wrap: wrap; overflow-x: visible; }
