/* Elegant, letisztult look modelled on premiumingatlanok.com: thin
   high-contrast serif headings (uppercase, with italic words mixed in),
   small letter-spaced captions, a single gold accent, hairline dividers and
   a signature-style script for accents. The aurora (the former ingatlanok
   section backdrop) is now the background of the whole page. */
:root {
  --bg: #18181b;
  --panel: #1f1f23;
  --text: #f4f1ea;
  --muted: #a9a59d;
  --accent: #c9a66b;
  --gold: #c19a5b;
  --gold-hover: #d0ad72;
  --on-accent: #17140e;
  --border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.12);
  --topbar-bg: rgba(24, 24, 27, 0.62);
  --menu-bg: rgba(24, 24, 27, 0.94);
  --card-bg: rgba(31, 31, 35, 0.62);
  --chip-bg: rgba(255, 255, 255, 0.92);
  --chip-text: #202020;
  --outline-border: rgba(255, 255, 255, 0.25);
  --overlay-rgb: 24, 24, 27;
  --text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  --shadow: rgba(0, 0, 0, 0.3);
  --aurora-base: #18181b;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-script: "Mrs Saint Delafield", "Segoe Script", cursive;
  color-scheme: dark;
}

/* Light (nappali) theme — toggled by the .theme-toggle button, which sets
   data-theme on <html> (see the inline script in each page's <head>). */
:root[data-theme="light"] {
  --bg: #fafafa;
  --panel: #ffffff;
  --text: #202020;
  --muted: #5e5e5e;
  --accent: #8f6a2f;
  --border: rgba(20, 20, 30, 0.08);
  --line: rgba(20, 20, 30, 0.18);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(20, 20, 30, 0.1);
  --topbar-bg: rgba(250, 250, 250, 0.78);
  --menu-bg: rgba(250, 250, 250, 0.96);
  --card-bg: rgba(255, 255, 255, 0.78);
  --outline-border: rgba(20, 20, 30, 0.22);
  --overlay-rgb: 250, 250, 250;
  --text-shadow: 0 1px 8px rgba(255, 255, 255, 0.75);
  --shadow: rgba(40, 30, 20, 0.1);
  --aurora-base: #fafafa;
  color-scheme: light;
}

/* ---------- Glass utility (deframed: no box, just the text) ---------- */

.glass {
  background: none;
  border: none;
  box-shadow: none;
}

/* ingatlan.html-only boxes have no fill, so their text needs a shadow to
   stay readable straight on top of the photography. */
.detail-topbar-title,
.detail-topbar-price,
.detail-topbar-tag,
.detail-caption h3,
.detail-caption p,
.detail-lead-copy,
.detail-stats-row strong,
.detail-stats-row span,
.detail-scroll-hint,
.detail-amenities li {
  text-shadow: var(--text-shadow);
}

/* Same treatment for the headings/labels ingatlan.html shares with
   index.html — scoped so index.html keeps its plain look. */
.detail-page .eyebrow,
.detail-page h1,
.detail-page h2,
.detail-page h3,
.detail-page .brand,
.detail-page footer p,
.detail-page .footer-brand {
  text-shadow: var(--text-shadow);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

/* Italic words inside a heading keep their own casing, like
   "Eladó <em>ingatlanjaim</em>". */
h1 em,
h2 em,
h3 em {
  font-style: italic;
  text-transform: none;
}

/* Small letter-spaced caption above headings. */
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Handwritten accent word that overlaps the heading below it. */
.script {
  display: block;
  margin: 0 0 -0.32em;
  font-family: var(--font-script);
  font-size: clamp(3rem, 6vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-4deg);
  transform-origin: left bottom;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* ---------- Aurora background (the whole page) ---------- */

/* Plain-CSS port of the "Aurora Background" component (background.txt):
   solid base color with slowly drifting, blurred light bands masked into
   the top-right corner. Fixed, so it stays behind every section. */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--aurora-base);
}

.aurora-layer {
  --white-gradient: repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%);
  --dark-gradient: repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%);
  --aurora: repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
  position: absolute;
  inset: -10px;
  opacity: 0.5;
  background-image: var(--dark-gradient), var(--aurora);
  background-size: 300%, 200%;
  background-position: 50% 50%, 50% 50%;
  filter: blur(10px);
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
  will-change: transform;
}

.aurora-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dark-gradient), var(--aurora);
  background-size: 200%, 100%;
  background-attachment: fixed;
  mix-blend-mode: difference;
  animation: aurora 60s linear infinite;
}

