/* =============================================
   ELYSIAN ESTATE - THE SOVEREIGN GALLERY
   Design System - Main CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,300;1,6..72,400;1,6..72,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* === DESIGN TOKENS === */
:root {
  --primary:       #0A192F;
  --gold:          #C5A059;
  --gold-light:    #e9c176;
  --gold-dim:      rgba(197, 160, 89, 0.3);
  --white:         #FFFFFF;
  --surface:       #F8F9FA;
  --surface-low:   #F3F4F5;
  --surface-card:  #EDEEEF;
  --outline:       rgba(117, 119, 126, 0.15);
  --text-primary:  #0A192F;
  --text-muted:    #44474D;
  --text-light:    rgba(10, 25, 47, 0.55);
  --shadow-navy:   0px 20px 50px rgba(10, 25, 47, 0.06);
  --shadow-hover:  0px 30px 70px rgba(10, 25, 47, 0.14);
  --radius-card:   12px;
  --radius-btn:    8px;
  --nav-height:    80px;
  --transition:    all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Manrope', sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Newsreader', serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-family: 'Manrope', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
p  { font-size: 1rem; line-height: 1.75; color: var(--text-muted); }
.text-gold { color: var(--gold); }
.text-primary { color: var(--primary); }
.label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* === LAYOUT UTILITIES === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section    { padding: 100px 0; }
.section-alt { background-color: var(--surface); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }   .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }   .mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }     .mt-6 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.gap-1 { gap: 0.5rem; }  .gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }  .gap-4 { gap: 2rem; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-btn);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background-color: var(--gold);
  color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.35);
}
.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid rgba(197, 160, 89, 0.45);
}
.btn-outline:hover {
  border-color: var(--gold);
  background-color: rgba(197, 160, 89, 0.07);
  transform: translateY(-2px);
}
.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  padding-left: 0;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  letter-spacing: 0.06em;
}
.btn-ghost:hover { color: var(--gold); padding-left: 0.4rem; }
.btn-icon { display: inline-flex; align-items: center; gap: 0.5rem; }
.btn .arrow { transition: transform 0.3s ease; }
.btn:hover .arrow { transform: translateX(6px); }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10, 25, 47, 0.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: 1.5rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: rgba(10, 25, 47, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Newsreader', serif;
  font-size: 2.2rem;
  color: var(--white);
  opacity: 0.8;
  transition: all 0.25s ease;
}
.mobile-menu a:hover { opacity: 1; color: var(--gold); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--primary);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 25, 47, 0.92) 40%,
    rgba(10, 25, 47, 0.25) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 2rem 100px;
  max-width: 1280px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-tag::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}
.hero h1 { color: var(--white); max-width: 700px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: rgba(255,255,255,0.65); max-width: 540px; font-size: 1.1rem; margin-top: 1.5rem; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 40px; right: 2rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll span {
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 1; height: 50px; }
  50% { opacity: 0.4; height: 30px; }
}

/* === SECTION HEADER === */
.section-header { margin-bottom: 4rem; }
.section-header.center { text-align: center; }
.section-header .label { display: block; margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 1.25rem; }
.section-header p { max-width: 560px; }
.section-header.center p { margin: auto; }
.divider-gold {
  width: 48px; height: 2px;
  background: var(--gold);
  margin-top: 1.5rem;
}
.section-header.center .divider-gold { margin: 1.5rem auto 0; }

/* === PROPERTY CARDS === */
.property-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-navy);
  transition: var(--transition);
  position: relative;
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}
.card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.property-card:hover .card-image img { transform: scale(1.07); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,47,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.property-card:hover .card-overlay { opacity: 1; }
.card-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gold);
  color: var(--primary);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}
.card-body {
  padding: 1.5rem;
}
.card-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.card-location svg { width: 14px; height: 14px; opacity: 0.7; }
.card-title {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.card-specs {
  display: flex;
  gap: 1.25rem;
  border-top: 1px solid var(--outline);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}
.spec {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.spec-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }
.spec-val { font-size: 0.9rem; font-weight: 700; color: var(--primary); }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-family: 'Newsreader', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
}
.card-price small { font-size: 0.75rem; font-family: 'Manrope', sans-serif; color: var(--text-light); display: block; margin-bottom: 0.1rem; }

/* === STATS STRIP === */
.stats-strip {
  background: var(--primary);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-item {}
.stat-number {
  font-family: 'Newsreader', serif;
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.stat-number span { color: var(--gold); }
.stat-label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 0.6rem; }

/* === TESTIMONIALS === */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-navy);
  border: 1px solid var(--outline);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Newsreader', serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 1.5rem;
  left: 2rem;
}
.testimonial-text { font-style: italic; font-size: 1rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.5rem; position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--surface-card);
  overflow: hidden;
  flex-shrink: 0;
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-name { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.author-title { font-size: 0.78rem; color: var(--text-light); }

/* === TEAM CARD === */
.team-card { text-align: center; }
.team-portrait {
  width: 100%; aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
  transition: var(--transition);
  filter: grayscale(20%);
}
.team-card:hover .team-portrait { filter: grayscale(0%); transform: scale(1.02); }
.team-name { font-family: 'Newsreader', serif; font-size: 1.3rem; font-weight: 500; color: var(--primary); margin-bottom: 0.25rem; }
.team-role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.team-bio { font-size: 0.9rem; color: var(--text-muted); }

/* === SERVICE CARD === */
.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--outline);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
  background: var(--surface-low);
  border-color: rgba(197, 160, 89, 0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15), rgba(197, 160, 89, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 24px; height: 24px; color: var(--gold); }
