/* ═══════════════════════════════════════════════════════════
   Borgo Harenae — Shared Stylesheet
   Luxury real estate site — ImmobilSarda / Christie's IRE
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
  --christies-red: #B41C22;
  --christies-red-dark: #9a171c;
  --sand: #F7F3EE;
  --sand-warm: #EDE6DA;
  --sea-blue: #1B7A8A;
  --sea-light: #E8F4F6;
  --sky: #4BA3C3;
  --warm-stone: #C4A87C;
  --text-dark: #2D2926;
  --text-body: #5A5651;
  --text-light: #8A857D;
  --white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Raleway', 'Helvetica Neue', sans-serif;
  /* Masterplan unit type colors */
  --villa-color: #C4A87C;
  --penthouse-color: #1B7A8A;
  --house-color: #8B6F4E;
}

/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 32px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: 0.3s;
}
.site-header.at-top {
  background: transparent;
  border-bottom-color: transparent;
}
.site-header.at-top .nav-link { color: rgba(255,255,255,0.8); }
.site-header.at-top .nav-link:hover { color: #fff; }
.site-header.at-top .header-cta { border-color: #fff; color: #fff; }
.site-header.at-top .header-cta:hover { background: #fff; color: var(--text-dark); }
.site-header.at-top .lang-switch a { color: rgba(255,255,255,0.5); }
.site-header.at-top .lang-switch a.active { color: #fff; }
.site-header.at-top .header-logo .logo-sep { background: rgba(255,255,255,0.3); }

/* Dark header variant (masterplan) */
.site-header.dark {
  background: rgba(10,26,10,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-logo { display: flex; align-items: center; gap: 14px; }
.header-logo img { height: 26px; }
.header-logo .logo-sep { width: 1px; height: 18px; background: rgba(0,0,0,0.15); }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem; color: var(--text-dark);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.logo-tagline {
  font-size: 0.6rem; color: var(--text-light);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.site-header.dark .logo-text,
.site-header.at-top .logo-text { color: #fff; }
.site-header.dark .logo-tagline,
.site-header.at-top .logo-tagline { color: rgba(255,255,255,0.5); }

.header-nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none; font-weight: 500; transition: 0.3s;
}
.nav-link:hover { color: var(--christies-red); }

.lang-switch { display: flex; gap: 2px; }
.lang-switch a {
  font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-light); text-decoration: none; padding: 4px 6px; transition: 0.3s;
}
.lang-switch a.active { color: var(--christies-red); font-weight: 600; }

.header-cta {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--christies-red); text-decoration: none; font-weight: 500;
  border: 1px solid var(--christies-red); padding: 8px 20px; transition: 0.3s;
}
.header-cta:hover { background: var(--christies-red); color: #fff; }

.site-header.dark .header-cta {
  color: var(--warm-stone); border-color: var(--warm-stone);
}
.site-header.dark .header-cta:hover { background: var(--warm-stone); color: #fff; }

.btn-brochure {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; background: var(--christies-red); border: none;
  padding: 10px 20px; cursor: pointer; font-family: var(--font-body);
  font-weight: 500; transition: 0.3s;
}
.btn-brochure:hover { background: var(--christies-red-dark); }

/* ─── MOBILE HAMBURGER NAV ─── */
.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0; z-index: 210;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-dark); transition: 0.3s;
}
.site-header.at-top .menu-toggle span,
.site-header.dark .menu-toggle span { background: #fff; }
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  padding: 80px 24px 40px;
  z-index: 190;
  flex-direction: column; align-items: center; gap: 24px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-dark); text-decoration: none; font-weight: 500;
  padding: 12px 0; min-height: 44px;
  display: flex; align-items: center;
}
.mobile-nav a:hover { color: var(--christies-red); }

/* ─── PASSWORD GATE ─── */
.gate {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 26, 10, 0.95);
  backdrop-filter: blur(20px);
  display: flex; align-items: center; justify-content: center;
}
.gate.hidden { display: none; }
.gate-card {
  background: var(--white);
  padding: clamp(32px, 5vw, 48px);
  max-width: 400px; width: 90vw;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.gate-card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 400;
  color: var(--text-dark); margin-bottom: 8px;
}
.gate-card p {
  font-size: 0.8rem; color: var(--text-light);
  margin-bottom: 24px; line-height: 1.6;
}
.gate-card input {
  width: 100%; padding: 14px 16px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 3px; font-family: var(--font-body);
  font-size: 0.9rem; color: var(--text-dark);
  text-align: center; letter-spacing: 0.1em;
  margin-bottom: 16px; transition: 0.2s;
}
.gate-card input:focus { outline: none; border-color: var(--warm-stone); }
.gate-card button {
  width: 100%; padding: 14px;
  background: var(--christies-red); color: #fff; border: none;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: 0.3s;
}
.gate-card button:hover { background: var(--christies-red-dark); }
.gate-error {
  font-size: 0.75rem; color: var(--christies-red);
  margin-top: 12px; display: none;
}

/* ─── HERO ─── */
.hero {
  position: relative; height: 100vh;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 80px;
  background-size: 110%; background-position: center;
  animation: kenburns 20s ease-in-out infinite alternate;
  overflow: hidden;
}
@keyframes kenburns {
  0% { background-size: 110%; background-position: 30% 40%; }
  100% { background-size: 120%; background-position: 70% 60%; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.35) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; }
.hero-eyebrow {
  font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.35em;
  text-transform: uppercase; opacity: 0.7; margin-bottom: 12px; font-weight: 400;
}
.hero-content h1 {
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: 0.06em; margin-bottom: 8px;
}
.hero-sub {
  font-family: var(--font-heading); font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400; font-style: italic; opacity: 0.8;
}
.hero-badge {
  display: inline-block; background: var(--christies-red);
  color: #fff; padding: 4px 14px; font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff; font-weight: 400; letter-spacing: 0.04em;
}
.scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.6rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* Detail page hero variant */
.hero.detail {
  height: 75vh; min-height: 500px;
  overflow: hidden; margin-top: 60px;
  padding-bottom: 0; display: block;
}
.hero.detail img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero.detail .hero-overlay {
  bottom: 0; left: 0; right: 0; top: auto;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 60px 48px 40px;
}

/* ─── INTRO ─── */
.intro {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 8vw, 120px);
  text-align: center; background: var(--white);
}
.red-line {
  width: 40px; height: 2px; background: var(--christies-red);
  margin: 0 auto 2rem;
}
.intro blockquote {
  font-family: var(--font-heading); font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 400; font-style: italic; line-height: 1.6;
  color: var(--text-dark); max-width: 750px; margin: 0 auto 2rem;
}
.intro p {
  font-size: 0.95rem; line-height: 1.9; color: var(--text-body);
  max-width: 650px; margin: 0 auto; font-weight: 300;
}

/* ─── STORY SECTION ─── */
.story-section { display: grid; grid-template-columns: 1fr 1fr; min-height: 60vh; }
.story-section.reverse { direction: rtl; }
.story-section.reverse > * { direction: ltr; }
.story-image { overflow: hidden; }
.story-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 5vw, 80px); background: var(--white);
}
.story-text .red-line { width: 30px; height: 2px; background: var(--christies-red); margin: 0 0 1.5rem; }
.story-text h2 {
  font-family: var(--font-heading); font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400; color: var(--text-dark); margin-bottom: 1.2rem; line-height: 1.3;
}
.story-text p {
  font-size: 0.9rem; line-height: 1.8; color: var(--text-body); font-weight: 300;
}
.story-section.sand .story-text { background: var(--sand); }
.story-section.sea .story-text { background: var(--sea-light); }

