/* ============================================================
   Carlo Batara · Costa Rica Real Estate
   Design: Tropical & Vibrant — warm sun, ocean depth, lush green
   ============================================================ */

:root {
  /* Palette */
  --ocean:       #1a6b7c;
  --ocean-deep:  #0d4a5a;
  --ocean-light: #e8f4f7;
  --sand:        #f5ede0;
  --sand-dark:   #e8d9c4;
  --sun:         #e8923a;
  --sun-light:   #fdf3e8;
  --jungle:      #2d6a4f;
  --jungle-light:#e8f2ed;
  --ink:         #1a1f2e;
  --ink-soft:    #3d4560;
  --ink-muted:   #7a849a;
  --white:       #ffffff;
  --cream:       #fdfaf5;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', sans-serif;

  /* Spacing */
  --section-gap: 96px;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26,31,46,0.06);
  --shadow-md: 0 6px 24px rgba(26,31,46,0.10);
  --shadow-lg: 0 16px 48px rgba(26,31,46,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.container       { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.container-wide  { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-narrow{ max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section         { padding: var(--section-gap) 0; }

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--ocean);
}

.section-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 48px;
}
.section-header.centered { align-items: center; text-align: center; }
.section-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.section-link:hover { color: var(--ocean-deep); }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--sun);
  color: var(--white);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  border: 2px solid var(--sun);
  cursor: pointer;
}
.btn-primary:hover {
  background: #d4792a;
  border-color: #d4792a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,146,58,0.35);
}
.btn-primary.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-primary.btn-sm    { padding: 10px 20px; font-size: 13px; }
.btn-primary.btn-full  { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all 0.25s;
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.8);
}
.btn-ghost.btn-dark {
  color: var(--ocean);
  border-color: var(--ocean);
}
.btn-ghost.btn-dark:hover {
  background: var(--ocean-light);
}
.btn-ghost.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-ghost.btn-sm    { padding: 10px 20px; font-size: 13px; }

/* ── NAVIGATION ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}
.nav.scrolled .nav-logo-name { color: var(--ink); }
.nav.scrolled .nav-logo-sub  { color: var(--ink-muted); }
.nav.scrolled .nav-links a   { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--ocean); }

.nav-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
  transition: color 0.3s;
}
.nav-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.active { border-bottom: 2px solid var(--sun); padding-bottom: 2px; }

.nav-cta {
  background: var(--sun) !important;
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: 100px !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: #d4792a !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0d4a5a 0%, #1a6b7c 35%, #2d9ab5 65%, #1a8a4a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,40,55,0.4) 0%, rgba(10,40,55,0.2) 60%, rgba(10,40,55,0.5) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.8) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.5) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.15s ease both;
}
.hero-title em {
  font-style: italic;
  color: #ffd08a;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 40px;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.45s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── AREAS ──────────────────────────────────────────────────── */
.areas { background: var(--cream); }
.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.area-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  text-decoration: none;
}
.area-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}
.area-card:hover .area-card-bg { transform: scale(1.05); }