.service-title { font-family: 'Newsreader', serif; font-size: 1.3rem; font-weight: 500; color: var(--primary); margin-bottom: 0.75rem; }
.service-desc { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; }

/* === PROPERTY DETAIL PAGE === */
.property-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background-color: var(--primary);
  overflow: hidden;
}
.property-hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.property-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,47,0.9) 0%, rgba(10,25,47,0.3) 100%);
}
.property-hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.property-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.property-hero-title {
  font-family: 'Newsreader', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.property-hero-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}
.property-content { padding: 80px 0; }
.property-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.property-description { font-size: 1.05rem; line-height: 1.85; color: var(--text-muted); }
.property-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}
.property-spec-item {
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-btn);
}
.property-spec-item .spec-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); }
.property-spec-item .spec-val { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-top: 0.25rem; }
.property-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-navy);
  border: 1px solid var(--outline);
}
.sidebar-price-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.25rem; }
.sidebar-price { font-family: 'Newsreader', serif; font-size: 2.5rem; font-weight: 400; color: var(--primary); margin-bottom: 0.5rem; }
.sidebar-price-note { font-size: 0.8rem; color: var(--text-light); margin-bottom: 2rem; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.9rem 0;
  border: none;
  border-bottom: 1.5px solid rgba(117, 119, 126, 0.3);
  background: transparent;
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  outline: none;
  transition: border-color 0.3s ease;
  border-radius: 0;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus { border-bottom-color: var(--gold); }
.contact-form label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.contact-form textarea { height: 90px; resize: none; }

/* === IMAGE GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  height: 520px;
}
.gallery-main { grid-row: 1 / 3; }
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-btn);
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-more {
  position: relative;
}
.gallery-more::after {
  content: 'Ver todas las fotos';
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 47, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  border-radius: var(--radius-btn);
}

/* === AMENITIES LIST === */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}
.amenity-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === CATALOG PAGE === */
.catalog-hero {
  padding: 160px 0 80px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.catalog-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.1) 0%, transparent 70%);
}
.catalog-hero h1 { color: var(--white); }
.catalog-hero p { color: rgba(255,255,255,0.6); }
.catalog-filters {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hover);
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}
.filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}
.filter-group label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); display: block; margin-bottom: 0.4rem; }
.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-btn);
  font-family: 'Manrope', sans-serif;
  font-size: 0.9rem;
  color: var(--primary);
  background: var(--surface);
  outline: none;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--gold); }
.catalog-results { padding: 80px 0; }
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.results-count { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.sort-select {
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-btn);
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  color: var(--primary);
  background: var(--white);
  outline: none;
  cursor: pointer;
}
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* === CTA SECTION === */
.cta-section {
  background: var(--primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, transparent 70%);
}
.cta-section h2 { color: var(--white); position: relative; }
.cta-section h2 em { font-style: italic; color: var(--gold); }
.cta-section p { color: rgba(255,255,255,0.6); position: relative; max-width: 520px; margin: 1.5rem auto 2.5rem; }
.cta-section .btn { position: relative; }

/* === FOOTER === */
.footer {
  background: #060E1A;
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand-logo {
  font-family: 'Newsreader', serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}
.footer-brand-logo span { color: var(--gold); }
.footer-brand-desc { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.4); margin-bottom: 2rem; }
.footer-social { display: flex; gap: 1rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.social-link svg { width: 16px; height: 16px; }
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 0.88rem; color: rgba(255,255,255,0.45); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copyright { font-size: 0.78rem; color: rgba(255,255,255,0.25); letter-spacing: 0.06em; }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.25); transition: color 0.25s ease; }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* === BREADCRUMB === */
.breadcrumb {
  background: var(--primary);
  padding: calc(var(--nav-height) + 1.5rem) 0 1.5rem;
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.breadcrumb a { color: rgba(255,255,255,0.45); transition: color 0.25s ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb span:last-child { color: var(--gold); }

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 26, 0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: var(--radius-btn); }
.lightbox-close {
  position: absolute;
  top: -3rem; right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* === PAGE HEADER (for inner pages) === */
.page-header {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.page-header h1 { color: var(--white); }
.page-header p { color: rgba(255,255,255,0.6); max-width: 600px; }

/* === SCROLL ANIMATIONS === */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* === COUNTER ANIMATION === */
.counter { font-variant-numeric: tabular-nums; }

/* === PROPERTY MAP === */
.map-placeholder {
  width: 100%;
  height: 350px;
  background: var(--surface);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-light);
  border: 1px solid var(--outline);
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surface-card) 0%, var(--surface) 100%);
}
.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}
.map-pin svg { width: 40px; height: 40px; color: var(--gold); }

/* === TIMELINE (About page) === */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.3rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.3);
}
.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.timeline-title { font-family: 'Newsreader', serif; font-size: 1.1rem; font-weight: 500; color: var(--primary); margin-bottom: 0.4rem; }
.timeline-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* === BACK TO TOP === */
#back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(197, 160, 89, 0.4);
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: var(--gold-light); transform: translateY(-3px); }
#back-top svg { width: 18px; height: 18px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .property-grid { grid-template-columns: 1fr; }
  .property-sidebar { position: static; }
  .gallery-grid { height: 380px; }
}
@media (max-width: 768px) {
  :root { --nav-height: 70px; }
  .container { padding: 0 1.25rem; }
  .section { padding: 70px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .filters-row { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .gallery-grid { grid-template-columns: 1fr; height: auto; gap: 0.5rem; }
  .gallery-main { grid-row: auto; }
  .gallery-item { height: 220px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .property-specs-grid { grid-template-columns: 1fr 1fr; }
}
