/* =====================================================
   UNI Hotel Balatonfüred — Luxury Edition
   Concept: "Still Water / Mélyvíz"
   — dark, cinematic, editorial luxury
   — layered overlapping sections
   — custom cursor, parallax, horizontal scroll
   — Playfair Display + DM Sans
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&family=DM+Mono:wght@300;400&display=swap');

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

:root {
  --ink:         #0D1418;
  --ink-mid:     #1A2830;
  --ink-soft:    #243540;
  --teal:        #007095;
  --teal-bright: #0A8FB0;
  --teal-glow:   rgba(0,112,149,.18);
  --teal-line:   rgba(0,112,149,.35);
  --gold:        #C8A96E;
  --gold-soft:   rgba(200,169,110,.15);
  --cream:       #F2EDE4;
  --fog:         #E8E4DC;
  --white:       #FAFAF8;
  --muted:       rgba(250,250,248,.5);
  --muted-dark:  #6A7A82;
  --deep:        #15232A;
  --grain-op:    0.03;
}

html { scroll-behavior: smooth; cursor: none; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ═══════════════════════════════
   CUSTOM CURSOR
═══════════════════════════════ */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--teal-bright);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform .1s, background .3s, width .3s, height .3s;
  mix-blend-mode: screen;
}
.cursor-ring {
  display: none;
}
body.cursor-hover .cursor-dot  { width: 12px; height: 12px; background: var(--gold); }
body.cursor-click .cursor-dot  { width: 4px; height: 4px; }

/* ═══════════════════════════════
   NOISE GRAIN OVERLAY
═══════════════════════════════ */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ═══════════════════════════════
   PROGRESS BAR
═══════════════════════════════ */
#prog {
  position: fixed; top: 0; left: 0; height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  z-index: 300; width: 0; transition: width .08s linear;
}

/* ═══════════════════════════════
   NAV
═══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 72px;
  transition: padding .5s cubic-bezier(.23,1,.32,1), background .5s;
}
nav::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(13,20,24,.75) 0%, transparent 100%);
  transition: opacity .5s;
}
nav.solid::before { opacity: 0; }
nav.solid {
  padding: 16px 72px;
  background: rgba(13,20,24,.96);
  border-bottom: 1px solid rgba(0,112,149,.2);
  backdrop-filter: blur(20px);
}
.nav-logo {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px;
  text-decoration: none;
}
.nav-logo-img { height: 68px; width: auto; transition: opacity .3s; }
.nav-logo-img.dark { display: none; }
nav.solid .nav-logo-img.light { display: none; }
nav.solid .nav-logo-img.dark  { display: block; }
.nav-logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 15px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); line-height: 1.4; font-weight: 500;
  border-left: 1px solid rgba(200,169,110,.3);
  padding-left: 20px;
}
.nav-links {
  position: relative; z-index: 1;
  display: flex; gap: 36px; list-style: none;
}
.nav-links a {
  font-size: 14px; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(255,255,255,.82); text-decoration: none;
  transition: color .3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--teal-bright);
  transform: scaleX(0); transition: transform .3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  position: relative; z-index: 1;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 28px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink); text-decoration: none;
  transition: all .4s;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; position: relative; z-index: 1; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: background .3s; }

/* ═══════════════════════════════
   MOBILE MENU
═══════════════════════════════ */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 150;
  background: var(--ink); padding: 120px 48px 60px;
  flex-direction: column; justify-content: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 40px; font-weight: 400; font-style: italic;
  color: var(--white); text-decoration: none;
  transition: color .2s, letter-spacing .3s;
}
.mobile-menu a:hover { color: var(--teal-bright); letter-spacing: .06em; }

/* ═══════════════════════════════
   HERO — CINEMATIC
═══════════════════════════════ */
.hero {
  height: 100vh; min-height: 700px;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 130px;
  box-sizing: border-box;
}
.hero-video-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -5%;
  background: url('../images/Balaton_ext_06_E_tterem.jpg') center 40%/cover;
  will-change: transform;
  animation: heroParallax 20s ease-out forwards;
}
@keyframes heroParallax {
  from { transform: scale(1.12) translateY(2%); }
  to   { transform: scale(1.04) translateY(0%); }
}
.hero-grad {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(13,20,24,.82) 0%, rgba(13,20,24,.45) 55%, rgba(13,20,24,.05) 100%),
    linear-gradient(to top, rgba(13,20,24,.55) 0%, transparent 40%);
}



.hero-body {
  position: relative; z-index: 2;
  padding: 0 72px;
  max-width: 800px;
}
.hero-counter {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .3em; color: var(--teal-bright);
  margin-bottom: 32px;
  opacity: 0; animation: fadeInUp .8s ease-out .2s forwards;
}
.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400; line-height: .95;
  letter-spacing: -.02em;
  color: var(--white); margin-bottom: 12px;
  opacity: 0; animation: fadeInUp 1s ease-out .4s forwards;
}
.hero-h1 .line2 {
  font-style: italic; color: var(--cream);
  display: block; padding-left: 80px;
}
.hero-h1 .line3 {
  display: block; font-size: .55em;
  font-style: normal; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-bright); padding-left: 160px;
  padding-top: 8px;
}
.hero-lead {
  font-size: 17px; color: rgba(250,250,248,.65);
  line-height: 1.8; max-width: 420px;
  margin-top: 32px; margin-left: 80px;
  opacity: 0; animation: fadeInUp .8s ease-out .8s forwards;
}
.hero-btns {
  display: flex; gap: 16px; margin-top: 44px; margin-left: 80px;
  opacity: 0; animation: fadeInUp .8s ease-out 1s forwards;
}
.btn-gold {
  display: inline-block; padding: 15px 40px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; transition: all .4s;
  position: relative; overflow: hidden;
}
.btn-gold::before {
  content: ''; position: absolute; inset: 0;
  background: #e0c080; transform: scaleX(0);
  transform-origin: left; transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.btn-gold:hover::before { transform: scaleX(1); }
.btn-gold span { position: relative; z-index: 1; color: var(--ink); }
.btn-ghost-w {
  display: inline-block; padding: 15px 40px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; transition: all .4s;
}
.btn-ghost-w:hover { border-color: rgba(255,255,255,.5); color: var(--white); }

/* Hero right — vertical stat strip */
.hero-stats-strip {
  position: absolute; right: 72px; top: 50%;
  transform: translateY(-50%);
  z-index: 2; display: flex; flex-direction: column; gap: 0;
  opacity: 0; animation: fadeInRight .8s ease-out 1.2s forwards;
  background: rgba(8,16,20,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 4px 32px;
  border: 1px solid rgba(255,255,255,.1);
}
.hss-item {
  padding: 26px 0; border-top: 1px solid rgba(255,255,255,.12);
  text-align: right;
}
.hss-item:first-child { border-top: none; }
.hss-item:last-child { border-bottom: none; }
.hss-val {
  font-family: 'Playfair Display', serif;
  font-size: 44px; font-weight: 400; color: var(--white);
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.hss-lbl {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal-bright); margin-top: 6px; opacity: 1;
}

.hero-scroll {
  position: absolute; bottom: 44px; left: 72px; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  opacity: 0; animation: fadeInUp .8s ease-out 1.4s forwards;
}
.hero-scroll span {
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.scroll-track {
  width: 80px; height: 1px; background: rgba(255,255,255,.15);
  position: relative; overflow: hidden;
}
.scroll-track::after {
  content: ''; position: absolute; top: 0; left: -40px;
  width: 40px; height: 1px; background: var(--teal-bright);
  animation: trackSlide 2s ease-in-out infinite;
}
@keyframes trackSlide { 0%{left:-40px} 100%{left:80px} }

@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeInRight { from{opacity:0;transform:translateX(24px)} to{opacity:1;transform:translateX(0)} }

/* ═══════════════════════════════
   MANIFESTO — FULL SCREEN STATEMENT
═══════════════════════════════ */
.manifesto {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 72px;
  position: relative; overflow: hidden;
  background: var(--ink);
}
.manifesto-bg-text {
  position: absolute;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 28vw; font-weight: 700; font-style: italic;
  color: rgba(255,255,255,.05);
  white-space: nowrap; pointer-events: none;
  user-select: none; line-height: 1;
  top: 50%; transform: translateY(-50%);
  left: -5%;
}
.manifesto-inner {
  position: relative; z-index: 2;
  max-width: 960px; margin: 0 auto;
}
.manifesto-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 48px;
  display: flex; align-items: center; gap: 20px;
}
.manifesto-label::before {
  content: ''; display: block; width: 48px; height: 1px; background: var(--teal);
}
.manifesto-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 400; line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--white);
}
.manifesto-quote em {
  font-style: italic; color: var(--cream);
  position: relative;
}
.manifesto-quote em::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, var(--gold), transparent);
}
.manifesto-sub {
  font-size: 16px; color: rgba(250,250,248,.45);
  line-height: 1.8; max-width: 500px;
  margin-top: 48px; margin-left: auto;
  text-align: right;
}
/* Big number statement */
.manifesto-numbers {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: rgba(255,255,255,.04);
  margin-top: 100px;
}
.mn-cell {
  padding: 56px 40px; background: var(--ink);
  position: relative; overflow: hidden;
}
.mn-cell::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--teal-line), transparent);
}
.mn-val {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 6vw, 80px); font-weight: 400;
  color: var(--white); line-height: 1; margin-bottom: 12px;
}
.mn-val sup { font-size: .45em; vertical-align: super; color: var(--teal-bright); }
.mn-val sub { font-size: .4em; vertical-align: sub; color: var(--teal-bright); }
.mn-lbl {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.mn-desc { font-size: 14px; color: rgba(255,255,255,.25); margin-top: 8px; line-height: 1.6; }

/* ═══════════════════════════════
   LAYERED IMAGE SECTION
═══════════════════════════════ */
.layered-intro {
  position: relative; min-height: 100vh;
  padding: 160px 0; overflow: hidden;
}
.li-img-main {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 65%; overflow: hidden;
}
.li-img-main img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.2s cubic-bezier(.23,1,.32,1);
}
.layered-intro:hover .li-img-main img { transform: scale(1.0); }
.li-img-over {
  position: absolute; left: 40%; top: auto; bottom: 80px;
  width: 320px; height: 240px; overflow: hidden;
  border: 4px solid var(--ink);
  box-shadow: -40px -40px 0 var(--teal-glow);
  z-index: 3;
}
.li-img-over img { width: 100%; height: 100%; object-fit: cover; }
.li-text {
  position: relative; z-index: 4;
  padding: 0 72px;
  max-width: 560px;
  padding-top: 80px;
}
.li-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.li-eyebrow::after { content: ''; flex: 1; max-width: 48px; height: 1px; background: var(--teal); }
.li-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 58px); font-weight: 400;
  line-height: 1.1; letter-spacing: -.02em;
  color: var(--white); margin-bottom: 32px;
}
.li-h2 em { font-style: italic; color: var(--cream); }
.li-body { font-size: 16px; color: rgba(250,250,248,.55); line-height: 1.85; margin-bottom: 16px; }
.li-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; margin-top: 28px;
  border-bottom: 1px solid rgba(200,169,110,.3); padding-bottom: 4px;
  transition: gap .3s, border-color .3s;
}
.li-link:hover { gap: 20px; border-color: var(--gold); }

