/* ingatlan-new.css — views/ingatlan/new.ejs (controllers/ingatlan/assets.js) */
.facts-title { margin: 18px 0 4px; font-size: 1.05rem; font-weight: 800; }
/* At most three columns, more rows rather. */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - 32px) / 3)), 1fr)); gap: 10px 16px; }
/* Each question with its answers a card: white on the beige form, a faint frame. */
/* The question's own label (not the boxes' — those are label.tick) bold, above its answers; room inside the card so
   a question never reads as the previous one's answer. */
.facts .fact { display: flex; flex-direction: column; justify-content: space-between; background: var(--panel);
  border: 1px solid var(--soft-line); border-radius: 12px; padding: 12px 14px 14px; }
.facts .fact > label { margin: 0 0 8px; line-height: 1.25; font-weight: 700; }
.fact-section { margin-top: 16px; }
.fact-section[hidden] { display: none; }
.fact-section-title { margin: 0 0 8px; padding-bottom: 4px; border-bottom: 2px solid var(--violet-soft);
  font-size: 1.45rem; font-weight: 800; color: var(--ink); }   /* > 1.5 × the .95rem it was */
.facts .fact.wide { justify-content: flex-start; }
/* The publish / save button one and a half times the others. */
/* The photo picker green with a black label, as the catalogue's "+ Hirdetés feladása". */
#pickFiles { background: var(--lime); color: #111; border: 0; box-shadow: 0 8px 18px -10px rgba(120, 160, 0, .85); }
#pickFiles:hover { background: #b9e82a; color: #111; }
#publish { font-size: 1.38rem; padding: 16px 33px; margin-top: 14px; }   /* 1.5 × .92rem and 11px 22px; room above */
    .facts .fact[hidden] { display: none; }
.facts .fact.wide { grid-column: 1 / -1; }
/* The boxes in the same three columns at most — a label fits on its line there; one that still breaks keeps its box at
   the top left and its lines from the same top. */
.facts .multi { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(190px, calc((100% - 44px) / 3)), 1fr)); gap: 6px 22px; }
.facts .ob-rows { display: grid; gap: 10px; }
.facts .ob-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: end; padding: 8px 10px; border: 1px solid #e3e6ea; border-radius: 6px; }
.facts .ob-row[hidden], .facts .ob-cell[hidden], .facts .ob-add[hidden] { display: none; }
.facts .ob-cell { display: flex; flex-direction: column; min-width: 140px; }
.facts .ob-cell label { font-weight: normal; font-size: .92em; }
/* A rent's utility bills (propertyFacts.js 'bills'): the period's two days side by side, then the kinds' table — kind | consumption
   | cost, each input with its unit inside. On a phone the table keeps its three columns, the inputs narrower. */
