:root {
  --bg: #f2f2f7; --surface: #ffffff; --surface-2: #f4f4f7; --ink: #0b0b0f; --muted: #6e6e78; --line: rgba(0,0,0,.08);
  --accent: #c6f432; --accent-ink: #0b0b0f; --accent-soft: #eefbc4;
  --mine: #0b0b0f; --mine-ink: #c6f432;
  --taken: #ececf1; --block: #fff1c7; --block-ink: #7a5600;
  --danger: #e5484d; --ok: #2f9e44;
  --glass: rgba(255,255,255,.72);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --r: 20px; --r-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --surface: #141416; --surface-2: #1f1f23; --ink: #f5f5f7; --muted: #9a9aa3; --line: rgba(255,255,255,.1);
    --accent-soft: #263006; --mine: #c6f432; --mine-ink: #0b0b0f; --taken: #232327; --block: #3a2e0c; --block-ink: #f3d27a;
    --glass: rgba(20,20,22,.72); --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; }
h1 { font-size: 34px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -.025em; font-weight: 750; }
h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 17px; margin: 0; letter-spacing: -.01em; }
button, input, select { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* fejléc + navigáció */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 12px max(20px, env(safe-area-inset-left)); padding-top: max(12px, env(safe-area-inset-top)); background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#nav { margin-left: auto; display: flex; gap: 4px; }
#nav a { position: relative; display: flex; align-items: center; gap: 7px; text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 550; }
#nav a svg { width: 19px; height: 19px; }
#nav a:hover { color: var(--ink); }
#nav a.on { background: var(--ink); color: var(--bg); }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
#demo-ribbon { align-self: center; margin: 14px 16px 0; padding: 6px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: 12.5px; text-align: center; }

main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 20px 40px; flex: 1; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; max-width: 1120px; margin: 0 auto; width: 100%; }
footer a { color: var(--muted); }