/* ═══════════════════════════════
   MATERIALS MOODBOARD
═══════════════════════════════ */
.materials {
  padding: 160px 72px;
  background: var(--ink-mid);
  position: relative; overflow: hidden;
}
.materials::before {
  content: ''; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,112,149,.06) 0%, transparent 70%);
  pointer-events: none;
}
.materials-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 80px;
}
.materials-head .li-h2 { margin-bottom: 0; }
.materials-note {
  font-size: 13px; color: rgba(250,250,248,.3);
  max-width: 280px; text-align: right; line-height: 1.7;
}

/* Mosaic grid */
.mat-mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 380px 280px;
  gap: 4px;
}
.mat-cell {
  position: relative; overflow: hidden; cursor: none;
}
.mat-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.23,1,.32,1), filter .6s;
  filter: brightness(.85) saturate(.9);
}
.mat-cell:hover img { transform: scale(1.06); filter: brightness(1) saturate(1.1); }
.mat-cell.span2 { grid-row: span 2; }
.mat-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px 24px 20px;
  background: linear-gradient(to top, rgba(13,20,24,.85) 0%, transparent 100%);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transform: translateY(4px);
  transition: transform .4s, color .4s;
}
.mat-cell:hover .mat-label { transform: translateY(0); color: rgba(255,255,255,.9); }

/* ═══════════════════════════════
   HORIZONTAL SCROLL — BUILDINGS
═══════════════════════════════ */
.hscroll-section {
  padding: 160px 0;
  background: var(--ink);
  overflow: hidden;
}
.hscroll-head {
  padding: 0 72px;
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 64px;
}
.hscroll-hint {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  display: flex; align-items: center; gap: 12px;
}
.hscroll-hint::before {
  content: '←→'; font-size: 14px; color: var(--teal-bright);
}
.hscroll-track {
  display: flex; gap: 4px;
  padding: 0 72px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.hscroll-track:active { cursor: grabbing; }
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-card {
  flex: 0 0 clamp(280px, 25vw, 480px);
  height: clamp(420px, 33vw, 640px);
  position: relative; overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(0,112,149,.1);
}
.hscroll-card-vis {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.hsc-bg-a { background: #0f1e28; }
.hsc-bg-b { background: #0c1d28; }
.hsc-bg-c { background: #0a1c26; }
.hsc-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .8s cubic-bezier(.23,1,.32,1);
}
.hscroll-card:hover .hsc-photo { transform: scale(1.04); }
/* teal glow on hover */
.hscroll-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(0,112,149,.12) 0%, transparent 65%);
  opacity: 0; transition: opacity .6s;
}
.hscroll-card:hover::after { opacity: 1; }

/* ── Top overlay: badge + building name, sits on the teal map header ── */
.hsc-overlay-top {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 32px 36px 28px;
  background: linear-gradient(to bottom, rgba(8,30,32,.55) 0%, rgba(8,30,32,.18) 70%, transparent 100%);
}
.hsc-badge {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: 10px;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.hsc-name {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 400; font-style: italic;
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* ── Side stats: vertical stack on the teal diagonal strip, right edge ── */
.hsc-stats-side {
  position: absolute; top: 27%; right: 16px; bottom: 38%;
  display: flex; flex-direction: column;
  align-items: flex-end; justify-content: space-between;
  text-align: right;
}
.hsc-stat { display: flex; flex-direction: column; align-items: flex-end; }
.hsc-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 500; color: var(--white); line-height: 1;
  text-shadow: 0 1px 5px rgba(0,0,0,.3);
}
.hsc-stat-lbl {
  font-size: 8px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.85); margin-top: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* ── Bottom overlay: just the CTA link, minimal footer strip ── */
.hsc-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0 36px 28px;
  display: flex; justify-content: flex-start;
  background: linear-gradient(to top, rgba(13,20,24,.85) 0%, transparent 100%);
  padding-top: 50px;
}
.hsc-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s, transform .4s;
}
.hscroll-card:hover .hsc-cta { opacity: 1; transform: translateY(0); }
.hscroll-card:hover .hsc-cta::after { content: ' →'; }

/* Progress dots */
.hscroll-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.hsdot {
  width: 24px; height: 1px; background: rgba(255,255,255,.15);
  cursor: none; transition: background .3s, width .3s;
}
.hsdot.active { background: var(--teal-bright); width: 48px; }

/* ═══════════════════════════════
   APARTMENT SELECTOR
═══════════════════════════════ */
.apt-selector {
  background: var(--ink-mid);
  padding: 160px 72px;
  position: relative;
}
.apt-selector::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 30%; background: linear-gradient(to left, rgba(0,112,149,.04), transparent);
  pointer-events: none;
}
.sel-tabs-wrap {
  display: flex; gap: 2px; margin: 56px 0 2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sel-tab {
  padding: 14px 28px; background: none; border: none; cursor: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.35); transition: all .3s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.sel-tab:hover { color: rgba(255,255,255,.7); }
.sel-tab.active { color: var(--teal-bright); border-bottom-color: var(--teal-bright); }
.floor-tabs-wrap {
  display: flex; gap: 2px; margin-bottom: 2px; padding: 8px 0;
}
.floor-tab {
  padding: 8px 18px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
  cursor: none; font-family: 'DM Sans', sans-serif;
  font-size: 9px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.35); transition: all .3s;
}
.floor-tab:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.7); }
.floor-tab.active { background: rgba(0,112,149,.15); color: var(--teal-bright); border-color: rgba(0,112,149,.3); }
.apts-panel { display: none; }
.apts-panel.active { display: block; }
.apt-grid-sel {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 2px;
}
.apt-unit {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-left: 2px solid transparent;
  padding: 24px 22px; cursor: none;
  transition: all .3s; position: relative; overflow: hidden;
}
.apt-unit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,112,149,.07) 0%, transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.apt-unit:hover::before { opacity: 1; }

