/* ─── TOKENS ─────────────────────────────────────────────────── */
:root {
  --sand:        #f5f0e8;
  --sand-dark:   #ede5d4;
  --terra:       #c4875a;
  --terra-dark:  #a3653a;
  --green:       #3d5a47;
  --green-light: #5a7a62;
  --ink:         #1a1a16;
  --muted:       #6b6456;
  --white:       #ffffff;
  --radius:      4px;
  --max-w:       1200px;
  --font-display:'Cormorant Garamond', Georgia, serif;
  --font-body:   'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 135, 90, 0.15);
  transition: padding 0.3s ease;
}
nav.scrolled { padding: 12px 40px; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--terra); }
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--terra);
  color: var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta:hover { background: var(--terra-dark); transform: translateY(-1px); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  margin-top: 65px;
  position: relative;
  height: 72vh;
  min-height: 520px;
  overflow: hidden;
  cursor: pointer;
}
.hero-slides { display: flex; height: 100%; transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.hero-slide { flex-shrink: 0; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(26,26,22,0.55) 100%);
  pointer-events: none;
}
.hero-info {
  position: absolute;
  bottom: 36px;
  left: 48px;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: var(--terra);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: #e8c9a8; }
.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-top: 6px;
}
.hero-location svg { width: 14px; height: 14px; }
.hero-controls {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  gap: 8px;
}
.hero-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.hero-btn:hover { background: rgba(255,255,255,0.3); border-color: white; }
.hero-counter {
  position: absolute;
  top: 20px;
  right: 48px;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.25);
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; overflow: hidden; }
.main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  padding: 56px 0 80px;
}
.main-grid > * { min-width: 0; }

/* ─── LEFT COLUMN ────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--terra); }
.breadcrumb span { opacity: 0.5; }

.prop-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 8px;
}
.prop-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
}
.prop-name em { font-style: italic; }

/* Stats bar */
.stats-bar {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid rgba(196,135,90,0.25);
  border-radius: 8px;
  overflow: hidden;
  margin: 28px 0 32px;
  background: var(--white);
  max-width: 100%;
}
.stat {
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 20px;
  text-align: center;
  border-right: 1px solid rgba(196,135,90,0.2);
}
.stat:last-child { border-right: none; }
.stat-icon { font-size: 1.1rem; margin-bottom: 4px; }
.stat-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Description */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 500;
  margin-bottom: 12px;
}
.prop-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 100%;
}

/* Photo strip */
.photo-strip { margin-top: 40px; }
.strip-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
}
.strip-title em { font-style: italic; }
.strip-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--terra) var(--sand-dark);
  max-width: 100%;
}
.strip-scroll:active { cursor: grabbing; }
.strip-img {
  flex-shrink: 0;
  width: 220px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.strip-img:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* Features */
.features { margin-top: 48px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
  max-width: 100%;
}
.feature-card {
  background: var(--white);
  border: 1px solid rgba(196,135,90,0.18);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--terra);
  box-shadow: 0 4px 16px rgba(196,135,90,0.12);
}
.feature-icon {
  width: 36px; height: 36px;
  background: var(--sand);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.feature-title { font-weight: 500; font-size: 0.9rem; margin-bottom: 3px; color: var(--ink); }
.feature-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }

/* Details table */
.details { margin-top: 48px; }
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(196,135,90,0.2);
  border: 1px solid rgba(196,135,90,0.2);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
  max-width: 100%;
}
.detail-row {
  background: var(--white);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-key { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; }
.detail-val { font-weight: 500; font-size: 0.9rem; color: var(--green); }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar { position: relative; min-width: 0; }
.sidebar-card {
  position: sticky;
  top: 85px;
  background: var(--white);
  border: 1px solid rgba(196,135,90,0.25);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  max-width: 100%;
}
.sidebar-top {
  background: var(--green);
  padding: 24px;
  color: var(--white);
  text-align: center;
}
.sidebar-badge {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.sidebar-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1;
}
.sidebar-price sup { font-size: 1rem; font-weight: 400; vertical-align: super; margin-right: 2px; }
.sidebar-period { font-size: 0.78rem; opacity: 0.7; margin-top: 4px; }
.sidebar-body { padding: 24px; }
.sidebar-note {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 12px;
  background: var(--sand);
  border-radius: 6px;
  border-left: 3px solid var(--terra);
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
.cta-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-bottom: 10px;
}
.cta-whatsapp:hover { background: #1eb85a; transform: translateY(-1px); }
.cta-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--green);
  padding: 13px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  width: 100%;
  border: 1.5px solid var(--green);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.cta-visit:hover { background: var(--green); color: var(--white); }
.sidebar-divider { height: 1px; background: rgba(196,135,90,0.18); margin: 20px 0; }
.sidebar-features { display: flex; flex-direction: column; gap: 10px; }
.sf-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}
.sf-row svg { flex-shrink: 0; color: var(--terra); }
.sidebar-map {
  margin-top: 20px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(196,135,90,0.2);
}
.sidebar-map iframe { width: 100%; height: 100%; border: none; }

