/* ============================================================
   KM2 — Premium Real Estate Landing Page
   Theme: dark luxury, gold accents
   Fonts: Raleway (display) + Inter (body) — no serifs
   ============================================================ */

/* ── 1. CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  --bg-primary:   #0D0D0D;
  --bg-secondary: #141414;
  --bg-card:      #1A1A1A;
  --bg-glass:     rgba(13, 13, 13, 0.82);

  --gold-light:  #E8C97A;
  --gold-main:   #C9A84C;
  --gold-dark:   #8B6914;
  --gold-subtle: rgba(201, 168, 76, 0.10);
  --gold-border: rgba(201, 168, 76, 0.22);
  --gold-border-strong: rgba(201, 168, 76, 0.52);

  --text-primary:   #F0EDE6;
  --text-secondary: #A89880;
  --text-muted:     #5C5550;

  --color-success: #4CAF78;
  --color-error:   #CF6679;

  /* ── Fonts: Raleway (display) + Inter (body) ── */
  --font-display: 'Raleway', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Type scale */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.6rem;
  --text-2xl:  2.1rem;
  --text-3xl:  2.8rem;
  --text-hero: clamp(2.8rem, 6.5vw, 5.5rem);

  /* Spacing */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s24: 6rem;
  --s32: 8rem;

  /* Radius */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-pill: 9999px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-float: 0 8px 40px rgba(0,0,0,0.65);
  --shadow-gold:  0 0 28px rgba(201,168,76,0.18);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 300ms ease;
  --t-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1280px;
  --nav-h:     72px;
}

/* ── 2. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
address { font-style: normal; }

/* ── 3. UTILITIES ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--s6);
}
@media (min-width: 1024px) { .container { padding-inline: var(--s12); } }

.section-header { text-align: center; margin-bottom: var(--s12); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: var(--s4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: var(--s3);
}
@media (min-width: 768px) { .section-title { font-size: var(--text-3xl); } }

.section-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-md);
  font-weight: 300;
}

/* Scroll-animate */
[data-animate] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-animate="slide-right"] { transform: translateX(-36px); }
[data-animate="slide-left"]  { transform: translateX(36px); }
[data-animate].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate="slide-right"],
  [data-animate="slide-left"] { opacity: 1; transform: none; transition: none; }
}

/* ── 4. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.72em 1.7em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), box-shadow var(--t-base),
              transform var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.97); }

.btn--gold {
  background: var(--gold-main);
  color: #0D0D0D;
  border-color: var(--gold-main);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(240,237,230,0.30);
}
.btn--ghost:hover {
  border-color: var(--gold-border-strong);
  color: var(--gold-light);
}

.btn--outline-gold {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-border);
}
.btn--outline-gold:hover {
  background: var(--gold-subtle);
  border-color: var(--gold-border-strong);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background: #1ebe5a;
  box-shadow: 0 0 20px rgba(37,211,102,0.28);
}

.btn--lg   { padding: 0.88em 2.1em; font-size: var(--text-base); }
.btn--full { width: 100%; justify-content: center; }
.btn svg   { width: 17px; height: 17px; flex-shrink: 0; }

/* ── 5. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav-h);
  z-index: 900;
  transition: background var(--t-base), border-color var(--t-base), backdrop-filter var(--t-base);
}
.navbar--scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--gold-border);
}
.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s6);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--s6);
}
@media (min-width: 1024px) { .navbar__inner { padding-inline: var(--s12); } }

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-shrink: 0;
}
.navbar__logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.logo-mark {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: 0.04em;
}
.logo-text {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: none;
}
@media (min-width: 640px) { .logo-text { display: block; } }

.navbar__links {
  display: none;
  align-items: center;
  gap: var(--s6);
  flex: 1;
  justify-content: center;
}
@media (min-width: 900px) { .navbar__links { display: flex; } }

.navbar__links a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold-main);
  transform: scaleX(0);
  transition: transform var(--t-base);
  transform-origin: left;
}
.navbar__links a:hover { color: var(--text-primary); }
.navbar__links a:hover::after { transform: scaleX(1); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.lang-switcher a {
  display: block;
  padding: 4px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.lang-switcher a:hover { color: var(--text-primary); }
.lang-switcher a.active {
  color: var(--gold-light);
  background: var(--gold-subtle);
}

.navbar__cta { display: none; }
@media (min-width: 640px) { .navbar__cta { display: inline-flex; } }

.navbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--r-md);
  transition: background var(--t-fast);
}
.navbar__burger:hover { background: var(--gold-subtle); }
.navbar__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 900px) { .navbar__burger { display: none; } }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.mobile-menu.is-open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  transition: color var(--t-fast);
}
.mobile-menu a:hover { color: var(--gold-light); }
.mobile-menu__lang { display: flex; gap: var(--s4); margin-top: var(--s4); }

/* ── 6. HERO ──────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__bg {
  position: absolute;
  inset: -25% 0;
  background-image: url('../foto/11_Closer%20view_05%2B.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.20) 60%),
    linear-gradient(to bottom, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.50) 100%);
}
.hero__content {
  position: relative;
  z-index: 10;
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--s6);
  padding-top: var(--nav-h);
}
@media (min-width: 1024px) { .hero__content { padding-inline: var(--s12); } }

.hero__eyebrow {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
  margin-bottom: var(--s4);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.3s;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 200;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: var(--s6);
  max-width: 16ch;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.9s ease forwards 0.5s;
}
.hero__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--gold-light);
}
.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: 400;
  color: rgba(240, 237, 230, 0.90);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.7s;
}
.hero__subtitle strong { color: var(--gold-light); font-weight: 600; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s ease forwards 0.9s;
}

@keyframes heroFadeUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions {
    animation: none; opacity: 1; transform: none;
  }
}

.hero__scroll {
  position: absolute;
  bottom: var(--s8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 1.2s;
}
.hero__scroll span {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold-main), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ── 7. STATS BAR ─────────────────────────────────────────── */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  padding: var(--s8) 0;
}
.stats-bar__inner {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--s6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8) var(--s6);
}
@media (min-width: 768px) { .stats-bar__inner { grid-template-columns: repeat(4, 1fr); gap: 0; } }
@media (min-width: 1024px) { .stats-bar__inner { padding-inline: var(--s12); } }