/* ═══════════════════════════════
   APT UNIT — ALAPRAJZ KÁRTYA
═══════════════════════════════ */
.apt-unit.has-plan {
  padding: 0;
  overflow: hidden;
  border-left: 2px solid rgba(0,112,149,.5);
  display: flex; flex-direction: column;
}
.apt-unit.has-plan:hover {
  border-left-color: var(--teal-bright);
}
/* The floor plan thumbnail fills the top of the card */
.apt-plan-thumb {
  position: relative;
  background: #EBE8E2;
  overflow: hidden;
  flex: 0 0 auto;
  height: 200px;
}
.apt-plan-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transition: transform .6s cubic-bezier(.23,1,.32,1);
  mix-blend-mode: multiply;
}
.apt-unit.has-plan:hover .apt-plan-thumb img {
  transform: scale(1.04);
}
/* "Kattintson az alaprajzhoz" overlay on the thumb */
.apt-plan-thumb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,112,149,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .4s;
}
.apt-unit.has-plan:hover .apt-plan-thumb-overlay {
  background: rgba(0,112,149,.18);
}
.apt-plan-zoom-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(13,20,24,.65);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px;
  opacity: 0; transform: scale(.7);
  transition: opacity .35s, transform .35s cubic-bezier(.23,1,.32,1);
  pointer-events: none;
}
.apt-unit.has-plan:hover .apt-plan-zoom-icon {
  opacity: 1; transform: scale(1);
}
/* The text info below the thumbnail */
.apt-plan-info {
  padding: 16px 18px 18px;
  flex: 1; display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
/* Override the generic hover overlay for has-plan cards */
.apt-unit.has-plan .apt-cta-hover {
  display: none !important;
}
/* Teal accent line animation on hover */
.apt-unit.has-plan::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.apt-unit.has-plan:hover::before { transform: scaleX(1); }

/* ═══════════════════════════════
   PLACEHOLDER CARD (no floor plan yet)
═══════════════════════════════ */
.apt-unit.free.no-plan-preview {
  position: relative;
  overflow: hidden;
}
.apt-plan-placeholder {
  height: 140px;
  background: #EBE8E2;
  border-bottom: 1px solid rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.apt-plan-placeholder svg {
  width: 80%; max-width: 160px;
  opacity: .12;
  transition: opacity .4s;
}
.apt-unit.free.no-plan-preview:hover .apt-plan-placeholder svg {
  opacity: .22;
}
.apt-plan-placeholder::after {
  content: 'Alaprajz hamarosan';
  position: absolute; bottom: 8px; left: 0; right: 0;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 8px; letter-spacing: .15em; text-transform: uppercase;
  color: rgba(255,255,255,.2);
}
.apt-unit.free.no-plan-preview .apt-plan-info {
  padding: 14px 18px 16px;
}

/* ═══════════════════════════════
   SOLD / RESERVED CARD STATES
═══════════════════════════════ */
.apt-unit.reserved {
  opacity: 1 !important;
  border-left-color: rgba(180,60,60,.4) !important;
  background: rgba(120,30,30,.08) !important;
}
.apt-unit.reserved .apt-plan-placeholder {
  background: rgba(120,30,30,.12);
}
.apt-unit.reserved .apt-plan-placeholder svg {
  opacity: .07;
}
.apt-unit.reserved .apt-plan-thumb {
  position: relative;
}
.apt-unit.reserved .apt-plan-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(120,30,30,.35);
}
.apt-unit.reserved .apt-status {
  background: rgba(180,60,60,.2) !important;
  color: rgba(220,120,120,.9) !important;
}
.apt-unit.reserved .apt-unit-id,
.apt-unit.reserved .apt-unit-type,
.apt-unit.reserved .apt-unit-size,
.apt-unit.reserved .apt-unit-terasz {
  opacity: .55;
}
/* Sold badge overlay on thumb */
.apt-sold-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(160,40,40,.85);
  color: rgba(255,255,255,.9);
  font-size: 8px; letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 10px;
  font-family: 'DM Mono', monospace;
  z-index: 2;
  pointer-events: none;
}

.apt-unit.free:hover { background: rgba(0,112,149,.08); border-left-color: var(--teal); }
.apt-unit-id {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 10px;
}
.apt-unit-type {
  font-family: 'Playfair Display', serif;
  font-size: 19px; font-weight: 400; font-style: italic;
  color: var(--white); margin-bottom: 8px;
}
.apt-unit-size { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.apt-unit-terasz { font-size: 12px; color: rgba(255,255,255,.25); margin-bottom: 14px; }
.apt-status {
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px; display: inline-block;
}
.apt-status.free { background: rgba(0,112,149,.2); color: var(--teal-bright); }
.apt-status.reserved { background: rgba(255,255,255,.05); color: rgba(255,255,255,.3); }
.apt-cta-hover {
  position: absolute; inset: 0;
  background: rgba(0,112,149,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; transition: opacity .3s;
}
.apt-unit.free:hover .apt-cta-hover { opacity: 1; }
.apt-cta-hover span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.apt-cta-hover small { font-size: 9px; color: rgba(255,255,255,.6); }
.sel-legend { display: flex; gap: 24px; margin-top: 16px; }
.leg-item { display: flex; align-items: center; gap: 8px; font-size: 10px; color: rgba(255,255,255,.3); letter-spacing: .08em; }
.leg-dot { width: 10px; height: 2px; }
.leg-free { background: var(--teal); }
.leg-res  { background: rgba(255,255,255,.2); }

/* ═══════════════════════════════
   MARINA — DARK CINEMATIC
═══════════════════════════════ */
.marina {
  position: relative; overflow: hidden; min-height: 80vh;
  display: flex; align-items: center;
}
.marina-img-bg {
  position: absolute; inset: 0;
}
.marina-img-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.70) saturate(.95); }
.marina-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(13,20,24,.80) 30%, rgba(13,20,24,.08) 100%);
}
.marina-inner {
  position: relative; z-index: 2;
  padding: 120px 72px;
  max-width: 650px;
}
.marina-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255,255,255,.06); margin-top: 48px;
  max-width: 400px;
}
.mf { background: rgba(13,20,24,.7); padding: 28px 24px; backdrop-filter: blur(8px); }
.mf-val {
  font-family: 'Playfair Display', serif;
  font-size: 42px; font-weight: 400; color: var(--teal-bright); line-height: 1; margin-bottom: 6px;
}
.mf-lbl { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.3); }

/* ═══════════════════════════════
   CONTACT
═══════════════════════════════ */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info {
  padding: 120px 72px; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-info > p { font-size: 16px; color: rgba(255,255,255,.45); line-height: 1.85; margin-bottom: 48px; }
.ci-list { display: flex; flex-direction: column; gap: 0; }
.ci-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.05);
}
.ci-dot {
  width: 36px; height: 36px; border: 1px solid rgba(0,112,149,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; color: var(--teal-bright);
}
.ci-txt strong { display: block; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 4px; font-weight: 400; }
.ci-txt span { font-size: 14px; color: rgba(255,255,255,.55); }
.ci-map-link, .ci-link {
  font-size: 14px; color: rgba(255,255,255,.55);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.15);
  transition: color .25s, border-color .25s;
}
.ci-map-link:hover, .ci-link:hover {
  color: var(--teal-bright);
  border-color: rgba(0,143,176,.5);
}

