/* ============================================
 * listing.css — Páginas individuales de propiedad
 * Generado: Mayo 2026 · Standalone (no depende de core.css)
 * ============================================ */

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

:root {
  --mint: #8AD7CF;
  --mint-deep: #5BA8A0;
  --navy: #172234;
  --navy-dark: #0F1824;
  --gold: #F4D89A;
  --text: #e8edf4;
  --text-soft: #b8c5d4;
  --text-muted: #8aa0b8;
  --border: rgba(138,215,207,0.15);
}

html { scroll-behavior: smooth; }
body {
  background: var(--navy-dark);
  color: var(--text);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,24,36,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(138,215,207,0.1);
}
.nav {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-style: italic; font-weight: 600;
  color: var(--mint);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
  font-size: 0.85rem; font-weight: 500;
}
.nav-links a {
  color: var(--text-soft);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--mint); }
.nav-cta {
  background: var(--mint); color: var(--navy-dark);
  padding: 8px 18px; border-radius: 4px;
  font-size: 0.82rem; font-weight: 600;
  transition: filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.1); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* HERO */
.prop-hero {
  position: relative;
  width: 100%;
  height: clamp(320px, 60vw, 600px);
  background: var(--navy);
  overflow: hidden;
  cursor: zoom-in;
}
.prop-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}
.prop-hero.cambiando img { opacity: 0.6; }
.prop-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,24,36,0.92) 0%, rgba(15,24,36,0.3) 50%, transparent 100%);
}
.prop-hero-content {
  position: absolute;
  bottom: 32px; left: 0; right: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.prop-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--mint); color: var(--navy-dark);
  border-radius: 3px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prop-badge-renta { background: var(--gold); }
.prop-precio-hero {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.prop-precio-hero .moneda {
  font-size: 0.55em;
  font-family: 'Poppins', sans-serif;
  opacity: 0.7;
  vertical-align: middle;
  margin-left: 6px;
}

/* BREADCRUMB */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumb a { color: var(--mint); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { opacity: 0.4; }

/* GALERÍA */
.galeria {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.galeria a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy);
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
}
.galeria a:hover { transform: scale(1.02); }
.galeria a.activo {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}
.galeria img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

/* LAYOUT */
.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 48px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
}

/* CONTENIDO */
h1.titulo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 500;
  font-style: italic;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.ubicacion {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.ubicacion svg { flex-shrink: 0; color: var(--mint); }

.specs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px;
}
.spec {
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(138,215,207,0.12);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.spec strong {
  color: #fff;
  font-weight: 600;
  margin-right: 4px;
}

section.bloque { margin-bottom: 40px; }
section.bloque h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
section.bloque h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--mint);
  margin: 24px 0 12px;
}
section.bloque p {
  color: var(--text-soft);
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 0.96rem;
}
section.bloque p strong { color: #fff; font-weight: 500; }
section.bloque ul { list-style: none; padding: 0; margin-bottom: 16px; }
section.bloque ul li {
  color: var(--text-soft);
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.6;
}
section.bloque ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--mint);
}

.amenidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.amenidad {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--text-soft);
}
.amenidad::before {
  content: "✓";
  color: var(--mint);
  font-weight: 700;
  font-size: 1rem;
}

/* MAPA */
#mapa {
  width: 100%;
  height: 420px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#mapa .mapboxgl-canvas { outline: none; }

/* SIDEBAR */
.sidebar {
  position: sticky;
  top: 90px;
}
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
}
.precio-card {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.1rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
}
.precio-card .moneda {
  font-size: 0.5em; font-family: 'Poppins'; opacity: 0.6; margin-left: 4px;
}
.precio-tipo {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 6px 0 24px;
}
.btn-wa {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  padding: 14px;
  background: #25D366;
  color: #fff;
  border-radius: 4px;
  font-weight: 600; font-size: 0.92rem;
  margin-bottom: 10px;
  transition: filter 0.2s;
}
.btn-wa:hover { filter: brightness(1.1); }
.btn-tour {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%;
  padding: 13px;
  background: transparent;
  border: 1px solid rgba(138,215,207,0.4);
  color: var(--mint);
  border-radius: 4px;
  font-weight: 500; font-size: 0.88rem;
  margin-bottom: 20px;
  transition: background 0.2s;
}
.btn-tour:hover { background: rgba(138,215,207,0.08); }
.agency-info {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.agency-info strong { color: var(--text); display: block; margin-bottom: 4px; font-weight: 600; }

/* CTA FINAL */
.cta-final {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 40px 32px;
  background: linear-gradient(135deg, rgba(138,215,207,0.06), rgba(138,215,207,0.02));
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.cta-final h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 8px;
}
.cta-final p {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 0.96rem;
}
.cta-final .btn-wa { max-width: 320px; margin: 0 auto; }

/* FOOTER */
footer {
  background: var(--navy-dark);
  padding: 32px 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a { color: var(--mint); }

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
}
.lightbox.abierto { display: flex; }
.lightbox-img-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  cursor: default;
}
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: -44px; right: -4px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.2); }
.lightbox-arrow.prev { left: -64px; }
.lightbox-arrow.next { right: -64px; }
.lightbox-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
}
@media (max-width: 760px) {
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }
  .lightbox-close { top: -42px; right: 0; }
}