/* ─── FULLBLEED ─── */
.fullbleed { width: 100%; height: 65vh; min-height: 350px; overflow: hidden; }
.fullbleed img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── CAROUSEL ─── */
.carousel-section { background: var(--sand); padding: 40px 0; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; gap: 16px; padding: 0 32px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  min-width: 55vw; height: 45vh; object-fit: cover; border-radius: 4px;
  scroll-snap-align: start;
}
.carousel-hint {
  text-align: center; padding: 16px; font-size: 0.68rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light);
}

/* ─── SECTION TITLES (shared) ─── */
.section-title {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400; color: var(--text-dark); margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center; font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--christies-red); margin-bottom: 3rem; font-weight: 500;
}

/* ─── AMENITIES ─── */
.amenities {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--white);
}
.amenities-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; max-width: 900px; margin: 0 auto;
}
.amenity-item { text-align: center; }
.amenity-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: var(--sand-warm); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--sea-blue); font-size: 1.6rem; font-weight: 600;
}
.amenity-item h3 {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 500;
  color: var(--text-dark); margin-bottom: 0.4rem;
}
.amenity-item p { font-size: 0.82rem; color: var(--text-body); font-weight: 300; line-height: 1.6; }

/* ─── NUMBERS ─── */
.numbers {
  padding: clamp(50px, 6vw, 80px) 24px;
  background: var(--sand);
  display: flex; justify-content: center; gap: clamp(40px, 6vw, 80px); flex-wrap: wrap;
}
.number-item { text-align: center; min-width: 110px; }
.number-item .value {
  font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; color: var(--christies-red); line-height: 1; margin-bottom: 0.3rem;
}
.number-item .label {
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-light); font-weight: 400;
}