.contact-form { background: var(--ink-soft); padding: 120px 72px; }
.contact-form h3 {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 400; font-style: italic;
  color: var(--white); margin-bottom: 48px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fg { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
label {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.35); font-family: 'DM Mono', monospace;
}
input, select, textarea {
  font-family: 'DM Sans', sans-serif; font-size: 16px;
  padding: 13px 16px; border: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: transparent; color: var(--white);
  outline: none; width: 100%;
  transition: border-color .3s;
  appearance: none; -webkit-appearance: none; border-radius: 0;
}
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.2); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--teal-bright); }
select option { background: var(--ink-mid); }
textarea { resize: none; height: 90px; }
.submit {
  width: 100%; padding: 16px;
  background: transparent; color: var(--gold);
  border: 1px solid rgba(200,169,110,.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  cursor: none; margin-top: 8px; transition: all .4s;
  position: relative; overflow: hidden;
}
.submit::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.submit:hover::before { transform: scaleX(1); }
.submit span { position: relative; z-index: 1; transition: color .4s; }
.submit:hover span { color: var(--ink); }

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
footer {
  background: rgba(0,0,0,.6);
  border-top: 1px solid rgba(255,255,255,.04);
  padding: 80px 72px 0;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand-logo { height: 60px; width: auto; margin-bottom: 20px; }
.footer-brand p { font-size: 13px; line-height: 1.8; color: rgba(255,255,255,.25); max-width: 260px; }
.fc h4 {
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 24px;
}
.fc ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.fc ul a { font-size: 14px; color: rgba(255,255,255,.3); text-decoration: none; transition: color .2s; }
.fc ul a:hover { color: var(--white); }
.footer-bar {
  margin: 48px 0 0; padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; justify-content: space-between;
  grid-column: 1/-1;
}
.footer-bar span { font-size: 10px; color: rgba(255,255,255,.2); letter-spacing: .06em; }
.footer-bar a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════
   UTILITIES
═══════════════════════════════ */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 20px; display: block;
}
.sec-divider {
  width: 48px; height: 1px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  margin-top: 24px;
}
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.23,1,.32,1), transform .9s cubic-bezier(.23,1,.32,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1200px) {
  .hero-stats-strip { display: none; }
  .li-img-over { display: none; }
}
@media (max-width: 1024px) {
  nav, nav.solid { padding-left: 32px; padding-right: 32px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-body { padding: 0 32px; }
  .hero-btns, .hero-lead { margin-left: 0; }
  .hero-h1 .line2 { padding-left: 40px; }
  .hero-h1 .line3 { padding-left: 80px; }
  .hero-scroll { left: 32px; }
  .manifesto, .materials, .apt-selector, .contact-info, .contact-form { padding-left: 32px; padding-right: 32px; }
  .manifesto-numbers { grid-template-columns: 1fr 1fr; }
  .layered-intro { padding: 80px 0; }
  .li-text { padding: 0 32px; }
  .li-img-main { width: 100%; position: relative; height: 420px; }
  .layered-intro { display: flex; flex-direction: column; min-height: auto; }
  .hscroll-head { padding: 0 32px; }
  .hscroll-track { padding: 0 32px; }
  .hscroll-card { flex: 0 0 360px; height: 520px; }
  .marina-teaser-card { flex: 0 0 260px; }
  .marina-inner { padding: 80px 32px; }
  .contact { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr 1fr; padding: 48px 32px 0; }
  .mat-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 300px 300px; }
  .mat-cell.span2 { grid-row: span 1; }
}
@media (max-width: 640px) {
  html { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  nav { padding: 18px 20px; }
  nav.solid { padding: 14px 20px; }
  .hero-h1 { font-size: 44px; }
  .hero-h1 .line2 { padding-left: 20px; }
  .hero-h1 .line3 { padding-left: 40px; }
  .manifesto-numbers { grid-template-columns: 1fr; }
  .mat-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; }
  .mat-cell { height: 260px; }
  .hscroll-card { flex: 0 0 300px; height: 460px; }
  .marina-teaser-card { flex: 0 0 230px; }
  .apt-grid-sel { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; padding: 40px 20px 0; }
  .footer-bar { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════
   MODAL v2 — FULL IMAGE LAYOUT
═══════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,20,24,.96);
  backdrop-filter: blur(20px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0; pointer-events: none;
  transition: opacity .4s cubic-bezier(.23,1,.32,1);
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--ink-mid);
  border: 1px solid rgba(0,112,149,.2);
  max-width: 1160px; width: 96%;
  margin: auto; flex-shrink: 0;
  display: flex; flex-direction: column;
  position: relative;
  transform: translateY(20px);
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.modal-backdrop.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  background: rgba(13,20,24,.8); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6); font-size: 16px; line-height: 1;
  width: 36px; height: 36px; cursor: none;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s; backdrop-filter: blur(4px);
}
.modal-close:hover { color: var(--white); border-color: rgba(255,255,255,.35); }
.modal-plan {
  background: #f5f4f0;
  overflow-y: auto; overflow-x: hidden;
  max-height: 84vh;
  display: flex; align-items: flex-start; justify-content: center;
  scrollbar-width: thin; scrollbar-color: rgba(0,112,149,.3) transparent;
  position: relative;
}
.modal-plan img {
  width: 100%; height: auto; display: block; padding: 16px;
}
.modal-plan-label {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(0,112,149,.9); background: rgba(255,255,255,.9);
  padding: 4px 10px;
}
.modal-actions {
  padding: 24px 28px 20px;
  background: var(--ink-mid);
  border-top: 1px solid rgba(0,112,149,.15);
}
.modal-meta {
  font-size: 16px; color: rgba(255,255,255,.45);
  margin-bottom: 16px; line-height: 1.6;
}
.modal-meta strong { color: rgba(255,255,255,.8); font-weight: 400; }
.modal-btns {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px;
  flex-wrap: wrap;
}
.modal-cta {
  display: inline-flex; align-items: center;
  padding: 12px 28px; flex: 1;
  background: transparent; border: 1px solid rgba(200,169,110,.4);
  color: var(--gold); font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; cursor: none; transition: all .4s;
  position: relative; overflow: hidden; justify-content: center;
}
.modal-cta::before {
  content: ''; position: absolute; inset: 0; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.modal-cta:hover::before { transform: scaleX(1); }
.modal-cta span { position: relative; z-index: 1; transition: color .4s; }
.modal-cta:hover span { color: var(--ink); }
.modal-print {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  background: transparent; border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.5); font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  cursor: none; transition: all .3s; white-space: nowrap;
}
.modal-print:hover { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.3); }
.modal-disclaimer {
  font-size: 11px; color: rgba(255,255,255,.2); line-height: 1.6;
}

/* Placeholder modal panel */
.modal-plan-placeholder-panel {
  min-height: 300px; background: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 48px;
}
.modal-plan-placeholder-panel p {
  font-size: 13px; color: rgba(255,255,255,.3); line-height: 1.8; text-align: center;
}

@media(max-width:640px) {
  .modal-backdrop { padding: 0; }
  .modal-box { margin: 0; width: 100%; min-height: 100vh; border: none; }
  .modal-plan { max-height: 55vh; }
  .modal-actions { padding: 20px; }
  .modal-btns { flex-direction: column; }
  .modal-cta, .modal-print { width: 100%; justify-content: center; }
}

/* Print styles */
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea {
    display: block !important;
    position: fixed; inset: 0; z-index: 99999;
    background: white; padding: 20px;
  }
  #printArea img { max-width: 100%; height: auto; }
  #printArea h2 { font-family: serif; font-size: 18px; margin-bottom: 8px; color: #111; }
  #printArea p { font-size: 12px; color: #555; }
}

