/* ==========================================================================
   BEAR REAL ESTATE — Design System
   Palette:  Cream #F7F3EC · Sand #ECE3D6 · Tan #B08968
             Espresso #3C2A1E · Brick #9B2C20 · Charcoal #2B2723
   Type:     Display = Oswald (condensed, architectural)
             Body    = Lora (warm serif, upscale trust)
             Utility = Inter (nav, labels, prices, forms)
   ========================================================================== */

:root {
  --cream: #F7F3EC;
  --sand: #ECE3D6;
  --tan: #B08968;
  --espresso: #3C2A1E;
  --brick: #9B2C20;
  --brick-dark: #7C2118;
  --charcoal: #2B2723;
  --white: #FFFFFF;

  --font-display: 'Oswald', sans-serif;
  --font-body: 'Lora', serif;
  --font-utility: 'Inter', sans-serif;

  --radius: 2px;
  --shadow-card: 0 8px 24px rgba(60, 42, 30, 0.10);
  --shadow-lift: 0 16px 40px rgba(60, 42, 30, 0.18);
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--espresso);
  font-weight: 600;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Editorial accent — mixed serif/italic word inside an otherwise display headline,
   used sparingly for a magazine-style moment (hero, section titles). */
em.accent, .accent-italic {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--brick);
  letter-spacing: 0;
}

.eyebrow {
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
}

.lede {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #5A5147;
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-utility);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brick); color: var(--white); }
.btn-primary:hover { background: var(--brick-dark); box-shadow: var(--shadow-card); }
.btn-outline { background: transparent; border-color: var(--espresso); color: var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--white); }
.btn-light { background: var(--cream); color: var(--espresso); }
.btn-light:hover { background: var(--white); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Opt-in variant: only pages with a full-bleed dark hero (body.has-hero) get a
   transparent nav that turns solid on scroll — see js/layout.js. Pages without
   a hero never get this class, so their nav stays solid/unaffected. */
body.has-hero .site-header:not(.scrolled) {
  position: absolute;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
body.has-hero .site-header:not(.scrolled) .nav-links a {
  color: var(--white);
}
body.has-hero .site-header:not(.scrolled) .nav-burger span { background: var(--white); }
body.has-hero .site-header:not(.scrolled) .toggle-pill { border-color: rgba(255,255,255,0.4); }
body.has-hero .site-header:not(.scrolled) .toggle-pill button { color: var(--white); }
body.has-hero .site-header:not(.scrolled) .toggle-pill button.is-active { background: rgba(255,255,255,0.18); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-brand img { height: 80px; width: auto; max-width: 200px; flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-utility);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--brick);
  transition: width 0.2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brick); }

.nav-tools { display: flex; align-items: center; gap: 14px; }
.toggle-pill {
  display: flex;
  border: 1px solid var(--tan);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--font-utility);
  font-size: 0.78rem;
  font-weight: 600;
}
.toggle-pill button {
  background: transparent;
  border: none;
  padding: 6px 12px;
  color: var(--espresso);
}
.toggle-pill button.is-active {
  background: var(--espresso);
  color: var(--white);
}
.nav-cta { display: none; }
@media (min-width: 880px) { .nav-cta { display: inline-flex; } }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span { width: 24px; height: 2px; background: var(--espresso); }

@media (max-width: 880px) {
  .nav-links { 
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
    padding: 0 var(--gutter);
  }
  .nav-links.is-open { max-height: 400px; padding: 12px var(--gutter) 20px; }
  .nav-links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--sand); }
  /* The mobile dropdown panel is always a solid cream background (above), even
     when body.has-hero's transparent-nav rule (unconditional, all viewports)
     forces link text to white for the desktop over-hero look — that combo was
     white text on a cream panel: invisible. Force it back to dark here. */
  body.has-hero .site-header:not(.scrolled) .nav-links a { color: var(--espresso); }
  .nav-burger { display: flex; }
  .nav-brand img { height: 36px; max-width: 160px; }
  .nav-tools { gap: 8px; }
  .toggle-pill button { padding: 5px 8px; font-size: 0.72rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(27,20,14,0.35) 0%, rgba(27,20,14,0.15) 35%, rgba(27,20,14,0.88) 82%, rgba(27,20,14,0.97) 100%),
    url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding-top: 140px;
  padding-bottom: 100px;
}
.hero-inner { max-width: 820px; }
.hero .eyebrow { color: var(--tan); display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ''; width: 40px; height: 1px; background: var(--tan); }
.hero h1 { color: var(--white); margin: 18px 0 20px; line-height: 1.02; }
.hero p.lede { color: rgba(255,255,255,0.85); font-size: 1.2rem; max-width: 580px; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }

