/* ============================================================
   Zsebinfo – Zsebtérkép (terkep.html) · prototípus 2026-10-04
   Önálló app-elrendezés: kompakt fejléc + bal panel + térkép.
   A tokenek a zsebinfo-home.css :root-jából vannak átvéve.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&family=Sora:wght@600;700;800&display=swap');

:root {
  --green:      #3F6A36;
  --green-dark: #2E5228;
  --green-soft: #E6EBD5;
  --forest:     #34502F;
  --cta:        #E0622A;
  --cta-dark:   #BB4512;
  --cta-soft:   #FCE6D6;
  --cta-ink:    #8A3410;
  --page:       #F5EDE2;
  --cream:      #FBF6EF;
  --card:       #FFFFFF;
  --line:       #E6D9C8;
  --line-light: #F0E7DA;
  --ink:        #2B1D16;
  --muted:      #7B6B5D;
  --red:        #B9432E;
  --violet:     #7A4F9A;
  --event:      #2F6F8F;   /* programok – Duna-kék (a lila helyett, user kérése 2026-10-04) */
  --radius:     12px;
  --shadow:     0 6px 24px rgba(43,29,22,.12);
  --header-h:   64px;
  --panel-w:    420px;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }

/* ---------- Fejléc ---------- */
.zt-header {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 1001;
}
.zt-logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; flex-shrink: 0; }
.zt-logo__text { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.03em; color: #1B3D26; line-height: 1; }
.zt-logo__text span { color: #3D7A30; }
.zt-logo__app { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 12px; color: #fff; background: var(--cta); padding: 3px 8px; border-radius: 999px; transform: translateY(-3px); }

.zt-search {
  flex: 1; max-width: 640px;
  display: flex; align-items: center;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px;
  height: 42px; padding: 0 6px 0 16px;
}
.zt-search:focus-within { border-color: var(--green); background: #fff; }
.zt-search i { color: var(--muted); }
.zt-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 14.5px; padding: 0 10px; outline: none; color: var(--ink); min-width: 0; }
.zt-search__go { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; font-size: 13px; }
.zt-search__go:hover { background: var(--green-dark); }

.zt-header__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.zt-hbtn { height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.zt-hbtn--ghost { border: 1.5px solid var(--line); background: var(--card); }
.zt-hbtn--ghost:hover { border-color: var(--green); color: var(--green); }
.zt-hbtn--cta { background: var(--cta); color: #fff; }
.zt-hbtn--cta:hover { background: var(--cta-dark); }

/* ---------- App-váz ---------- */
.zt-app { display: flex; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
.zt-panel {
  width: var(--panel-w); flex-shrink: 0;
  background: var(--page);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative; z-index: 900;
  min-height: 0;
}
.zt-map-wrap { flex: 1; position: relative; min-width: 0; }
#ztMap { position: absolute; inset: 0; background: #EAE4D8; }

/* ---------- Panel: szűrők ---------- */
.zt-filters { padding: 14px 16px 10px; background: var(--card); border-bottom: 1px solid var(--line); }
.zt-mode { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 12px; }
.zt-mode button { height: 34px; border-radius: 7px; font-weight: 700; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.zt-mode button.is-on { background: var(--card); color: var(--green-dark); box-shadow: 0 1px 4px rgba(43,29,22,.12); }
.zt-mode button[data-mode="ugyelet"].is-on { color: var(--red); }

.zt-cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px 10px; padding-left: 16px; padding-right: 16px; }
.zt-cats::-webkit-scrollbar { display: none; }
.zt-cat { flex-shrink: 0; height: 32px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.zt-cat i { font-size: 12px; }
.zt-cat.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }

.zt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.zt-chip { height: 28px; padding: 0 10px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.zt-chip i { font-size: 11px; color: var(--muted); }
.zt-chip.is-on { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.zt-chip.is-on i { color: var(--green); }
.zt-chip--home.is-on { background: var(--cta-soft); border-color: var(--cta); color: var(--cta-ink); }
.zt-chip--home.is-on i { color: var(--cta); }

/* Zsebi szándék-sáv */
.zt-intent { display: none; margin: 10px 16px 0; padding: 10px 12px; background: var(--cta-soft); border: 1px solid #F3C9AC; border-radius: 10px; align-items: center; gap: 10px; font-size: 13px; }
.zt-intent.is-on { display: flex; }
.zt-intent img { width: 38px; height: 38px; object-fit: contain; flex-shrink: 0; }
.zt-intent b { color: var(--cta-ink); }
.zt-intent button { margin-left: auto; color: var(--cta-ink); font-size: 16px; padding: 4px; }

/* Kijön hozzám sáv */
.zt-home { display: none; margin: 10px 16px 0; padding: 10px 12px; background: var(--card); border: 1.5px dashed var(--cta); border-radius: 10px; font-size: 12.5px; gap: 8px; align-items: center; flex-wrap: wrap; }
.zt-home.is-on { display: flex; }
.zt-home select { font: inherit; font-weight: 700; border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; background: var(--cream); }

/* ---------- Panel: lista ---------- */
.zt-listhead { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 6px; font-size: 12.5px; color: var(--muted); }
.zt-listhead b { color: var(--ink); }
.zt-sort { font: inherit; font-weight: 600; font-size: 12.5px; border: 0; background: none; color: var(--green-dark); cursor: pointer; }
.zt-list { flex: 1; overflow-y: auto; padding: 4px 16px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }

.zt-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: grid; grid-template-columns: 48px 1fr; gap: 12px;
  cursor: pointer; text-align: left; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.zt-card:hover, .zt-card.is-hover { border-color: var(--green); box-shadow: var(--shadow); }
.zt-card.is-partner { border-color: #F3C9AC; }
.zt-av { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; }
.zt-card__top { display: flex; align-items: flex-start; gap: 6px; }
.zt-card__name { font-weight: 800; font-size: 14.5px; line-height: 1.25; }
.zt-badge-partner { margin-left: auto; flex-shrink: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--cta-ink); background: var(--cta-soft); padding: 3px 7px; border-radius: 999px; }
.zt-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.zt-card__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; }
.zt-open { font-weight: 700; }
.zt-open--yes { color: var(--green); }
.zt-open--soon { color: var(--cta-dark); }
.zt-open--no { color: var(--red); }
.zt-rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.zt-rate i { color: #E7A527; font-size: 11px; }
.zt-rate small { font-weight: 600; color: var(--muted); }
.zt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.zt-tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--cream); color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.zt-tag--slot { background: var(--green-soft); color: var(--green-dark); }
.zt-tag--deal { background: var(--cta-soft); color: var(--cta-ink); }
.zt-tag--nb { background: #EFE7F5; color: var(--violet); }
.zt-tag--emerg { background: #F7DED8; color: var(--red); }
.zt-fresh { font-size: 11px; color: var(--muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.zt-fresh i { color: var(--green); }

.zt-empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.zt-empty img { width: 90px; display: block; margin: 0 auto 10px; }

/* ---------- Részletek (fiók a panel fölött) ---------- */
.zt-detail {
  position: absolute; inset: 0; background: var(--page); z-index: 5;
  overflow-y: auto; transform: translateX(-102%); transition: transform .25s ease;
}
.zt-detail.is-open { transform: none; }
.zt-detail__hero { background: var(--card); padding: 14px 16px 16px; border-bottom: 1px solid var(--line); }
.zt-back { font-weight: 700; font-size: 13px; color: var(--green-dark); display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px; }
.zt-detail__head { display: grid; grid-template-columns: 60px 1fr; gap: 14px; align-items: center; }
.zt-detail__head .zt-av { width: 60px; height: 60px; font-size: 24px; border-radius: 14px; }
.zt-detail h2 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 800; }
.zt-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.zt-act { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 9px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 11.5px; font-weight: 700; text-decoration: none; color: var(--ink); }
.zt-act i { font-size: 16px; color: var(--green); }
.zt-act:hover { border-color: var(--green); }
.zt-act--main { background: var(--green); border-color: var(--green); color: #fff; }
.zt-act--main i { color: #fff; }
.zt-act.is-saved i { color: var(--cta); }

.zt-sec { background: var(--card); margin: 10px 12px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.zt-sec:last-child { margin-bottom: 20px; }
.zt-sec h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.zt-sec h3 i { color: var(--green); }
.zt-sec h3 small { margin-left: auto; font-weight: 600; color: var(--muted); font-size: 11.5px; }

.zt-hours { width: 100%; border-collapse: collapse; font-size: 13px; }
.zt-hours td { padding: 4px 0; }
.zt-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.zt-hours tr.is-today td { font-weight: 800; color: var(--green-dark); }

.zt-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.zt-slot { padding: 7px 11px; border-radius: 8px; border: 1.5px solid var(--green); color: var(--green-dark); font-weight: 700; font-size: 12.5px; background: #fff; }
.zt-slot:hover, .zt-slot.is-picked { background: var(--green); color: #fff; }

.zt-prices { display: flex; flex-direction: column; gap: 2px; }
.zt-price { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.zt-price:last-child { border-bottom: 0; }
.zt-price b { white-space: nowrap; }
.zt-price small { display: block; color: var(--muted); font-size: 11px; }

.zt-nbsum { display: flex; gap: 10px; align-items: center; background: #EFE7F5; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-bottom: 10px; color: #4B2F63; }
.zt-nbsum i { font-size: 18px; color: var(--violet); }
.zt-rev { padding: 10px 0; border-bottom: 1px solid var(--line-light); font-size: 13px; }
.zt-rev:last-child { border-bottom: 0; padding-bottom: 0; }
.zt-rev__who { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.zt-rev__who b { font-size: 12.5px; }
.zt-verified { color: var(--green); font-weight: 700; display: inline-flex; gap: 3px; align-items: center; }
.zt-rev p { margin: 0; line-height: 1.5; }

.zt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zt-fact { display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.zt-fact i { width: 26px; height: 26px; border-radius: 7px; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }
.zt-fact.is-off { color: var(--muted); text-decoration: line-through; }
.zt-fact.is-off i { background: var(--cream); color: var(--muted); }

.zt-cb { display: flex; gap: 8px; }
.zt-cb input { flex: 1; min-width: 0; height: 38px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; }
.zt-cb button { height: 38px; padding: 0 14px; background: var(--cta); color: #fff; border-radius: 8px; font-weight: 700; font-size: 13px; }
.zt-note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

.zt-owner { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.zt-owner a { font-weight: 700; color: var(--green-dark); }

/* ---------- Térkép-elemek ---------- */
.zt-layers { position: absolute; top: 12px; right: 12px; z-index: 800; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: flex; flex-direction: column; gap: 2px; min-width: 190px; }
.zt-layers__t { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 8px 6px; }
.zt-layer { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 600; text-align: left; }
.zt-layer:hover { background: var(--cream); }
.zt-layer__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.zt-layer__sw { margin-left: auto; width: 28px; height: 16px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.zt-layer__sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; }
.zt-layer.is-on .zt-layer__sw { background: var(--green); }
.zt-layer.is-on .zt-layer__sw::after { transform: translateX(12px); }

.zt-search-area { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 800; background: var(--card); box-shadow: var(--shadow); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 13px; display: none; align-items: center; gap: 8px; }
.zt-search-area.is-on { display: inline-flex; }

.zt-intro { position: absolute; left: 12px; bottom: 28px; z-index: 800; width: 340px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 16px 14px; }
.zt-intro__top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.zt-intro__top img { width: 52px; height: 52px; object-fit: contain; }
.zt-intro h4 { margin: 0; font-size: 15px; font-weight: 800; }
.zt-intro ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.zt-intro li { display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.zt-intro li i { color: var(--green); margin-top: 3px; width: 14px; text-align: center; }
.zt-intro__close { position: absolute; top: 8px; right: 10px; color: var(--muted); font-size: 16px; padding: 4px; }
.zt-intro__ok { margin-top: 12px; width: 100%; height: 36px; border-radius: 8px; background: var(--forest); color: #fff; font-weight: 700; font-size: 13px; }

/* Pinek */
.zt-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: flex; align-items: center; justify-content: center; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.28); transition: transform .15s; }
.zt-pin i { transform: rotate(45deg); color: #fff; font-size: 13px; }
.zt-pin.is-active { transform: rotate(-45deg) scale(1.3); z-index: 1000; }
.zt-pin--partner { border-color: var(--cta); }
.zt-pin--closed { filter: grayscale(.7) opacity(.75); }
.zt-pin--event { border-radius: 9px; transform: none; }
.zt-pin--event i { transform: none; }
.zt-pin--event.is-active { transform: scale(1.25); }
.zt-pin--emerg { animation: ztPulse 1.8s infinite; }
@keyframes ztPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(185,67,46,.5), 0 3px 8px rgba(0,0,0,.28); } 50% { box-shadow: 0 0 0 10px rgba(185,67,46,0), 0 3px 8px rgba(0,0,0,.28); } }
.zt-homepin { width: 22px; height: 22px; border-radius: 50%; background: var(--cta); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--cta), 0 3px 8px rgba(0,0,0,.3); }

.leaflet-tooltip.zt-tt { font-family: 'Open Sans', sans-serif; font-weight: 700; font-size: 12px; border-radius: 8px; border: 0; box-shadow: var(--shadow); padding: 5px 9px; }
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: 'Open Sans', sans-serif; }
.zt-evpop { font-size: 12.5px; }
.zt-evpop b { display: block; font-size: 14px; margin-bottom: 2px; }
.zt-evpop a { color: var(--event); font-weight: 700; }

/* Mobil lista/térkép kapcsoló */
.zt-toggle { display: none; }
.zt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--forest); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 13px; z-index: 3000; transition: .25s; pointer-events: none; max-width: calc(100% - 32px); }
.zt-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reszponzív ---------- */
@media (max-width: 1100px) {
  .zt-hbtn--ghost span { display: none; }
  :root { --panel-w: 380px; }
}
@media (max-width: 860px) {
  :root { --header-h: 108px; }
  .zt-header { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 10px 16px; gap: 10px; }
  .zt-search { order: 3; flex-basis: 100%; max-width: none; }
  .zt-hbtn--cta span { display: none; }
  .zt-app { position: relative; }
  .zt-panel { position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 58%; border-right: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(43,29,22,.15); transition: height .25s ease; overflow: hidden; }
  .zt-panel::before { content: ''; display: block; width: 40px; height: 4px; background: var(--line); border-radius: 4px; margin: 8px auto 0; position: absolute; left: 50%; transform: translateX(-50%); top: 0; z-index: 6; }
  .zt-filters { border-radius: 18px 18px 0 0; padding-top: 18px; }
  .zt-app.is-mapfull .zt-panel { height: 0; border-top: 0; }
  .zt-map-wrap { position: absolute; top: 0; left: 0; right: 0; bottom: calc(58% - 18px); transition: bottom .25s ease; }
  .zt-app.is-mapfull .zt-map-wrap { bottom: 0; }
  .zt-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .zt-chips::-webkit-scrollbar { display: none; }
  .zt-chip { flex-shrink: 0; }
  .leaflet-control-zoom { display: none; }
  .zt-layers { min-width: 0; }
  .zt-layers__t, .zt-layer span.zt-layer__label { display: none; }
  .zt-layer__sw { display: none; }
  .zt-layer { padding: 8px; }
  .zt-layer:not(.is-on) .zt-layer__dot { opacity: .3; }
  .zt-layer__dot { width: 14px; height: 14px; }
  .zt-intro { left: 12px; right: 12px; width: auto; top: 12px; bottom: auto; }
  .zt-toggle { display: inline-flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 1200; background: var(--forest); color: #fff; height: 42px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 13px; align-items: center; gap: 8px; box-shadow: var(--shadow); }
  .zt-list { padding-bottom: 80px; }
}
@media (max-width: 420px) {
  .zt-mode button { font-size: 11.5px; gap: 4px; }
  .zt-hbtn--ghost { display: none; }
}

.zt-full { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 10px; background: var(--cta-soft); color: var(--cta-ink); font-weight: 700; font-size: 13px; text-decoration: none; }
.zt-full:hover { background: #F9D7BF; }