/* ═══════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════ */
.nav-right {
  display: flex; align-items: center; gap: 20px;
  position: relative; z-index: 1;
}
.lang-switch {
  display: flex; align-items: center; gap: 6px;
}
.lang-sep {
  color: rgba(255,255,255,.5); font-size: 10px;
  transition: color .4s;
}
.lang-btn {
  background: none; border: none; cursor: none;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .14em;
  color: rgba(255,255,255,.95);
  padding: 3px 0;
  transition: color .3s;
  position: relative;
}
.lang-btn::after {
  content: ''; position: absolute; bottom: -1px; left: 0; right: 0;
  height: 1px; background: var(--teal-bright);
  transform: scaleX(0); transition: transform .3s;
}
.lang-btn.active { color: var(--white); font-weight: 600; letter-spacing: .18em; }
.lang-btn.active::after { transform: scaleX(1); }
nav.solid .lang-btn { color: rgba(30,30,30,.80); }
nav.solid .lang-btn.active { color: var(--teal); font-weight: 600; }
nav.solid .lang-sep { color: rgba(42,42,42,.2); }
.lang-btn:hover { color: var(--white); }
nav.solid .lang-btn:hover { color: var(--teal); }

.mobile-lang {
  display: flex; gap: 16px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-lang .lang-btn {
  font-size: 14px; color: rgba(255,255,255,.4); letter-spacing: .12em;
}
.mobile-lang .lang-btn.active { color: var(--teal-bright); }

/* Language transition */
.lang-transitioning * { transition: none !important; }

/* ═══════════════════════════════
   VIRTUAL TOUR
═══════════════════════════════ */
.vtour {
  position: relative;
  padding: 100px 0 0;
  background: var(--ink);
}
.vtour-head {
  padding: 0 72px 56px;
}
.vtour-stage {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 900px;
  overflow: hidden;
  isolation: isolate;
  cursor: none;
}
.vtour-bg, .vtour-bg-next {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: none;
}
.vtour-bg-next {
  opacity: 0;
  z-index: 1;
}
.vtour-grad-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  height: 55%;
  background: linear-gradient(to top, rgba(13,20,24,.92) 0%, rgba(13,20,24,.4) 50%, transparent 100%);
  pointer-events: none;
}
.vtour-grad-left {
  position: absolute; top: 0; left: 0; bottom: 0; z-index: 3;
  width: 35%;
  background: linear-gradient(to right, rgba(13,20,24,.5) 0%, transparent 100%);
  pointer-events: none;
}
.vtour-info {
  position: absolute; bottom: 100px; left: 72px; z-index: 10;
  max-width: 520px;
}
.vtour-counter {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 14px;
  display: flex; align-items: center; gap: 4px;
}
.vtour-sep { color: rgba(255,255,255,.2); margin: 0 2px; }
.vtour-stop-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400; font-style: italic;
  color: var(--white); line-height: 1.1;
  margin-bottom: 16px;
}
.vtour-stop-desc {
  font-size: 16px; color: rgba(255,255,255,.6);
  line-height: 1.75; max-width: 420px;
}
.vtour-arrow {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  background: rgba(13,20,24,.55);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: all .3s;
  backdrop-filter: blur(8px);
}
.vtour-arrow:hover {
  background: rgba(0,112,149,.6);
  border-color: rgba(0,143,176,.5);
  color: var(--white);
}
.vtour-prev { left: 24px; }
.vtour-next { right: 24px; }
.vtour-dots {
  position: absolute; bottom: 32px; left: 72px; z-index: 10;
  display: flex; gap: 8px; align-items: center;
}
.vtour-dot {
  width: 20px; height: 2px;
  background: rgba(255,255,255,.2);
  cursor: none; transition: all .4s;
}
.vtour-dot.active {
  width: 40px; background: var(--teal-bright);
}
.vtour-hint {
  position: absolute; bottom: 36px; right: 72px; z-index: 10;
  font-family: 'DM Mono', monospace;
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.3);
  animation: hintPulse 3s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100%{opacity:.3} 50%{opacity:.7} }
.vtour-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,.08); z-index: 10;
}
.vtour-progress-fill {
  height: 100%; background: var(--teal-bright);
  transition: width .6s cubic-bezier(.23,1,.32,1);
}

/* Info text transition */
.vtour-info.transitioning .vtour-stop-name,
.vtour-info.transitioning .vtour-stop-desc,
.vtour-info.transitioning .vtour-counter {
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}

@media (max-width: 1024px) {
  .vtour-head { padding: 0 32px 40px; }
  .vtour-stage { height: 70vh; }
  .vtour-info { left: 32px; bottom: 80px; }
  .vtour-dots { left: 32px; }
  .vtour-hint { right: 32px; display: none; }
}
@media (max-width: 640px) {
  .vtour-head { padding: 0 20px 32px; }
  .vtour-stage { height: 75vh; min-height: 400px; }
  .vtour-info { left: 20px; right: 20px; bottom: 70px; max-width: none; }
  .vtour-stop-desc { display: none; }
  .vtour-prev { left: 12px; width: 40px; height: 40px; }
  .vtour-next { right: 12px; width: 40px; height: 40px; }
  .vtour-dots { left: 20px; }
  .lang-switch { display: none; }
}

/* ═══════════════════════════════
   HERO CANVAS WATER
═══════════════════════════════ */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: .6;
  mix-blend-mode: screen;
}

/* Amenities on light background */
.amenities .sec-h2 { color: var(--deep); }
.amenities .sec-h2 em { color: var(--teal); }
.amenities .eyebrow { color: var(--teal); }
.amenities .sec-div { background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }

/* ═══════════════════════════════
   AMENITIES SECTION (rebuilt)
═══════════════════════════════ */
.amenities {
  padding: 100px 64px;
  background: var(--cream);
}
.amenities .sec-head {
  margin-bottom: 64px;
}
.am-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(0,112,149,.08);
}
.am-item {
  padding: 48px 40px;
  background: var(--cream);
  transition: background .35s, transform .35s;
  position: relative;
}
.am-item:hover {
  background: var(--white);
  transform: translateY(-3px);
}
.am-icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
  color: var(--deep);
}
.am-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 12px;
  line-height: 1.3;
}
.am-desc {
  font-size: 16px;
  color: var(--muted-dark, #5a6a72);
  line-height: 1.78;
}

@media (max-width: 1024px) {
  .amenities { padding: 60px 32px; }
  .am-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .amenities { padding: 48px 20px; }
  .am-grid { grid-template-columns: 1fr; }
  .am-item { padding: 32px 24px; }
}

/* ═══════════════════════════════
   SHARED SECTION HEADER CLASSES
═══════════════════════════════ */
.sec-head {
  margin-bottom: 64px;
}
.sec-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 300;
  line-height: 1.22;
  color: var(--deep);
  margin-top: 14px;
  margin-bottom: 0;
}
.sec-h2 em {
  font-style: italic;
  color: var(--teal);
}
.sec-div {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
  margin-top: 22px;
}

/* ═══════════════════════════════
   MODAL DOWNLOAD BUTTON
═══════════════════════════════ */
.modal-download {
  display: none;
  align-items: center; gap: 8px;
  padding: 11px 20px;
  background: transparent;
  border: 1px solid rgba(0,112,149,.35);
  color: rgba(0,143,176,.8);
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; cursor: none;
  transition: all .3s; white-space: nowrap;
}
.modal-download:hover {
  color: var(--teal-bright);
  border-color: rgba(0,143,176,.6);
  background: rgba(0,112,149,.08);
}
.modal-download.active { display: inline-flex; }

/* ═══════════════════════════════
   CONTACT ADVISORS
═══════════════════════════════ */
.ci-advisors {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,112,149,.2);
}
.ci-advisor-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 16px;
}
.ci-advisor-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.ci-advisor-row:last-child { border-bottom: none; }
.ci-advisor-name {
  font-size: 15px; color: rgba(255,255,255,.8); font-weight: 400;
}
.ci-advisor-phone {
  font-family: 'DM Mono', monospace;
  font-size: 13px; color: var(--teal-bright);
  text-decoration: none; letter-spacing: .04em;
  transition: color .2s;
}
.ci-advisor-phone:hover { color: var(--white); }