/* ─── DISTANCES ─── */
.distances {
  padding: 32px 24px; background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06);
}
.distances-track {
  display: flex; justify-content: center; gap: clamp(20px, 4vw, 50px);
  flex-wrap: wrap; max-width: 800px; margin: 0 auto;
}
.distance-item { text-align: center; min-width: 90px; }
.distance-item .dist-value {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 400;
  color: var(--sea-blue); margin-bottom: 0.15rem;
}
.distance-item .dist-unit { font-size: 0.68rem; color: var(--text-light); }
.distance-item .dist-label {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-body); margin-top: 0.2rem; font-weight: 500;
}

/* ─── UNITS GRID ─── */
.units {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--white);
}
.units-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.unit-card {
  background: var(--white); border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden; transition: 0.3s; position: relative;
  text-decoration: none; color: inherit; display: block;
}
.unit-card *, .unit-card h3, .unit-card .unit-specs, .unit-card .unit-price { text-decoration: none; }
.unit-card:hover { box-shadow: 0 6px 30px rgba(0,0,0,0.08); }
.unit-image { height: 200px; overflow: hidden; }
.unit-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.unit-card:hover .unit-image img { transform: scale(1.03); }
.unit-badge {
  position: absolute; top: 14px; right: 14px;
  padding: 4px 12px; font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}
