/* ingatlan-base.css — views/ingatlan/_style.ejs (controllers/ingatlan/assets.js) */
:root {
  /* The page butter-coloured again, behind the skyline drawing too — the drawing is transparent (owner, 2026-10-21: "a háttér
     tudna vajszínű lenni mint még tegnap volt, de a drawing background mögött is"). It was white from 2026-10-19 ("az alap
     háttér legyen fehér, a form maradhat ez a bézs, csak most nagyon egybeolvad"); the cards and the search stay white. */
  --page: #fbf8f3; --bg: #fbf8f3; --panel: #ffffff; --ink: #15121f; --muted: #6b6677; --line: #e7e1d6;
  --soft-line: #efeae1;
  --violet: #6b2cff; --violet-soft: #efe7ff;
  --lime: #c8f53a; --coral: #ff5a4e; --coral-soft: #ffe6e3; --sun: #ffd23f; --sky: #3fd2f2;
  --accent: var(--violet); --accent-soft: var(--violet-soft); --danger: #c8261b;
  --radius: 18px;
  /* The booboooking button shape (views/slot/slot-login.ejs --shape): one sharp corner, top-left. */
  --shape: 0.3rem 2rem 2rem 2rem;
  --shadow: 0 1px 2px rgba(21, 18, 31, .04), 0 10px 30px -12px rgba(21, 18, 31, .14);
  --shadow-lift: 0 2px 4px rgba(21, 18, 31, .05), 0 22px 44px -16px rgba(107, 44, 255, .28);
  --shadow-sm: 0 1px 2px rgba(21, 18, 31, .06), 0 4px 12px -6px rgba(21, 18, 31, .14);
}
* { box-sizing: border-box; }
/* Body text at 18 px (owner, 2026-10-18: "at least 2 points larger"); every size here is in rem, so the
   rest follows in proportion. */
html { -webkit-text-size-adjust: 100%; font-size: 18px; }
body { margin: 0; font-family: Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--page); color: var(--ink); line-height: 1.45; }
/* The skyline — city, suburb, village: the range of property we deal in (owner, 2026-10-19: "rakd be az oldalra
   fixen mindig alul háttérnek"). Fixed to the bottom behind everything, the page's own width, never in the way of a
   click; the page ends with room for it, so the last content can scroll clear of it. */
/* The drawing is 1408 × 244: full width up to a 1730 px screen (300 px high); wider, it stays 300 px high, centred. */
body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: min(17.33vw, 300px); z-index: -1;
  background: url("ingatlan-skyline.webp") center bottom / auto 100% no-repeat; pointer-events: none; opacity: .9; }
body { padding-bottom: min(17.33vw, 300px); }
@media print { body::after { display: none; } body { padding-bottom: 0; } }
::selection { background: var(--lime); }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
/* Google sign-in, the booboooking way: the G in a white disc. The label is a plain lower-case "belépés"
   (owner, 2026-10-18: the logo says Google); signed in, the button shows the account and switches it. */
a.btn-google { display: inline-flex; align-items: center; gap: .6rem; min-height: 46px; padding: .55rem 1.3rem .55rem .6rem;
  background: var(--ink); color: #fff; border-radius: var(--shape); font-weight: 700; font-size: .9rem; letter-spacing: .01em;
  text-decoration: none; box-shadow: 0 6px 16px -8px rgba(21, 18, 31, .6); transition: transform .15s, box-shadow .15s; }