/* ---------- Editorial statement band ---------- */
.editorial-band { padding: 150px 0 140px; text-align: center; }
.editorial-band .container { max-width: 860px; }
.editorial-statement {
  font-family: var(--font-body); font-style: italic; font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.42; color: var(--espresso);
}
.editorial-statement .accent { color: var(--brick); }
.editorial-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 36px;
  font-family: var(--font-utility); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--espresso);
  border-bottom: 1.5px solid var(--brick); padding-bottom: 4px; transition: opacity 0.2s;
}
.editorial-link:hover { opacity: 0.6; }

/* Search widget overlapping hero bottom edge ("lobby desk") */
.search-widget {
  position: relative;
  margin: -86px auto 0;
  max-width: var(--container);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 28px var(--gutter) 24px;
  z-index: 10;
}
.search-widget .tabs { display: flex; gap: 4px; margin-bottom: 18px; }
.search-widget .tabs button {
  font-family: var(--font-utility);
  font-weight: 600; font-size: 0.85rem;
  background: var(--sand); color: var(--espresso);
  border: none; padding: 9px 22px; border-radius: 999px 999px 0 0;
}
.search-widget .tabs button.is-active { background: var(--espresso); color: var(--white); }
.search-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 16px;
  align-items: end;
}
@media (max-width: 1000px) { .search-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .search-grid { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-family: var(--font-utility);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B5D52;
  margin-bottom: 6px;
}
.field select, .field input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-utility);
  font-size: 0.92rem;
}
.field select:focus, .field input:focus { border-color: var(--brick); }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; }
.section--tight { padding: 72px 0; }
.section--dark { background: var(--espresso); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--white); }

/* Full-bleed photo band with dark overlay — used by CTA-style closing sections */
.section--photo { position: relative; overflow: hidden; color: var(--white); }
.section--photo img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.55) saturate(0.95);
}
.section--photo .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(43,31,22,0.55) 0%, rgba(43,31,22,0.85) 100%);
}
.section--photo .container { position: relative; z-index: 2; }
.section--photo h2 { color: var(--white); }
.section--sand { background: var(--sand); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ---------- Property Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.property-card {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.property-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.property-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.property-card:hover .media img { transform: scale(1.05); }
.property-card .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--brick); color: var(--white);
  font-family: var(--font-utility); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.property-card .body { padding: 22px 2px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-card .price {
  font-family: var(--font-utility); font-weight: 700; font-size: 1.3rem; color: var(--brick);
}
.property-card .price small { font-weight: 500; color: #6B5D52; font-size: 0.74rem; }
.property-card h3 { font-size: 1.1rem; text-transform: none; letter-spacing: 0; }
.property-card .location {
  font-family: var(--font-utility); font-size: 0.84rem; color: #7A6F62;
  display: flex; align-items: center; gap: 6px;
}
.property-card .specs {
  display: flex; gap: 16px; font-family: var(--font-utility); font-size: 0.82rem;
  color: var(--espresso); border-top: 1px solid var(--sand); padding-top: 12px; margin-top: auto;
}
.property-card .specs span { display: flex; align-items: center; gap: 5px; }

/* ---------- Neighborhood cards ---------- */
.neigh-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .neigh-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .neigh-grid { grid-template-columns: 1fr; } }
.neigh-card { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.neigh-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.neigh-card:hover img { transform: scale(1.06); }
.neigh-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,20,14,0) 35%, rgba(27,20,14,0.92) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
  color: var(--white);
}
.neigh-card .overlay .tag {
  font-family: var(--font-utility); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--tan); margin-bottom: 8px;
}
.neigh-card .overlay h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.neigh-card .overlay p { font-size: 0.9rem; color: rgba(255,255,255,0.85); line-height: 1.5; }

