/* ============================================================
   ULTRACASAS — DESIGN SYSTEM
   Palette: Navy #0A1628 | Gold #C9A84C | Bone #F8F6F1
            Mid-blue #1E3A5F | Light #E8E4DD | White #FFFFFF
   Type: Playfair Display (display) + Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy:     #0A1628;
  --navy-mid: #1E3A5F;
  --gold:     #C9A84C;
  --gold-lt:  #E8C96A;
  --bone:     #F8F6F1;
  --light:    #E8E4DD;
  --muted:    #9B9589;
  --white:    #FFFFFF;
  --danger:   #D94F3D;
  --success:  #2D9B6F;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(10,22,40,.08);
  --shadow-md:  0 4px 16px rgba(10,22,40,.12);
  --shadow-lg:  0 12px 40px rgba(10,22,40,.18);
  --shadow-xl:  0 24px 64px rgba(10,22,40,.24);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .45s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 99px; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; }
.display-xl  { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
.display-lg  { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
.display-md  { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 600; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.text-white  { color: var(--white); }
.text-navy   { color: var(--navy); }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ─── NAVBAR ────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}
#navbar.scrolled {
  background: rgba(10,22,40,.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}
#navbar.transparent { background: transparent; }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  color: var(--white);
}
.nav-logo span { color: var(--gold); }
.nav-logo-icon {
  width: 36px; height: 36px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}

.nav-menu { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-link.active { color: var(--gold); }

.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .88rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(201,168,76,.4); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.nav-hamburger span {
  width: 24px; height: 2px; background: var(--white);
  border-radius: 2px; transition: var(--transition);
  display: block;
}

/* ─── HERO ──────────────────────────────────────────────────── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--navy);
}
.hero-slides {
  position: absolute; inset: 0;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,.82) 0%,
    rgba(10,22,40,.55) 50%,
    rgba(30,58,95,.45) 100%
  );
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 120px 24px 60px;
  max-width: 860px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.2); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); font-size: .8rem; font-weight: 600;
  padding: 6px 16px; border-radius: 99px; margin-bottom: 24px;
  backdrop-filter: blur(8px);
  animation: fadeDown .6s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 20px;
  animation: fadeUp .7s .1s ease both;
}
.hero-title em { color: var(--gold); font-style: normal; }

.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.75);
  max-width: 560px; margin: 0 auto 40px;
  animation: fadeUp .7s .2s ease both;
}

/* ─── SEARCH BOX ────────────────────────────────────────────── */
.search-box {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-xl);
  animation: fadeUp .7s .35s ease both;
  text-align: left;
}
.search-tabs {
  display: flex; gap: 4px; margin-bottom: 20px;
  border-bottom: 1px solid var(--light); padding-bottom: 16px;
}
.search-tab {
  padding: 8px 20px; border-radius: var(--radius-sm);
  font-size: .88rem; font-weight: 600; color: var(--muted);
  transition: var(--transition); cursor: pointer;
}
.search-tab.active { background: var(--navy); color: var(--white); }
.search-tab:hover:not(.active) { background: var(--light); color: var(--navy); }

.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px; align-items: end;
}
.search-field { display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.search-field select,
.search-field input {
  height: 46px; border: 1.5px solid var(--light);
  border-radius: var(--radius-sm); padding: 0 14px;
  font-family: var(--font-body); font-size: .9rem; color: var(--navy);
  background: var(--white); transition: border-color var(--transition);
  outline: none; -webkit-appearance: none; appearance: none;
}
.search-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9589' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.search-field select:focus,
.search-field input:focus { border-color: var(--gold); }

.btn-search {
  height: 46px; padding: 0 28px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: .9rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition); white-space: nowrap;
}
.btn-search:hover { background: var(--gold-lt); transform: translateY(-1px); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 40px;
  animation: fadeUp .7s .5s ease both;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--white); }
.hero-stat-lbl { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.4));
}

/* ─── SECTION HEADING ───────────────────────────────────────── */
.section-head { margin-bottom: 48px; }
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold); margin-bottom: 12px;
}
.section-eyebrow::before {
  content: ''; width: 24px; height: 2px; background: var(--gold); border-radius: 1px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
.section-desc  { color: var(--muted); font-size: .95rem; margin-top: 10px; max-width: 480px; }

/* ─── PROPERTY CARDS ────────────────────────────────────────── */
.view-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.results-info { font-size: .88rem; color: var(--muted); }
.results-info strong { color: var(--navy); }

.view-toggles {
  display: flex; gap: 4px;
  background: var(--white); border-radius: var(--radius-sm);
  padding: 4px; box-shadow: var(--shadow-sm);
}
.view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--muted);
  transition: var(--transition); font-size: 1rem;
}
.view-btn.active,
.view-btn:hover { background: var(--navy); color: var(--white); }

