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

:root {
  --gold: #C6A34E;
  --gold-light: #D4B86A;
  --gold-pale: #f5ecd7;
  --dark: #1a1a1a;
  --charcoal: #2d2d2d;
  --text: #333;
  --text-light: #666;
  --bg: #fafaf7;
  --white: #fff;
  --stone: #8B7D6B;
  --stone-light: #a89880;
  --green: #4a7c59;
  --green-dark: #3a6349;
  --ai-gold: #d4a017;
  --ai-gold-bg: rgba(212, 160, 23, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.55) 100%
  );
}

.hero-logo {
  position: absolute;
  top: 24px;
  left: 24px;
  height: 56px;
  opacity: 0.92;
  filter: brightness(10);
}

.hero-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(198, 163, 78, 0.92);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 32px;
  color: var(--white);
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 300;
  opacity: 0.92;
  margin-bottom: 20px;
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
}

.hero-price .amount {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.hero-price .label {
  font-size: 0.8rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── SPECS BAR ── */
.specs-bar {
  background: var(--charcoal);
  color: var(--white);
  padding: 0;
  position: relative;
  z-index: 2;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1100px;
  margin: 0 auto;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.spec-item:last-child { border-right: none; }

.spec-item i { color: var(--gold); width: 22px; height: 22px; }

.spec-value {
  font-weight: 600;
  font-size: 1.05rem;
}

.spec-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* ── SECTIONS ── */
section { padding: 72px 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-label i { width: 16px; height: 16px; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* ── GALLERY ── */
.gallery-section { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #e8e4dc;
}

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

/* AI Enhanced badge */
.ai-enhanced-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30,30,30,0.75);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(212,160,23,0.4);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-enhanced-btn .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ai-gold);
  display: inline-block;
}

.gallery-item:hover .ai-enhanced-btn { opacity: 1; }

@media (hover: none) {
  .ai-enhanced-btn { opacity: 1; }
  .gallery-caption { opacity: 1; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active { display: flex; }

.lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 8px;
  z-index: 1001;
}

.lb-close:hover { opacity: 1; }

.lb-img-wrap {
  position: relative;
  max-width: 90vw;
  max-height: 80vh;
}

.lb-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lb-caption {
  color: var(--white);
  margin-top: 16px;
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lb-nav:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.lb-compare {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,30,0.8);
  backdrop-filter: blur(8px);
  color: var(--white);
  border: 1px solid rgba(212,160,23,0.5);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

.lb-compare:hover { background: rgba(50,50,50,0.9); }
.lb-compare .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ai-gold);
}

.lb-compare[data-showing="original"] .dot { background: #888; }

/* Lightbox label — shows "AI Enhanced" or "Original listing photo" */
.lb-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: none;
}

.lb-label-enhanced {
  background: rgba(212,160,23,0.9);
  color: var(--white);
}

.lb-label-original {
  background: rgba(100,100,100,0.85);
  color: var(--white);
}

/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.feature-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon i { color: var(--gold); width: 22px; height: 22px; }

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── FLOOR PLAN ── */
.floor-plan-section { background: var(--white); }

.floor-plan-wrap {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
  text-align: center;
}

.floor-plan-wrap img {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  display: block;
}

.floor-plan-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(0,0,0,0.06);
}

.fp-spec {
  background: var(--white);
  padding: 16px 20px;
  text-align: center;
}

.fp-spec .value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
}

.fp-spec .label {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ── LOCATION ── */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
  align-items: start;
}

.location-highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loc-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.loc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-icon i { color: var(--gold); width: 20px; height: 20px; }

.loc-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.loc-item p {
  font-size: 0.84rem;
  color: var(--text-light);
}

.location-neighborhood img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── INVESTMENT ── */
.invest-section { background: var(--charcoal); color: var(--white); }
.invest-section .section-label { color: var(--gold-light); }
.invest-section .section-title { color: var(--white); }

.invest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.invest-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.invest-card .big-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.invest-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.invest-card p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ── URGENCY BANNER ── */
.urgency-banner {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  text-align: center;
  padding: 28px 24px;
}

.urgency-banner h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.urgency-banner p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ── CTA ── */
.cta-section { text-align: center; }
.cta-section .section-title { margin-bottom: 8px; }
.cta-section .section-desc { margin: 0 auto; }

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

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

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

.btn i { width: 18px; height: 18px; }

.cta-agent {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  padding: 20px 28px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-agent-logo {
  height: 48px;
  flex-shrink: 0;
}

.cta-agent-info { text-align: left; }

.cta-agent-info .name {
  font-weight: 600;
  font-size: 0.95rem;
}

.cta-agent-info .title {
  font-size: 0.8rem;
  color: var(--text-light);
}

.cta-agent-info .phone {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}

/* ── AI DISCLOSURE ── */
.ai-disclosure {
  background: var(--ai-gold-bg);
  border: 1px solid rgba(212,160,23,0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 36px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.5;
}

.ai-disclosure i { color: var(--ai-gold); flex-shrink: 0; margin-top: 2px; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.78rem;
  color: var(--text-light);
  border-top: 1px solid rgba(0,0,0,0.06);
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-credit {
  margin-top: 8px;
  font-size: 0.72rem;
  opacity: 0.6;
}

/* Lightbox icon sizing */
.lb-close i { width: 28px; height: 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { height: 70vh; min-height: 400px; }
  .hero-content { padding: 32px 20px; }
  .hero-logo { height: 40px; }

  .specs-grid { grid-template-columns: repeat(3, 1fr); }
  .spec-item:nth-child(4), .spec-item:nth-child(5) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  section { padding: 48px 0; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 2; }

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

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

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

  .lb-nav { width: 36px; height: 36px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
  .features-grid { grid-template-columns: 1fr; }
  .invest-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; align-items: center; }
}