/* gombok, mezők */
button { cursor: pointer; border: 0; background: var(--surface-2); border-radius: 999px; padding: 11px 18px; font-weight: 600; transition: transform .12s, background .15s, opacity .15s; }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .4; cursor: default; }
button.primary { background: var(--ink); color: var(--bg); }
button.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
button.ghost { background: transparent; color: var(--muted); }
button.link { background: none; padding: 4px 0; color: var(--ink); text-decoration: underline; font-weight: 500; }
button.link.danger { background: none; color: var(--danger); text-decoration: none; }
button.sm { padding: 7px 13px; font-size: 13px; }
button.wide { width: 100%; margin-top: 8px; }
button.fb { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; background: #1877f2; color: #fff; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); min-height: 48px; appearance: none; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e93' stroke-width='2'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 38px; }
input:focus, select:focus { outline: none; border-color: var(--ink); background-color: var(--surface); }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; flex: 1; }
label.check { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
label.check input { width: 22px; min-height: 22px; height: 22px; padding: 0; accent-color: var(--ink); appearance: auto; }
fieldset { border: 0; background: var(--surface-2); border-radius: var(--r-sm); display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 14px; margin: 0; }
fieldset label.check { flex: 0 0 auto; white-space: nowrap; }
legend { font-size: 13px; color: var(--muted); float: left; width: 100%; margin-bottom: 4px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { min-width: 140px; }
.row.hours { align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.row.hours > span { width: 96px; min-width: 96px; font-weight: 550; }
.row.hours select { width: auto; flex: 1; min-width: 96px; }
.row.hours label.check { min-width: 0; flex: 0; white-space: nowrap; }
.row.add { margin-top: 16px; }
input.code { font-size: 30px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 650; }
code { background: var(--surface-2); padding: 2px 7px; border-radius: 7px; }

.card { background: var(--surface); border-radius: var(--r); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 420px; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); font-size: 13.5px; }
.center { text-align: center; }
.ok { color: var(--ok); }
.empty { color: var(--muted); text-align: center; padding: 18px; }
.banner { background: var(--surface); border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow); font-size: 14px; }
.banner a { font-weight: 650; }
.banner.warn { background: var(--block); color: var(--block-ink); box-shadow: none; }
.hint { background: var(--block); color: var(--block-ink); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-box { margin-top: 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent-soft); display: flex; flex-direction: column; gap: 4px; align-items: flex-start; font-size: 14px; }
.demo-box code { background: var(--surface); font-size: 20px; letter-spacing: .18em; font-weight: 700; }
.loading { height: 50vh; }

/* naptár */
.cal-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cal-head h1 { margin: 0; }
.eyebrow { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { display: flex; align-items: center; gap: 6px; padding: 7px 14px; background: transparent; color: var(--muted); font-size: 14px; }
.seg button svg { width: 17px; height: 17px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin: 0 -2px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; width: 56px; height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); scroll-snap-align: center; padding: 0; }
.day small { font-size: 12px; color: var(--muted); font-weight: 600; }
.day b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.day.on { background: var(--ink); color: var(--bg); }
.day.on small { color: inherit; opacity: .7; }
.day[data-closed] { opacity: .45; }

.court { background: var(--surface); border-radius: var(--r); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow); }
.court header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tags span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 550; }
.count { font-size: 13px; font-weight: 650; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); white-space: nowrap; }
.count.none { background: var(--taken); color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 9px 12px; border-radius: 14px; text-align: left; min-width: 0; font-weight: 600; }
.slot b { font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.slot small { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; opacity: .75; }
.slot.free { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--ink); }
.slot.free:hover { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.slot.taken { background: var(--taken); color: var(--muted); }
.slot.taken b { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.slot.mine { background: var(--mine); color: var(--mine-ink); }
.slot.block { background: var(--block); color: var(--block-ink); }
.slot.past { background: transparent; color: var(--muted); opacity: .45; box-shadow: inset 0 0 0 1px var(--line); }
.slot:disabled { opacity: 1; cursor: default; }

.grid-wrap { overflow-x: auto; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(110px, 1fr)); grid-template-rows: 58px; grid-auto-rows: 48px; min-width: min-content; }
.grid .corner, .grid .ch { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); }
.ch { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px; text-align: center; min-width: 0; }
.ch b { font-size: 14px; line-height: 1.2; }
.ch small { color: var(--muted); font-size: 12px; }
.th { font-size: 12px; color: var(--muted); text-align: right; padding: 4px 10px 0 0; font-variant-numeric: tabular-nums; }
.cell { border-radius: 0; padding: 5px 8px; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; min-width: 0; background: transparent; border-top: 1px solid var(--line); font-weight: 500; }
.cell span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell.free span { opacity: 0; }
.cell.free:hover { background: var(--accent-soft); }
.cell.free:hover span { opacity: 1; color: var(--ink); }
.cell.past { opacity: .5; background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--surface-2) 6px 12px); }
.cell.taken, .cell.mine, .cell.block { margin: 3px; border-radius: 12px; border: 0; }
.cell.taken { background: var(--taken); }
.cell.mine { background: var(--mine); color: var(--mine-ink); }
.cell.mine span { color: inherit; opacity: .7; }
.cell.block { background: var(--block); color: var(--block-ink); }