/* GRID VIEW */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* LIST VIEW */
.properties-list { display: flex; flex-direction: column; gap: 20px; }
.properties-list .prop-card {
  display: grid; grid-template-columns: 320px 1fr;
  border-radius: var(--radius-md); overflow: hidden;
  height: 220px;
}
.properties-list .prop-card .card-img { height: 100%; }
.properties-list .prop-card .card-body { padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.properties-list .prop-card .card-title { font-size: 1.2rem; }
.properties-list .prop-card .card-desc  { display: block; -webkit-line-clamp: 2; }
.properties-list .prop-card .card-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.properties-list .prop-card .card-footer { border-top: none; padding: 0; }
.properties-list .prop-card .card-price-lbl { font-size: .78rem; }
.properties-list .prop-card .card-price { font-size: 1.4rem; }

/* MAP VIEW */
#map-view { display: none; gap: 0; }
#map-view.active { display: grid; grid-template-columns: 400px 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
#map-list-panel { background: var(--white); overflow-y: auto; max-height: 680px; }
#map-list-panel::-webkit-scrollbar { width: 4px; }
#map-list-panel::-webkit-scrollbar-thumb { background: var(--light); }
#google-map { height: 680px; }

.map-prop-item {
  display: flex; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--light); cursor: pointer;
  transition: background var(--transition);
}
.map-prop-item:hover, .map-prop-item.selected { background: var(--bone); }
.map-prop-item img { width: 80px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.map-prop-info { flex: 1; overflow: hidden; }
.map-prop-title { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.map-prop-zone  { font-size: .75rem; color: var(--muted); margin-bottom: 6px; }
.map-prop-price { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--navy); }
.map-prop-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; }

/* PROPERTY CARD */
.prop-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  animation: fadeUp .5s ease both;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-img {
  position: relative; height: 220px; overflow: hidden;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.prop-card:hover .card-img img { transform: scale(1.05); }

.card-badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.badge {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 10px; border-radius: 99px;
}
.badge-venta   { background: var(--navy); color: var(--white); }
.badge-renta   { background: var(--gold); color: var(--navy); }
.badge-preventa{ background: #6C5CE7; color: var(--white); }
.badge-destacado { background: var(--gold); color: var(--navy); }
.badge-tipo    { background: rgba(255,255,255,.92); color: var(--navy); backdrop-filter: blur(4px); }

.card-fav {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1rem;
  transition: var(--transition); cursor: pointer;
}
.card-fav:hover, .card-fav.active { background: var(--danger); color: var(--white); }

.card-body { padding: 20px 22px 16px; }
.card-location { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); margin-bottom: 8px; }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc  { font-size: .83rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }

.card-stats {
  display: flex; gap: 16px; margin-bottom: 16px;
  padding: 12px 0; border-top: 1px solid var(--light); border-bottom: 1px solid var(--light);
}
.card-stat { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.card-stat svg { flex-shrink: 0; }

.card-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.card-price-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.card-price span { font-size: .85rem; font-weight: 400; color: var(--muted); }

.btn-ver {
  height: 36px; padding: 0 16px;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-size: .82rem; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
  transition: var(--transition);
}
.btn-ver:hover { background: var(--gold); color: var(--navy); }

/* ─── FILTERS SIDEBAR ───────────────────────────────────────── */
.filters-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters-panel {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
  position: sticky; top: 88px;
}
.filters-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.filters-clear { font-size: .78rem; color: var(--gold); font-weight: 600; cursor: pointer; }
.filters-clear:hover { text-decoration: underline; }

.filter-group { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--light); }
.filter-group:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }

.filter-select {
  width: 100%; height: 42px; border: 1.5px solid var(--light);
  border-radius: var(--radius-sm); padding: 0 12px;
  font-family: var(--font-body); font-size: .88rem; color: var(--navy);
  background: var(--bone); outline: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9589' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--gold); }

.filter-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.filter-check {
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; cursor: pointer; padding: 4px 0;
}
.filter-check input { display: none; }
.check-box {
  width: 18px; height: 18px; border: 2px solid var(--light);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); flex-shrink: 0;
}
.filter-check input:checked + .check-box { background: var(--navy); border-color: var(--navy); }
.filter-check input:checked + .check-box::after { content: '✓'; color: white; font-size: .7rem; font-weight: 700; }