.area-tamarindo { background: linear-gradient(135deg, #1a6b7c, #2d9ab5, #1a8a4a); }
.area-langosta  { background: linear-gradient(135deg, #1a4a6b, #2d7ab5, #3a9ad0); }
.area-avellanas { background: linear-gradient(135deg, #2d6a4f, #3a8a5f, #1a6b7c); }
.area-grande    { background: linear-gradient(135deg, #8a5a3a, #b87a4a, #e8923a); }

.area-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,30,45,0.85) 0%, transparent 60%);
}
.area-card-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  color: var(--white);
}
.area-card-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 6px;
}
.area-card-body p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 12px;
}
.area-link {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffd08a;
  text-transform: uppercase;
}

/* ── LISTING CARDS ──────────────────────────────────────────── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.listing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.listing-card-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--sand);
}
.listing-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.listing-card:hover .listing-card-img { transform: scale(1.04); }
.listing-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  color: var(--ink-muted);
  font-size: 40px;
}
.listing-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}
.badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge-active  { background: rgba(45,106,79,0.9); color: #fff; }
.badge-sold    { background: rgba(180,50,50,0.9); color: #fff; }
.badge-removed { background: rgba(100,80,120,0.9); color: #fff; }
.badge-view    { background: rgba(26,107,124,0.85); color: #fff; }

.listing-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.listing-card-price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ocean-deep);
  margin-bottom: 6px;
  line-height: 1;
}
.listing-card-price.poa {
  font-size: 15px;
  color: var(--ink-muted);
  font-family: var(--font-body);
}
.listing-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.listing-card-location {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.listing-card-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--sand);
  margin-top: auto;
  flex-wrap: wrap;
}
.listing-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* Skeleton loaders */
.listing-skeleton {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  height: 360px;
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, #f0ebe2 25%, #e8e0d4 50%, #f0ebe2 75%);
  background-size: 200% 100%;
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── STATS ──────────────────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  padding: 64px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ── ABOUT TEASER ───────────────────────────────────────────── */
.about-teaser { background: var(--sand); }
.about-teaser-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}
.about-teaser-img-wrap {
  position: relative;
}
.about-teaser-img-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-teaser-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-teaser-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--sun);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-md);
}
.about-teaser-badge span:first-child { font-size: 28px; }
.about-teaser-role {
  font-size: 14px;
  color: var(--ocean);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.about-teaser-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 24px;
}
.about-teaser-areas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.about-teaser-areas span {
  background: var(--ocean-light);
  color: var(--ocean-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
}

/* ── LIFESTYLE ──────────────────────────────────────────────── */
.lifestyle { background: var(--cream); }
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.lifestyle-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s;
}
.lifestyle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.lifestyle-icon {
  font-size: 36px;
  margin-bottom: 16px;
}
.lifestyle-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.lifestyle-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* ── CTA ────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1a3a2a, var(--jungle), #1a6b7c);
  padding: 96px 0;
}
.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-inner h2 em { font-style: italic; color: #ffd08a; }
.cta-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}
.cta-phone:hover { color: #ffd08a; }

/* ── PAGE HERO ──────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--ocean-deep), var(--ocean));
  padding: 140px 24px 80px;
  text-align: center;
}
.page-hero-short { padding: 120px 24px 60px; }
.page-hero-content { max-width: 700px; margin: 0 auto; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
}

/* ── LISTINGS PAGE ──────────────────────────────────────────── */
.listings-page { background: var(--cream); padding-top: 48px; }
.listings-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}
.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sand);
}
.filters-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.btn-clear-filters {
  font-size: 12px;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.btn-clear-filters:hover { color: var(--ocean); }

.filter-group {
  margin-bottom: 20px;
}
.filter-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.filter-group input:focus,
.filter-group select:focus { border-color: var(--ocean); }

.search-wrap { position: relative; }
.search-wrap input { padding-right: 36px; }
.search-wrap svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.price-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
}
.price-inputs span { color: var(--ink-muted); text-align: center; font-size: 13px; }

.bed-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bed-btn {
  padding: 7px 12px;
  border: 1.5px solid var(--sand-dark);
  border-radius: 100px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink-soft);
}
.bed-btn:hover { border-color: var(--ocean); color: var(--ocean); }
.bed-btn.active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }

.filter-contact {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
  text-align: center;
}
.filter-contact p {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.results-count {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
}
.results-count strong { font-weight: 600; }
.view-btns { display: flex; gap: 6px; }
.view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  color: var(--ink-muted);
  transition: all 0.15s;
}
.view-btn.active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.view-btn:hover:not(.active) { border-color: var(--ocean); color: var(--ocean); }

.listings-grid-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.listings-list-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* List view card */
.listing-list-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 200px 1fr auto;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
}
.listing-list-card:hover { box-shadow: var(--shadow-md); }
.listing-list-img {
  width: 200px; height: 150px; object-fit: cover;
  background: var(--sand);
}
.listing-list-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.listing-list-right {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  border-left: 1px solid var(--sand);
  min-width: 130px;
}
.listing-list-id {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: monospace;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 48px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink-soft);
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--ocean); color: var(--ocean); }
.page-btn.active { background: var(--ocean); border-color: var(--ocean); color: var(--white); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,20,35,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.modal-close {
  position: sticky;
  top: 16px;
  float: right;
  margin: 16px 16px 0 0;
  width: 36px; height: 36px;
  background: var(--sand);
  border: none;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--sand-dark); }

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 24px 24px 0;
}
.modal-images img:first-child { grid-column: 1 / -1; height: 320px; border-radius: var(--radius-lg); object-fit: cover; }
.modal-images img { height: 160px; border-radius: var(--radius); object-fit: cover; width: 100%; }
.modal-img-placeholder {
  grid-column: 1 / -1;
  height: 320px;
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px;
}

