:root {
  --ink: #3a372f;
  --ink-soft: #726b5c;
  --ink-faint: #a49b89;
  --paper: #faf8f5;
  --paper-warm: #f3ede3;
  --paper-sage: #eef0e8;
  --panel: #ffffff;
  --line: #e8e2d6;
  --accent: #82977a;
  --accent-dark: #5f7057;
  --terracotta: #c98a6b;
  --terracotta-dark: #ab6d50;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(58, 55, 47, 0.06);
  font-size: 16px;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: "Lora", Georgia, "Times New Roman", serif;
  font-weight: 500;
  margin: 0 0 0.4em 0;
  color: var(--ink);
  line-height: 1.25;
}

p {
  margin: 0 0 1em 0;
}

a {
  color: var(--accent-dark);
}

.margin-bottom-2 {
  margin-bottom: 1.5rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Site header (overlaid on hero) */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 22px 0;
}

.site-header .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.site-cta {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: "Nunito", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.site-cta:hover {
  background: #fff;
}

/* Hero */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  color: #fdfbf6;
  background: var(--ink-soft);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: linear-gradient(180deg, rgba(41, 61, 73, 0.9) 0%, rgba(88, 73, 34, 0.23) 40%, rgba(22, 38, 42, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px 0 48px;
}

/* Flex items shrink-to-fit by default, which breaks the max-width+auto-margin
 centering that every other .container relies on to line up with the site
 header above it — force it back to a normal full-width block. */
.hero-content .container {
  width: 100%;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fdfbf6;
  opacity: 0.9;
  margin-bottom: 14px;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  max-width: 25ch;
  margin-bottom: 0.3em;
}

.hero-sub {
  color: #f1ece0;
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

.hero-price {
  margin-top: 20px;
}

.hero-price .value {
  display: block;
  font-family: "Lora", serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
}

.hero-price .value-small {
  font-family: "Lora", serif;
  font-size: .9rem;
  color: #d4d4d4;
}

.hero-price .label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f1ece0;
  opacity: 0.85;
  margin-top: 2px;
}

@media (max-width: 700px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }
}

/* Photo tiles (reuse two placeholder photos until real listing photos are added) */
.placeholder-img {
  background: var(--paper-sage);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  user-select: none;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.placeholder-img:not(.lightbox-trigger) {
  cursor: default;
}

.placeholder-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-img:hover {
  border-color: var(--accent);
}

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

.placeholder-img.lightbox-trigger::after {
  content: "🔍";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.9rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0.9;
}

.gallery-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: 420px;
}

.gallery-top .g-main {
  grid-row: 1 / 3;
  height: 100%;
}

.gallery-top .g-sub {
  height: 100%;
}

.gallery-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.gallery-bottom .placeholder-img {
  height: 150px;
}

@media (max-width: 700px) {
  .gallery-top {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .gallery-top .g-main {
    height: 220px;
  }

  .gallery-top .g-sub {
    height: 140px;
  }
}

/* Sections */
.section {
  padding: 48px 0;
}

.section.alt-warm {
  background: var(--paper-warm);
}

.section.alt-sage {
  background: var(--paper-sage);
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.65rem;
  margin-bottom: 1.5rem;
}

.section-sub {
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 62ch;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow);
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--paper-sage);
  color: var(--accent-dark);
  margin-bottom: 12px;
  flex: none;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
}

.stat-card .value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-dark);
  font-family: "Lora", serif;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.stat-card .label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

/* A részletek layout: alaprajz kép balra, adatkártyák jobbra */
.details-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .details-layout {
    grid-template-columns: 1fr;
  }
}

.details-plan {
  height: 100%;
  max-height: 465px;
}

.plan-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 320px;
  padding: 24px;
  text-align: center;
  color: var(--ink-faint);
}

.plan-placeholder svg {
  width: 56px;
  height: 56px;
  stroke: var(--ink-faint);
}

.plan-placeholder span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Miért ez a ház */
.why-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}
.dot-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 24px 0 0;
  padding: 0;
}

.dot-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.dot-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* Neighborhood list */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 800px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.area-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 0.92rem;
}

.area-list li:not(:last-child) {
  border-bottom: 1px solid var(--line);
}

.area-list .place {
  font-weight: 700;
}

.area-list .distance {
  color: var(--accent-dark);
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

/* Centered section headers, matching the contact section */
.video-section,
.utility-section {
  text-align: center;
}

/* Video (vertical Shorts embed) */
.video-embed {
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Contact section */
.contact-section {
  background: var(--paper-sage);
  text-align: center;
}

.contact-section .section-sub {
  margin: 0 auto 6px;
}

.contact-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-outline,
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--ink-faint);
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-outline:hover {
  background: var(--panel);
  border-color: var(--ink-soft);
}

.btn-solid {
  background: var(--terracotta);
  border: none;
  color: #fff;
  transition: background 0.15s ease;
}

.btn-solid:hover {
  background: var(--terracotta-dark);
}

/* honeypot field, hidden from real users, catches bots that auto-fill forms */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  text-align: center;
  padding: 26px 0 40px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 12, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  max-width: 1024px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #26221a;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  color: #f1ece0;
  margin-top: 14px;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-counter {
  color: #a79f88;
  font-size: 0.8rem;
  margin-top: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #f1ece0;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}

.lightbox-close:hover {
  color: var(--terracotta);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #f1ece0;
  font-size: 1.6rem;
  line-height: 1;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

@media (max-width: 600px) {
  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .lightbox-close {
    top: 10px;
    right: 14px;
  }
}