a.btn-google:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(21, 18, 31, .7); }
a.btn-google .g { width: 30px; height: 30px; border-radius: 50%; background: #fff url("google.svg") no-repeat center / 18px; flex: 0 0 auto; }
a.btn-google.small { min-height: 36px; padding: .3rem 1rem .3rem .35rem; font-size: .74rem; }
a.btn-google.small .g { width: 26px; height: 26px; background-size: 15px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* ── header ─────────────────────────────────────────────────────────── */
header.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 24px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
header.top h1 { font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; margin: 0; white-space: nowrap; }
header.top h1 a { color: var(--ink); text-decoration: none; }
header.top h1 .b-home, header.top h1 .b-shop { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 5px; }
header.top h1 .b-home { text-decoration-color: var(--violet); }
header.top h1 .b-shop { text-decoration-color: var(--lime); }
header.top .who { font-size: .85rem; color: var(--muted); display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
header.top .who a { font-weight: 600; }
header.top .who a.btn-google { font-weight: 700; }   /* a button, not a link: bold like every button */
/* The menu: outlined buttons in the booboooking shape, lowercase (owner, 2026-10-19). */
header.top .who :is(a, button).nav { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: .3rem 1rem;
  border-radius: var(--shape); box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); background: transparent;
  font-weight: 700; font-size: .78rem; text-decoration: none; text-transform: lowercase; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s, transform .15s; }
header.top .who :is(a, button).nav:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
/* A button that wants attention (an unread message, a viewing within 24 hours, the hamburger holding either): a short
   violet dash runs once around its border, then rests — every 7–12 seconds at random (owner, 2026-10-22; it was every
   5 s, owner, 2026-10-19: "óvatos bordermegszakításos dash vagy pont körbefutással"). The header script adds .running.
   Without @property support (or with reduced motion) the border stays dashed instead. */
@property --run { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
header.top :is(.runs, .unread) { position: relative; }
header.top :is(.runs, .unread)::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; padding: 3px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--run), transparent 0deg 312deg, var(--violet) 336deg, var(--lime) 348deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
header.top :is(.runs, .unread).running::after { animation: navRun 1.6s linear; }
@keyframes navRun { 0% { --run: 0deg; opacity: 1; } 94% { --run: 360deg; opacity: 1; } 100% { --run: 360deg; opacity: 0; } }
@supports not (background: conic-gradient(from 0deg, red, blue)) { header.top :is(.runs, .unread)::after { display: none; } header.top :is(.runs, .unread) { outline: 2px dashed var(--violet); outline-offset: 3px; } }
@media (prefers-reduced-motion: reduce) { header.top :is(.runs, .unread)::after { display: none; } header.top :is(.runs, .unread) { outline: 2px dashed var(--violet); outline-offset: 3px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
header.top .who a.nav:hover .badge-held { box-shadow: 0 0 0 2px var(--ink); }
/* The hamburger, a phone's only (owner, 2026-10-22; the news' three lines, turning into a cross when open). */
header.top .burger, header.top .acct-phone { display: none; }

main.page { max-width: 1160px; margin: 0 auto; padding: 24px 20px 64px; }
/* Section headings: doubled from 1rem (owner, 2026-10-19: "az áttekinthetőség érdekében a h2-ket szerintem font méretileg
   duplázni kell"), then taken back to two thirds of that ("a h2-t vissza kell venni a mostani 2/3-ára") — every bound of the
   clamp; headings with their own size keep it. */
h2 { font-size: clamp(1rem, 4vw, 1.3333rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 28px 0 10px; }
/* Hints and labels one and a half times their .82 / .78rem (owner, 2026-10-19: "a body szövegeket és labeleket mint pl. Jelöld be,
   hogy eladó, kiadó, vagy mindkettő … meg kell másfélszeresére növelni"); a little less on a phone. */
/* About 82 % of clamp(.95rem, 3.9vw, 1.23rem) (owner, 2026-10-20: "a hint-et vegyük vissza 85%-ára vagy 80%-ra" — font size). */
.hint { font-size: clamp(.78rem, 3.2vw, 1.01rem); line-height: 1.4; color: var(--muted); margin: 4px 0 8px; }
.empty { color: var(--muted); font-size: .92rem; }
.error { color: var(--danger); font-size: .9rem; font-weight: 600; }
.attribution { font-size: .72rem; color: var(--muted); margin-top: 14px; }
/* A phrase with its sources behind it (owner, 2026-10-19): a floating tooltip on hover or keyboard focus — and on a
   phone, where there is no hover, a tap focuses it; tapping elsewhere closes it. */
.src-tip { position: relative; text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; color: var(--ink); }
.src-tip .tip { visibility: hidden; opacity: 0; position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
  width: max-content; max-width: min(320px, 80vw); padding: 8px 12px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: .75rem; font-weight: 500; line-height: 1.35; box-shadow: var(--shadow); transition: opacity .15s; }
.src-tip .tip a { color: #fff; text-decoration: underline; }
.src-tip:hover .tip, .src-tip:focus .tip, .src-tip:focus-within .tip { visibility: visible; opacity: 1; }
/* A phone: over the whole paragraph, not from the link's start — that ran off the screen's right edge. */
@media (max-width: 560px) { .hint:has(> .src-tip) { position: relative; } .src-tip { position: static; }
  .src-tip .tip { left: 0; right: 0; width: auto; max-width: none; } }

/* ── forms ──────────────────────────────────────────────────────────── */
.row { display: flex; gap: 8px; }
/* A price typed in its unit, the unit inside the field (owner, 2026-10-19: "írd a beviteli mezőbe mértékegységnek, hogy ezer
   illetve millió") — the posting form and the catalogue's filter. */
/* A field's live character count (the listing's title and description). */
.hint.count { margin: 4px 0 0; font-size: .85rem; text-align: right; }
.hint.count.short { color: var(--coral); }
.unit-field { position: relative; display: block; }
/* More specific than input[type=text] below, which set padding-right back to 14px (found by the independent tests,
   2026-10-20: only maxlength="6" kept typed digits off the unit). */
.unit-field input[type=text] { padding-right: 7.5em; }
.unit-field .unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: .9rem; pointer-events: none; white-space: nowrap; }
label { display: block; font-size: clamp(.95rem, 3.8vw, 1.17rem); line-height: 1.3; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
input[type=text], input[type=url], input[type=date], input[type=number], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
/* Our own arrow, inset from the right edge (owner, 2026-10-18: "more room between the arrow and the
   border") — the native one ignores padding. */
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b6677' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
select::-ms-expand { display: none; }
input:hover, select:hover, textarea:hover { border-color: #d6cec1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
input.invalid, select.invalid, textarea.invalid, input.invalid:hover, select.invalid:hover, textarea.invalid:hover,
input.invalid:focus, select.invalid:focus, textarea.invalid:focus { border-color: var(--danger); }
input.invalid:focus, select.invalid:focus, textarea.invalid:focus { box-shadow: 0 0 0 4px #f6d4d1; }
/* A group (the choice boxes, the map, the photos, the plan, a terms box): a red frame around it. */
div.invalid, label.invalid { outline: 2px solid var(--danger); outline-offset: 4px; border-radius: 10px; }
.row input[type=text], .row input[type=url] { flex: 1; width: auto; min-width: 0; }   /* min-width: 0 lets it shrink on a phone */
.row > button { flex: 0 0 auto; }
textarea { min-height: 120px; resize: vertical; }

button, a.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border: 0; background: var(--violet);
  color: #fff; border-radius: var(--shape); cursor: pointer; text-decoration: none;
  /* Every button's label bold (owner, 2026-10-19). Was `font: 800 .92rem/1.2 inherit` — `inherit` is no family in the
     shorthand, so browsers dropped the whole line and buttons showed at 400. */
  font-family: inherit; font-size: .92rem; line-height: 1.2; font-weight: 700;
  box-shadow: 0 6px 16px -8px rgba(107, 44, 255, .7); transition: transform .15s, box-shadow .15s, background .15s; }
button:hover, a.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(107, 44, 255, .8); color: #fff; background: #5a1ff0; }
button:active, a.btn:active { transform: translateY(0); }
button.secondary { background: #fff; color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
button.secondary:hover { background: #fff; box-shadow: inset 0 0 0 1px #cfc6b8, var(--shadow-sm); color: var(--ink); }
button:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border: 0; background: #fff; color: var(--ink); border-radius: var(--shape); font-size: .78rem; font-weight: 700;
  box-shadow: inset 0 0 0 1px var(--line); }
.chip:hover { transform: none; background: #fff; box-shadow: inset 0 0 0 1px #cfc6b8; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; box-shadow: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Segmented choice (radio buttons): what kind of property. */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border-radius: var(--shape); box-shadow: inset 0 0 0 1px var(--line); flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { margin: 0; padding: 8px 16px; border-radius: var(--shape); font-size: .9rem; font-weight: 700; color: var(--ink); cursor: pointer; }
.seg input:checked + label { background: var(--ink); color: #fff; font-weight: 700; }
.seg input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; }
/* The terms' text (views/ingatlan/_terms_text.ejs), on its page and in the wide modal (_terms_dialog.ejs). */
.terms h1 { font-size: 1.5rem; line-height: 1.2; }
.terms h2 { font-size: 1.15rem; margin-top: 30px; }
.terms li { margin: 6px 0; }
.terms .todo { background: var(--coral-soft); padding: 2px 6px; border-radius: 6px; }
dialog.terms-dialog { width: min(980px, 94vw); max-height: 88vh; padding: 0 28px 28px; border: 0; border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(21, 18, 31, .45); background: var(--panel); color: var(--ink); overflow: auto; }
dialog.terms-dialog::backdrop { background: rgba(21, 18, 31, .45); }
/* The terms' modal closes on the ✕ already used on the catalogue's search box (owner, 2026-11-15: "ne bezárás gomb
   legyen, hanem a már használt X gomb"). */
dialog.terms-dialog .terms-close .x-close { position: relative; width: 34px; height: 34px; min-height: 0; padding: 0; border: 0; border-radius: var(--shape);   /* the buttons' drop shape kept (owner: "a cseppalakot őrizzük meg") */
  background: #fff; box-shadow: inset 0 0 0 2px var(--danger); font-size: 0; cursor: pointer; }
dialog.terms-dialog .terms-close .x-close::before, dialog.terms-dialog .terms-close .x-close::after { content: ""; position: absolute; left: 8px; right: 8px;
  top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--danger); }
dialog.terms-dialog .terms-close .x-close::before { transform: rotate(45deg); }
dialog.terms-dialog .terms-close .x-close::after { transform: rotate(-45deg); }
dialog.terms-dialog .terms-close .x-close:hover, dialog.terms-dialog .terms-close .x-close:focus-visible { background: var(--danger); }
dialog.terms-dialog .terms-close .x-close:hover::before, dialog.terms-dialog .terms-close .x-close:hover::after,
dialog.terms-dialog .terms-close .x-close:focus-visible::before, dialog.terms-dialog .terms-close .x-close:focus-visible::after { background: #fff; }
dialog.terms-dialog .terms-close { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 14px 0 6px;
  background: var(--panel); margin: 0; }
@media (max-width: 760px) { dialog.terms-dialog { padding: 0 16px 20px; } }
/* The terms' acceptance under a form (views/ingatlan/_terms.ejs). */
/* Room above the boxes (owner, 2026-10-20: "a term-check-ek előtt is legyen valamennyi tér"). */
.terms-box { margin: 28px 0 12px; }
.terms-box .hint { margin: 0 0 18px; }
/* Twice its .85rem, the box with it (owner, 2026-10-19: "Elfogadom az ÁSZF-et és az adatkezelési tájékoztatót. ez legyen 2x
   ekkora"); a little less on a phone, so the line still fits. */
/* 85 % of the size above (owner, 2026-10-20: "a terms-check lablje picit nagy, vegyük vissza a mostani kb 85%-ára"), then 2/3 of
   that (owner, 2026-10-27: "ez egy kicsit túl nagy betű, 2/3 ekkora legyen"); on a phone not under .8rem, to stay readable. */
label.terms-check { display: flex; gap: 12px; align-items: flex-start; font-size: clamp(.8rem, 2.95vw, .963rem); line-height: 1.25;
  font-weight: 700; letter-spacing: -.01em; color: var(--ink); margin: 10px 0 14px; }
label.terms-check input { font-size: inherit; width: 1.05em; height: 1.05em; margin-top: .12em; flex: 0 0 auto; accent-color: var(--violet); }
.badge-held { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 800; text-align: center; line-height: 1.4em; }
.kind { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--violet); background: var(--violet-soft); border-radius: var(--shape); padding: 3px 10px; }

ul.items { list-style: none; padding: 0; margin: 4px 0 0; }
ul.items li { padding: 9px 0; border-bottom: 1px solid var(--soft-line); font-size: .85rem; display: flex; justify-content: space-between; gap: 8px; }
ul.items li .name { cursor: pointer; font-weight: 500; }
ul.items li .meta { color: var(--muted); white-space: nowrap; }
ul.items li button { padding: 3px 10px; font-size: .75rem; background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px #f1c9c5; }
ul.items li button:hover { background: var(--coral-soft); color: var(--danger); box-shadow: inset 0 0 0 1px #f1c9c5; }
details { border-bottom: 1px solid var(--soft-line); padding: 10px 0; }
summary { cursor: pointer; font-size: .92rem; font-weight: 600; }

/* ── building blocks ────────────────────────────────────────────────── */
.card { background: var(--panel); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.signin { max-width: 460px; margin: 12vh auto; text-align: center; }
.signin h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; margin-top: 0; }
.price { font-size: 1.5rem; font-weight: 900; letter-spacing: -.02em; }
.sticker { display: inline-block; background: var(--lime); color: var(--ink); border-radius: 999px;
  padding: 4px 12px; font-weight: 800; letter-spacing: -.02em; }
.badge-time { display: inline-block; background: var(--coral); color: #fff; border-radius: 999px;
  padding: 3px 10px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; }
.badge-time.calm { background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* posting / editing (owner, 2026-10-19): full width — the map in the first section, the fields of each section across */
.form-layout { max-width: 1240px; margin: 0 auto; padding: 24px 24px 64px; }
/* The form on a pale sheet (owner, 2026-10-19: "a form kapjon némi hátteret … haloványan látszódjon a sziluettrajz a
   form mögött"): the page colour, mostly opaque and slightly blurred, so the skyline only shows faintly through it. */
.form-layout .panel { background: rgba(251, 248, 243, .9); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 8px 28px 28px; }
.form-layout .panel h2 { display: flex; align-items: center; gap: 8px; margin-top: 30px; }
.form-layout .panel h2 { gap: 10px; }
.form-layout .panel h2::before { content: ""; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--violet); }
.form-layout #map { width: 100%; height: 380px; margin-top: 12px; border-radius: var(--radius); overflow: hidden; transition: height .3s ease; }
.form-layout #map.collapsed { height: 0; margin-top: 0; }
.form-layout .map-toggle { display: none; margin-top: 10px; }
@media (max-width: 760px) {
  header.top { padding: 10px 16px; }
  header.top h1 { font-size: 1.1rem; }
  header.top .who { gap: 10px; flex-wrap: nowrap; }
  /* On a phone the account button is the G alone; the address stays in its title. */
  header.top .who .btn-google.small .acct { display: none; }
  header.top .who .btn-google.small:has(.acct) { padding: .3rem; }
  /* The menu buttons do not fit beside the name on a phone: they take the second row. */
  header.top { flex-wrap: wrap; row-gap: 8px; }
  header.top .who :is(a, button).nav { padding: .3rem .7rem; font-size: .72rem; min-height: 32px; }
  header.top .who:not(.menu):has(a.nav) { flex: 1 0 100%; justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
  /* Signed in: the menu folds behind the hamburger and opens as a panel under the header. */
  header.top:has(.burger) { flex-wrap: nowrap; }
  header.top:has(.burger) h1 { margin-right: auto; }
  header.top .acct-phone { display: inline-flex; min-width: 0; max-width: 42vw; }
  header.top .acct-phone .acct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  header.top .who.menu .btn-google.small { display: none; }
  header.top .burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; position: relative; width: 40px; height: 40px;
    padding: 0 10px; border: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--ink); background: transparent; cursor: pointer; }   /* a rounded rectangle, as the news' (owner, 2026-10-22) */
  header.top .burger .line { display: block; height: 2px; width: 100%; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  header.top .burger[aria-expanded="true"] .line1 { transform: translateY(6px) rotate(45deg); }
  header.top .burger[aria-expanded="true"] .line2 { opacity: 0; }
  header.top .burger[aria-expanded="true"] .line3 { transform: translateY(-6px) rotate(-45deg); }
  header.top .burger.unread::before { content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--violet); box-shadow: 0 0 0 2px #fff; }
  header.top .who.menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 12px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  header.top.menu-open .who.menu { display: flex; }
  header.top .who.menu :is(a, button).nav { justify-content: center; font-size: .85rem; min-height: 42px; }

  main.page { padding: 18px 16px 48px; }
  .form-layout { padding: 18px 10px 48px; }
  .form-layout .panel { padding: 4px 14px 20px; }
  .form-layout #map { height: 50vh; }
  /* The map folds away on a small screen. */
  .form-layout .map-toggle { display: inline-flex; }
}
/* A field with a "?" beside it whose hint floats on hover, focus or tap (owner, 2026-10-22). */
.with-help { display: flex; align-items: center; gap: 8px; }
.help { position: relative; display: inline-flex; flex: none; vertical-align: middle; }
button.help-q { width: 26px; height: 26px; padding: 0; border-radius: 50%; justify-content: center; background: #fff; color: var(--violet);
  font-weight: 900; font-size: .9rem; box-shadow: inset 0 0 0 2px var(--violet); text-transform: none; }
button.help-q:hover { background: var(--violet); color: #fff; transform: none; box-shadow: inset 0 0 0 2px var(--violet); }
.help .tip { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(280px, 80vw); padding: 10px 12px;
  border-radius: 10px; background: var(--ink); color: #fff; font-size: .85rem; line-height: 1.45; box-shadow: var(--shadow); }
.help:hover .tip, .help:focus-within .tip { display: block; }
/* A "?" at a line's start (beside a label or a heading): its tip hangs from the whole line, from its left edge and no wider than
   it — inside the card and the screen, however narrow (owner, 2026-11-03). */
.with-help { position: relative; }
.help.start { position: static; }
.help.start .tip { right: auto; left: 0; width: min(280px, 100%); box-sizing: border-box; }
/* The offer's "?" bounces like a ball, three times, two seconds after the page is in (owner, 2026-11-03: "jó lenne valami
   animációt rakni arra a körben kérdőjelre, pl. pattogna egy kicsit megnyitáskor méghozzá betöltés után 2 másodpercet várna és
   utána pattanna hármat vagy ilyesmi, mint a labda") — once per page, none for those who asked for less motion. */
@keyframes help-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  12% { transform: translateY(0) scale(1.12, .88); }
  40% { transform: translateY(-10px) scale(.94, 1.06); }
  68% { transform: translateY(0) scale(1.12, .88); }
  84% { transform: translateY(-2px) scale(1, 1); }
}
.help.bounce .help-q { animation: help-bounce .7s cubic-bezier(.3, .6, .4, 1) 2s 3 both; transform-origin: 50% 100%; }
@media (prefers-reduced-motion: reduce) { .help.bounce .help-q { animation: none; } }
/* A label's remark (views/ingatlan/_lbl.ejs): behind the "?" where one can hover; on a phone, or with no hover, under the
   label in brackets (owner, 2026-10-22). */
.lbl-help { margin-left: 6px; }
.lbl-help .help-q { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; color: var(--violet); font-weight: 900; font-size: .75rem; box-shadow: inset 0 0 0 2px var(--violet); cursor: help; }
.lbl-help:hover .help-q { background: var(--violet); color: #fff; }
.lbl-help .tip { left: 0; right: auto; font-weight: 400; text-transform: none; letter-spacing: normal; }
/* On a desktop the remark is still read aloud, out of sight (the "?" is aria-hidden). */
.lbl-note { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 760px), (hover: none) {
  .lbl-help { display: none; }
  .lbl-note { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal;
    display: block; font-weight: 400; font-size: .85em; color: var(--muted); }
}
/* In a form section's heading (a flex row with its dot) the phone's remark goes under the words, not beside them (owner,
   2026-10-26: "inkább alatta sortöréssel"). */
@media (max-width: 760px), (hover: none) {
  .form-layout .panel h2 { flex-wrap: wrap; }
  .form-layout .panel h2 .lbl-note { flex-basis: 100%; padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* A listing's events, for moderators (owner, 2026-10-19). */
/* The event log as a table, one size of type throughout (owner, 2026-10-25). */
details.events { margin: 10px 0; font-size: .85rem; }
details.events summary { cursor: pointer; font-weight: 700; }
details.events .events-wrap { margin-top: 6px; max-height: 420px; overflow: auto; }
.events-table { border-collapse: collapse; width: 100%; font-size: inherit; line-height: 1.4; }
.events-table th, .events-table td { padding: 5px 10px 5px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-weight: normal; }
.events-table thead th { position: sticky; top: 0; background: var(--panel); font-weight: 700; color: var(--muted); }
.events-table td.when { white-space: nowrap; color: var(--muted); }
.events-table td.detail-cell { color: var(--muted); }
.events-table code { font: inherit; word-break: break-all; }
.events-table td:nth-child(2) { min-width: 12em; }
/* The page's time and commit (views/ingatlan/_buildStamp.ejs): small and pale, top right under the header (owner, 2026-10-21). */
.build-stamp { font-size: .72rem; color: #9a94a6; margin: 6px 24px 0; text-align: right; letter-spacing: .02em; }
.build-stamp .stamp-link { color: #15121f; text-decoration: none; }   /* black, the stamp's size and face (owner, 2026-11-15) */
.build-stamp .stamp-link:hover, .build-stamp .stamp-link:focus-visible { text-decoration: underline; }
.build-stamp .stamp-sep { color: #15121f; }
.refused .build-stamp { margin: 10px 0 0; text-align: left; }   /* the refusal dialog has no header: under "Értettem" */
/* On a phone the stamp is a real fixed footer, centred (owner, 2026-11-20: "Telefonos nézetben ez a rész legyen igazi fixed
   footer középre igazítva"): over the drawn skyline on the page's own colour, clear of the home indicator; the page ends with
   room for it. Not in the refusal dialog. */
@media (max-width: 760px) {
  body:not(:has(.refused)) .build-stamp { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; text-align: center;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: rgba(251, 248, 243, .92);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 -1px 0 var(--line); line-height: 1.5; }
  body:not(:has(.refused)) { padding-bottom: calc(min(17.33vw, 300px) + 3.2em); }
}
/* Every button's label in lower case (owner, 2026-10-21: "minden gombfeliratot kisbetűvel szeretnék írni"): shown so, the text
   in the page unchanged — "Mutasd" reads "mutasd", "+ Hirdetés feladása" "+ hirdetés feladása". */
button, .btn, a.btn, input[type="submit"], input[type="button"] { text-transform: lowercase; }
button.keep-case, .btn.keep-case { text-transform: none; }   /* a label in capitals, like "WC" (owner, 2026-10-21: "nagybetűs legyen") */
dialog.notice:focus { outline: none; }

/* Taking one's offer back, cancelling a viewing (owner, 2026-10-27: a red ✕ asked in a dialog): a small picto like the "?"
   help — a 26 px ring, red, filled on hover, its words in the same floating tip (owner, 2026-11-03: "ez az ajánlatvisszavonósdi is
   olyasmi legyen mint a kérdőjel karikában tooltip picto"). Listing page, "ajánlataim", "időpontfoglalások". */
button.offer-x { position: relative; flex: 0 0 auto; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 2px var(--danger); cursor: pointer; font-size: 0; }
button.offer-x::before, button.offer-x::after { content: ""; position: absolute; left: 7px; right: 7px; top: 50%; height: 2px; margin-top: -1px;
  border-radius: 1px; background: var(--danger); }
button.offer-x::before { transform: rotate(45deg); }
button.offer-x::after { transform: rotate(-45deg); }
button.offer-x:hover, button.offer-x:focus-visible { transform: none; background: var(--danger); box-shadow: inset 0 0 0 2px var(--danger); }
button.offer-x:hover::before, button.offer-x:hover::after, button.offer-x:focus-visible::before, button.offer-x:focus-visible::after { background: #fff; }
/* The small confirming dialogs (taking an offer back, the last free offer, cancelling a viewing — owner, 2026-10-27). */
dialog.terms-dialog.notice { width: min(460px, 92vw); padding: 26px 28px 22px; text-align: center; }
dialog .dialog-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
dialog .dialog-actions button.danger { background: var(--danger); }
dialog .dialog-actions button.danger:hover { background: #a51f16; }
/* The green action button with a black label (owner, 2026-10-28): "másolat új hirdetésnek", "megnyitás térképen". */
a.btn.lime, a.btn.lime:hover { background: var(--lime); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(110, 140, 20, .7); }
a.btn.lime:hover { background: #b8e52a; }

/* "jelentkezem értékbecslőnek" is a button among links (owner, 2026-11-07): the same look, the browser's button styling off. */
header.top .who button.nav { font-family: inherit; line-height: inherit; border: 0; cursor: pointer; }