/* Light theme: white bands, and the whole layer inverted — same as the
   original component's non-dark variant. */
:root[data-theme="light"] .aurora-layer,
:root[data-theme="light"] .aurora-layer::after {
  background-image: var(--white-gradient), var(--aurora);
}

:root[data-theme="light"] .aurora-layer {
  filter: blur(10px) invert(1);
}

@keyframes aurora {
  from {
    background-position: 50% 50%, 50% 50%;
  }
  to {
    background-position: 350% 50%, 350% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer::after {
    animation: none;
  }
}

/* ---------- Topbar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 5vw;
  background: var(--topbar-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.detail-page .topbar {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
}

.brand span {
  margin-left: 0.2em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--text);
  transition: color 0.2s ease;
}

/* Thin gold underline that grows in on hover. */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 0 auto;
  width: 20px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Theme toggle (nappali / éjszakai mód) ---------- */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.theme-toggle svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Shows the mode you'd switch TO: sun in dark mode, moon in light mode. */
.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: none;
}

body,
.topbar,
.listing-card,
footer {
  transition-property: background-color, color, border-color;
  transition-duration: 0.3s;
}

:root[data-theme="light"] .detail-overlay {
  background: linear-gradient(
    180deg,
    rgba(var(--overlay-rgb), 0.7) 0%,
    rgba(var(--overlay-rgb), 0.6) 40%,
    rgba(var(--overlay-rgb), 0.88) 100%
  );
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-accent {
  background: var(--gold);
  color: var(--on-accent);
}

.btn-accent:hover {
  background: var(--gold-hover);
}

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--on-accent);
}

:root[data-theme="light"] .btn-outline:hover {
  color: #fff;
}

/* Long thin arrow after the label, drawn with a mask so it follows the
   text color. */
.btn-arrow::after {
  content: "";
  width: 30px;
  height: 10px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 5h29M25 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 10' fill='none' stroke='black' stroke-width='1'%3E%3Cpath d='M0 5h29M25 1l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Hero ---------- */

/* A full-screen interior photo. The text over it stays light in both
   themes; the scrim darkens the photo behind the text and the bottom fades
   into the page background so the intro follows on smoothly. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px 24px 120px;
  overflow: hidden;
  --hero-text: #f4f1ea;
  --hero-muted: rgba(244, 241, 234, 0.82);
  --hero-accent: #d9b77a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("Images/hero/_DSC5853_fenyelt.jpg") center 55% / cover no-repeat;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(12, 12, 14, 0.55), rgba(12, 12, 14, 0) 75%),
    linear-gradient(
      180deg,
      rgba(12, 12, 14, 0.55) 0%,
      rgba(12, 12, 14, 0.3) 35%,
      rgba(12, 12, 14, 0.35) 70%,
      var(--aurora-base) 100%
    );
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
  text-align: center;
}

/* The page's h1 holds both her name and her title (so search engines see
   "ingatlanértékesítő" in the main heading). */
.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.hero-name {
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 10vw, 8rem);
  font-weight: 400;
  line-height: 1;
  color: var(--hero-accent);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  transform: rotate(-3deg);
}

.hero-tagline {
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hero-text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hero-muted);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  transform: translateX(-50%);
}

.hero-scroll-chevron {
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--hero-accent);
  border-bottom: 1px solid var(--hero-accent);
  transform: rotate(45deg);
  animation: bounce-chevron 1.6s ease-in-out infinite;
}

:root[data-theme="light"] .hero-scroll {
  color: var(--muted);
  text-shadow: none;
}

:root[data-theme="light"] .hero-scroll-chevron {
  border-color: var(--accent);
}

@keyframes bounce-chevron {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
  }
  50% {
    transform: rotate(45deg) translate(4px, 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-chevron {
    animation: none;
  }
}

/* ---------- Shared section spacing ---------- */

.featured,
.about,
.feedback,
.cta {
  padding: 7rem 5vw;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 3.5rem;
}

.section-heading p:not(.script) {
  max-width: 640px;
}

.featured .section-heading p:not(.script) {
  margin: 0 auto;
}

.section-heading h2,
.about h2,
.cta h2 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  margin: 0 0 1.2rem;
}

.detail-page .about h2,
.detail-page .cta h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
}

.section-heading p:not(.script),
.about-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Intro (bemutatkozás) ---------- */