.modal-body { padding: 28px 28px 16px; }
.modal-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  color: var(--ocean-deep);
  margin-bottom: 4px;
}
.modal-location { font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; }
.modal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.modal-stat {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.modal-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 3px;
  font-weight: 600;
}
.modal-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.modal-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.modal-features { margin-bottom: 20px; }
.modal-features h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 10px;
  font-weight: 700;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-tag {
  font-size: 12px;
  padding: 4px 12px;
  background: var(--ocean-light);
  border-radius: 100px;
  color: var(--ocean-deep);
  font-weight: 600;
}

.modal-footer {
  padding: 16px 28px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--sand);
  gap: 12px;
  flex-wrap: wrap;
}
.modal-listing-id {
  font-size: 11px;
  color: var(--ink-muted);
  font-family: monospace;
}
.modal-footer-right { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── ABOUT PAGE ─────────────────────────────────────────────── */
.about-hero {
  background: linear-gradient(135deg, var(--sand), var(--sand-dark));
  padding: 120px 24px 80px;
}
.about-hero-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: center;
}
.about-hero-img-wrap { position: relative; }
.about-hero-img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.about-hero-title {
  font-size: 15px;
  color: var(--ocean);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.about-hero-areas {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px;
}
.about-hero-areas span {
  background: var(--ocean-light);
  color: var(--ocean-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.about-hero-contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ocean-deep);
  font-weight: 600;
  transition: color 0.2s;
}
.contact-pill:hover { color: var(--sun); }

.bio-section { background: var(--cream); }
.bio-intro { margin-bottom: 40px; }
.bio-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  line-height: 1.7;
  color: var(--ocean-deep);
}
.bio-block {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--sand-dark);
}
.bio-block:last-child { border-bottom: none; }
.bio-icon { font-size: 32px; flex-shrink: 0; margin-top: 4px; }
.bio-block h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.bio-block p { font-size: 15px; color: var(--ink-soft); line-height: 1.8; }

.credentials { background: var(--sand); }
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.credential-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.credential-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--ocean);
  margin-bottom: 8px;
  line-height: 1;
}
.credential-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.credential-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; }

/* ── CONTACT PAGE ───────────────────────────────────────────── */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}
.contact-form-wrap h2 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-form-sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand-dark);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--ocean); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--jungle-light);
  border: 1px solid var(--jungle);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--jungle);
}
.form-success strong { display: block; margin-bottom: 4px; font-size: 15px; }
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fce8e8;
  border: 1px solid #c0392b;
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  color: #c0392b;
}

.contact-agent-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--sand);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.contact-agent-img {
  width: 70px; height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.contact-agent-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-agent-card p { font-size: 13px; color: var(--ink-muted); }

.contact-methods { margin-bottom: 24px; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand);
  transition: color 0.2s;
}
.contact-method:hover { color: var(--ocean); }
.contact-method-icon { font-size: 20px; flex-shrink: 0; width: 32px; text-align: center; }
.contact-method-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 700;
}
.contact-method-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ocean-deep);
}

.contact-areas-box {
  background: var(--ocean-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}
.contact-areas-box h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ocean-deep);
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-areas-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-areas-tags span {
  background: var(--ocean);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}

.contact-promise {
  background: var(--sand);
  border-left: 4px solid var(--sun);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
}
.contact-promise h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sun);
  font-weight: 700;
  margin-bottom: 10px;
}
.contact-promise p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 8px;
}
.contact-promise cite { font-size: 13px; font-weight: 700; color: var(--ocean-deep); }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--sun);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}
.footer-grid h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-grid ul a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ── LOADING & EMPTY ────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty-state p { color: var(--ink-muted); margin-bottom: 24px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-teaser-grid   { grid-template-columns: 1fr; gap: 40px; }
  .about-teaser-badge  { display: none; }
  .stats-grid          { grid-template-columns: repeat(2, 1fr); }
  .footer-grid         { grid-template-columns: 1fr 1fr; }
  .listings-layout     { grid-template-columns: 240px 1fr; }
  .contact-grid        { grid-template-columns: 1fr; }
  .about-hero-content  { grid-template-columns: 1fr; }
  .about-hero-img      { max-width: 300px; }
}

@media (max-width: 768px) {
  :root { --section-gap: 60px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: rgba(255,255,255,0.98); padding: 20px 24px; box-shadow: var(--shadow-md); gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--ink) !important; font-size: 16px; }
  .nav-toggle { display: flex; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: clamp(40px, 10vw, 64px); }
  .form-row { grid-template-columns: 1fr; }
  .listing-list-card { grid-template-columns: 140px 1fr; }
  .listing-list-right { display: none; }
}

@media (max-width: 480px) {
  .areas-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; }
  .listings-grid { grid-template-columns: 1fr; }
  .listings-grid-view { grid-template-columns: 1fr; }
}
