:root {
  --bg: #07070a;
  --panel: #101014;
  --panel-2: #17171d;
  --text: #f5f5f2;
  --muted: #a7a7b3;
  --accent: #ffe0b2;
  --accent-2: #ff3b30;
  --accent-blue: #2b59ff;
  --border: rgba(255, 255, 255, 0.09);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --font-display: "Anton", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------- 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: 0 1px 6px rgba(0, 0, 0, 0.55);
}

/* Same treatment for the headings/labels ingatlan.html shares with
   index.html — scoped so index.html keeps its glass-box 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: 0 1px 6px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Full-page fixed background ---------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
}

.page-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.page-bg-layer.is-active {
  opacity: 1;
}

.page-bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 10, 0.82) 0%,
    rgba(7, 7, 10, 0.88) 50%,
    rgba(7, 7, 10, 0.94) 100%
  );
}

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

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

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  background: rgba(16, 16, 20, 0.45);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}

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

/* index.html: keep the header off until the scroll-expand hero has
   fully played out, so it doesn't compete with the intro. */
.hero-gated .topbar {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-gated .topbar.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 0.6rem;
  cursor: pointer;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--text);
  color: #0b0b0e;
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b0b0e;
  box-shadow: 0 10px 28px rgba(255, 59, 48, 0.28);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text);
}

/* ---------- Hero: scroll-expand ---------- */

.hero-expand {
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-expand-bg {
  position: absolute;
  inset: 0;
  background-image: url("Images/725237643_1596441105415516_7659565166254903475_n.jpg");
  background-size: cover;
  background-position: center;
  transition: opacity 0.1s linear;
  z-index: 0;
}

.hero-expand-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.75) 100%);
}

/* Auto-cycling property photos behind the hero. Sits behind #heroBg in the
   DOM (both position: absolute, default z-index) so it's revealed as heroBg
   fades out during the scroll-expand gesture, instead of the plain black
   .hero-expand background showing through. */
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slideshow-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero-slideshow-layer.is-active {
  opacity: 1;
}

.hero-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-expand-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-expand-stage {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: min-height 0.9s ease;
}

/* Added once the scroll-expand gesture finishes: shrinks the now-empty
   stage (photo and title have both faded out by then) so .hero-reveal is
   pulled up into view right away instead of sitting a full viewport height
   below, behind what would otherwise look like an empty photo. */
.hero-expand-stage.is-collapsed {
  min-height: 58dvh;
}

@media (max-width: 640px) {
  .hero-expand-stage.is-collapsed {
    min-height: 40dvh;
  }
}

.hero-media {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  max-width: 95vw;
  max-height: 85vh;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.4rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.hero-date {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent);
}

.hero-hint {
  margin: 0;
  color: rgba(245, 245, 242, 0.85);
  font-size: 0.85rem;
}

.hero-title {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  padding: 0 1rem;
}