.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-input {
  height: 42px; border: 1.5px solid var(--light);
  border-radius: var(--radius-sm); padding: 0 10px;
  font-family: var(--font-body); font-size: .85rem; color: var(--navy);
  background: var(--bone); outline: none; width: 100%;
  transition: border-color var(--transition);
}
.range-input:focus { border-color: var(--gold); }

.btn-apply {
  width: 100%; height: 44px; background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem;
  margin-top: 4px; transition: var(--transition);
}
.btn-apply:hover { background: var(--gold); color: var(--navy); }

/* ─── SORT BAR ──────────────────────────────────────────────── */
.sort-bar {
  display: flex; align-items: center; gap: 8px;
}
.sort-label { font-size: .82rem; color: var(--muted); }
.sort-select {
  height: 36px; border: 1.5px solid var(--light);
  border-radius: var(--radius-sm); padding: 0 32px 0 12px;
  font-family: var(--font-body); font-size: .85rem; color: var(--navy);
  background: var(--white); outline: none; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239B9589' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  cursor: pointer;
}

/* ─── PAGINATION ────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 48px; }
.page-btn {
  min-width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .88rem; font-weight: 500; transition: var(--transition);
  background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm);
}
.page-btn:hover { background: var(--navy); color: var(--white); }
.page-btn.active { background: var(--navy); color: var(--white); font-weight: 700; }
.page-btn:disabled { opacity: .4; pointer-events: none; }

/* ─── FEATURED STRIP ────────────────────────────────────────── */
.featured-strip { background: var(--navy); padding: 80px 0; }
.featured-strip .section-eyebrow { color: var(--gold-lt); }
.featured-strip .section-title { color: var(--white); }

/* ─── CAROUSEL ──────────────────────────────────────────────── */
.carousel-wrap { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); gap: 24px; }
.carousel-track .prop-card { flex: 0 0 calc(33.333% - 16px); min-width: 0; }

.carousel-nav {
  display: flex; justify-content: center; gap: 12px; margin-top: 28px;
}
.carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
}
.carousel-btn:hover { background: var(--gold); color: var(--navy); }

/* ─── PROPERTY DETAIL ───────────────────────────────────────── */
.detail-hero { position: relative; }
.detail-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: var(--radius-lg); overflow: hidden; }
.detail-gallery-main { grid-row: span 2; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: filter var(--transition); }
.gallery-img:hover { filter: brightness(.9); }
.detail-gallery-main .gallery-img { height: 540px; }
.detail-gallery .gallery-thumb .gallery-img { height: 267px; }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; margin-top: 40px; align-items: start; }

.detail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 8px; }
.detail-location { display: flex; align-items: center; gap: 6px; color: var(--muted); margin-bottom: 20px; }
.detail-price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--navy); }
.detail-price-op { font-size: .9rem; font-weight: 400; color: var(--muted); }

.detail-stats {
  display: flex; gap: 0; margin: 24px 0;
  background: var(--bone); border-radius: var(--radius-md); overflow: hidden;
}
.detail-stat {
  flex: 1; text-align: center; padding: 18px 12px;
  border-right: 1px solid var(--light);
}
.detail-stat:last-child { border-right: none; }
.detail-stat-val { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.detail-stat-lbl { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.detail-section { margin-bottom: 32px; }
.detail-section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--light); }

.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.amenity-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 8px 12px; background: var(--bone); border-radius: var(--radius-sm); }
.amenity-icon { color: var(--gold); }

/* Contact card */
.contact-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-md);
  position: sticky; top: 88px;
}
.agent-mini { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--light); }
.agent-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.agent-name { font-weight: 700; font-size: .95rem; }
.agent-title { font-size: .78rem; color: var(--muted); }

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-input {
  height: 44px; border: 1.5px solid var(--light);
  border-radius: var(--radius-sm); padding: 0 14px;
  font-family: var(--font-body); font-size: .88rem; color: var(--navy);
  outline: none; transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--gold); }
.form-textarea {
  height: 100px; border: 1.5px solid var(--light);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: var(--font-body); font-size: .88rem; color: var(--navy);
  outline: none; resize: vertical; transition: border-color var(--transition);
}
.form-textarea:focus { border-color: var(--gold); }