/* ═══════════════════════════════
   LAKÁSTÁJÉKOZTATÓ MODAL
═══════════════════════════════ */
#ltModal { z-index: 1001; }
.lt-modal-box {
  background: var(--ink-mid);
  border: 1px solid rgba(0,112,149,.2);
  max-width: 780px; width: 100%;
  margin: auto; flex-shrink: 0;
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,112,149,.3) transparent;
  position: relative;
  transform: translateY(20px);
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
#ltModal.open .lt-modal-box { transform: translateY(0); }
.lt-modal-header {
  padding: 48px 48px 32px;
  border-bottom: 1px solid rgba(0,112,149,.15);
  position: sticky; top: 0;
  background: var(--ink-mid);
  z-index: 2;
}
.lt-modal-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 10px;
}
.lt-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 400; font-style: italic;
  color: var(--white); margin-bottom: 4px;
}
.lt-modal-sub {
  font-size: 14px; color: rgba(255,255,255,.4);
}
.lt-modal-content {
  padding: 36px 48px;
  color: rgba(255,255,255,.75);
  font-size: 16px; line-height: 1.8;
}
.lt-modal-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 400;
  color: var(--white);
  margin: 24px 0 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,112,149,.15);
}
.lt-modal-content h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.lt-modal-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 400; font-style: italic;
  color: var(--teal-bright); margin: 14px 0 6px;
}
.lt-modal-content p { margin-bottom: 8px; }
.lt-modal-content ul {
  padding-left: 20px; margin-bottom: 16px;
}
.lt-modal-content li { margin-bottom: 8px; }
.lt-modal-content strong { color: var(--white); font-weight: 500; }
.lt-modal-content .lt-footer { color: rgba(255,255,255,.4); font-style: italic; }
.lt-modal-footer {
  padding: 20px 48px 32px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.lt-footer-note {
  font-size: 11px; color: rgba(255,255,255,.25); line-height: 1.6;
}

/* ═══════════════════════════════
   TEREMGARÁZS SZEKCIÓ
═══════════════════════════════ */
.garage-selector {
  background: var(--ink-mid);
  padding: 80px 64px;
  border-top: 1px solid rgba(0,112,149,.1);
  border-bottom: 1px solid rgba(0,112,149,.1);
}
.garage-desc {
  font-size: 16px; color: rgba(255,255,255,.5);
  line-height: 1.8; margin: 24px 0 48px;
  max-width: 620px;
}
.garage-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.garage-btn {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(0,112,149,.2);
  text-decoration: none;
  transition: all .35s; cursor: none;
  flex: 1; min-width: 280px;
  position: relative; overflow: hidden;
}
.garage-btn::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,112,149,.06);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.23,1,.32,1);
}
.garage-btn:hover { border-color: rgba(0,143,176,.45); }
.garage-btn:hover::before { transform: scaleX(1); }
.garage-btn-icon {
  color: var(--teal-bright);
  flex-shrink: 0;
  position: relative; z-index: 1;
}
.garage-btn-text { flex: 1; position: relative; z-index: 1; }
.garage-btn-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 400;
  color: var(--white); margin-bottom: 4px;
}
.garage-btn-sub {
  font-size: 12px; color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}
.garage-btn-arrow {
  font-size: 18px; color: rgba(0,143,176,.5);
  position: relative; z-index: 1;
  transition: transform .3s, color .3s;
}
.garage-btn:hover .garage-btn-arrow {
  color: var(--teal-bright);
  transform: translate(3px, -3px);
}

@media (max-width: 1024px) {
  .garage-selector { padding: 60px 32px; }
}
@media (max-width: 640px) {
  .garage-selector { padding: 48px 20px; }
  .garage-btns { flex-direction: column; }
  .garage-btn { min-width: auto; }
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE OVERHAUL
   Breakpoints: 1440px+ large desktop
                1280px  laptop
                1024px  tablet landscape / small laptop
                768px   tablet portrait
                640px   mobile
   ═══════════════════════════════════════════════════ */

/* ── MAX WIDTH CONTAINER — prevents over-stretching on 1920px+ ── */
.manifesto-inner,
.hscroll-head,
.garage-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ── LARGE DESKTOP 1440px+ ── */
@media (min-width: 1440px) {
  nav, nav.solid { padding-left: 80px; padding-right: 80px; }
  .hero-body { padding: 0 80px; max-width: 900px; }
  .hero-stats-strip { right: 80px; }
  .hero-scroll { left: 80px; }

  .manifesto { padding: 140px 80px; }
  .layered-intro .li-text { padding: 0 80px; max-width: 600px; }
  .materials { padding: 140px 80px; }
  .hscroll-section { padding: 140px 0; }
  .hscroll-head { padding: 0 80px; }
  .hscroll-track { padding: 0 80px; }
  .apt-selector { padding: 140px 80px; }
  .garage-selector { padding: 100px 80px; }
  .amenities { padding: 120px 80px; }
  .marina-inner { padding: 140px 80px; }
  .gallery-wrap { padding: 120px 80px 0; }
  .contact-info { padding: 120px 80px; }
  .contact-form { padding: 120px 80px; }
  footer { padding: 80px 80px 0; }
  .footer-bar { margin: 0 80px; }

  /* Larger type on big screens */
  .hero-h1 { font-size: clamp(72px, 8vw, 120px); }
  .manifesto-quote { font-size: clamp(32px, 3.5vw, 62px); }
  .mn-val { font-size: clamp(56px, 5.5vw, 88px); }
}

/* ── LAPTOP 1025px–1280px — nav crowding fix ── */
@media (min-width: 1025px) and (max-width: 1500px) {
  nav, nav.solid { padding-left: 40px; padding-right: 40px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 12px; letter-spacing: .07em; }
  .nav-logo-sub { display: none; }
  .lang-switch { gap: 4px; }
  .nav-cta { padding: 9px 18px; font-size: 11px; }

  .hero-body { padding: 0 40px; }
  .hero-stats-strip { right: 40px; }
  .hero-scroll { left: 40px; }

  .apt-selector { padding: 80px 40px; }
  .amenities { padding: 80px 40px; }
  .materials { padding: 100px 40px; }
  .garage-selector { padding: 70px 40px; }
  .contact-info { padding: 80px 48px; }
  .contact-form { padding: 80px 48px; }
  footer { padding: 56px 40px 0; }
  .footer-bar { margin: 0 40px; }
}

/* ── TABLET PORTRAIT 641px–1024px ── */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Materials mosaic — 2 col */
  .mat-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 260px 260px;
  }
  .mat-cell.span2 { grid-row: span 1; }

  /* Manifesto numbers — 3 col stays but smaller */
  .manifesto-numbers { grid-template-columns: repeat(3, 1fr); }
  .mn-val { font-size: clamp(40px, 5vw, 64px); }

  /* Apt grid — 2 col */
  .apt-grid-sel { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

  /* Marina — full width text */
  .marina-inner { max-width: 560px; }

  /* Contact */
  .contact { grid-template-columns: 1fr; }
  .contact-info { padding: 64px 40px 48px; }
  .contact-form { padding: 48px 40px 64px; }

  /* Footer 2+2 col */
  footer { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: span 2; }
}