.unit-badge.available { background: var(--sea-blue); color: #fff; }
.unit-badge.sold { background: var(--christies-red); color: #fff; }
.unit-body { padding: 20px; }
.unit-body h3 {
  font-family: var(--font-heading); font-size: 1.15rem; font-weight: 400;
  color: var(--text-dark); margin-bottom: 0.4rem;
}
.unit-specs {
  font-size: 0.78rem; color: var(--text-light); margin-bottom: 0.8rem;
  display: flex; gap: 14px;
}
.unit-price {
  font-family: var(--font-body); font-size: 0.8rem; color: var(--christies-red);
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.unit-cta {
  display: inline-block; margin-top: 0.8rem;
  font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sea-blue); text-decoration: none;
  border-bottom: 1px solid var(--sea-blue); padding-bottom: 2px;
  transition: 0.3s; font-weight: 500;
}
.unit-cta:hover { color: var(--christies-red); border-color: var(--christies-red); }

/* ─── MASTERPLAN SECTION ─── */
.masterplan-section {
  min-height: 100vh; padding-top: 70px;
  display: flex; flex-direction: column;
  background: #0a1a0a;
}
.masterplan-title { text-align: center; padding: 40px 24px 20px; }
.masterplan-title h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff; font-weight: 400; letter-spacing: 0.08em;
}
.masterplan-title p {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.15em; text-transform: uppercase; margin-top: 8px;
}

/* Legend */
.legend {
  display: flex; justify-content: center; gap: 24px;
  padding: 0 24px 20px; flex-wrap: wrap;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.72rem; color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: 0.3s;
}
.legend-item:hover, .legend-item.active { color: #fff; }
.legend-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.legend-dot.villa { background: var(--villa-color); }
.legend-dot.penthouse { background: var(--penthouse-color); }
.legend-dot.house { background: var(--house-color); }
.legend-dot.amenity { background: transparent; border: 1.5px dashed rgba(255,255,255,0.5); }

/* Map container */
.map-container {
  position: relative; flex: 1; max-width: 1400px;
  margin: 0 auto; width: 100%; padding: 0 24px 40px;
}
.map-wrapper {
  position: relative; width: 100%; border-radius: 4px;
  overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.map-wrapper img { width: 100%; height: auto; display: block; }

/* Hotspots with pulse animation */
.hotspot {
  position: absolute; transform: translate(-50%, -50%);
  cursor: pointer; z-index: 10; transition: all 0.3s ease;
}
.hotspot-dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  position: relative; transition: all 0.3s ease;
}
.hotspot.villa .hotspot-dot { background: var(--villa-color); }
.hotspot.penthouse .hotspot-dot { background: var(--penthouse-color); }
.hotspot.house .hotspot-dot { background: var(--house-color); }
.hotspot.amenity .hotspot-dot {
  background: transparent; border: 2px dashed rgba(255,255,255,0.6);
  width: 20px; height: 20px;
}
.hotspot-dot::after {
  content: ''; position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%; border: 1px solid; border-color: inherit;
  opacity: 0; animation: pulse 2.5s ease-out infinite;
}
.hotspot.amenity .hotspot-dot::after { display: none; }

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

.hotspot:hover .hotspot-dot { transform: scale(1.3); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.hotspot.active .hotspot-dot { transform: scale(1.4); border-color: #fff; }

.hotspot-label {
  position: absolute; left: 50%; top: -8px;
  transform: translate(-50%, -100%);
  background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
  color: #fff; padding: 4px 10px; border-radius: 3px;
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.hotspot:hover .hotspot-label, .hotspot.active .hotspot-label { opacity: 1; }
.hotspot-label::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  transform: translateX(-50%); border: 4px solid transparent;
  border-top-color: rgba(0,0,0,0.85);
}

/* ─── DRAWER (right side panel) ─── */
.drawer-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

.drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 440px; max-width: 90vw; background: var(--sand);
  z-index: 310; transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.drawer.open { transform: translateX(0); }

.drawer-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: none;
  background: rgba(0,0,0,0.06); border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; color: var(--text-body);
  display: flex; align-items: center; justify-content: center;
  transition: 0.2s; z-index: 5;
  min-width: 44px; min-height: 44px;
}
.drawer-close:hover { background: rgba(0,0,0,0.12); }

.drawer-hero { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.drawer-hero img { width: 100%; height: 100%; object-fit: cover; }
.drawer-hero-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  color: #fff; padding: 6px 14px; font-size: 0.6rem;
  letter-spacing: 0.15em; text-transform: uppercase; border-radius: 2px;
}

.drawer-body { padding: 28px 24px 40px; }
.drawer-name {
  font-family: var(--font-heading); font-size: 1.5rem;
  color: var(--text-dark); font-weight: 500; margin-bottom: 4px;
}
.drawer-type {
  font-size: 0.7rem; color: var(--text-light);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 20px;
}
.drawer-desc {
  font-size: 0.85rem; line-height: 1.7;
  color: var(--text-body); margin-bottom: 24px;
}

.drawer-cta {
  display: block; width: 100%; padding: 16px;
  background: var(--christies-red); color: #fff; border: none;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: 0.3s; text-align: center;
  text-decoration: none; margin-bottom: 12px;
  min-height: 44px;
}
.drawer-cta:hover { background: var(--christies-red-dark); }
.drawer-cta-secondary {
  display: block; width: 100%; padding: 14px;
  background: transparent; color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.15);
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: 0.3s; text-align: center; text-decoration: none;
  min-height: 44px;
}
.drawer-cta-secondary:hover { border-color: var(--text-dark); }

.drawer-amenity-icon { text-align: center; padding: 40px 24px 16px; color: var(--christies-red); }
.drawer-amenity-icon svg { width: 48px; height: 48px; }
.drawer-amenity-name {
  font-family: var(--font-heading); font-size: 1.3rem;
  text-align: center; color: var(--text-dark); margin-bottom: 16px;
}
.drawer-amenity-desc {
  font-size: 0.85rem; line-height: 1.7;
  color: var(--text-body); text-align: center; padding: 0 24px 40px;
}

/* ─── MODAL (lead capture form) ─── */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
  z-index: 500; display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; width: 420px; max-width: 90vw;
  border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.modal-header {
  background: var(--sand); padding: 24px 28px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.modal-header h3 {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 500; margin-bottom: 4px;
}
.modal-header p { font-size: 0.75rem; color: var(--text-light); }
.modal-body { padding: 28px; }
.modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 30px; height: 30px; border: none; background: transparent;
  cursor: pointer; font-size: 1.2rem; color: var(--text-light);
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.65rem; color: var(--text-light);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 14px; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 3px; font-family: var(--font-body); font-size: 0.85rem;
  color: var(--text-dark); transition: 0.2s;
}
.form-input:focus { outline: none; border-color: var(--warm-stone); }
.form-submit {
  width: 100%; padding: 14px; background: var(--christies-red);
  color: #fff; border: none; font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  cursor: pointer; transition: 0.3s; margin-top: 8px;
  min-height: 44px;
}
.form-submit:hover { background: var(--christies-red-dark); }
.form-submit:disabled { background: #ccc; cursor: not-allowed; }

/* ─── CONTENT (detail page wrapper) ─── */
.content { max-width: 960px; margin: 0 auto; padding: 60px 32px; }
.description {
  font-size: 0.92rem; line-height: 1.85; color: var(--text-body);
  margin-bottom: 48px;
}

/* ─── SPECS BAR ─── */
.specs-bar {
  display: flex; gap: 1px; background: rgba(0,0,0,0.08);
  border-radius: 4px; overflow: hidden; margin-bottom: 48px;
}
.spec-cell { flex: 1; background: var(--sand); padding: 24px 16px; text-align: center; }
.spec-cell-value {
  font-family: var(--font-heading); font-size: 1.8rem;
  color: var(--text-dark); font-weight: 500;
}
.spec-cell-label {
  font-size: 0.6rem; color: var(--text-light);
  letter-spacing: 0.15em; text-transform: uppercase; margin-top: 6px;
}

/* Drawer specs grid */
.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(0,0,0,0.08);
  border-radius: 4px; overflow: hidden; margin-bottom: 24px;
}
.spec-item { background: #fff; padding: 16px 12px; text-align: center; }
.spec-value {
  font-family: var(--font-heading); font-size: 1.4rem;
  color: var(--text-dark); font-weight: 500;
}
.spec-label {
  font-size: 0.6rem; color: var(--text-light);
  letter-spacing: 0.12em; text-transform: uppercase; margin-top: 4px;
}

/* ─── FEATURES GRID ─── */
.features {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--sand);
}
.features-columns {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px 50px; max-width: 800px; margin: 0 auto;
}
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-bottom: 48px;
}
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--sand); border-radius: 4px;
}
.features-columns .feature-item {
  padding: 10px 0; background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.06); gap: 10px;
}
.feature-check { color: var(--sea-blue); font-size: 0.75rem; flex-shrink: 0; }
.feature-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--warm-stone); display: flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 0.8rem; flex-shrink: 0;
}
.feature-text { font-size: 0.8rem; color: var(--text-body); }
.feature-item span { font-size: 0.85rem; color: var(--text-body); font-weight: 300; }