.btn-primary {
  height: 48px; background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
  transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { background: var(--gold); color: var(--navy); }

.btn-wa {
  height: 48px; background: #25D366; color: var(--white);
  border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-wa:hover { background: #1EB355; transform: translateY(-1px); }

/* ─── TESTIMONIALS ──────────────────────────────────────────── */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-quote { font-size: 2.5rem; color: var(--gold); font-family: var(--font-display); line-height: 1; margin-bottom: 16px; }
.testimonial-text { font-size: .95rem; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: var(--muted); }
.stars { color: var(--gold); font-size: .85rem; margin-bottom: 12px; }

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-xl); padding: 72px 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; overflow: hidden; position: relative;
}
.cta-section::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 320px; height: 320px;
  background: rgba(201,168,76,.12);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute; bottom: -80px; right: 200px;
  width: 200px; height: 200px;
  background: rgba(201,168,76,.08);
  border-radius: 50%;
}
.cta-text { max-width: 520px; }
.cta-title { font-size: clamp(1.6rem, 2.5vw, 2.2rem); color: var(--white); margin-bottom: 12px; }
.cta-desc  { color: rgba(255,255,255,.65); font-size: .95rem; }
.cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-gold {
  height: 52px; padding: 0 32px;
  background: var(--gold); color: var(--navy);
  border-radius: var(--radius-sm); font-weight: 700; font-size: .95rem;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.4); }
.btn-outline-white {
  height: 52px; padding: 0 28px;
  border: 2px solid rgba(255,255,255,.3); color: var(--white);
  border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem;
  display: flex; align-items: center; gap: 8px;
  transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); }

/* ─── FOOTER ────────────────────────────────────────────────── */
#footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 72px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px;
}
.footer-brand-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-brand-name span { color: var(--gold); }
.footer-desc { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); font-size: .9rem;
}
.social-btn:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 { color: var(--white); font-size: .9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .06em; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .85rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom-text { font-size: .8rem; }

/* ─── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,22,40,.88); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity var(--transition-slow);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 560px; width: 100%; padding: 40px;
  transform: translateY(20px);
  transition: transform var(--transition-slow);
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: var(--transition);
}
.modal-close:hover { background: var(--navy); color: var(--white); }

/* ─── TOAST ─────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--navy); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl); font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  transform: translateX(120%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  max-width: 340px;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }

/* ─── LOADER ─────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--light) 25%, var(--bone) 50%, var(--light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
.loader-wrap { display: flex; justify-content: center; padding: 60px 0; }
.loader {
  width: 40px; height: 40px; border: 3px solid var(--light);
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin .8s linear infinite;
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}
#back-top.visible { opacity: 1; pointer-events: all; }
#back-top:hover { transform: translateY(-3px); background: var(--gold); color: var(--navy); }

/* ─── MAP MARKER ─────────────────────────────────────────────── */
.map-info-window { padding: 8px; min-width: 200px; }
.map-info-title { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.map-info-price { color: var(--navy); font-weight: 700; }
.map-info-zone  { font-size: .78rem; color: var(--muted); }

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
@keyframes shimmer  { to { background-position: -200% 0; } }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes pulse    { 0%,100% { transform:scale(1); opacity:1; } 50% { transform:scale(1.4); opacity:.5; } }
@keyframes bounce   { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(-10px); } }

/* ─── INTERSECTION OBSERVER REVEALS ─────────────────────────── */
.reveal { opacity:0; transform:translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-left  { opacity:0; transform:translateX(-32px); transition: opacity .65s ease, transform .65s ease; }
.reveal-left.visible { opacity:1; transform:translateX(0); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .filters-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .carousel-track .prop-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 900px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .btn-search    { grid-column: span 2; justify-content: center; }
  .hero-stats    { gap: 28px; }
  .cta-section   { flex-direction: column; padding: 48px 32px; }
  .properties-list .prop-card { grid-template-columns: 240px 1fr; }
  #map-view.active { grid-template-columns: 1fr; }
  #map-list-panel  { max-height: 340px; }
  #google-map      { height: 460px; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: rgba(10,22,40,.98); backdrop-filter: blur(12px); padding: 24px; gap: 4px; }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-link { width: 100%; padding: 12px 16px; }

  .search-fields { grid-template-columns: 1fr; }
  .btn-search    { grid-column: 1; }
  .hero-stats    { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .properties-list .prop-card { grid-template-columns: 1fr; height: auto; }
  .properties-list .prop-card .card-img { height: 200px; }

  .detail-gallery { grid-template-columns: 1fr; }
  .detail-gallery-main .gallery-img { height: 280px; }
  .detail-gallery .gallery-thumb { display: none; }

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

  .cta-section { padding: 40px 24px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .btn-gold, .btn-outline-white { width: 100%; justify-content: center; }

  .carousel-track .prop-card { flex: 0 0 calc(100% - 0px); }

  .section { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .search-box { padding: 18px 16px; }
  .detail-stats { flex-wrap: wrap; }
  .detail-stat { flex: 0 0 50%; border-right: 1px solid var(--light); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