/* ---------- Testimonials — editorial pull-quotes ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 980px) { .testi-grid { grid-template-columns: 1fr; gap: 48px; } }
.testi-card {
  background: transparent;
  border: none;
  border-left: 1px solid var(--tan);
  padding: 4px 36px;
  display: flex; flex-direction: column; gap: 18px;
  text-align: center;
  align-items: center;
}
.testi-grid .testi-card:first-child { border-left: none; }
@media (max-width: 980px) { .testi-card { border-left: none; padding: 0; } }
.testi-card .stars { color: var(--brick); font-size: 0.95rem; letter-spacing: 2px; }
.testi-card p.quote { font-family: var(--font-body); font-style: italic; font-size: 1.12rem; line-height: 1.6; color: var(--charcoal); }
.testi-card .person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testi-card .person .avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--tan);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-display); font-weight: 700;
}
.testi-card .person .name { font-family: var(--font-utility); font-weight: 600; font-size: 0.92rem; }
.testi-card .person .loc { font-family: var(--font-utility); font-size: 0.78rem; color: #6B5D52; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 760px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.2rem); color: var(--brick); }
.stat .label { font-family: var(--font-utility); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tan); margin-top: 8px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-family: var(--font-utility); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; color: #6B5D52;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--sand);
  border-radius: var(--radius); background: var(--white); color: var(--charcoal);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--brick); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-note { font-family: var(--font-utility); font-size: 0.8rem; color: #6B5D52; margin-top: 14px; }
.form-success {
  display: none; background: var(--sand); border-left: 4px solid var(--brick);
  padding: 18px 22px; font-family: var(--font-utility); margin-top: 20px; border-radius: var(--radius);
}
.form-success.is-visible { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: var(--sand); }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 48px;
  padding: 88px 0 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--tan); font-family: var(--font-utility); font-size: 0.78rem;
  letter-spacing: 0.1em; margin-bottom: 18px; text-transform: uppercase; font-weight: 700;
}
.footer-grid ul li { margin-bottom: 10px; font-family: var(--font-utility); font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 76px; }
.footer-about { font-family: var(--font-body); font-size: 0.92rem; color: #C9BEAF; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-utility); font-size: 0.8rem; color: #9C9082;
}

/* ---------- Breadcrumb / page header (sub-pages) ---------- */
.page-header {
  background: var(--espresso); color: var(--white);
  padding: 92px 0 56px;
}
.page-header .eyebrow { color: var(--tan); }
.page-header h1 { color: var(--white); margin-top: 12px; font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

/* ---------- Utility ---------- */
.flex { display: flex; }
.gap-3 { gap: 12px; }
.mt-4 { margin-top: 32px; }
.text-center { text-align: center; }
.center-head { text-align: center; margin-left: auto; margin-right: auto; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------- Listings page ---------- */
.listings-layout { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: start; }
@media (max-width: 880px) { .listings-layout { grid-template-columns: 1fr; } }
.filters-panel {
  background: transparent; border: none; border-radius: 0;
  padding: 0; position: sticky; top: 110px;
}
.filters-panel h3 {
  font-family: var(--font-utility); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick); margin-bottom: 26px;
}
.filter-group { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--sand); }
.filter-group:last-of-type { border-bottom: none; }
.filter-group label.group-label {
  display: block; font-family: var(--font-utility); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: #6B5D52; margin-bottom: 12px;
}
.filter-group select, .filter-group input { width: 100%; padding: 10px 12px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--cream); font-family: var(--font-utility); font-size: 0.88rem; }
.range-row { display: flex; gap: 10px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-utility); font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--sand); background: var(--cream); padding: 8px 14px;
  border-radius: 999px; color: var(--espresso);
}
.chip.is-active { background: var(--espresso); color: var(--white); border-color: var(--espresso); }

.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 12px; }
.results-count { font-family: var(--font-utility); font-size: 0.92rem; color: var(--espresso); }
.results-count strong { color: var(--brick); }
.sort-select { font-family: var(--font-utility); font-size: 0.86rem; padding: 9px 12px; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); }
.empty-state { text-align: center; padding: 60px 20px; font-family: var(--font-utility); color: #6B5D52; }

/* ---------- Property detail page ---------- */
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 40px; }
.detail-gallery .main-shot { aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; }
.detail-gallery .main-shot img { width: 100%; height: 100%; object-fit: cover; }
.detail-gallery .side-shots { display: grid; grid-template-rows: 1fr 1fr; gap: 14px; }
.detail-gallery .side-shots div { border-radius: var(--radius); overflow: hidden; }
.detail-gallery .side-shots img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .detail-gallery { grid-template-columns: 1fr; } .detail-gallery .side-shots { display: none; } }

.detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 72px; align-items: start; }
@media (max-width: 940px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-title { font-size: clamp(2rem, 3.8vw, 3rem); }
.detail-price { font-family: var(--font-utility); font-weight: 700; font-size: 2.2rem; color: var(--brick); }
.detail-price small { display: block; font-size: 0.76rem; font-weight: 500; color: #6B5D52; text-transform: uppercase; letter-spacing: 0.05em; }
.detail-specs { display: flex; gap: 40px; padding: 28px 0; border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); margin: 26px 0 36px; flex-wrap: wrap; }
.detail-specs .spec { font-family: var(--font-utility); display: flex; align-items: center; gap: 10px; }
.detail-specs .spec .icon { font-size: 1.2rem; }
.detail-specs .spec .v { font-size: 1.4rem; font-weight: 700; color: var(--espresso); }
.detail-specs .spec .k { font-size: 0.72rem; color: #6B5D52; text-transform: uppercase; letter-spacing: 0.06em; }
.amenity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.amenity-grid div { font-family: var(--font-utility); font-size: 0.94rem; display: flex; align-items: center; gap: 10px; }
.amenity-grid div::before { content: ""; width: 6px; height: 6px; background: var(--brick); border-radius: 50%; flex-shrink: 0; }
.video-embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin-top: 16px; background: var(--sand); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }

.agent-card {
  background: var(--sand); border: none; border-radius: 0;
  padding: 34px; position: sticky; top: 110px;
}
.agent-card .agent-info { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.agent-card .agent-info .avatar {
  width: 54px; height: 54px; border-radius: 50%; background: var(--tan);
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.agent-card .agent-info .name { font-family: var(--font-utility); font-weight: 700; }
.agent-card .agent-info .role { font-family: var(--font-utility); font-size: 0.8rem; color: #6B5D52; }

/* ---------- About page ---------- */
.about-hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .about-hero-split { grid-template-columns: 1fr; } }
.about-hero-split img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; gap: 40px; } }
.value-card { padding: 8px 44px; border-left: 1px solid var(--tan); }
.value-grid .value-card:first-child { border-left: none; padding-left: 0; }
@media (max-width: 860px) { .value-card { border-left: none; padding: 0; } }
.value-card .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--tan); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.team-card .name { font-family: var(--font-utility); font-weight: 700; }
.team-card .role { font-family: var(--font-utility); font-size: 0.8rem; color: var(--brick); }

/* ==========================================================================
   GALLERY SLIDER
   ========================================================================== */
.gallery-thumb { opacity: .6; transition: opacity .2s; border: 2px solid transparent !important; }
.gallery-thumb.is-active,
.gallery-thumb:hover { opacity: 1; border-color: var(--espresso) !important; }
#gallery-thumbs::-webkit-scrollbar { height: 4px; }
#gallery-thumbs::-webkit-scrollbar-thumb { background: var(--latte); border-radius: 4px; }

/* Galería estilo Airbnb (buildGallery en main.js, 2+ fotos) — este bloque de
   clases no tenía NINGÚN CSS (bug real: para cualquier propiedad con más de
   1 foto la galería se renderizaba sin grid/tamaño, amontonada). No se
   asume un mínimo de fotos: grid-auto-rows deja que .airbnb-side ocupe solo
   las celdas que existen de verdad, sin rellenar con nada. */
.airbnb-gallery { display: flex; gap: 14px; height: 500px; margin-bottom: 48px; border-radius: var(--radius); overflow: hidden; }
.airbnb-main { position: relative; flex: 1.6; cursor: pointer; overflow: hidden; }
.airbnb-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.airbnb-all-btn {
  position: absolute; bottom: 16px; right: 16px;
  background: var(--white); border: 1px solid var(--espresso); border-radius: 8px;
  padding: 8px 14px; font-family: var(--font-utility); font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
}
.airbnb-side { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.airbnb-side-cell { position: relative; cursor: pointer; overflow: hidden; border-radius: 8px; }
.airbnb-side-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.airbnb-more-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-utility); font-weight: 700; font-size: 0.9rem;
}
@media (max-width: 760px) {
  .airbnb-gallery { flex-direction: column; height: auto; }
  .airbnb-main { aspect-ratio: 16/10; }
  .airbnb-side { display: none; }
}

/* Lightbox ("Ver todas las fotos") */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,14,10,0.96); align-items: center; justify-content: center;
  flex-direction: column; padding: 24px;
}
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; }
.lb-prev, .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-main { position: relative; max-width: 90vw; max-height: 72vh; display: flex; align-items: center; justify-content: center; }
.lb-main img { max-width: 90vw; max-height: 72vh; object-fit: contain; border-radius: 8px; }
.lb-counter {
  position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-family: var(--font-utility); font-size: 0.82rem;
}
.lb-thumbs { display: flex; gap: 8px; margin-top: 48px; overflow-x: auto; max-width: 90vw; padding-bottom: 8px; }
.lb-thumbs button { flex-shrink: 0; width: 64px; height: 48px; padding: 0; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .lb-main img { max-height: 60vh; }
  .lb-prev, .lb-next { width: 40px; height: 40px; font-size: 1.3rem; }
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 20px;
  color: var(--charcoal);
  font-family: var(--font-utility);
}
.loading-spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--latte);
  border-top-color: var(--espresso);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   PROPERTY STATUS — unavailable overlay
   ========================================================================== */
.property-card.is-unavailable .media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255,255,255,.25);
  border-radius: inherit;
  pointer-events: none;
}