.stat { text-align: center; position: relative; padding: var(--s4) var(--s6); }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--gold-border);
  display: none;
}
@media (min-width: 768px) { .stat + .stat::before { display: block; } }

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: var(--s1);
}
.stat__unit {
  font-size: var(--text-sm);
  color: var(--gold-main);
  font-weight: 500;
  margin-left: 2px;
}
.stat__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: var(--s2);
  text-transform: uppercase;
}

/* ── 8. ABOUT ─────────────────────────────────────────────── */
.about {
  padding: var(--s24) 0;
  background: var(--bg-primary);
}
.about__grid {
  display: grid;
  gap: var(--s12);
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1fr; gap: var(--s16); align-items: start; }
}
.about__lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  line-height: 1.5;
  margin-bottom: var(--s6);
}
.about__text p {
  color: var(--text-secondary);
  margin-bottom: var(--s4);
  line-height: 1.75;
  font-weight: 300;
}
.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s6);
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-main);
  background: var(--gold-subtle);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.tag:hover { border-color: var(--gold-border-strong); background: rgba(201,168,76,0.18); }

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: var(--s6);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.feature-card:hover { border-color: var(--gold-border-strong); box-shadow: var(--shadow-gold); }
.feature-card__icon {
  width: 40px; height: 40px;
  background: var(--gold-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s4);
}
.feature-card__icon svg {
  width: 20px; height: 20px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin-bottom: var(--s2);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* ── 9. DISTRICT SECTION ──────────────────────────────────── */
.district {
  padding: 0;
  overflow: hidden;
  background: var(--bg-secondary);
}
.district__inner {
  display: grid;
}
@media (min-width: 900px) {
  .district__inner { grid-template-columns: 1fr 1fr; min-height: 520px; }
}
.district__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
@media (min-width: 900px) {
  .district__image { aspect-ratio: unset; height: 100%; min-height: 520px; }
}
.district__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s12) var(--s8);
  background: var(--bg-secondary);
}
@media (min-width: 1024px) { .district__content { padding: var(--s16) var(--s12); } }

.district__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-main);
  margin-bottom: var(--s4);
}
.district__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--gold-light);
  line-height: 1.15;
  margin-bottom: var(--s6);
}
@media (min-width: 768px) { .district__title { font-size: var(--text-3xl); } }