/* ─── CTA SECTION ────────────────────────────────────────────── */
.cta-section {
  background: var(--green);
  color: var(--white);
  border-radius: 16px;
  padding: 60px 48px;
  margin: 0 0 80px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1.2;
}
.cta-section h2 em { font-style: italic; color: #a8c9b0; }
.cta-section p { font-size: 0.9rem; opacity: 0.7; margin-top: 8px; max-width: 420px; }
.cta-btns { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.btn-terra {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--terra);
  color: var(--white);
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer; width: 100%;
}
.btn-terra:hover { background: var(--terra-dark); transform: translateY(-1px); }
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer; width: 100%;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: white; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand span { color: var(--terra); }
.footer-tagline { font-size: 0.85rem; line-height: 1.6; max-width: 280px; }
.footer-h {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-address { margin-top: 10px; font-size: 0.8rem; opacity: 0.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}
.footer-galoper { color: var(--terra); font-weight: 500; }

/* ─── LIGHTBOX ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,8,0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 2rem;
  cursor: pointer; opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lb-prev, .lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ─── HAMBURGER BUTTON (hidden on desktop) ───────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU (hidden on desktop) ────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(12px);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.mobile-menu-links a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-menu-links a:hover { color: var(--terra); }
.mobile-menu-cta {
  background: var(--terra);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: background 0.2s;
}
.mobile-menu-cta:hover { background: var(--terra-dark); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-menu { display: flex; }

  /* Hero */
  .hero { height: 55vh; min-height: 360px; }
  .hero-info { left: 20px; bottom: 24px; }
  .hero-controls { right: 20px; bottom: 24px; }
  .hero-counter { right: 20px; }
  .hero-btn { width: 38px; height: 38px; }

  /* Layout */
  .container { padding: 0 16px; overflow: hidden; }
  .main-grid { grid-template-columns: 1fr; gap: 0; padding: 32px 0 48px; }
  .main-grid > * { min-width: 0; max-width: 100%; overflow: hidden; }
  .sidebar { order: -1; margin-bottom: 32px; }
  .sidebar-card { position: static; max-width: 100%; }

  /* Stats */
  .stats-bar { gap: 0; }
  .stat { flex: 1 1 calc(33.33% - 1px); min-width: 0; padding: 14px 8px; }
  .stat-val { font-size: 1.2rem; }
  .stat-label { font-size: 0.65rem; }

  /* Content */
  .features-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .prop-desc { max-width: 100%; }

  /* Photo strip */
  .photo-strip { overflow: hidden; }
  .strip-scroll { max-width: 100%; }
  .strip-img { width: 260px; height: 190px; }

  /* Sidebar content */
  .sidebar-body { padding: 20px; }
  .sf-row span { word-break: break-word; }
  .sidebar-map iframe { max-width: 100%; }

  /* CTA Section */
  .cta-section { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .cta-section p { max-width: 100%; }
  .cta-btns { min-width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Lightbox */
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
  .lightbox-img { max-width: 95vw; max-height: 80vh; }

}

@media (max-width: 480px) {
  /* Nav */
  nav { padding: 12px 16px; }
  .nav-logo { font-size: 1.3rem; }

  /* Hero */
  .hero { height: 45vh; min-height: 280px; margin-top: 56px; }
  .hero-title { font-size: 1.8rem; }
  .hero-info { left: 16px; bottom: 20px; }
  .hero-controls { right: 16px; bottom: 20px; gap: 6px; }
  .hero-counter { right: 16px; top: 14px; font-size: 0.72rem; }
  .hero-btn { width: 34px; height: 34px; }

  /* Stats */
  .stat { flex: 1 1 calc(33.33% - 1px); min-width: 0; padding: 10px 6px; }
  .stat-val { font-size: 1.1rem; }
  .stat-icon { font-size: 0.9rem; }
  .stat-label { font-size: 0.58rem; letter-spacing: 0.03em; }

  /* Sidebar */
  .sidebar-price { font-size: 2.2rem; }
  .sidebar-body { padding: 18px; }
  .sidebar-top { padding: 20px 18px; }

  /* Content */
  .prop-name { font-size: 1.7rem; }
  .prop-eyebrow { font-size: 0.7rem; }
  .prop-desc { font-size: 0.88rem; }
  .feature-card { padding: 16px; }
  .detail-row { padding: 12px 16px; }

  /* CTA Section */
  .cta-section { padding: 28px 20px; margin: 0 0 48px; border-radius: 12px; }
  .cta-section h2 { font-size: 1.4rem; }
  .cta-section p { font-size: 0.82rem; }

  /* Photo strip */
  .photo-strip { overflow: hidden; }
  .strip-img { width: 240px; height: 170px; }
  .strip-title { font-size: 1.3rem; }

  /* Footer */
  .footer-bottom { font-size: 0.72rem; }

  /* Lightbox */
  .lb-prev, .lb-next { width: 36px; height: 36px; }
  .lb-prev { left: 6px; }
  .lb-next { right: 6px; }
  .lightbox-close { top: 12px; right: 14px; font-size: 1.6rem; }
}
