/* Ebédtérkép. Irány: DESIGN.md (minimál, néhány természetes, kaja-témájú elemmel) */
:root {
  --lap: #F8F8F6;
  --szoveg: #16181D;
  --halvany: #6B7080;
  --vonal: #D6D6CE;
  --piros: #D93A26;
  --zold: #4F7542;
  --zold-vilagos: #7FA06C;
  --zsalya: #E3EBDA;
  --paprika-krem: #F5E0D8;
  --safrany: #D9A441;
  --papir-buborek: #FFFDF8;
  --buborek-arnyek: 0 0 0 1px rgba(22, 24, 29, .07), 0 14px 30px -16px rgba(22, 24, 29, .45), 0 2px 6px -2px rgba(22, 24, 29, .1);

  --cim: "Alegreya", Georgia, serif;
  --betu: "Comic Relief", "Comic Sans MS", "Comic Neue", cursive;
  --szel: 20px;
  --perc-x: 56px;
  --sima: cubic-bezier(.2, .7, .2, 1);
  --rugo: cubic-bezier(.34, 1.4, .64, 1);

  /* szabálytalan, hullámos elválasztó vonal */
  --hullam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M0 4C22 2.2 41 5.6 63 4.2S104 2.4 128 4.6 176 6 199 3.4 246 2.2 268 4 292 4.4 300 4' fill='none' stroke='%23CFCFC6' stroke-width='1.2'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--lap); color: var(--szoveg);
  font-family: var(--betu); font-size: .97rem; line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 1.5px solid var(--szoveg); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- fejléc ---------- */
.fejlec { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px var(--szel) 0; font-size: .92rem; }
.logo { display: inline-flex; align-items: flex-end; gap: 7px; font-family: var(--cim); font-weight: 700; font-size: 1.12rem; text-decoration: none; }
.tal { width: 24px; height: 24px; overflow: visible; flex: none; transform: translateY(1px); }
.tal-test { fill: var(--szoveg); }
.goz { fill: none; stroke: var(--piros); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 3.2 4.2; opacity: .85; animation: goz 2.6s linear infinite, gozleng 5.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.goz.g2 { animation-delay: -.9s, -1.7s; }
.goz.g3 { animation-delay: -1.6s, -3.1s; }
@keyframes goz { to { stroke-dashoffset: -14.8; } }
@keyframes gozleng { 0%, 100% { transform: skewX(0deg); opacity: .85; } 50% { transform: skewX(-7deg); opacity: .45; } }
.fejlec-link { color: var(--halvany); }
.fejlec-link:hover { color: var(--szoveg); }

/* ---------- nyitó, a szerves folttal ---------- */
.racs { padding: 0 var(--szel); }
.nyito { position: relative; isolation: isolate; padding: 56px 0 4px; max-width: 34rem; }
.folt { position: absolute; z-index: -1; pointer-events: none; overflow: visible; width: 330px; height: 270px; right: -132px; top: -18px; }
.mag { will-change: transform; }
h1 {
  margin: 0; font-family: var(--cim); font-weight: 600;
  font-size: clamp(2.5rem, 9.4vw, 3.8rem); line-height: 1; letter-spacing: -0.012em;
  text-wrap: balance;
}
.bevezeto { margin: 18px 0 0; color: var(--halvany); max-width: 30rem; }

/* ---------- szűrők: szavak, alattuk egy zöld hullám csúszik ---------- */
.szurok { margin: 40px 0 0; display: grid; gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 4px; font-size: .78rem; color: var(--halvany); }
.valasztok { position: relative; display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: .95rem; }
.valasztok label, .pipak label { position: relative; cursor: pointer; padding: 3px 0 7px; }
.valasztok input, .pipak input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.valasztok span { color: var(--halvany); transition: color .2s; white-space: nowrap; }
.valasztok label:hover span, .valasztok input:checked + span { color: var(--szoveg); }
.valasztok input:focus-visible + span, .pipak input:focus-visible + span { outline: 1.5px solid var(--szoveg); outline-offset: 3px; }
.jelzo { position: absolute; left: 0; top: 0; height: 6px; width: 0; pointer-events: none; opacity: 0; }
.jelzo svg { display: block; width: 100%; height: 100%; overflow: visible; }
.jelzo path { fill: none; stroke: var(--zold); stroke-width: 1.15; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85; }
.jelzo path.ketto { stroke-width: .8; opacity: .35; }
.valasztok.kesz .jelzo { transition: transform .38s var(--sima), width .38s var(--sima), opacity .2s; }

.pipak { display: flex; flex-wrap: wrap; gap: 2px 20px; font-size: .95rem; }
.pipak span { display: inline-flex; align-items: center; gap: 8px; color: var(--halvany); transition: color .2s; white-space: nowrap; }
.pipak span::before {
  content: ""; width: 12px; height: 12px; flex: none; border: 1.5px solid currentColor;
  border-radius: 3px 5px 2px 6px / 5px 2px 6px 3px;
  transition: background-color .2s, box-shadow .2s;
}
.pipak label:hover span, .pipak input:checked + span { color: var(--szoveg); }
.pipak input:checked + span::before { background: var(--zold); border-color: var(--zold); box-shadow: inset 0 0 0 2px var(--lap); }

/* ---------- térkép ---------- */
.terkep-hely { position: relative; margin: 36px calc(-1 * var(--szel)) 0; height: 58vh; height: 58svh; min-height: 320px; background: #F0F0EC; }
#terkep { position: absolute; inset: 0; background: #F0F0EC; }
.maplibregl-canvas { outline: none; }
.terkep-hely .maplibregl-ctrl-bottom-right, .terkep-hely .maplibregl-ctrl-bottom-left { bottom: 12px; }
.maplibregl-ctrl-attrib { font-family: var(--betu); font-size: 11px; background: rgba(248, 248, 246, .85) !important; }
.maplibregl-ctrl-group { border-radius: 0 !important; box-shadow: none !important; border: 1px solid var(--vonal); background: var(--lap) !important; }
.maplibregl-ctrl-group button + button { border-top: 1px solid var(--vonal) !important; }

/* a pöttyök kicsit szabálytalan babszemek */
.pont { position: relative; width: 0; height: 0; }
.pont-gomb {
  position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; isolation: isolate;
  display: grid; place-items: center; padding: 0; border: 0;
  background: transparent; color: #fff; cursor: pointer;
  font: 700 11.5px/1 var(--betu); font-variant-numeric: tabular-nums;
  transition: transform .35s var(--rugo);
}
.pont-gomb::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--szoveg); border-radius: var(--bab, 50%); transform: rotate(var(--fordul, 0deg));
  transition: background-color .2s;
}
.kicsi-pontok .pont-gomb { left: -9px; top: -9px; width: 18px; height: 18px; font-size: 9px; }
.pont.messze .pont-gomb { left: -4px; top: -4px; width: 8px; height: 8px; font-size: 0; }
.pont.ki .pont-gomb { left: -4px; top: -4px; width: 8px; height: 8px; font-size: 0; }
.pont.ki .pont-gomb::before { background: transparent; border: 1.5px solid #A5A9B4; }
.pont.rejtett .pont-gomb { transform: scale(0); }
.pont.kiemelt .pont-gomb { transform: scale(1.2); }
.pont.aktiv .pont-gomb::before { background: var(--piros); }
.pont-nev {
  position: absolute; left: 17px; top: -9px; white-space: nowrap; pointer-events: none;
  font: 700 12.5px/1.2 var(--cim); color: var(--szoveg);
  text-shadow: 0 0 2px var(--lap), 0 0 4px var(--lap), 0 0 6px var(--lap);
  opacity: 0; transform: translateX(-3px); transition: opacity .2s, transform .2s;
}
.pont.kiemelt .pont-nev, .pont.aktiv .pont-nev, .nevek-latszanak .pont:not(.ki):not(.messze) .pont-nev { opacity: 1; transform: none; }
.bekarikaz { position: absolute; overflow: visible; pointer-events: none; visibility: hidden; }
.pont .bekarikaz { left: -23px; top: -23px; width: 46px; height: 46px; }
.pont.aktiv .bekarikaz, .hely.nyitva .bekarikaz { visibility: visible; }
.bekarikaz path { fill: none; stroke: #C4412F; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 230; stroke-dashoffset: 230; opacity: .9; }
.pont.aktiv .bekarikaz path, .hely.nyitva .bekarikaz path { animation: karikaz .75s cubic-bezier(.5, .05, .3, 1) .05s forwards; }
@keyframes karikaz { to { stroke-dashoffset: 0; } }

.kampusz-jel { position: relative; width: 0; height: 0; pointer-events: none; }
.kampusz-jel::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--szoveg); border-radius: 2px 5px 3px 6px; transform: rotate(-8deg); }
.kampusz-jel span {
  position: absolute; left: 13px; top: -10px; white-space: nowrap;
  font: 700 13px/1.2 var(--betu); color: var(--szoveg);
  text-shadow: 0 0 2px var(--lap), 0 0 4px var(--lap), 0 0 7px var(--lap);
}
.gyuru-felirat {
  font: 700 12.5px/1 var(--betu); color: var(--piros); white-space: nowrap; pointer-events: none;
  text-shadow: 0 0 2px var(--lap), 0 0 5px var(--lap);
  opacity: 0; transition: opacity .4s;
}
.gyuru-felirat.latszik { opacity: 1; }

/* a kiválasztott hely buborékja a térképen (papírszínű, puha árnyék, kis farok a pötty felé) */
.cetli-hely { z-index: 50; }
.cetli {
  position: relative; width: min(262px, 78vw); padding: 14px 16px 13px;
  background: var(--papir-buborek); color: var(--szoveg);
  border-radius: 18px 22px 20px 16px / 16px 20px 22px 18px;
  box-shadow: var(--buborek-arnyek);
  transform-origin: 50% 100%; animation: cetli .36s var(--rugo);
  cursor: default;
}
.cetli::after { /* a farok, ami a pöttyre mutat */
  content: ""; position: absolute; left: 50%; top: calc(100% - 1px); width: 22px; height: 12px; margin-left: -12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M0 0C6 0 8.4 3 10 10.2c.4 1.6 1.3 1.6 1.7 0C13.4 3 16 0 22 0Z' fill='%23FFFDF8'/%3E%3C/svg%3E") no-repeat 0 0 / 22px 12px;
  filter: drop-shadow(0 3px 2px rgba(22, 24, 29, .08));
}
@keyframes cetli { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.cetli h3 { margin: 0 28px 2px 0; font-family: var(--cim); font-size: 1.25rem; font-weight: 700; line-height: 1.15; }
.cetli-seta { margin: 0; font-size: .8rem; line-height: 1.4; color: var(--halvany); }
.cetli .meta { margin-top: 9px; }
.cetli-gombok { display: flex; gap: 18px; margin-top: 11px; }
.cetli-gombok a, .cetli-gombok button {
  font: 700 .84rem/1.3 var(--betu); color: var(--szoveg); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--zold-vilagos); text-underline-offset: 4px;
}
.cetli-gombok a:hover, .cetli-gombok button:hover { text-decoration-color: var(--zold); }
.cetli .bezar {
  position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  font: 400 1.1rem/1 var(--betu); color: var(--halvany); transition: background-color .2s, color .2s;
}
.cetli .bezar:hover { background: #EFEEE7; color: var(--szoveg); }

/* ---------- lista ---------- */
.lista-fej { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 20px; margin: 36px 0 0; }
.talalat { margin: 0; font-size: .88rem; color: var(--halvany); }
.rendezes { display: flex; align-items: baseline; gap: 12px; }
.rendezes legend { float: left; margin: 0; }
.rendezes .valasztok { gap: 2px 16px; font-size: .88rem; }

#lista { padding-bottom: 8px; }
.sav { margin: 30px 0 0; }
.sav h2 { margin: 0 0 4px; font-family: var(--cim); font-style: italic; font-size: 1.15rem; font-weight: 500; color: var(--zold); }
.sav h2 .db { margin-left: 6px; color: var(--halvany); font-size: .95rem; }
.sav-megj { margin: 0 0 6px; color: var(--halvany); font-size: .88rem; }

.helyek { list-style: none; margin: 0; padding: 6px 0 0; background: var(--hullam) repeat-x 0 0 / 300px 8px; }
.hely { background: var(--hullam) repeat-x 0 100% / 300px 8px; }
.hely:nth-child(3n+2) { background-position: -110px 100%; }
.hely:nth-child(3n) { background-position: -207px 100%; }
.hely-gomb {
  display: grid; grid-template-columns: var(--perc-x) 1fr; width: 100%;
  padding: 16px 0 18px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
}
.perc {
  grid-row: 1 / span 4; position: relative; align-self: start;
  display: flex; flex-direction: column; align-items: flex-start;
  font-family: var(--cim); font-variant-numeric: lining-nums tabular-nums;
}
.perc b { font-size: 1.9rem; line-height: .95; font-weight: 500; }
.perc small { margin-top: 2px; font-family: var(--betu); font-size: .7rem; color: var(--halvany); }
.perc.bkv b { font-size: 1rem; padding-top: 6px; font-weight: 700; }
.perc .bekarikaz { left: -13px; top: -14px; width: 48px; height: 48px; }

.elso-sor { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; min-width: 0; }
.nev { font-family: var(--cim); font-size: 1.32rem; font-weight: 700; line-height: 1.15; }
.hely-gomb:hover .nev, .hely.kiemelt .nev { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--zold-vilagos); text-underline-offset: 4px; }
.ar { flex: none; white-space: nowrap; color: var(--szoveg); font-size: .9rem; }
.jelleg { color: var(--halvany); font-size: .92rem; margin-top: 2px; }
.meta { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 7px; }
/* apró buborékok: kicsit szabálytalan formák, ételből vett halvány színekkel */
.bub {
  display: inline-block; padding: 1px 9px 2px; font-size: .78rem; line-height: 1.45; color: var(--szoveg);
  background: #ECEDE7; border-radius: 11px 13px 10px 14px / 12px 10px 13px 11px; white-space: nowrap;
}
.bub:nth-child(2n) { border-radius: 13px 10px 14px 11px / 10px 13px 11px 12px; }
.bub:nth-child(3n) { border-radius: 10px 14px 12px 10px / 13px 11px 10px 14px; }
.bub.adag { background: #F1EBDA; }
.bub.zold { background: #E2EBD8; color: #3E6033; }
.idezet-elonezet { margin-top: 8px; color: var(--szoveg); font-style: italic; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hely.nyitva .idezet-elonezet { display: none; }

.reszlet-burok { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--sima); }
.hely.nyitva .reszlet-burok { grid-template-rows: 1fr; }
.reszlet { overflow: hidden; min-height: 0; padding-left: var(--perc-x); }
.reszlet-belso { padding: 0 0 22px; opacity: 0; transform: translateY(-4px); transition: opacity .3s .1s, transform .3s .1s; }
.hely.nyitva .reszlet-belso { opacity: 1; transform: none; }
.kis-cim { margin: 14px 0 4px; font-family: var(--cim); font-style: italic; font-size: 1rem; color: var(--zold); }
.kis-cim:first-child { margin-top: 0; }
.idezetek, .tippek { list-style: none; margin: 0; padding: 0; }
.idezetek li { margin: 4px 0; font-style: italic; }
.tippek li { margin: 3px 0; }
.reszlet p { margin: 6px 0; font-size: .92rem; }
.utvonalak { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; }
.utvonalak a, .utvonalak button {
  font: inherit; font-weight: 700; color: var(--szoveg); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--zold-vilagos); text-underline-offset: 4px;
}
.utvonalak small { font-weight: 400; color: var(--halvany); }
.utvonalak a:hover, .utvonalak button:hover { text-decoration-color: var(--zold); }

.ures { padding: 28px 0; }
.ures p { margin: 0 0 10px; color: var(--halvany); }
.ures button { font: inherit; color: var(--szoveg); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- kérdésbuborék a lap alján ---------- */
.lab { position: relative; isolation: isolate; margin: 72px 0 0; padding: 18px 0 84px; max-width: 34rem; }
.folt-lent { width: 300px; height: 240px; left: -70px; right: auto; top: -46px; }
.buborek {
  position: relative; width: fit-content; max-width: 100%;
  background: var(--papir-buborek);
  border-radius: 20px 24px 22px 7px / 18px 22px 24px 7px;
  box-shadow: var(--buborek-arnyek);
  transition: width .45s var(--sima), border-radius .45s var(--sima), box-shadow .3s;
}
.buborek:hover { box-shadow: 0 0 0 1px rgba(22, 24, 29, .09), 0 16px 32px -16px rgba(22, 24, 29, .5), 0 2px 6px -2px rgba(22, 24, 29, .12); }
.buborek.nyitva { width: 100%; border-radius: 24px 20px 26px 7px / 22px 26px 20px 7px; }
.buborek::after { /* a farok balra lent */
  content: ""; position: absolute; left: 12px; top: calc(100% - 1px); width: 18px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Cpath d='M2.5 0C3.6 5.2 2.6 9.6.2 13.4 7.3 12.2 12.6 7.6 16 0Z' fill='%23FFFDF8'/%3E%3C/svg%3E") no-repeat 0 0 / 18px 14px;
  filter: drop-shadow(0 3px 2px rgba(22, 24, 29, .08));
}
.buborek-gomb {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 11px 12px 11px 18px; background: none; border: 0; cursor: pointer; text-align: left;
  font: italic 600 1.08rem/1.3 var(--cim); color: var(--szoveg);
}
.buborek-gomb .plusz {
  flex: none; margin-left: auto; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 52% 48% 55% 45% / 47% 55% 45% 53%; background: var(--zsalya); color: var(--zold);
  font: 700 1rem/1 var(--betu); font-style: normal;
  transition: transform .35s var(--rugo), background-color .2s;
}
.buborek-gomb:hover .plusz { background: #D8E4CB; }
.buborek.nyitva .plusz { transform: rotate(45deg); }
.buborek-burok { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--sima); }
.buborek.nyitva .buborek-burok { grid-template-rows: 1fr; }
.buborek-belso { overflow: hidden; min-height: 0; }
.buborek-belso p { margin: 0 20px 10px 18px; font-size: .86rem; color: var(--halvany); }
.buborek-belso p:first-child { padding-top: 2px; }
.buborek-belso p:last-child { margin-bottom: 16px; }

::view-transition-group(*) { animation-duration: .32s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }

/* ---------- asztali nézet ---------- */
@media (min-width: 960px) {
  :root { --szel: 48px; --perc-x: 64px; }
  .racs { display: grid; grid-template-columns: min(600px, 46vw) 1fr; padding: 0; }
  .racs > * { grid-column: 1; padding-left: var(--szel); padding-right: 32px; }
  .fejlec { position: absolute; z-index: 2; top: 0; left: 0; width: min(600px, 46vw); padding: 26px 32px 0 var(--szel); }
  .nyito { padding-top: 120px; }
  .terkep-hely { grid-column: 2; grid-row: 1 / span 20; align-self: start; position: sticky; top: 0; height: 100vh; margin: 0; padding: 0; }
  .folt { width: 360px; height: 290px; right: -70px; top: -40px; }
  .folt-lent { width: 320px; height: 250px; left: 0; top: -50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
  .bekarikaz path { stroke-dashoffset: 0; }
}