/* ── MOBILE 640px and below — targeted fixes ── */
@media (max-width: 640px) {
  /* Nav */
  nav { padding: 16px 20px; }
  nav.solid { padding: 12px 20px; }

  /* Hero — tighter */
  .hero { padding: 0 20px 72px; align-items: flex-end; }
  .hero-body { padding: 0; max-width: 100%; }
  .hero-h1 { font-size: clamp(38px, 10vw, 52px); line-height: 1.05; }
  .hero-h1 .line2 { padding-left: 16px; }
  .hero-h1 .line3 { padding-left: 32px; font-size: clamp(9px, 2.5vw, 12px); }
  .hero-lead { font-size: 14px; margin-top: 20px; }
  .hero-btns { gap: 10px; margin-top: 28px; flex-wrap: wrap; }
  .btn-gold, .btn-ghost-w { padding: 12px 22px; font-size: 10px; flex: 1; text-align: center; justify-content: center; }
  .hero-counter { font-size: 9px; margin-bottom: 14px; }
  .hero-stats-strip { display: none; }
  .hero-scroll { display: none; }

  /* Manifesto */
  .manifesto { padding: 72px 20px; }
  .manifesto-numbers { grid-template-columns: 1fr; gap: 1px; }
  .manifesto-quote { font-size: clamp(24px, 6.5vw, 36px); }
  .mn-val { font-size: 56px; }
  .mn-cell { padding: 32px 24px; }

  /* Layered intro */
  .layered-intro { padding: 60px 0 0; min-height: auto; display: block; }
  .li-img-main { position: relative; width: 100%; height: 260px; }
  .li-text { padding: 32px 20px 48px; }
  .li-h2 { font-size: clamp(28px, 7vw, 40px); }

  /* Materials */
  .materials { padding: 60px 20px; }
  .materials-head { flex-direction: column; gap: 16px; margin-bottom: 32px; }
  .materials-note { text-align: left; max-width: 100%; }
  .mat-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; gap: 3px; }
  .mat-cell { height: 220px; }
  .mat-cell.span2 { grid-row: span 1; height: 220px; }

  /* Virtual tour */
  .vtour { padding: 60px 0 0; }
  .vtour-head { padding: 0 20px 32px; }
  .vtour-stage { height: 72vw; min-height: 300px; max-height: 480px; }
  .vtour-info { left: 16px; right: 16px; bottom: 60px; }
  .vtour-stop-name { font-size: clamp(20px, 5vw, 28px); }
  .vtour-dots { left: 16px; bottom: 20px; }
  .vtour-prev { left: 8px; width: 36px; height: 36px; }
  .vtour-next { right: 8px; width: 36px; height: 36px; }

  /* Buildings hscroll */
  .hscroll-section { padding: 60px 0; }
  .hscroll-head { padding: 0 20px; margin-bottom: 24px; }
  .hscroll-hint { display: none; }
  .hscroll-track { padding: 0 20px; gap: 12px; }
  .hscroll-card { flex: 0 0 80vw; height: 420px; }
  .marina-teaser-card { flex: 0 0 80vw; }
  .hsc-name { font-size: 26px; }
  .hsc-overlay-top { padding: 22px 22px 20px; }
  .hsc-stats-side { right: 12px; top: 27%; bottom: 38%; }
  .hsc-stat-val { font-size: 18px; }
  .hsc-stat-lbl { font-size: 7px; }
  .hsc-overlay-bottom { padding: 0 22px 20px; padding-top: 40px; }

  /* Apartment selector */
  .apt-selector { padding: 60px 20px; }
  .sel-tabs-wrap { flex-direction: column; gap: 2px; }
  .sel-tab { text-align: left; padding: 12px 16px; }
  .floor-tabs-wrap { flex-wrap: wrap; gap: 4px; }
  .floor-tab { font-size: 9px; padding: 7px 12px; }
  .apt-grid-sel { grid-template-columns: 1fr 1fr; gap: 3px; }
  .apt-plan-thumb { height: 160px; }
  .apt-unit-type { font-size: 14px; }

  /* Garage selector */
  .garage-selector { padding: 48px 20px; }
  .garage-btns { flex-direction: column; }
  .garage-btn { min-width: auto; }

  /* Amenities */
  .amenities { padding: 60px 20px; }
  .am-grid { grid-template-columns: 1fr; gap: 2px; }
  .am-item { padding: 28px 24px; }

  /* Marina */
  .marina { min-height: auto; }
  .marina-inner { padding: 64px 20px; }
  .marina-facts { grid-template-columns: 1fr 1fr; }

  /* Gallery */
  .gallery-wrap { padding: 60px 20px 0; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; gap: 3px; }
  .mosaic-item.tall { grid-row: span 1; }

  /* Contact */
  .contact { grid-template-columns: 1fr; margin-top: 60px; }
  .contact-info { padding: 60px 20px 40px; }
  .contact-form { padding: 40px 20px 60px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form h3 { font-size: 28px; margin-bottom: 28px; }

  /* Footer */
  footer { grid-template-columns: 1fr; padding: 48px 20px 0; gap: 32px; }
  .footer-bar { margin: 0 20px; flex-direction: column; gap: 8px; padding: 20px 0; }
  .footer-bar span { font-size: 11px; }
  .footer-brand-logo { height: 50px; }

  /* LT Modal */
  .lt-modal-box { max-height: 100vh; border: none; }
  .lt-modal-header { padding: 32px 20px 20px; }
  .lt-modal-content { padding: 24px 20px; font-size: 15px; }
  .lt-modal-footer { padding: 16px 20px 24px; }

  /* Modal */
  .modal-backdrop { padding: 52px 0 0; }
  .modal-box { width: 100%; border: none; }
  .modal-plan img { max-height: calc(80vh - 80px); }
  .modal-btns { flex-direction: column; }
  .modal-cta, .modal-print, .modal-download { width: 100%; justify-content: center; }

  /* Cookie */
  #cookieBanner { flex-direction: column; padding: 16px 20px; gap: 12px; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }

  /* Cursor off on touch */
  html { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
  * { cursor: auto !important; }
}

/* ── VERY SMALL MOBILE 375px ── */
@media (max-width: 390px) {
  .hero-h1 { font-size: 36px; }
  .apt-grid-sel { grid-template-columns: 1fr; }
  .hscroll-card { flex: 0 0 90vw; }
  .marina-teaser-card { flex: 0 0 90vw; }
  .sel-tab { font-size: 10px; }
  .manifesto-quote { font-size: 22px; }
}

/* ── PRINT ── */
@media print {
  nav, .hero-scroll, .cookie-banner, #cookieBanner,
  .vtour, .hscroll-section, .garage-selector,
  footer, .footer-bar { display: none !important; }
  body { background: white; color: black; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; }
}

/* ── LAYOUT SHIFT PREVENTION (CLS) ── */
.hero { aspect-ratio: auto; min-height: 100svh; }
.mat-cell { contain: layout; }
.hscroll-card { contain: layout; }
.apt-plan-thumb { contain: layout; }

/* ── SAFE AREA for iPhone notch / Dynamic Island ── */
@supports (padding: max(0px)) {
  nav {
    padding-left: max(64px, env(safe-area-inset-left));
    padding-right: max(64px, env(safe-area-inset-right));
  }
  nav.solid {
    padding-left: max(64px, env(safe-area-inset-left));
    padding-right: max(64px, env(safe-area-inset-right));
  }
  @media (max-width: 1024px) {
    nav, nav.solid {
      padding-left: max(32px, env(safe-area-inset-left));
      padding-right: max(32px, env(safe-area-inset-right));
    }
  }
  @media (max-width: 640px) {
    nav, nav.solid {
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
    footer, .footer-bar {
      padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
    #cookieBanner {
      padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
  }
}

/* ── SMOOTH FONT RENDERING all sizes ── */
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

/* ── FOCUS STYLES for keyboard nav ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
}

/* ═══════════════════════════════
   LQIP — Blur-up image loading
═══════════════════════════════ */
img[data-src] {
  filter: blur(8px);
  transition: filter .6s ease;
}
img[data-src].loaded {
  filter: blur(0);
}

/* ═══════════════════════════════
   COOKIE BANNER v2 — 3 categories
═══════════════════════════════ */
#cookieBanner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9000;
  background: rgba(13,20,24,.98);
  border-top: 1px solid rgba(0,112,149,.25);
  padding: 20px 48px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 32px;
  backdrop-filter: blur(20px);
  transform: translateY(100%);
  transition: transform .5s cubic-bezier(.23,1,.32,1);
}
#cookieBanner.visible { transform: translateY(0); }
.cookie-left { flex: 1; }
.cookie-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 6px;
}
.cookie-text { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.5; margin-bottom: 12px; }
.cookie-text a { color: rgba(0,143,176,.8); text-decoration: none; }
.cookie-cats { display: flex; gap: 20px; flex-wrap: wrap; }
.cookie-cat {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.65); cursor: pointer;
}
.cookie-cat input[type="checkbox"] {
  width: 14px; height: 14px; accent-color: var(--teal-bright); cursor: pointer;
}
.cookie-cat input:disabled { opacity: .4; cursor: not-allowed; }
.cookie-cat-note {
  font-size: 10px; color: rgba(255,255,255,.3);
  font-family: 'DM Mono', monospace; letter-spacing: .08em;
}
.cookie-btns {
  display: flex; gap: 8px; flex-direction: column; justify-content: center; flex-shrink: 0;
}
.cookie-btn {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 20px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all .3s; white-space: nowrap;
}
.cookie-btn-accept { background: var(--gold); color: var(--ink); }
.cookie-btn-accept:hover { background: #e0c070; }
.cookie-btn-custom { background: transparent; color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.15); }
.cookie-btn-custom:hover { color: white; border-color: rgba(255,255,255,.35); }
.cookie-btn-decline { background: transparent; color: rgba(255,255,255,.3); border: 1px solid rgba(255,255,255,.08); }
.cookie-btn-decline:hover { color: rgba(255,255,255,.6); }
@media(max-width:1024px) {
  #cookieBanner { padding: 20px 32px; gap: 20px; flex-direction: column; }
  .cookie-btns { flex-direction: row; }
}
@media(max-width:640px) {
  #cookieBanner { padding: 16px 20px; }
  .cookie-btns { flex-wrap: wrap; }
  .cookie-btn { flex: 1; text-align: center; font-size: 9px; padding: 9px 12px; }
  .cookie-cats { gap: 12px; }
}