.facts .bills-period { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.facts .bills-day { display: flex; flex-direction: column; min-width: 180px; flex: 1 1 180px; }
.facts .bills-day label { font-weight: normal; font-size: .92em; margin-top: 4px; }
.facts .bills-table { width: 100%; border-collapse: collapse; margin-top: 8px; table-layout: fixed; }
.facts .bills-table th, .facts .bills-table td { padding: 4px 8px 4px 0; text-align: left; vertical-align: middle; }
.facts .bills-table thead th { font-weight: normal; font-size: .88em; color: var(--muted); }
.facts .bills-table tbody th { font-weight: 600; font-size: .95em; width: 32%; overflow-wrap: anywhere; }
.facts .tick { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 500; line-height: 1.35; max-width: 100%; }
/* font-size: inherit — the margin's 1.35em is the label's line, so the box sits on its first line. */
.facts .tick input { font-size: inherit; width: 18px; height: 18px; flex: none; margin: calc((1.35em - 18px) / 2) 0 0; accent-color: var(--violet); }
.deals { display: flex; gap: 22px; flex-wrap: wrap; margin: 2px 0 6px; }
.deals .tick { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--ink); white-space: nowrap; }
.deals .tick input { font-size: inherit; width: 20px; height: 20px; flex: none; margin: calc((1.35em - 20px) / 2) 0 0; accent-color: var(--violet); }
.dealbox[hidden] { display: none; }
fieldset.after-deal { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.after-deal:disabled { opacity: .45; }
/* The button and "vagy húzd ide…" beside it, to the left; the text wraps under the button only on a narrow screen. */
.drop { border: 1.5px dashed #d6cec1; border-radius: 14px; padding: 18px; text-align: left; background: #fff;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
/* The photo slots, one per allowed photo, each with its hint. */
/* Two rows, centred:
   --per-row is half the photos, rounded up (7 → 4 + 3); two a row on a phone. */
ol.slots { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
ol.slots > li { flex: 0 0 calc((100% - (var(--per-row, 4) - 1) * 12px) / var(--per-row, 4)); }
@media (max-width: 560px) { ol.slots > li { flex-basis: calc((100% - 12px) / 2); } }
ol.slots li { position: relative; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
ol.slots li.over { outline: 2px solid var(--accent); }
ol.slots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
ol.slots .slot-empty { aspect-ratio: 4 / 3; width: 100%; border: 1.5px dashed #d6cec1; border-radius: 12px 12px 0 0; background: var(--bg);
  color: var(--muted); display: grid; place-items: center; box-shadow: none; padding: 0; }
ol.slots .slot-empty:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); transform: none; box-shadow: none; }
ol.slots .slot-empty .plus { font-size: 1.8rem; font-weight: 300; line-height: 1; }
ol.slots .guide { display: block; padding: 6px 8px; font-size: .74rem; font-weight: 600; color: var(--muted); line-height: 1.25; }
ol.slots .guide b { color: var(--ink); }
ol.slots .badge { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: .68rem; padding: 1px 6px; border-radius: 4px; }
ol.slots .badge.bad { background: var(--danger); }
ol.slots .tools { display: flex; justify-content: space-between; padding: 2px 4px 0; }
ol.slots .tools button { padding: 2px 8px; font-size: .75rem; background: transparent; color: var(--ink); box-shadow: none; }
ol.slots .tools button:hover { background: var(--soft-line); color: var(--ink); box-shadow: none; transform: none; }
/* Sale, rent and the deadline side by side on a wide screen. */
@media (max-width: 760px) { .facts { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
/* On a phone one field to a row: beside another, its label left the input too narrow. */
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts input.locked { background: var(--bg); color: var(--muted); cursor: default; }   /* sole ownership's 1/1, read-only */
.facts select.locked { background: var(--bg); color: var(--muted); cursor: default; }   /* a detached house's aspect, "Utcai" */
/* Sale and rent side by side at most — two tracks: the deadline spanning the row kept the auto-fit's spare tracks open, and the
   two boxes shrank to a quarter each. */
.deal-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(260px, calc((100% - 24px) / 2)), 1fr)); gap: 0 24px; align-items: start; }
#dealDeadline { grid-column: 1 / -1; }
/* "Kitöltöttség" above the terms: the required still missing in red, the warnings in black, links. */
.completeness { margin: 18px 0 10px; padding: 14px 16px; border-radius: var(--radius); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.completeness h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.completeness ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.completeness ul + ul { margin-top: 8px; }
.completeness a.need { color: var(--danger, #c62828); font-weight: 700; }
.completeness a.warn { color: var(--ink); }
.completeness a::before { content: "→ "; }
.completeness .done { margin: 0; color: var(--muted); }
/* The optional facts folded behind "további adatok"; the required always out. */
#facts.compact .fact:not(.req) { display: none; }
.more-toggle { margin: 6px 0 0; }
/* The refusal over listing.maxActivePerProperty: the running listings, each by its title with its link. */
dialog.terms-dialog.property-full { width: min(520px, 92vw); padding: 24px 28px 22px; }
dialog.terms-dialog.property-full ul { margin: 10px 0 18px; padding-left: 1.2em; }
dialog.terms-dialog.property-full li { margin: 6px 0; }
/* The typical price nearby under the minimum price (KSH). */
.market-hint { margin: 6px 0 0; }
.market-hint p { margin: 4px 0; }
.market-hint .market-where { margin-top: 8px; font-weight: 600; }
.market-hint .market-limited { color: #8a5a00; }
.market-table { border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 2px 0 4px; }
.market-table th, .market-table td { padding: 2px 10px 2px 0; text-align: right; font-weight: normal; vertical-align: top; }
.market-table tr > th:first-child { text-align: left; }
.market-table tr:first-child th { font-size: .85em; opacity: .8; }
.market-table td { white-space: nowrap; }
.market-table td:last-child { font-weight: 600; }
/* The restored form told in a modal, as the sign-in card. */
dialog.terms-dialog.restore-dialog { width: min(460px, 92vw); padding: 28px; text-align: center; }
dialog.restore-dialog h2 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; margin: 0 0 8px; }
dialog.restore-dialog .restore-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
/* The earlier listing of the same address:
   the offer under the address, and each field it filled marked until the seller changes it. */
.prefill-offer { margin: 10px 0 4px; padding: 10px 14px; border: 1px dashed var(--violet); border-radius: 12px; background: var(--violet-soft); color: var(--ink); }
.prefill-offer[hidden] { display: none; }
.prefill-offer p { margin: 0 0 6px; }
.prefill-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.facts .fact.prefilled { border-color: var(--violet); box-shadow: inset 4px 0 0 var(--violet-soft); }
.facts .fact.prefilled > label::after { content: " · korábbi hirdetésből — ellenőrizd"; font-weight: 500; color: var(--violet); font-size: .9em; }
/* A box not offered for the building type (a flat's renovation: the building's parts are the condominium's). */
.facts .tick[hidden] { display: none; }
/* What is sold on top of the price, on the edit page. */
.location .price-add { font-weight: 600; margin-left: 6px; }
/* The required-only / all-data switch. */
.more-switch .switch { display: inline-flex; align-items: center; gap: 0.75rem; background: none; border: 0; padding: 6px 0; cursor: pointer; font: inherit; color: inherit;
  box-shadow: none; border-radius: 0; min-height: 0; }
/* No button chrome here: plain text either side of the track, the chosen side bold. */
.more-switch .switch:hover, .more-switch .switch:active { background: none; box-shadow: none; transform: none; color: inherit; }
.more-switch .switch-off, .more-switch .switch-on { font-weight: 500; }
.more-switch .switch-track { position: relative; width: 2.6em; height: 1.4em; border-radius: 1em; background: #c8c8c8; transition: background 0.15s; flex: none; }
.more-switch .switch-knob { position: absolute; top: 0.15em; left: 0.15em; width: 1.1em; height: 1.1em; border-radius: 50%; background: #fff; transition: left 0.15s; }
.more-switch .switch[aria-checked="true"] .switch-track { background: var(--accent, #3a6ea5); }
.more-switch .switch[aria-checked="true"] .switch-knob { left: 1.35em; }
.more-switch .switch[aria-checked="false"] .switch-off, .more-switch .switch[aria-checked="true"] .switch-on { font-weight: 700; color: var(--violet); }   /* the active side bold violet */
.more-switch .switch:focus-visible { outline: 2px solid var(--accent, #3a6ea5); outline-offset: 2px; }
.fact-section-title .price-vat .tip-text strong { font-weight: 600; }
/* The heading's "?" had nothing under it: .help.start is static, so the
   tip hung from a far ancestor, off the visible area. The heading anchors it, and the tip reads at the text size. */
.fact-section-title { position: relative; }
.fact-section-title .price-vat .tip { font-size: .9rem; font-weight: 400; line-height: 1.45; width: min(420px, 100%); }
