/* ============================================================
   Casa Costa Rica — Estilos principales
   ============================================================ */

:root {
  --gold: #c4a35a;
  --gold-dark: #a8873f;
  --gold-soft: rgba(196, 163, 90, 0.18);
  --ink: #1a1a1a;
  --ink-soft: #2e2e2e;
  --charcoal: #242424;
  --muted: #6b6b6b;
  --line: rgba(0, 0, 0, 0.08);
  --cream: #f7f5f1;
  --white: #ffffff;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
}

.font-display { font-family: var(--font-display); }

/* Nav */
.navbar-transparent {
  background: transparent;
  border-bottom: 1px solid transparent;
}
.navbar-solid {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* Hero full-bleed */
.hero-realestate {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-realestate::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.hero-realestate__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.02); }
  to   { transform: scale(1.08); }
}
.hero-realestate__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  padding: 7rem 1.25rem 5rem;
  text-align: center;
}
.hero-realestate__curve {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 80px;
  z-index: 3;
  color: var(--white);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  animation: fadeUp .9s ease both;
}
.hero-sub {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  animation: fadeUp .9s ease .12s both;
}
.hero-sub .accent { color: var(--gold); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search bar */
.search-bar {
  margin: 2rem auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr auto;
  gap: 0;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(196,163,90,.45);
  overflow: hidden;
  animation: fadeUp .9s ease .22s both;
}
.search-bar select,
.search-bar input {
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  padding: 1rem 1rem;
  width: 100%;
  min-height: 56px;
  border-right: 1px solid rgba(0,0,0,.08);
}
.search-bar select { cursor: pointer; 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 fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.2rem; }
.search-bar__btn {
  background: var(--gold);
  color: #fff;
  border: 0;
  width: 56px;
  min-height: 56px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .25s ease;
}
.search-bar__btn:hover { background: var(--gold-dark); }

@media (max-width: 768px) {
  .search-bar {
    grid-template-columns: 1fr 1fr;
  }
  .search-bar input { grid-column: 1 / -1; border-right: 0; border-top: 1px solid rgba(0,0,0,.08); }
  .search-bar__btn { grid-column: 1 / -1; width: 100%; }
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--gold);
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .8rem;
  padding: .9rem 1.4rem;
  transition: background .25s ease, transform .25s ease;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }

.btn-outline-light-custom {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.55);
  color: #fff !important;
  padding: .85rem 1.25rem;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background .25s ease, border-color .25s ease;
}
.btn-outline-light-custom:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
}

/* Section headers */
.section-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
}
.section-kicker::before,
.section-kicker::after {
  content: "";
  height: 1px;
  width: 48px;
  background: currentColor;
  opacity: .45;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: clamp(1.35rem, 3vw, 2rem);
  text-align: center;
  color: var(--ink);
}
.section-title .em { font-weight: 800; }

/* Dark band */
.band-dark {
  background: var(--charcoal);
  color: #fff;
  border-radius: 28px 28px 0 0;
  margin-top: 2rem;
}
.band-dark .section-title { color: var(--gold); }
.band-dark .section-kicker { color: rgba(196,163,90,.85); }

/* Property cards — no heavy card chrome; image + text */
.prop-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .35s ease;
}
.prop-card:hover { transform: translateY(-4px); }
.prop-card__img {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #ddd;
}
.prop-card__title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
}
.prop-card__meta {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .9rem;
}
.prop-card__stats {
  margin-top: .75rem;
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  color: #8a8a8a;
  font-size: .85rem;
}
.prop-card__stats span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.prop-card__price {
  margin-top: .65rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.05rem;
}

/* Location tiles */
.loc-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3/4;
  text-decoration: none;
  color: #fff;
}
.loc-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.loc-tile:hover img { transform: scale(1.06); }
.loc-tile__label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .9rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* WhatsApp float */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.4);
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }

/* Detail gallery */
.detail-hero {
  aspect-ratio: 16/9;
  width: 100%;
  object-fit: cover;
  background: #ddd;
}
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  background: var(--cream);
  font-size: .9rem;
  color: var(--ink-soft);
}

/* Forms */
.form-field {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: .85rem 1rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s ease;
}
.form-field:focus { border-color: var(--gold); }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.78);
}
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

/* Carousel controls */
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.carousel-btn:hover { border-color: var(--gold); color: var(--gold); }
.band-dark .carousel-btn {
  background: transparent;
  border-color: rgba(196,163,90,.45);
  color: var(--gold);
}