/* listák */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); min-width: 0; }
.list li:first-child { border-top: 0; }
.list li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.list li > div:first-child > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list li b { font-weight: 650; }
.list li span { color: var(--muted); font-size: 13.5px; }
.list li.past { opacity: .55; }
.list li.sep { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-top: 20px; border-top: 0; }
.list .right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-align: right; }
.list .right span { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; }
.pill { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; font-weight: 600; }
.pill.pending { background: var(--block); color: var(--block-ink); } .pill.active { background: var(--accent-soft); color: var(--ink); }
.pill.rejected, .pill.disabled { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.search { margin-bottom: 10px; }

.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 18px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap; background: var(--surface); box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.tabs a.on { background: var(--ink); color: var(--bg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stats div { background: var(--surface); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stats b { font-size: 28px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }
.stats div:first-child { background: var(--accent); color: var(--accent-ink); }
.stats div:first-child span { color: inherit; opacity: .7; }

/* modal = sheet */
dialog { border: 0; border-radius: 28px; padding: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
dialog[open] { animation: pop .22s cubic-bezier(.2,.9,.3,1.1); }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
dialog::backdrop { background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
#modal-body { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
#modal-body h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
#modal-body p { margin: 0; }
.sum { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; padding: 14px 16px; background: var(--surface-2); border-radius: 16px; }
.sum dt { color: var(--muted); } .sum dd { margin: 0; font-weight: 650; text-align: right; }
.actions { display: flex; gap: 8px; margin-top: 6px; }
.actions button { flex: 1; padding: 14px; }
.qr { width: 200px; height: 200px; align-self: center; image-rendering: pixelated; border-radius: 12px; background: #fff; padding: 8px; }
#toast { position: fixed; left: 50%; top: calc(16px + env(safe-area-inset-top)); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: .25s cubic-bezier(.2,.9,.3,1.2); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; width: max-content; max-width: min(360px, calc(100vw - 32px)); text-align: center; line-height: 1.35; z-index: 30; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: var(--danger); color: #fff; }


/* kezdőlap */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font-weight: 650; text-decoration: none; transition: transform .12s; }
.btn:active { transform: scale(.97); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
.hero { position: relative; min-height: min(52vh, 460px); border-radius: 32px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: #1a120c var(--img) center/cover; margin-bottom: 16px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0) 70%), linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7) 100%); }
.hero-in { position: relative; padding: clamp(24px, 5vw, 56px); max-width: 720px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: .95; letter-spacing: -.04em; margin: 6px 0 16px; }
.lead { font-size: clamp(16px, 2vw, 19px); line-height: 1.45; opacity: .9; margin: 0; max-width: 520px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow.light { color: rgba(255,255,255,.75); }
.live { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 8px 14px 8px 12px; border-radius: 999px; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #9a9aa3; }
.live.on i { background: var(--accent); box-shadow: 0 0 0 0 rgba(198,244,50,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(198,244,50,0); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }
.section { margin-bottom: 88px; scroll-margin-top: 80px; }
h2.big { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.05; letter-spacing: -.03em; margin: 4px 0 26px; font-weight: 750; }
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 48px; align-items: center; }
.about p { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.about-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px; display: block; }
.facts { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.facts b { font-size: 32px; letter-spacing: -.03em; font-weight: 750; }
.facts span { color: var(--muted); font-size: 14px; }
.court-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.ccard { background: var(--surface); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.ccard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .5s; }
.ccard:hover img { transform: scale(1.04); }
.ccard > div { padding: 16px 18px 18px; position: relative; background: var(--surface); }
.ccard p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.booking { background: var(--surface-2); margin-left: -20px; margin-right: -20px; padding: 40px 20px; border-radius: 32px; }
.booking .cal-head h1 { font-size: 26px; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.price { background: var(--surface); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.price span { font-weight: 650; color: var(--muted); }
.price b { font-size: 36px; letter-spacing: -.03em; font-weight: 750; }
.price small { color: var(--muted); font-size: 14px; }
.price.hot { background: var(--ink); color: var(--bg); }
.price.hot span, .price.hot small { color: inherit; opacity: .7; }
.price.hot b { color: var(--accent); }
@media (prefers-color-scheme: dark) { .price.hot { background: var(--accent); color: var(--accent-ink); } .price.hot b { color: inherit; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 10px; }
.g { padding: 0; border-radius: 20px; overflow: hidden; background: var(--surface-2); }
.g img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s, filter .3s; }
.g:hover img { transform: scale(1.05); }
.g0 { grid-column: span 2; grid-row: span 2; }
.g3 { grid-row: span 2; }
#lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border-radius: 0; background: rgba(0,0,0,.92); color: #fff; display: grid; place-items: center; padding: 24px; }
#lb:not([open]) { display: none; }
#lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
#lb img { max-width: min(1200px, 92vw); max-height: 80dvh; border-radius: 16px; }
#lb figcaption { opacity: .8; }
#lb button { position: fixed; background: rgba(255,255,255,.14); color: #fff; width: 48px; height: 48px; padding: 0; font-size: 22px; }
.lb-x { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lb-p { left: 16px; top: 50%; } .lb-n { right: 16px; top: 50%; }
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; align-items: stretch; }
.contact .card { margin: 0; }
.contact h3 { margin: 22px 0 8px; }
.clist, .hours { list-style: none; margin: 0; padding: 0; }
.clist li, .hours li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.clist li:first-child, .hours li:first-child { border-top: 0; }
.clist span, .hours span { color: var(--muted); }
.clist b, .hours b { font-weight: 600; text-align: right; }
.clist a { text-decoration: none; }
.map { width: 100%; min-height: 420px; height: 100%; border: 0; border-radius: var(--r); box-shadow: var(--shadow); filter: saturate(.85); }

.quick { padding: 16px 18px 18px; }
.quick-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.quick-head h2 { margin: 0; font-size: 18px; }
.quick-head a { font-weight: 650; text-decoration: none; color: var(--muted); }
.qslots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qslot { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 11px 13px; border-radius: 16px; background: var(--surface-2); min-width: 0; }
.qslot b { font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.qslot span, .qslot small { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.qslot:hover { background: var(--accent); color: var(--accent-ink); }
.qslot:hover span, .qslot:hover small { color: inherit; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 32px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 150px; padding: 16px; border-radius: 24px; text-decoration: none; color: #fff; background: #222 var(--img) center/cover; isolation: isolate; transition: transform .15s; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.65)); }
.tile:active { transform: scale(.97); }
.tile b { font-size: 18px; letter-spacing: -.01em; }
.tile small { font-size: 13px; opacity: .8; }
.ti { position: absolute; top: 14px; left: 14px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tile:first-child .ti { background: var(--accent); color: var(--accent-ink); }
.back { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 14px -6px; padding: 6px 10px 6px 4px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted); }
.back svg { width: 20px; height: 20px; }
.ccard { text-decoration: none; display: block; }
.facts { margin-top: 20px; }
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 8px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; text-align: center; min-width: 0; }
.act svg { width: 26px; height: 26px; }
.act small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.act:first-child { background: var(--accent); color: var(--accent-ink); }
.act:first-child small { color: inherit; opacity: .7; }
details.fold { padding: 0; }
details.fold summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 650; display: flex; justify-content: space-between; }
details.fold summary::after { content: "›"; transform: rotate(90deg); color: var(--muted); }
details.fold[open] summary::after { transform: rotate(-90deg); }
details.fold summary::-webkit-details-marker { display: none; }
details.fold .hours { padding: 0 20px 12px; }
.cal-sub { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.btn.ghostb { background: var(--surface-2); color: var(--ink); }
.wide-btn { width: 100%; margin-top: 16px; }
@media (max-width: 860px) {
  .about, .contact { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 700px) {
  .hero { margin: -16px -16px 14px; border-radius: 0 0 28px 28px; min-height: 34vh; }
  #demo-ribbon { display: none; }
  .hero-in { padding: 20px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tile { min-height: 118px; padding: 14px; border-radius: 22px; }
  .qslots { grid-template-columns: repeat(2, 1fr); }
  .qslot:nth-child(n+5) { display: none; }
  /* a kezdőlapon az időpontok vízszintesen görgethetők, mint az appban */
  .booking .slots { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; scroll-snap-type: x proximity; }
  .booking .slots::-webkit-scrollbar { display: none; }
  .booking .slot { flex: 0 0 84px; scroll-snap-align: start; }
  .booking { margin-left: -16px; margin-right: -16px; padding: 32px 16px; border-radius: 28px; }
  .section { margin-bottom: 64px; }
  .map { min-height: 300px; }
}

@media (max-width: 700px) {
  h1 { font-size: 30px; }
  main { padding: 16px 16px calc(100px + env(safe-area-inset-bottom)); }
  footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  /* alsó tab bar, mint egy iOS appban */
  #nav { position: fixed; z-index: 10; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); justify-content: space-around; padding: 6px; border-radius: 28px; background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 8px 30px rgba(0,0,0,.14), inset 0 0 0 1px var(--line); }
  #nav a { flex: 1; flex-direction: column; gap: 2px; padding: 7px 4px; font-size: 10.5px; border-radius: 22px; }
  #nav a svg { width: 24px; height: 24px; }
  #nav a.on { background: var(--surface-2); color: var(--ink); }
  #nav .badge { position: absolute; top: 2px; left: calc(50% + 6px); }
  /* a backdrop-filter a fixed tab bart a fejléchez kötné, ezért mobilon a fejléc tömör */
  .top { justify-content: center; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .stats b { font-size: 22px; }
  .row.hours { flex-wrap: nowrap; gap: 8px; }
  .row.hours > span { width: 64px; min-width: 64px; }
  .row.hours select { min-width: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .seg button span { display: none; }
  .grid { grid-template-columns: 46px repeat(var(--cols), minmax(92px, 1fr)); }
  .list li { flex-wrap: wrap; }
  .list .right { margin-left: auto; }
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 28px 28px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: up .28s cubic-bezier(.2,.9,.3,1); }
  @keyframes up { from { transform: translateY(100%); } }
  #modal-body::before { content: ""; width: 36px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; margin: -10px 0 4px; }
}
