/* kismartoni.com – eladó családi ház, Budaörs–Kamaraerdő */

:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f3ede4;
  --ink: #231f1c;
  --muted: #6b625a;
  --line: #e6ddd1;
  --accent: #9f3b22;        /* terrakotta – a ház ajtóinak, tetejének színe */
  --accent-hover: #86301b;
  --accent-ink: #ffffff;
  --green: #2e5b4f;
  --wood: #b9783d;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(35 31 28 / .06), 0 8px 24px rgb(35 31 28 / .07);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -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);
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--surface-2); }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--ink); max-width: 760px; }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

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

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--accent-ink); }
.btn--light { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .75); color: #fff; backdrop-filter: blur(4px); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgb(251 248 243 / .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand small { display: block; font-family: var(--sans); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.header-cta { min-height: 40px; padding: 8px 16px; font-size: 15px; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / .35) 55%, rgb(0 0 0 / .78) 100%);
}
.hero__content { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: clamp(32px, 6vw, 64px); }
.hero .eyebrow { color: #fff; background: rgb(159 59 34 / .9); padding: 6px 12px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 64px); max-width: 15em; margin-bottom: 12px; text-shadow: 0 2px 16px rgb(0 0 0 / .35); }
.hero__sub { font-size: clamp(17px, 2.2vw, 21px); margin-bottom: 20px; opacity: .95; }
.hero__price { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin-bottom: 24px; }
.hero__price span { font-family: var(--sans); font-size: 15px; font-weight: 500; opacity: .85; margin-left: 6px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Főbb adatok ---------- */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts ul {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.facts li { padding: 22px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li:nth-child(4n) { border-right: 0; }
.facts li:nth-last-child(-n+4) { border-bottom: 0; }
.facts strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) {
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li { padding: 16px 12px; }
  .facts li:nth-child(4n) { border-right: 1px solid var(--line); }
  .facts li:nth-child(2n) { border-right: 0; }
  .facts li:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .facts li:nth-last-child(-n+2) { border-bottom: 0; }
  .facts strong { font-size: 22px; }
}

/* ---------- Bevezető ---------- */
.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 8px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius-sm); font-size: 15px;
}
.notice svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 2px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- Galéria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery__item {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--surface-2); aspect-ratio: 3 / 2;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery.is-collapsed .gallery__item:nth-child(n+10) { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 24px; }
.gallery-more[hidden] { display: none; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery__item:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 3 / 2; }
  .gallery.is-collapsed .gallery__item:nth-child(n+8) { display: none; }
}