.district__text {
  color: var(--text-secondary);
  font-size: var(--text-md);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: var(--s6);
}
.district__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  margin-top: var(--s4);
}
.district__stat-item {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s6);
  text-align: center;
}
.district__stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.district__stat-item span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 10. GALLERY ──────────────────────────────────────────── */
.gallery {
  padding: var(--s24) 0;
  background: var(--bg-primary);
}
.gallery .section-header { padding-inline: var(--s6); }
@media (min-width: 1024px) { .gallery .section-header { padding-inline: var(--s12); } }

/* 4-column grid, no row spans — clean pattern, zero gaps for 12 photos:
   Row 1: [photo 1 wide×2] [photo 2] [photo 3]
   Row 2: [photo 4] [photo 5] [photo 6 wide×2]
   Row 3: [photo 7] [photo 8 wide×2] [photo 9]
   Row 4: [photo 10 wide×2] [photo 11] [photo 12]         */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 3px;
}
@media (min-width: 640px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
}
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 280px; }
  .gallery__item:nth-child(1)  { grid-column: span 2; }
  .gallery__item:nth-child(6)  { grid-column: span 2; }
  .gallery__item:nth-child(8)  { grid-column: span 2; }
  .gallery__item:nth-child(10) { grid-column: span 2; }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
}
.gallery__item:focus-visible { outline: 2px solid var(--gold-main); outline-offset: 2px; }

.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.gallery__item:hover .gallery__img { transform: scale(1.06); }

