/* Eladó lakás – mobil az elsődleges nézet. Nincs külső betűtípus (adatvédelem, sebesség). */
:root {
  --bg: #f6f1e9;
  --bg-tint: #eee6da;
  --surface: #fffdf9;
  --ink: #2b2622;
  --ink-soft: #5e554d;
  --line: #ddd2c3;
  --accent: #8a4b2f;        /* téglavörös */
  --accent-ink: #ffffff;
  --accent-soft: #f1e1d6;
  --green: #3f5a4a;
  --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: .2em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); margin: 0 0 .7em; }
h3 { font-size: 1.25rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--narrow); }
.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Gombok */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent); border-radius: 999px;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn:hover { background: #723c24; border-color: #723c24; }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: .92rem; white-space: nowrap; }
.brand { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Felső sáv */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 233, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { font-family: var(--serif); font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: none; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.topbar .btn { margin-left: auto; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .topbar .btn { margin-left: 8px; }
}

/* Nyitó rész */
.hero { padding-bottom: 48px; }
.hero__media { aspect-ratio: 4 / 3; max-height: 70vh; width: 100%; overflow: hidden; background: var(--bg-tint); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__text { padding-top: 28px; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--green); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40em; margin: 0 0 1.2em; }
.facts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-weight: 600; font-size: .95rem;
}
.facts__price { background: var(--accent-soft) !important; border-color: #e3c7b5 !important; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__note { margin: 18px 0 0; color: var(--ink-soft); font-size: .95rem; }

@media (min-width: 900px) {
  .hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 0; padding: 0; min-height: calc(100vh - 60px); }
  .hero__media { aspect-ratio: auto; height: 100%; max-height: none; min-height: 520px; }
  .hero__text { padding: 48px 48px 48px 56px; max-width: 620px; }
}

/* Szekciók */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }
.section--accent { background: var(--surface); border-top: 1px solid var(--line); }
.section__intro { color: var(--ink-soft); margin: -.4em 0 1.6em; }

/* Helyőrző képek */
.ph {
  width: 100%; height: 100%; min-height: 160px;
  display: grid; place-items: center; text-align: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(138,75,47,.05) 14px 28px),
    var(--bg-tint);
  color: var(--ink-soft); font-size: .9rem; padding: 12px;
}
.ph--hero span { font-family: var(--serif); font-size: 1.3rem; }

/* Galéria */
.gallery {
  display: grid; gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  position: relative; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: var(--line); cursor: zoom-in;
}
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item img, .gallery__item picture { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item .ph { border-radius: 10px; }
.gallery__item--ph { cursor: default; }

.extras { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 800px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.extra figcaption { font-weight: 600; margin-bottom: 10px; }
.extra video, .extra iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }

/* Fülek */
.tabs__list {
  display: flex; gap: 6px; overflow-x: auto; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tabs__list button {
  flex: 1 1 0; min-height: 48px; padding: 0 6px; white-space: nowrap;
  background: none; border: 0; border-bottom: 3px solid transparent;
  font: 600 clamp(.88rem, 3.6vw, 1rem) var(--sans); color: var(--ink-soft); cursor: pointer;
}
.tabs__list button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tabs__title { margin: 0 0 .7em; font-size: 1.2rem; }
/* JS nélkül minden blokk látszik, címmel */
.no-js .tabs__list { display: none; }
.no-js .tabs__panel { display: block !important; margin-bottom: 16px; }

/* Adatok */
.datalist { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.datalist > div { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.datalist > div:last-child { border-bottom: 0; }
.datalist dt { font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.datalist dd { margin: 2px 0 0; }
@media (min-width: 640px) {
  .datalist > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; }
  .datalist dt { padding-top: 3px; }
  .datalist dd { margin: 0; }
}

/* Térkép */
.map {
  margin-top: 24px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  padding: 20px; text-align: center;
}
.map__note { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }
.map.is-loaded { padding: 0; }
.map__caption { font-size: .85rem; color: var(--ink-soft); padding: 10px 14px; margin: 0; text-align: left; }

/* GYIK */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--accent); font-weight: 400;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--ink-soft); }

/* Űrlap */
.form { margin-top: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 600; }
.field legend { margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--ink-soft); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #cbbfae; border-radius: 10px;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 14px; border: 1px solid #cbbfae; border-radius: 999px; background: #fff; cursor: pointer; font-weight: 400;
}
.choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choices input { accent-color: var(--accent); margin: 0; }
.sublabel { font-weight: 400 !important; font-size: .92rem; color: var(--ink-soft); margin-top: 10px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); }
.consent input { margin-top: 5px; accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.form .btn { justify-self: start; min-width: 180px; }
.hp { position: absolute; left: -9999px; }

.contact { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.contact p { margin: 0 0 .4em; }
.contact a { font-weight: 600; font-size: 1.1rem; }

/* Lábléc */
.footer { background: var(--ink); color: #e9e1d6; padding: 40px 0; text-align: center; }
.footer__main { font-family: var(--serif); font-size: 1.2rem; margin: 0 0 8px; }
.footer__small { margin: 0; font-size: .88rem; color: #b8ad9f; }
.footer a { color: #f0d2bf; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(20, 17, 15, .96); color: #fff;
}
.lightbox::backdrop { background: rgba(20, 17, 15, .96); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; padding: 56px 8px 16px; }
.lightbox__figure img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 10px; font-size: .92rem; color: #d8cfc4; text-align: center; padding: 0 12px; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lightbox__close { top: 10px; right: 10px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.contact__note { margin-top: 1em !important; font-size: .92rem; color: var(--ink-soft); }
.lang { margin-left: auto; font-size: .9rem; color: var(--ink-soft); text-decoration: none; padding: 6px 4px; }
.lang:hover { color: var(--accent); }
.topbar .lang + .btn { margin-left: 4px; }
@media (min-width: 960px) { .lang { margin-left: 8px; } }
@media (max-width: 400px) { .brand { font-size: .9rem; } .topbar__inner { gap: 10px; } }

/* Görgethető fotós nyitórész */
.hero__media { position: relative; }
.hero__track {
  display: flex; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__track:focus-visible { outline-offset: -4px; }
.hero__slide {
  flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: var(--bg-tint);
  scroll-snap-align: start; scroll-snap-stop: always; cursor: zoom-in;
}
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(20, 17, 15, .62); color: #fff; font-size: .85rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.hero__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 253, 249, .88); color: var(--ink); font-size: 1.7rem; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); display: none;
}
.hero__nav--prev { left: 12px; }
.hero__nav--next { right: 12px; }
.hero__nav:disabled { opacity: 0; pointer-events: none; }
/* Egérrel nyíl, érintőképernyőn húzás */
@media (hover: hover) and (pointer: fine) { .hero__nav { display: block; } }