/* Feature tags (drawer) */
.features-title {
  font-size: 0.65rem; color: var(--text-light);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 12px;
}
.features-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.feature-tag {
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  padding: 6px 14px; font-size: 0.72rem;
  color: var(--text-body); border-radius: 20px;
}

/* Common features list */
.common-features {
  border-top: 1px solid rgba(0,0,0,0.08); padding-top: 40px; margin-bottom: 48px;
}
.common-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px; list-style: none;
}
.common-list li {
  font-size: 0.78rem; color: var(--text-body);
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.04);
}
.common-list li::before {
  content: '\2713'; color: var(--warm-stone); margin-right: 10px; font-weight: 600;
}

/* ─── GALLERY GRID ─── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 4px; margin-bottom: 48px; border-radius: 4px; overflow: hidden;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  cursor: pointer; transition: 0.3s;
}
.gallery-grid img:hover { opacity: 0.85; }
.gallery-grid img:first-child {
  grid-column: 1 / 3; grid-row: 1 / 3; aspect-ratio: auto;
}

/* ─── FAQ ACCORDION ─── */
.faq {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--sand);
}
.faq-list { max-width: 650px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); }
.faq-question {
  padding: 18px 0; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-family: var(--font-heading); font-size: 1.05rem;
  color: var(--text-dark); font-weight: 400;
  min-height: 44px;
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--christies-red); transition: 0.3s; }
.faq-item.open .faq-question::after { content: '\2212'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding-bottom: 18px; font-size: 0.88rem; line-height: 1.7; color: var(--text-body); font-weight: 300; }