.gallery__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s3) var(--s4);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(240,237,230,0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.gallery__item:hover .gallery__caption { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbFade 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }

.lightbox__img-wrap {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: var(--r-md);
  animation: lbZoom 0.25s ease;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes lbZoom { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox__img--loading { opacity: 0.35; }

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(201,168,76,0.25); border-color: var(--gold-border-strong); }
.lightbox__close { top: var(--s4); right: var(--s4); }
.lightbox__prev  { left: var(--s4);  top: 50%; transform: translateY(-50%); font-size: 28px; }
.lightbox__next  { right: var(--s4); top: 50%; transform: translateY(-50%); font-size: 28px; }
.lightbox__counter {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ── 11. LOCATION & MAP ───────────────────────────────────── */
.location { padding: var(--s24) 0; background: var(--bg-secondary); }

.location__layout { display: grid; gap: var(--s12); }
@media (min-width: 900px) {
  .location__layout { grid-template-columns: 380px 1fr; gap: var(--s12); align-items: start; }
}
@media (min-width: 1200px) {
  .location__layout { grid-template-columns: 420px 1fr; }
}

.location__address {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  margin-bottom: var(--s6);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
  font-weight: 300;
}
.location__address svg {
  width: 18px; height: 18px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.location__distances { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s8); }
.location__distances li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.location__distances li:last-child { border-bottom: none; }
.dist-label { color: var(--text-secondary); font-size: var(--text-sm); font-weight: 300; }
.dist-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

/* Navigation buttons */
.nav-btns {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.nav-btns-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.03em;
  transition: border-color var(--t-base), background var(--t-base), transform var(--t-fast);
  text-decoration: none;
}
.nav-btn:hover {
  border-color: var(--gold-border-strong);
  background: var(--gold-subtle);
  transform: translateX(4px);
  color: var(--gold-light);
}
.nav-btn__icon {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}
.nav-btn__icon--google { background: #4285F4; }
.nav-btn__icon--apple  { background: #111; border: 1px solid rgba(255,255,255,0.15); }
.nav-btn__icon--waze   { background: #33CCFF; }
.nav-btn__icon svg,
.nav-btn__icon img { width: 18px; height: 18px; }
.nav-btn__text { flex: 1; }
.nav-btn__arrow { color: var(--text-muted); font-size: 14px; }

/* Map container — taller for premium feel */
.location__map-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-float);
}
.map {
  height: 560px;
  width: 100%;
  background: var(--bg-card);
}
@media (min-width: 640px) { .map { height: 620px; } }
@media (min-width: 900px) { .map { height: 680px; } }

/* Leaflet dark theme overrides */
.leaflet-container { background: #1a1a1a !important; }
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-radius: var(--r-md) !important;
  border: 1px solid var(--gold-border) !important;
  box-shadow: var(--shadow-float) !important;
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}
.leaflet-popup-tip { background: var(--bg-card) !important; }
.leaflet-popup-content { margin: 10px 14px !important; line-height: 1.6 !important; }
.leaflet-popup-content strong { color: var(--gold-light) !important; }
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--gold-border) !important;
  font-size: 16px !important;
  width: 32px !important; height: 32px !important;
  line-height: 30px !important;
}
.leaflet-control-zoom a:hover {
  background: var(--bg-secondary) !important;
  color: var(--gold-light) !important;
}
.leaflet-attribution-flag { display: none !important; }

.map-pin {
  width: 40px; height: 52px;
  filter: drop-shadow(0 4px 14px rgba(201,168,76,0.55));
}

/* ── 12. CONTACT ──────────────────────────────────────────── */
.contact { padding: var(--s24) 0; background: var(--bg-primary); }
.contact__layout { display: grid; gap: var(--s10); }
@media (min-width: 900px) {
  .contact__layout { grid-template-columns: 0.62fr 1.38fr; gap: var(--s12); align-items: stretch; }
}

/* Agent card — stretches to match right column height; object-fit:cover crops, not distorts */
.agent-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.agent-card__photo-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
  overflow: hidden;
  background: var(--bg-card);
}
@media (max-width: 899px) {
  .agent-card__photo-wrap { flex: none; aspect-ratio: 3/4; }
}
.agent-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  display: block;
}
.agent-card:hover .agent-card__photo { transform: scale(1.04); }
.agent-card__overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--s8) var(--s6) var(--s6);
  background: linear-gradient(to top, rgba(13,13,13,0.96) 0%, rgba(13,13,13,0.65) 55%, transparent 100%);
}
.agent-card__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  margin-bottom: var(--s1);
  line-height: 1.2;
}
.agent-card__role {
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Contact methods */
.contact__methods { display: flex; flex-direction: column; gap: var(--s3); }

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color var(--t-base), background var(--t-base),
              transform var(--t-fast), box-shadow var(--t-base);
}
.contact-method:hover {
  transform: translateX(5px);
  border-color: var(--gold-border-strong);
  background: var(--gold-subtle);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.contact-method__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-method--call .contact-method__icon     { background: var(--gold-main); }
.contact-method--whatsapp .contact-method__icon { background: #25D366; }
.contact-method--email .contact-method__icon    { background: var(--bg-secondary); border: 1px solid var(--gold-border); }
.contact-method__icon svg { width: 24px; height: 24px; }
.contact-method--call .contact-method__icon svg     { stroke: #0D0D0D; fill: none; }
.contact-method--whatsapp .contact-method__icon svg { fill: #fff; }
.contact-method--email .contact-method__icon svg    { stroke: var(--gold-main); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-method__content { flex: 1; min-width: 0; }
.contact-method__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-method__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  white-space: nowrap;
}
.contact-method__arrow {
  font-size: 24px;
  color: var(--text-muted);
  transition: color var(--t-fast), transform var(--t-fast);
  flex-shrink: 0;
}
.contact-method:hover .contact-method__arrow { color: var(--gold-light); transform: translateX(3px); }

/* Office compact block */
.office-compact {
  margin-top: var(--s2);
  padding: var(--s5) var(--s5);
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.office-compact__row {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
}
.office-compact__row svg {
  width: 17px; height: 17px;
  stroke: var(--gold-main);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 3px;
}
.office-compact__row > div { display: flex; flex-direction: column; gap: 1px; }
.office-compact__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ── 13. FOOTER ───────────────────────────────────────────── */
.footer {
  background: #080808;
  border-top: 1px solid var(--gold-border);
  padding: var(--s12) 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer__logo { height: 36px; width: auto; object-fit: contain; }
.footer__brand p { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--s2); letter-spacing: 0.08em; text-transform: uppercase; }
.footer__legal p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.8; }
.footer__dev { display: flex; flex-direction: column; gap: var(--s1); align-items: center; }
@media (min-width: 768px) { .footer__dev { align-items: flex-end; } }
.footer__dev p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.8; }
.footer__dev a { color: var(--gold-main); transition: color var(--t-fast); }
.footer__dev a:hover { color: var(--gold-light); }

/* ── 14. COOKIE BANNER ────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: var(--s6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: var(--s6);
  padding: var(--s4) var(--s6);
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  border-radius: var(--r-pill);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  max-width: min(700px, calc(100vw - 2rem));
  width: max-content;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.cookie-banner.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}
.cookie-banner__text {
  font-size: var(--text-xs);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}
.cookie-banner__btn {
  flex-shrink: 0;
  padding: 0.55em 1.5em;
  border-radius: var(--r-pill);
  background: var(--gold-main);
  color: #0D0D0D;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--t-fast);
  white-space: nowrap;
}
.cookie-banner__btn:hover { background: var(--gold-light); }

@media (max-width: 599px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    border-radius: var(--r-lg);
    bottom: calc(72px + var(--s3));
  }
  .cookie-banner__btn { text-align: center; }
}

/* ── 15. MOBILE STICKY CTA BAR ────────────────────────────── */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 850;
  padding: var(--s3) var(--s4);
  padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--gold-border);
  gap: var(--s3);
}
@media (max-width: 899px) { .mobile-cta-bar { display: flex; } }

.mobile-cta-bar__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.85em 1em;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-base), opacity var(--t-fast);
}
.mobile-cta-bar__btn:active { transform: scale(0.96); opacity: 0.85; }
.mobile-cta-bar__btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.mobile-cta-bar__btn--call {
  background: var(--gold-main);
  color: #0D0D0D;
}
.mobile-cta-bar__btn--call:hover { background: var(--gold-light); box-shadow: var(--shadow-gold); }