/* ---------- Videó ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: #000; box-shadow: var(--shadow);
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; border: 0; padding: 0; cursor: pointer; color: #fff; font: 600 17px var(--sans);
  background: linear-gradient(0deg, rgb(0 0 0 / .45), rgb(0 0 0 / .15));
}
.video__play span:first-child {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 6px 24px rgb(0 0 0 / .35); transition: transform .2s;
}
.video__play:hover span:first-child { transform: scale(1.08); }
.video__play svg { width: 34px; height: 34px; margin-left: 5px; }
.video-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Szintek / alaprajzok ---------- */
.levels { display: grid; gap: 28px; }
.level {
  display: grid; grid-template-columns: 420px 1fr; gap: clamp(20px, 4vw, 48px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow);
}
.level__plan { display: block; align-self: start; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fbfaf5; position: relative; }
.level__plan::after {
  content: "Nagyítás"; position: absolute; right: 10px; bottom: 10px;
  background: rgb(35 31 28 / .8); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.level__meta { font-size: 14px; color: var(--muted); margin: -4px 0 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.chips b { font-weight: 600; }
@media (max-width: 900px) { .level { grid-template-columns: 1fr; } }

/* ---------- Kártyák (műszaki) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--surface-2); color: var(--accent); margin-bottom: 14px; }
.card__icon svg { width: 26px; height: 26px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr; } }

.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: 16px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.5 2.4L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.checklist small { display: block; color: var(--muted); font-size: 14px; }

/* ---------- Kép + szöveg blokkok ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { display: grid; gap: 10px; }
.split__media a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* ---------- Vételár ---------- */
.price-box {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.price-box__main { background: var(--green); color: #fff; padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.price-box__main .amount { font-family: var(--serif); font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; line-height: 1.05; white-space: nowrap; }
.price-box__main p { margin: 0; opacity: .9; }
.price-box__body { padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.price-box__body h3 { font-size: 19px; margin-bottom: 10px; }
@media (max-width: 860px) { .price-box { grid-template-columns: 1fr; } }

/* ---------- ingatlan.com hirdetés kártya ---------- */
.listing-intro { margin: 36px 0 10px; font-size: 15px; color: var(--muted); }
.listing-card {
  display: grid; grid-template-columns: 168px 1fr auto; align-items: center; gap: 20px;
  padding: 12px; padding-right: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.listing-card:hover { color: var(--ink); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(35 31 28 / .06), 0 14px 32px rgb(35 31 28 / .1); }
.listing-card__img { width: 168px; height: 112px; object-fit: cover; border-radius: var(--radius-sm); }
.listing-card__body { display: grid; gap: 4px; min-width: 0; }
.listing-card__source { font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--green); }
.listing-card__source span { font-weight: 500; color: var(--muted); }
.listing-card__source span::before { content: "· "; }
.listing-card__title { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; }
.listing-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--muted); }
.listing-card__meta b { color: var(--ink); }
.listing-card__cta {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border: 2px solid var(--accent); border-radius: 999px;
  color: var(--accent); font-weight: 600; font-size: 15px;
  transition: background-color .15s, color .15s;
}
.listing-card:hover .listing-card__cta { background: var(--accent); color: var(--accent-ink); }
.listing-card__cta svg { width: 18px; height: 18px; }
@media (max-width: 680px) {
  .listing-card { grid-template-columns: 96px 1fr; gap: 14px; padding-right: 12px; }
  .listing-card__img { width: 96px; height: 96px; }
  .listing-card__title { font-size: 17px; }
  .listing-card__source span { display: block; }
  .listing-card__source span::before { content: none; }
  .listing-card__cta { grid-column: 1 / -1; justify-content: center; }
}

/* ---------- Kapcsolat ---------- */
.contact { background: var(--ink); color: #fff; }
.contact .eyebrow { color: #f0b49f; }
.contact h2 { color: #fff; }
.contact__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.contact__lines { display: grid; gap: 14px; }
.contact-line {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .14); border-radius: var(--radius);
  color: #fff; text-decoration: none; transition: background-color .15s;
}
.contact-line:hover { background: rgb(255 255 255 / .12); color: #fff; }
.contact-line svg { flex: none; width: 28px; height: 28px; color: #f0b49f; }
.contact-line small { display: block; font-size: 13px; color: rgb(255 255 255 / .7); }
.contact-line strong { font-size: clamp(19px, 2.4vw, 24px); font-weight: 600; word-break: break-word; }
.contact p { color: rgb(255 255 255 / .82); }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------- Lábléc ---------- */
.site-footer { background: #1a1715; color: rgb(255 255 255 / .7); font-size: 14px; padding: 28px 0 32px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a, .link-button { color: rgb(255 255 255 / .85); }
.link-button { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button[hidden] { display: none; }

/* ---------- Mobil alsó sáv ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgb(251 248 243 / .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 46px; padding: 10px 12px; }
  body { padding-bottom: 76px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(14 12 11 / .96); color: #fff;
}
.lightbox::backdrop { background: rgb(14 12 11 / .96); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 56px 64px 8px; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__img.is-plan { background: #fbfaf5; }
.lightbox__bar { display: flex; justify-content: center; gap: 16px; align-items: baseline; padding: 10px 16px 18px; font-size: 15px; text-align: center; }
.lightbox__count { color: rgb(255 255 255 / .6); white-space: nowrap; }
.lightbox button {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; cursor: pointer;
}
.lightbox button:hover { background: rgb(255 255 255 / .25); }
.lightbox button svg { width: 24px; height: 24px; }
.lightbox__close { top: 10px; right: 12px; }
.lightbox__prev { left: 10px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 10px; top: 50%; translate: 0 -50%; }
.lightbox.is-single .lightbox__prev, .lightbox.is-single .lightbox__next { display: none; }
@media (max-width: 760px) {
  .lightbox__stage { padding: 56px 0 8px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: -58px; translate: none; }
  .lightbox__bar { padding: 14px 70px 20px; }
}

/* ---------- Süti-sáv ---------- */
.consent {
  position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgb(0 0 0 / .18); padding: 18px 20px;
}
.consent p { font-size: 15px; margin-bottom: 14px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent__actions .btn { min-height: 42px; padding: 8px 20px; flex: 1 1 140px; }
@media (max-width: 760px) { .consent { bottom: 88px; } }

/* ---------- Szöveges aloldal (adatvédelem, 404) ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); }
.prose h2 { font-size: 26px; margin-top: 2em; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); }
.table-scroll { overflow-x: auto; }