/* ─── CONTACT ─── */
.contact {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--white); text-align: center;
}
/* Contact form layout (Borgo Harenae) */
.contact-form {
  max-width: 560px; margin: 2rem auto 2.5rem; text-align: left;
}
.contact-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.contact-form textarea.form-input { resize: vertical; font-family: var(--font-body); }
.contact-form .form-submit { width: 100%; padding: 14px; font-size: 0.72rem; }
.contact-phone {
  text-align: center; padding-top: 1.8rem; border-top: 1px solid rgba(0,0,0,0.08);
  max-width: 560px; margin: 0 auto;
}
.contact-phone-label {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 0.8rem;
}
@media (max-width: 560px) {
  .contact-form .form-row { grid-template-columns: 1fr; gap: 0; }
}

.contact .phone {
  font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-dark);
  margin: 1rem 0 2rem; font-weight: 400;
}

/* CTA buttons */
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--christies-red); color: var(--christies-red);
  background: transparent; transition: 0.3s; cursor: pointer; font-weight: 500;
  min-height: 44px;
}
.cta-btn:hover { background: var(--christies-red); color: #fff; }
.cta-btn.filled { background: var(--christies-red); color: #fff; }
.cta-btn.filled:hover { background: #8B1419; border-color: #8B1419; }

.cta-primary {
  display: inline-block; padding: 14px 32px;
  background: var(--christies-red); color: #fff; text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-body); border: none; cursor: pointer; transition: 0.3s;
  min-height: 44px;
}
.cta-primary:hover { background: var(--christies-red-dark); }
.cta-secondary {
  display: inline-block; padding: 14px 32px;
  background: transparent; color: var(--text-dark);
  border: 1px solid rgba(0,0,0,0.2); text-decoration: none;
  font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: var(--font-body); cursor: pointer; transition: 0.3s;
  min-height: 44px;
}
.cta-secondary:hover { border-color: var(--text-dark); }

/* CTA section (detail page) */
.cta-section {
  background: var(--sand); border-radius: 4px;
  padding: 40px; text-align: center; margin-bottom: 48px;
}
.cta-section h3 {
  font-family: var(--font-heading); font-size: 1.3rem;
  font-weight: 400; margin-bottom: 12px;
}
.cta-section p {
  font-size: 0.82rem; color: var(--text-body); margin-bottom: 24px;
}

/* ─── MAP SECTION ─── */
.map-section {
  padding: clamp(60px, 8vw, 100px) clamp(24px, 6vw, 80px);
  background: var(--white);
}
.map-section .map-wrapper {
  max-width: 1000px; margin: 0 auto; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: none;
}
.map-section .map-wrapper iframe { width: 100%; height: 400px; border: 0; display: block; }

/* ─── RELATED ─── */
.related {
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 80px);
  background: var(--sand);
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; max-width: 900px; margin: 0 auto;
}
.related-card {
  position: relative; height: 240px; overflow: hidden; cursor: pointer;
  border-radius: 4px;
}
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.related-card:hover img { transform: scale(1.05); }
.related-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}
.related-card-content { position: absolute; bottom: 20px; left: 20px; z-index: 1; }
.related-card-content h3 { font-family: var(--font-heading); font-size: 1.15rem; color: #fff; font-weight: 400; }
.related-card-content span { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--text-dark); padding: 40px 32px; text-align: center;
}
.site-footer.dark { background: #0a1a0a; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-brand {
  font-family: var(--font-heading); font-size: 0.9rem;
  color: rgba(255,255,255,0.6); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-sub {
  font-size: 0.65rem; color: rgba(255,255,255,0.3); letter-spacing: 0.1em;
}

.brand-bar {
  padding: 32px 24px; background: var(--white); text-align: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.brand-bar .brands {
  font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-body);
  margin-bottom: 0.3rem;
}
.brand-bar .since {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light);
}

/* ─── 404 ─── */
.not-found {
  text-align: center; padding: 200px 32px;
}
.not-found h1 {
  font-family: var(--font-heading); font-size: 2rem;
  color: var(--text-dark); margin-bottom: 16px;
}
.not-found a { color: var(--christies-red); }

/* ─── BROCHURE HEADER (print only) ─── */
.brochure-header {
  display: none; padding: 20px 32px;
  justify-content: space-between; align-items: center;
  border-bottom: 2px solid var(--christies-red);
}
.brochure-header .bh-logo {
  font-family: var(--font-heading); font-size: 0.9rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.brochure-header .bh-meta {
  font-size: 0.65rem; color: var(--text-light); text-align: right;
}

/* ─── ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── PRINT STYLES ─── */
@media print {
  .site-header, .btn-brochure, .cta-section,
  .modal-overlay, .site-footer, .menu-toggle,
  .mobile-nav, .gate { display: none !important; }
  .hero { height: auto; min-height: auto; margin-top: 0; page-break-after: avoid; }
  .hero img { max-height: 400px; }
  .content { padding: 20px 0; }
  body { background: #fff; }
  .gallery-grid { page-break-inside: avoid; }
  .brochure-header { display: flex !important; }
}

/* ─── RESPONSIVE (max-width: 768px) ─── */
@media (max-width: 768px) {
  /* Header */
  .site-header { padding: 12px 16px; }
  .menu-toggle { display: flex; }
  .logo-text { font-size: 0.9rem; }

  /* Mobile nav: .header-nav collapses into a dropdown, opens on .open */
  .header-nav {
    position: fixed; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,26,10,0.97); backdrop-filter: blur(14px);
    padding: 20px 24px 28px; border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-120%); transition: transform 0.3s ease;
    max-height: calc(100vh - 60px); overflow-y: auto;
  }
  .header-nav.open { transform: translateY(0); }
  .header-nav .nav-link {
    display: block; padding: 14px 0; color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 0.85rem; min-height: 44px;
  }
  .header-nav .header-cta {
    display: inline-block; margin-top: 16px; align-self: center;
  }
  .header-nav .lang-switch { padding: 14px 0; justify-content: flex-start; }
  /* Legacy stand-alone mobile-nav (kept for back-compat, not required) */
  .mobile-nav { display: flex; }

  /* Hero */
  .hero.detail { height: 50vh; margin-top: 52px; }
  .hero.detail .hero-overlay { padding: 40px 24px 24px; }

  /* Story */
  .story-section { grid-template-columns: 1fr; }
  .story-section.reverse { direction: ltr; }
  .story-image { height: 45vh; }

  /* Units */
  .units-grid { grid-template-columns: 1fr; }

  /* Related */
  .related-grid { grid-template-columns: 1fr; }

  /* Detail content */
  .content { padding: 40px 16px; }
  .specs-bar { flex-wrap: wrap; }
  .spec-cell { flex-basis: 33.33%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9; }
  .features-grid { grid-template-columns: 1fr; }

  /* Masterplan */
  .masterplan-title { padding: 24px 16px 12px; }
  .map-container { padding: 0 8px 24px; }
  .legend { gap: 16px; padding: 0 16px 16px; }
  .hotspot-dot { width: 28px; height: 28px; }
  .hotspot.amenity .hotspot-dot { width: 24px; height: 24px; }
  .hotspot-label { font-size: 0.55rem; }

  /* Drawer full width on mobile */
  .drawer { width: 100%; max-width: 100%; }

  /* Carousel */
  .carousel-track img { min-width: 85vw; }
}

/* P0 fixes: inline→class + utility */
.hidden { display: none !important; }
.logo-white, .logo-dark { height: 32px; }
.logo-dark { display: none; }

.masterplan-preview {
  padding: 60px 24px; text-align: center; background: #0a1a0a;
}
.masterplan-preview-title {
  font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff; font-weight: 400; letter-spacing: 0.05em; margin-bottom: 8px;
}
.masterplan-preview-sub {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 24px;
}
.masterplan-preview-link {
  display: block; max-width: 1200px; margin: 0 auto;
  position: relative; border-radius: 6px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.masterplan-preview-img {
  width: 100%; display: block; transition: transform 0.5s ease;
}
.masterplan-preview-link:hover .masterplan-preview-img { transform: scale(1.02); }
.masterplan-preview-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.masterplan-preview-link:hover .masterplan-preview-overlay { background: rgba(0,0,0,0.05); }
.masterplan-preview-cta {
  background: rgba(255,255,255,0.95); color: var(--text-dark);
  padding: 12px 32px; font-size: 0.72rem; letter-spacing: 0.15em;
  text-transform: uppercase; font-weight: 500; border-radius: 2px;
}

.features-list-grid {
  max-width: 700px; margin: 0 auto; list-style: none; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left;
}
.features-list-grid li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
@media (max-width: 560px) {
  .features-list-grid { grid-template-columns: 1fr; }
}

.unit-card-sold { opacity: 0.6; }