.mobile-cta-bar__btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.mobile-cta-bar__btn--whatsapp:hover { background: #1ebe5a; box-shadow: 0 0 20px rgba(37,211,102,0.3); }

/* ── 15. MOBILE RESPONSIVE ────────────────────────────────── */

/* Add bottom clearance for sticky CTA bar on mobile */
@media (max-width: 899px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: var(--s12); }
}

/* ── Small mobile (< 480px) ── */
@media (max-width: 479px) {
  /* Hero */
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero__subtitle { font-size: var(--text-base); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; width: 100%; }

  /* About */
  .features-grid { grid-template-columns: 1fr; }

  /* Gallery — 2 col even on small phones */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }

  /* Lightbox */
  .lightbox__img-wrap { max-width: calc(100vw - 16px); }
  .lightbox__prev { left: 6px; }
  .lightbox__next { right: 6px; }

  /* District */
  .district__stats { grid-template-columns: 1fr 1fr; }

  /* Contact methods */
  .contact-method__value { font-size: var(--text-md); }

  /* Location map */
  .map { height: 320px; }
}

/* ── Mid mobile (480–767px) ── */
@media (min-width: 480px) and (max-width: 767px) {
  .gallery__grid { grid-auto-rows: 200px; }
  .map { height: 380px; }
}

/* ── All mobile (< 768px) ── */
@media (max-width: 767px) {
  /* Tighter section spacing */
  .about   { padding: var(--s16) 0; }
  .gallery { padding: var(--s16) 0; }
  .location { padding: var(--s16) 0; }
  .contact { padding: var(--s16) 0; }

  /* Stats bar — tighter */
  .stats-bar__inner { gap: var(--s4) var(--s4); }
  .stat { padding: var(--s3) var(--s4); }

  /* Nav bar height on mobile */
  :root { --nav-h: 60px; }

  /* Mobile menu — bigger lang switcher links */
  .mobile-menu__lang a {
    padding: 6px 12px;
    font-size: var(--text-sm);
    border-radius: var(--r-sm);
    border: 1px solid var(--gold-border);
  }
  .mobile-menu__lang a.active {
    background: var(--gold-subtle);
    border-color: var(--gold-border-strong);
    color: var(--gold-light);
  }

  /* Section headers */
  .section-header { margin-bottom: var(--s8); }

  /* Contact layout — single column */
  .contact__layout { gap: var(--s8); }
  .agent-card__photo-wrap { aspect-ratio: 3/4; }

  /* Nav btns — touch targets */
  .nav-btn { padding: var(--s4) var(--s4); min-height: 52px; }
  .nav-btn__icon { width: 40px; height: 40px; }
}

/* ── Tablet / mid (768–899px) ── */
@media (min-width: 768px) and (max-width: 899px) {
  .contact__layout { grid-template-columns: 1fr 1.3fr; gap: var(--s8); align-items: start; }
  .map { height: 480px; }
}