.hero-title-word {
  font-size: clamp(2.6rem, 10vw, 7.5rem);
  line-height: 0.95;
  color: var(--text);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.scroll-indicator p {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

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

.hero-reveal {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-reveal .eyebrow {
  color: var(--accent);
}

.hero-reveal-copy {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.hero-highlights {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 600;
}

.hero-highlights li::before {
  content: "✔ ";
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Stats bar ---------- */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: -2.4rem 5vw 0;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 6;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-bar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--accent);
}

.stats-bar span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

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

.section-heading {
  max-width: 700px;
  margin-bottom: 2.4rem;
}

.section-heading h2,
.about h2,
.cta h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin: 0 0 0.7rem;
}

.detail-page .about h2,
.detail-page .cta h2 {
  font-size: clamp(2.1rem, 3.7vw, 2.9rem);
}

.section-heading p,
.about-content p,
.testimonial {
  color: var(--muted);
}

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

.intro {
  padding: 5rem 5vw;
}

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

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

/* Offset gradient plate behind the portrait. */
.intro-photo::before {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  z-index: -1;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  opacity: 0.85;
}

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

.intro-content h2 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 0 0 0.6rem;
}

.intro-role {
  margin: 0 0 1.6rem;
  color: var(--accent);
  font-weight: 600;
}

.intro-lead {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

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

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.services {
  max-width: 1100px;
  margin: 0 auto;
  scroll-margin-top: 5rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-card {
  padding: 1.6rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.service-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  color: #0b0b0e;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

.service-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 0.45rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* Flex instead of grid so a short last row is centered. */
.listing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* 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% - 3rem) / 3);
  display: flex;
  flex-direction: column;
  border-radius: 1.4rem;
  overflow: hidden;
  background: rgba(16, 16, 20, 0.78);
  border: 1px solid var(--glass-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  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: 2px 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: 3px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #000;
}

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

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

.listing-location {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(7, 7, 10, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  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.5rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b0b0e;
  font-size: 0.9rem;
  font-weight: 700;
  transform: translateY(101%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

@media (hover: hover) {
  .listing-grid .listing-card:hover {
    translate: 0 -8px;
    border-color: rgba(255, 224, 178, 0.55);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 224, 178, 0.2);
  }

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

  .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.45;
    filter: saturate(0.6);
  }
}

/* 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(7, 7, 10, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 0.82rem;
  }
}

.listing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.2rem 1.3rem 1.3rem;
}

.listing-type {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.listing-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  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: 0.9rem;
  border-top: 1px solid var(--border);
}

.listing-facts {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.listing-price {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  white-space: nowrap;
}

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

/* ---------- About ---------- */

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

.about-media {
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-media img {
  height: 100%;
  min-height: 320px;
}

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

/* ---------- Process ---------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.process-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  padding: 1.6rem 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 59, 48, 0.4);
}

.process-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent-2);
  margin-bottom: 0.6rem;
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.process-card p {
  color: var(--muted);
  margin: 0;
}

/* ---------- Testimonial ---------- */

.testimonial {
  margin: 0 5vw;
  padding: 2.6rem;
  background: linear-gradient(135deg, rgba(255, 195, 0, 0.16), rgba(255, 59, 48, 0.12)), var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 195, 0, 0.3);
  border-radius: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.testimonial blockquote {
  margin: 0 auto 0.9rem;
  max-width: 700px;
  font-size: 1.3rem;
  color: var(--text);
}

.testimonial-author {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Feedback (scrolling testimonial columns) ---------- */

.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.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

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

.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;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #1a1a1a;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
}

.feedback-name {
  margin: 0;
  font-weight: 700;
  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 ---------- */

.cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  margin: 1rem 5vw 3rem;
}

.detail-page .cta {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

/* ---------- Contact (e-mail űrlap + iroda) ---------- */

.contact {
  padding: 5rem 5vw 6rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-form,
.office-card {
  padding: 2rem;
  background: rgba(16, 16, 20, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: 1.4rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
}

.form-row label span {
  color: var(--muted);
  font-weight: 400;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 0.8rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffe0b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  cursor: pointer;
}

.contact-form select option {
  background: var(--panel);
  color: var(--text);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 224, 178, 0.18);
}

.contact-form .is-invalid {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.2);
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.4rem;
  font-size: 1rem;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-note a {
  color: var(--accent);
}

.office {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.office-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 1.2rem;
}

.office-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0 0 1.6rem;
  list-style: none;
}

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

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

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

.office-map {
  flex: 1;
  min-height: 260px;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* Inverted + hue-rotated so the Google map reads as a dark map. */
.office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) grayscale(0.25) contrast(0.95);
}

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

.call-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.4rem 0.95rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b0b0e;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(255, 59, 48, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.call-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 59, 48, 0.55);
}

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

.call-fab svg {
  width: 20px;
  height: 20px;
  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: 2px solid var(--accent-2);
  pointer-events: none;
  animation: call-pulse 2.8s ease-out infinite;
}

@keyframes call-pulse {
  0% {
    opacity: 0.75;
    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: 2rem 1rem 2.4rem;
  color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid var(--glass-border);
}

.detail-page footer {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: none;
  font-size: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

.detail-page .footer-brand {
  font-size: 1.4rem;
}

.footer-brand span {
  color: var(--accent);
}

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s 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(7, 7, 10, 0.5) 0%,
    rgba(7, 7, 10, 0.38) 40%,
    rgba(7, 7, 10, 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: rgba(255, 255, 255, 0.3);
  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-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: 1000px) {
  .listing-grid .listing-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
  }

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

  .about-media img {
    min-height: 220px;
  }

  .process-list {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(16, 16, 20, 0.75);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

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

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

  .nav-cta {
    display: none;
  }

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

  .service-grid {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .office-card {
    padding: 1.5rem;
  }

  /* Room for the floating call button under the footer text. */
  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;
  }
}
