/* Estilos de página individual de propiedad — Raíces 503.
   Generado-adyacente: lo usan las páginas en /propiedades/<slug>/.
   Paleta consistente con el index. */
:root {
  --navy: #0F1F3D;
  --navy-light: #1A3A6B;
  --gold: #C9933A;
  --gold-hover: #A87820;
  --green: #1A5C3A;
  --whatsapp: #25D366;
  --cream: #F7F4EF;
  --text: #1A1A2A;
  --muted: #6B7280;
  --white: #FFFFFF;
  --radius: 10px;
  --max: 1080px;
  --shadow: 0 14px 34px rgba(15, 31, 61, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Top bar */
.pp-nav {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 10;
}
.pp-nav .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.pp-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.pp-logo img { width: 36px; height: 36px; border-radius: 8px; }
.pp-back { color: var(--gold); font-weight: 600; font-size: .95rem; }
.pp-back:hover { color: #e3b566; }

/* Hero */
.pp-hero { width: 100%; background: #000; }
.pp-hero img { width: 100%; max-height: 60vh; object-fit: cover; margin: 0 auto; }

/* Layout */
.pp-main { padding: 32px 0 64px; }
.pp-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .pp-grid { grid-template-columns: 1fr; gap: 24px; } }

.pp-badge {
  display: inline-block; background: var(--gold); color: var(--white);
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.pp-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--navy); line-height: 1.15; }
.pp-location { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }
.pp-price { color: var(--green); font-weight: 800; font-size: 1.5rem; margin: 16px 0 4px; }
.pp-summary { margin-top: 18px; font-size: 1.05rem; }

.pp-facts { list-style: none; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pp-facts li {
  background: var(--white); border: 1px solid #e7e1d6; border-radius: 999px;
  padding: 7px 14px; font-size: .92rem; box-shadow: var(--shadow);
}

/* CTA card */
.pp-cta { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; position: sticky; top: 84px; }
.pp-cta h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.pp-cta p { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.btn {
  display: block; width: 100%; text-align: center; padding: 13px 18px;
  border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer;
  border: none; margin-bottom: 10px; transition: transform .05s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-wa { background: var(--whatsapp); color: var(--white); }
.btn-wa:hover { filter: brightness(.95); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.pp-copy-status { display: block; font-size: .85rem; color: var(--green); min-height: 1.2em; margin-top: 4px; text-align: center; }

/* Galería: imagen principal (banner) navegable + miniaturas debajo */
.pp-hero { position: relative; background: #000; }
.pp-hero img { width: 100%; max-height: 64vh; object-fit: cover; display: block; margin: 0 auto; }
.pp-hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(15, 31, 61, 0.55); color: #fff; font-size: 2.2rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.pp-hero-nav:hover { background: rgba(15, 31, 61, 0.85); }
.pp-hero-prev { left: 16px; }
.pp-hero-next { right: 16px; }
.pp-hero-counter {
  position: absolute; bottom: 16px; right: 18px; color: #fff;
  background: rgba(0, 0, 0, 0.5); padding: 5px 14px; border-radius: 999px; font-size: 0.88rem;
}
.pp-thumbs {
  display: flex; gap: 10px; overflow-x: auto; padding: 14px 20px;
  max-width: var(--max); margin: 0 auto; scroll-behavior: smooth;
}
.pp-thumb {
  flex: 0 0 auto; width: 104px; height: 72px; padding: 0; border: 2px solid transparent;
  border-radius: 8px; overflow: hidden; cursor: pointer; background: none; opacity: 0.65;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-thumb:hover { opacity: 1; }
.pp-thumb.active { border-color: var(--gold); opacity: 1; }
@media (max-width: 640px) {
  .pp-hero-nav { width: 42px; height: 42px; font-size: 1.8rem; }
  .pp-thumb { width: 84px; height: 60px; }
}

/* Footer */
.pp-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 28px 0; font-size: .9rem; }
.pp-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.pp-footer a { color: var(--gold); }