/* ═══════════════════════════════
   FORM TEAL GLOW + SUCCESS PANEL
═══════════════════════════════ */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--teal-bright) !important;
  box-shadow: 0 2px 0 0 rgba(0,143,176,.3);
}
.form-success {
  display: none;
  position: absolute; inset: 0;
  background: var(--ink-mid);
  z-index: 10;
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
}
.form-success.visible {
  display: flex;
  opacity: 1;
}
.form-success-inner {
  text-align: center; padding: 48px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.form-success-icon {
  width: 80px; height: 80px;
  border: 1px solid rgba(0,143,176,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-bright);
  animation: successPulse 2s ease-in-out infinite;
}
@keyframes successPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,143,176,0); }
  50% { box-shadow: 0 0 0 12px rgba(0,143,176,.1); }
}
.form-success-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 400; font-style: italic;
  color: var(--white);
}
.form-success-text {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.8;
}

/* ═══════════════════════════════
   MANIFESTO — MAP AS BACKGROUND
═══════════════════════════════ */
.manifesto-map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: block;
  cursor: none;
}
.manifesto-map-pin {
  position: absolute;
  bottom: 8%; right: 8%;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,112,149,.9);
  color: var(--white);
  padding: 10px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s;
  z-index: 1;
  white-space: nowrap;
}
.manifesto-map-bg:hover .manifesto-map-pin {
  opacity: 1; transform: translateY(0);
}
.manifesto-map-bg:hover img {
  opacity: .78;
}
.manifesto-map-bg img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 68%;
  min-width: 750px;
  height: auto;
  opacity: .62;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 96%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 96%);
}
.manifesto-grid-r {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.manifesto-grid-r .manifesto-col-text {
  max-width: 620px;
  margin-left: auto;
}

@media (max-width: 1024px) {
  .manifesto-map-bg img {
    width: 100%;
    min-width: 0;
    opacity: .42;
    left: -15%;
  }
  .manifesto-grid-r .manifesto-col-text {
    max-width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .manifesto-map-bg img {
    width: 150%;
    opacity: .30;
    left: -25%;
  }
}

/* ═══════════════════════════════
   MARINA — SAIL BENEFITS BUTTON
═══════════════════════════════ */
.marina-btn {
  display: inline-block;
  margin-top: 36px;
}

/* ═══════════════════════════════
   SAIL BENEFITS MODAL — list styling
═══════════════════════════════ */
.sail-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sail-benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sail-benefit:last-child { border-bottom: none; }
.sail-benefit-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border: 1px solid rgba(0,112,149,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-bright);
  background: rgba(0,112,149,.06);
}
.sail-benefit-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}
.sail-benefit-text strong {
  color: var(--white);
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.4;
}
.sail-benefit-text span {
  font-size: 13.5px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .sail-benefit { gap: 12px; }
  .sail-benefit-icon { width: 34px; height: 34px; }
  .sail-benefit-icon svg { width: 18px; height: 18px; }
}

/* ═══════════════════════════════
   MANIFESTO QUOTE — slightly smaller
═══════════════════════════════ */
.manifesto-quote {
  font-size: clamp(24px, 2.6vw, 42px) !important;
}

/* ═══════════════════════════════
   HERO TAG (missing — restored during cleanup audit)
═══════════════════════════════ */
.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 24px;
}

/* ═══════════════════════════════
   LOCATION TAGS (missing — restored during cleanup audit)
═══════════════════════════════ */
.li-loc-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 28px 0 32px;
}
.li-loc-tags span {
  font-family: 'DM Mono', monospace;
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(0,112,149,.3);
  padding: 7px 14px;
  background: rgba(0,112,149,.06);
  transition: all .3s;
}
.li-loc-tags span:hover {
  color: var(--teal-bright);
  border-color: rgba(0,143,176,.5);
  background: rgba(0,112,149,.12);
}
@media (max-width: 640px) {
  .li-loc-tags span { font-size: 9px; padding: 6px 11px; }
}

/* ═══════════════════════════════
   BUILDING CARDS — clickable whole card
═══════════════════════════════ */
.hscroll-card-clickable {
  cursor: none;
}
.hscroll-card-clickable:hover .hsc-name {
  text-shadow: 0 2px 12px rgba(0,143,176,.4);
}

/* ═══════════════════════════════
   MARINA TEASER CARD — enlarged
═══════════════════════════════ */
.marina-teaser-card {
  flex: 0 0 clamp(190px, 16vw, 320px);
  transition: filter .4s;
}
.marina-teaser-content {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; padding: 32px; text-align: center;
}
.marina-teaser-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(10,143,176,.9);
}
.marina-teaser-num {
  font-family: 'Playfair Display', serif;
  font-size: 68px; font-weight: 400; color: var(--white); line-height: 1;
}
.marina-teaser-lbl {
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.marina-teaser-link {
  margin-top: 14px;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(200,169,110,.35);
  padding-bottom: 4px;
  transition: border-color .3s, color .3s;
  pointer-events: none; /* whole card handles the click, avoid double-trigger */
}
.hscroll-card:hover .marina-teaser-link {
  border-color: rgba(200,169,110,.7);
}

@media (max-width: 1300px) {
  .marina-teaser-content { padding: 22px; gap: 12px; }
  .marina-teaser-num { font-size: 48px; }
  .marina-teaser-lbl { font-size: 11px; }
  .marina-teaser-eyebrow { font-size: 9px; letter-spacing: .18em; }
}
@media (max-width: 640px) {
  .marina-teaser-num { font-size: 52px; }
  .marina-teaser-lbl { font-size: 11px; }
  .marina-teaser-eyebrow { font-size: 10px; }
}


/* ═══════════════════════════════
   AMENITIES EXTRA — 2-column text row below the 3-col grid
═══════════════════════════════ */
.am-extra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,112,149,.1);
  background: var(--cream);
}
.am-extra-p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-dark, #5a6a72);
}

@media (max-width: 1024px) {
  .am-extra { grid-template-columns: 1fr; gap: 20px; margin-top: 32px; padding-top: 32px; }
}
@media (max-width: 640px) {
  .am-extra { margin-top: 28px; padding-top: 28px; gap: 18px; }
  .am-extra-p { font-size: 15px; }
}

/* ═══════════════════════════════
   SAIL MODAL — external Füredyacht.hu link
═══════════════════════════════ */
.sail-link-row {
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sail-external-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal-bright); text-decoration: none;
  border-bottom: 1px solid rgba(0,143,176,.3);
  padding-bottom: 2px;
  transition: color .25s, border-color .25s;
}
.sail-external-link:hover {
  color: var(--white);
  border-color: rgba(0,143,176,.6);
}

/* ═══════════════════════════════
   Subscript styling inside LT modal (A2023 energy rating)
═══════════════════════════════ */
.lt-modal-content sub {
  font-size: .7em;
  color: var(--teal-bright);
}