.intro {
  padding: 6rem 5vw 7rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.intro-photo {
  position: relative;
  isolation: isolate;
  margin: 0;
}

/* Thin gold frame offset behind the portrait. */
.intro-photo::before {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  z-index: -1;
  border: 1px solid var(--accent);
  border-radius: 1.6rem;
  opacity: 0.7;
}

.intro-photo img {
  aspect-ratio: 1;
  border-radius: 1.6rem;
  box-shadow: 0 30px 70px var(--shadow);
}

.intro-content h2 {
  font-size: clamp(2.8rem, 5.6vw, 4.4rem);
  margin: 0 0 1rem;
}

.intro-role {
  margin: 0 0 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.intro-lead {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.8rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.intro-content p:not([class]) {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* ---------- Services (szolgáltatások) ---------- */

/* A numbered list, one service per row, split by hairlines — like the
   01 / 02 / 03 steps on the reference site. */
.services {
  padding: 7rem 5vw;
  scroll-margin-top: 4rem;
}

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.service-list {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 20rem) 1fr;
  gap: 2rem;
  align-items: baseline;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.service-row h3 {
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  transition: color 0.25s ease;
}

.service-row p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1rem;
}

@media (hover: hover) {
  .service-row:hover h3 {
    color: var(--accent);
  }
}

@media (max-width: 700px) {
  .services {
    padding: 5rem 5vw;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.6rem 0;
  }
}

/* ---------- Ingatlanok (dh.hu hirdetések) ---------- */

.featured .section-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Centered heading: the script sits up and to the left of it. */
.featured .section-heading .script {
  transform: translateX(-18%) rotate(-4deg);
  transform-origin: center bottom;
}

/* Flex instead of grid so a short last row is centered. */
.listing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Scoped under .listing-grid so it outranks .reveal's transition/transform
   rules further down; the hover lift uses `translate`, which stacks with
   the reveal's `transform` instead of fighting it. */
.listing-grid .listing-card {
  flex: 0 1 calc((100% - 4rem) / 3);
  display: flex;
  flex-direction: column;
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--card-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  transition: opacity 0.45s ease, transform 0.6s ease, translate 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease, filter 0.45s ease;
}

.listing-card:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* 3-photo mosaic: one large on the left, two stacked on the right. */
.listing-media {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
}

.listing-media img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.listing-media img:first-child {
  grid-row: 1 / 3;
}

/* Small white pill on the photo, as on the reference's cards. */
.listing-location {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--chip-text);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* "Tovább a Duna House oldalára" — parked below the photos, slides up on hover. */
.listing-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1rem;
  background: var(--gold);
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.listing-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.listing-card:focus-visible .listing-cta {
  transform: translateY(0);
}

@media (hover: hover) {
  .listing-grid .listing-card:hover {
    translate: 0 -6px;
    border-color: var(--accent);
    box-shadow: 0 28px 60px var(--shadow);
  }

  .listing-card:hover .listing-media img {
    transform: scale(1.05);
  }

  .listing-card:hover .listing-cta {
    transform: translateY(0);
  }

  .listing-card:hover .listing-cta svg {
    transform: translate(2px, -2px);
  }

  /* Dim the other cards so the hovered one stands out. Limited to
     .is-visible so not-yet-revealed cards stay hidden. */
  .listing-grid:has(.listing-card:hover) .listing-card.is-visible:not(:hover) {
    opacity: 0.55;
    filter: saturate(0.7);
  }
}

/* No hover on touch screens: keep the label visible, in a quieter style. */
@media (hover: none) {
  .listing-cta {
    transform: none;
    padding: 0.65rem 1rem;
    background: rgba(var(--overlay-rgb), 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
  }
}

.listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
}

.listing-type {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.listing-body h3 {
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.listing-facts {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.listing-price {
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1;
  color: var(--accent);
  white-space: nowrap;
  text-align: right;
}

.listing-price-m2 {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.featured-cta {
  display: flex;
  justify-content: center;
  margin-top: 3.5rem;
}

/* ---------- About (ingatlan.html leírás) ---------- */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-content p {
  margin-bottom: 1.6rem;
}

/* ---------- Feedback (scrolling testimonial columns) ---------- */
/* Currently unused — the #feedback section is removed from index.html. */

.feedback-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  height: 640px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
}

.feedback-column {
  overflow: hidden;
  height: 100%;
}

.feedback-column-mid {
  margin-top: -2.5rem;
}

.feedback-track {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  animation: feedback-scroll 32s linear infinite;
}

.feedback-track-a {
  animation-duration: 34s;
}

.feedback-track-b {
  animation-duration: 40s;
  animation-direction: reverse;
}

.feedback-track-c {
  animation-duration: 27s;
}

.feedback-column:hover .feedback-track {
  animation-play-state: paused;
}

@keyframes feedback-scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.feedback-card {
  padding: 1.6rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-left: 1px solid var(--accent);
  border-radius: 1.2rem;
}

.feedback-stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.feedback-text {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.6;
}

.feedback-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.feedback-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
}

.feedback-name {
  margin: 0;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.feedback-role {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  .feedback-columns {
    grid-template-columns: 1fr;
    height: 560px;
  }

  .feedback-column-mid,
  .feedback-column:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-track {
    animation: none;
  }
}

/* ---------- CTA (ingatlan.html) ---------- */

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 1rem 5vw 3rem;
}

/* ---------- Floating call button ---------- */

.call-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.5rem 0.95rem 1.2rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.call-fab:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
}

.call-fab:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.call-fab svg {
  width: 18px;
  height: 18px;
  animation: call-ring 2.8s ease-in-out infinite;
}

/* Expanding ring behind the button. */
.call-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--gold);
  pointer-events: none;
  animation: call-pulse 2.8s ease-out infinite;
}

@keyframes call-pulse {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@keyframes call-ring {
  0%,
  60%,
  100% {
    transform: rotate(0);
  }
  65%,
  75% {
    transform: rotate(-14deg);
  }
  70%,
  80% {
    transform: rotate(14deg);
  }
}

@media (max-width: 640px) {
  .call-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 1.05rem;
  }

  .call-fab span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .call-fab::before,
  .call-fab svg {
    animation: none;
  }
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 0 5vw 3rem;
  color: var(--muted);
}

footer p {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.detail-page footer {
  padding-top: 2rem;
  font-size: 1rem;
}

.footer-brand {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-brand span {
  margin-left: 0.2em;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--accent);
}

/* index.html footer: plain-CSS port of footer.txt (logo, links, office
   details, social icons, striped band, copyright). Full-bleed, so the band
   runs edge to edge. */
.site-footer {
  padding: 5rem 0 3rem;
  overflow: hidden;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6rem;
  padding: 0 5vw;
  margin-bottom: 3.5rem;
}

.footer-logo {
  display: flex;
  justify-content: center;
}

.footer-logo .footer-brand {
  margin: 0;
}

/* Links with a soft gold pill that springs in behind them on hover. */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-nav a {
  position: relative;
  padding: 0.55rem 1rem;
  color: var(--text);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(193, 154, 91, 0.16);
  opacity: 0;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.footer-nav a span {
  position: relative;
}

.footer-nav a:hover {
  transform: scale(1.05);
}

.footer-nav a:active {
  transform: scale(0.95);
}

.footer-nav a:hover::before,
.footer-nav a:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

/* The office details (formerly the contact section): the list runs in one
   row and wraps on narrow screens. */
.footer-office {
  max-width: 1100px;
}

.footer-office h3 {
  margin: 0 0 1.6rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.office-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.6rem;
  padding: 0;
  margin: 0 0 2.2rem;
  list-style: none;
  color: var(--text);
}

.office-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.office-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.office-list a:hover {
  color: var(--accent);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* Hairline-framed band of fine diagonal stripes; it drifts slowly sideways
   once the footer is in view (initFooter). */
.footer-band {
  height: 48px;
  border-block: 1px solid currentColor;
  color: var(--text);
  opacity: 0.1;
  background-image: repeating-linear-gradient(315deg, currentColor 0, currentColor 1px, transparent 0, transparent 50%);
  background-size: 10px 10px;
  background-position: 0 0;
}

.site-footer .footer-copy {
  margin-top: 2rem;
  padding: 0 5vw;
}

/* Entrance (initFooter): the items rise in one after another with a little
   spring overshoot, then the band fades in and starts drifting. Only once
   the script has armed it, so without JS (or with reduced motion) the
   footer is simply static. */
.site-footer.is-armed [data-footer-item],
.site-footer.is-armed .footer-band {
  opacity: 0;
}

.site-footer.is-armed [data-footer-item] {
  transform: translateY(20px);
}

.site-footer.is-in [data-footer-item] {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(0.1s + var(--i, 0) * 0.1s);
}

.site-footer.is-in .footer-band {
  opacity: 0.1;
  background-position: 100% 0;
  transition: opacity 0.5s ease 0.5s, background-position 20s linear;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Property detail page (ingatlan.html) ---------- */

.detail-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.detail-bg-layer {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08) translate(0, 0);
  transition: opacity 1.8s ease, transform 9s ease-out;
}

.detail-bg-layer.is-active {
  opacity: 1;
  transform: scale(1) translate(var(--pan-x, 0), var(--pan-y, 0));
}

.detail-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(var(--overlay-rgb), 0.5) 0%,
    rgba(var(--overlay-rgb), 0.38) 40%,
    rgba(var(--overlay-rgb), 0.75) 100%
  );
}

.detail-topbar {
  gap: 1rem;
}

.detail-topbar-info {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 1rem;
}

.detail-topbar-tag {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-topbar-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: var(--text);
}

.detail-topbar-price {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Scroll-spacer slides: invisible, just give the gallery its scroll length */
.detail-gallery {
  position: relative;
}

.detail-slide {
  height: 100vh;
  height: 100dvh;
}

.detail-dots {
  position: fixed;
  top: 50%;
  right: 1.4rem;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.detail-dots.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.detail-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--outline-border);
  transition: background 0.4s ease, transform 0.4s ease;
}

.detail-dot.is-active {
  background: var(--accent);
  transform: scale(1.5);
}

.detail-caption {
  position: fixed;
  z-index: 15;
  max-width: 360px;
  padding: 1.2rem 1.4rem;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.detail-caption.is-visible {
  opacity: 1;
}

.detail-caption .eyebrow {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  color: var(--accent);
}

.detail-caption h3 {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: none;
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
}

.detail-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.detail-caption-lead {
  max-width: 580px;
  padding: 2rem 2.2rem;
}

.detail-caption-lead h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  margin-bottom: 0.9rem;
}

.detail-lead-copy {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 1.3rem;
}

.detail-stats-row {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 1.2rem;
}

.detail-stats-row strong {
  display: block;
  font-family: var(--font-display);
  font-variant-numeric: lining-nums;
  font-size: 1.5rem;
  color: var(--accent);
}

.detail-stats-row span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-scroll-hint {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Caption placement points */
.pos-tl {
  top: 7rem;
  left: 5vw;
  text-align: left;
}

.pos-tr {
  top: 7rem;
  right: 5vw;
  text-align: right;
}

.pos-tc {
  top: 7rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.pos-bl {
  bottom: 3rem;
  left: 5vw;
  text-align: left;
}

.pos-br {
  bottom: 3rem;
  right: 5vw;
  text-align: right;
}

.pos-bc {
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.detail-floorplan {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 2.4rem;
  text-align: center;
}

.detail-floorplan h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  margin: 0 0 1.4rem;
}

.detail-floorplan img {
  width: 100%;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
}

.detail-about {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}

.detail-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}

.detail-amenities li {
  font-size: 0.95rem;
  color: var(--text);
}

.detail-amenities li::before {
  content: '· ';
  color: var(--accent);
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .listing-grid .listing-card {
    flex-basis: calc((100% - 2rem) / 2);
  }
}

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

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .intro-photo {
    max-width: 280px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
    order: 3;
    margin-left: 0.6rem;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--menu-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 320px;
  }

  .nav-links a {
    padding: 1.1rem 5vw;
    border-top: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav-cta {
    display: none;
  }

  .brand {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  .featured,
  .intro {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-heading {
    margin-bottom: 2.5rem;
  }

  .listing-grid .listing-card {
    flex-basis: 100%;
  }

  .office-list {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  /* Room for the floating call button under the footer text. */
  footer,
  .site-footer {
    padding-bottom: 5.5rem;
  }

  .detail-topbar-info,
  .detail-dots {
    display: none;
  }

  .detail-caption,
  .pos-tl,
  .pos-tr,
  .pos-tc,
  .pos-bl,
  .pos-br,
  .pos-bc {
    top: auto !important;
    bottom: 1.6rem !important;
    left: 5vw !important;
    right: 5vw !important;
    max-width: none !important;
    transform: none !important;
    text-align: left !important;
  }

  .detail-caption-lead {
    padding: 1.4rem 1.5rem;
  }

  .detail-stats-row {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* Shown when ingatlanok.json is empty or can't be loaded. */
.listing-empty {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}
