/* Avantistay — estilos base. Tokens y estructura de secciones extraidos
   directamente del sitio en vivo (avantistay.com, WordPress/Elementor):
   fondo crema, dorado sobre foto, acento verde-azulado y Playfair
   Display para titulares. Ver CLAUDE.md, seccion "Brand". */

:root {
  --cream: #FAF5E5;
  --gold: #F0E6C5;
  --teal: #45B4AE;
  --teal-dark: #053133;
  --ink: #0F172A;
  --white: #FFFFFF;
  --muted: #6b6b6b;
  --font: "Montserrat", Arial, sans-serif;
  --font-head: "Playfair Display", Georgia, serif;
  --font-alt: "Lato", sans-serif;
  --font-accent: "Poppins", Arial, sans-serif;
  --font-widget: "Open Sans", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1240px;
}

* { box-sizing: border-box; }
/* overflow-x:hidden vive solo en body a proposito: tenerlo tambien en
   html crea DOS scroll-containers anidados (html y body) — un patron
   que en Chromium rompe silenciosamente position:sticky en cualquier
   descendiente (ver .property-booking mas abajo), aunque el resto del
   layout se vea igual. Un solo overflow-x:hidden (en body) ya evita el
   scroll horizontal del sitio completo; no hace falta duplicarlo. */
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* header */
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 20px; position: relative; z-index: 20;
}
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 38px;
  height: 38px;
  position: relative;
  z-index: 30;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px auto;
  border-radius: 2px;
  transition: all .25s ease;
}

@media (max-width: 860px) {
  .site-header__inner { padding: 14px 16px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    z-index: 100;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 20px 24px; gap: 16px; }
  .site-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    display: block;
  }
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--teal);
  }

  /* Header oscuro en la página de propiedades, detalle y reserva */
  .page-properties .site-nav,
  .page-property .site-nav,
  .page-book .site-nav {
    background: var(--teal-dark, #053133);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  }
  .page-properties .site-nav a,
  .page-property .site-nav a,
  .page-book .site-nav a {
    color: #ffffff;
  }
  .page-properties .site-nav a:hover,
  .page-properties .site-nav a[aria-current="page"],
  .page-property .site-nav a:hover,
  .page-property .site-nav a[aria-current="page"],
  .page-book .site-nav a:hover,
  .page-book .site-nav a[aria-current="page"] {
    color: var(--gold, #deb887);
  }
}

/* floating SMS/WhatsApp buttons — fixed bottom-left on every page */
.floating-actions {
  position: fixed; left: 16px; bottom: 16px; z-index: 1050;
  display: flex; flex-direction: column; gap: 12px;
}
.floating-actions__item {
  display: flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; color: #D09A40;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35); transition: transform .2s ease;
}
.floating-actions__item:hover { transform: scale(1.06); }
.floating-actions__item svg { width: 28px; height: 28px; fill: currentColor; }
.floating-actions__item--whatsapp { border-radius: 50%; background: var(--white); }
.floating-actions__item--sms { border-radius: 16px; background: var(--white); }

/* language switcher — fixed top-right, next to nav toggle */
.lang-switcher {
  position: fixed;
  top: 14px;
  right: 68px;
  left: auto;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(5, 49, 51, 0.75);
  padding: 4px 6px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lang-switcher__item {
  display: block; width: 24px; height: 24px; border-radius: 3px; overflow: hidden;
  opacity: .6; transition: opacity .2s ease, transform .15s ease; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
.lang-switcher__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lang-switcher__item:hover { opacity: .9; transform: scale(1.08); }
.lang-switcher__item.is-active { opacity: 1; cursor: default; border: 1.5px solid #ffffff; box-shadow: 0 0 0 1px var(--gold); }

/* header rides on top of the hero photo on every page that opens with one
   (home's .hero, and the generic .page-hero on servicios/about/contacto)
   — transparent + gold text, same as the live site. */
.page-home .site-header, .page-servicios .site-header, .page-about .site-header,
.page-contacto .site-header {
  position: absolute; top: 0; left: 0; right: 0; background: transparent;
}
.page-home .site-nav a, .page-home .btn-icon,
.page-servicios .site-nav a, .page-servicios .btn-icon,
.page-about .site-nav a, .page-about .btn-icon,
.page-contacto .site-nav a, .page-contacto .btn-icon { color: var(--gold); }
.page-home .nav-toggle span, .page-servicios .nav-toggle span, .page-about .nav-toggle span,
.page-contacto .nav-toggle span {
  background: var(--gold);
}

/* header oscuro y elegante para buscador de propiedades, detalle y reserva */
.page-properties .site-header,
.page-property .site-header,
.page-book .site-header {
  position: relative;
  background: var(--teal-dark, #053133);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 100;
}
.page-properties .site-nav a,
.page-properties .btn-icon,
.page-property .site-nav a,
.page-property .btn-icon,
.page-book .site-nav a,
.page-book .btn-icon {
  color: #ffffff;
}
.page-properties .site-nav a:hover,
.page-property .site-nav a:hover,
.page-book .site-nav a:hover {
  color: var(--gold, #deb887);
}
.page-properties .site-nav a[aria-current="page"],
.page-property .site-nav a[aria-current="page"],
.page-book .site-nav a[aria-current="page"] {
  color: #ffffff;
  font-weight: 700;
}
.page-properties .nav-toggle span,
.page-property .nav-toggle span,
.page-book .nav-toggle span {
  background: #ffffff;
}

/* hero (home) */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  background-size: cover; background-position: center; background-attachment: fixed;
  color: var(--gold); padding: 160px 0 60px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgb(20, 16, 4); opacity: .51;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero h1 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 80px); line-height: 1.15; letter-spacing: 0.02em;
  max-width: 820px; margin: 0 0 40px; color: var(--gold);
}

/* El widget de busqueda real (Hostaway, ver searchWidgetHtml en
   _generator-lib.js) trae sus propios estilos via widget.js — no hay CSS
   propio que mantener aqui. Solo el ancho maximo del contenedor donde vive.
   `color` se resetea a proposito: el widget no define su propio color de
   texto porque asume que hereda el negro por default del navegador: sin
   este reset, hereda el `color: var(--gold)` de `.hero` y cualquier menu
   o dropdown que abra (ej. las sugerencias de "Location") sale con texto
   crema casi invisible sobre su fondo blanco. */
#hostaway-booking-widget { max-width: 960px; margin-top: 8px; color: #1a1a1a; }

/* generic page hero (servicios/about/contacto) — same height and
   layout as the home .hero, so every page opens with a hero of equal size */
.page-hero {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  background-size: cover; background-position: center;
  background-attachment: fixed; background-color: var(--ink);
  color: var(--white); padding: 160px 0 60px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgb(20, 16, 4); opacity: .51;
}
.page-hero .wrap { position: relative; z-index: 1; width: 100%; }
.page-hero h1 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 5.5vw, 70px); line-height: 1.15; margin: 0 0 20px; color: var(--gold);
}
.page-hero .intro { color: var(--gold); max-width: 760px; margin: 0; font-family: var(--font-alt); }
.page-hero .eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 16px; color: var(--gold); margin: 0 0 12px;
}
.page-hero .lead {
  color: var(--gold); max-width: 760px; margin: 16px 0 0;
  font-family: var(--font-alt); font-size: 15px; line-height: 1.6;
}
.page-hero .btn { margin-top: 28px; }

/* short accent line under a heading, reused in the hero, the photo
   sections below (about page) and above each stat */
.divider { display: block; width: 50px; height: 3px; background: var(--gold); margin: 20px 0; }

/* services icon grid over a full-bleed photo (servicios page) */
.services-photo {
  position: relative; background-size: cover; background-position: center;
  padding: 90px 0; color: var(--gold);
}
.services-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: .6;
}
.services-photo .wrap { position: relative; z-index: 1; }
.services-photo .services-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 500px)); justify-content: center;
  gap: 56px 4px; text-align: center;
}
.services-photo .service-item__icon { width: 100px; height: 100px; object-fit: contain; margin: 24px auto; display: block; }
.services-photo .service-item h3 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: 22px; margin: 0; color: var(--gold);
}
.services-photo .service-item p {
  font-family: var(--font-alt); text-transform: uppercase; font-size: 13px;
  letter-spacing: 0.02em; max-width: 440px; margin: 0 auto; color: var(--gold);
}

/* about page — full-bleed photo sections (agency / distinguishes) */
.about-photo {
  position: relative; background-size: cover; background-position: center;
  padding: 100px 0; color: var(--gold); text-align: center;
}
#agencia.about-photo { padding: 160px 0; }
.about-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: .55;
}
.about-photo .wrap { position: relative; z-index: 1; }
.about-photo .eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 16px; color: var(--gold); margin: 0 0 12px;
}
.about-photo h2 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 4vw, 46px); color: var(--gold); margin: 0;
}
.about-photo .divider { margin-left: auto; margin-right: auto; }
#agencia .eyebrow, #agencia h2, #agencia .about-cols h4 { font-family: var(--font-accent); }
.about-cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 430px)); justify-content: center; gap: 56px;
  margin-top: 48px; text-align: left;
}
.about-cols--wide { grid-template-columns: repeat(2, minmax(0, 535px)); }
.about-cols h4 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: 26px; margin: 0 0 16px; color: var(--gold);
}
.about-cols p { font-family: var(--font-alt); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
.about-cols p:last-child { margin-bottom: 0; }
.distinctives { list-style: disc; margin: 0; padding-left: 20px; }
.distinctives li { font-family: var(--font-alt); font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
.distinctives li:last-child { margin-bottom: 0; }

/* about page — stats over a full-bleed photo, numbers count up on scroll */
.stats-photo {
  position: relative; background-size: cover; background-position: bottom center;
  background-attachment: fixed; padding: 160px 0; color: var(--gold);
}
.stats-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: .55;
}
.stats-photo .wrap { position: relative; z-index: 1; }
.stats-photo .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; text-align: center;
}
.stats-photo .divider { margin: 0 auto 16px; }
.stats-photo .stat-value {
  font-family: var(--font); font-size: clamp(32px, 4vw, 52px); color: var(--gold);
}
.stats-photo .stat-value small { font-size: 1em; }
.stats-photo .stat-label { display: block; color: var(--gold); font-size: 15px; margin-top: 8px; }

/* zones */
.zones {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.zone-card {
  position: relative; text-align: center; padding: 70px 40px; display: flex;
  flex-direction: column; align-items: center; overflow: hidden;
  background-size: cover; background-position: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.zone-card--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: var(--card-overlay, .45);
  transition: opacity .35s ease;
}
.zone-card > * { position: relative; z-index: 1; }
.zone-card:hover {
  transform: scale(1.025); box-shadow: 0 24px 48px rgba(0, 0, 0, .35); z-index: 2;
}
.zone-card--photo:hover::before { opacity: calc(var(--card-overlay, .45) + .1); }
.zone-card__icon {
  width: 100%; max-width: 220px; aspect-ratio: 1 / 1; object-fit: contain;
  margin-bottom: 24px; transition: transform .35s ease;
}
.zone-card:hover .zone-card__icon { transform: translateY(-6px); }
.zone-card h3 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(28px, 3.5vw, 55px); color: var(--white); margin: 0 0 16px;
}
.zone-card p { max-width: 700px; margin: 0 0 28px; color: var(--white); font-family: var(--font-alt); }
.btn {
  display: inline-block; background: var(--teal); color: var(--gold);
  padding: 16px 32px; border-radius: 20px; text-decoration: none;
  font-size: 18px; border: 2px solid var(--teal);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* why — full-bleed photo section */
.why {
  position: relative; background-size: cover; background-position: center;
  color: var(--gold); padding: 90px 0; text-align: center;
}
.why::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: .55;
}
.why .wrap { position: relative; z-index: 1; }
.why-eyebrow {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: clamp(32px, 6vw, 75px); margin: 0 0 8px; color: var(--gold);
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px; text-align: center; margin-top: 50px;
}
.why-item { max-width: 453px; margin: 0 auto; }
.why-item__icon { width: 100px; height: 100px; object-fit: contain; margin: 0 auto 16px; }
.why-item h3 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  font-size: 30px; margin: 0 0 12px; color: var(--gold);
}
.why-item p {
  font-family: var(--font-alt); text-transform: uppercase; font-size: 14px;
  letter-spacing: 0.02em; margin: 0;
}

/* services grid (base, overridden by .services-photo .services-grid) */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 24px; }
.service-item { padding: 20px; }
.service-item h3 { font-family: var(--font-head); font-size: 18px; }
.intro { font-size: 18px; color: var(--muted); }

.stats-grid { display: flex; flex-wrap: wrap; gap: 32px; margin: 40px 0; }
.stat-value { font-family: var(--font-head); font-size: 36px; display: block; }
.stat-label { color: var(--muted); font-size: 13px; }

/* contact cta (home + /contacto/) */
.contact-cta {
  position: relative; background-size: cover; background-position: center;
  background-attachment: fixed; padding: 90px 0; text-align: center;
}
.contact-cta::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: rgb(20, 16, 4); opacity: .4;
}
.contact-cta .wrap { position: relative; z-index: 1; }
.contact-card {
  max-width: 650px; margin: 0 auto; padding: 50px;
  background: linear-gradient(rgb(240, 233, 210) 19%, rgb(69, 180, 174) 100%);
}
.contact-cta .eyebrow {
  font-family: var(--font-head); text-transform: uppercase; color: var(--ink);
  font-size: 18px; margin: 0;
}
.contact-cta h2 {
  font-family: var(--font-head); font-weight: 400; text-transform: uppercase;
  color: var(--ink); font-size: 35px; margin: 4px 0 32px;
}
.contact-form { display: grid; gap: 12px; max-width: 480px; margin: 0 auto; text-align: left; }
.contact-form input, .contact-form textarea {
  padding: 12px; border: 1px solid #69727D; border-radius: 2px;
  font-family: var(--font); background: var(--cream); color: var(--ink);
}
.contact-form button {
  background: var(--cream); color: var(--teal); border: none; padding: 15px 38px;
  border-radius: 20px; cursor: pointer; font-family: var(--font-head); font-size: 30px;
}
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-size: 14px; }
.form-status[data-state="ok"] { color: #1a7a3c; }
.form-status[data-state="error"] { color: #b3261e; }

/* contacto page — hero (photo + form/info columns) and map strip below it */
.page-contacto .page-hero { text-align: center; }
.page-contacto .page-hero .divider { margin-left: auto; margin-right: auto; }
.page-contacto .page-hero .about-cols { margin-top: 48px; }
.page-contacto .page-hero .about-cols h4:not(:first-child) { margin-top: 32px; }
.page-contacto .page-hero .about-cols h4 { font-family: var(--font-accent); }
.contact-info { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-info li {
  display: flex; align-items: center; gap: 14px; color: var(--gold);
}
.contact-info svg { width: 17px; height: 17px; fill: var(--gold); flex-shrink: 0; }
.contact-info a { text-decoration: none; }
.contact-info__phone { font-family: var(--font-head); font-size: 30px; }
.contact-info__phone svg { width: 25px; height: 25px; }
.contact-social {
  display: flex; gap: 12px; list-style: none; padding: 0; margin: 16px 0 0;
}
.contact-social a {
  width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: #69727D;
}
.contact-social svg { width: 20px; height: 20px; fill: currentColor; }
.contact-map iframe { width: 100%; height: 490px; border: 0; display: block; }

/* article content (paginas legales) */
.article-content { padding: 50px 20px; max-width: 760px; }
.article-content h1 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 44px); margin: 0 0 24px; }
.article-content h2 { font-family: var(--font-head); font-size: 24px; margin: 32px 0 12px; }
.article-content p { line-height: 1.7; margin: 0 0 16px; }
.article-content p:last-child { margin-bottom: 0; }

/* 404 */
.not-found { background: var(--white); padding: 90px 20px; text-align: center; }
.not-found__inner { max-width: 700px; margin: 0 auto; }
.not-found h1 {
  font-family: var(--font-accent); text-transform: uppercase;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.3; margin: 0 0 24px; color: #D09A40;
}
.not-found p { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 32px; }

@media (max-width: 760px) {
  .not-found { padding: 60px 20px; }
}

/* footer */
.site-footer { margin-top: 0; }
.site-footer a { text-decoration: none; color: inherit; }
.site-footer__photo {
  position: relative; background-size: cover; background-position: center top;
  background-color: var(--ink); color: var(--gold); padding: 60px 0 40px;
}
.site-footer__photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: #000; opacity: .17;
}
.site-footer__grid {
  position: relative; z-index: 1; text-align: left;
  display: grid; grid-template-columns: 1.8fr 1fr 1.1fr 1fr 1.1fr; gap: 32px;
}
.footer-brand img { width: 160px; margin-bottom: 20px; }
.footer-brand .social { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }
.footer-brand .social a { color: var(--gold); }
.footer-brand .social svg { width: 32px; height: 32px; fill: currentColor; display: block; }
.footer-col h6 {
  font-family: "Roboto", sans-serif; text-transform: uppercase; font-weight: 500;
  font-size: 20px; margin: 0 0 16px; color: var(--gold);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links li, .footer-links a {
  font-family: var(--font-alt); font-size: 16px; color: var(--gold);
}
.footer-links--alt li, .footer-links--alt a { font-family: "Roboto", sans-serif; }
.footer-map iframe { width: 100%; height: 220px; border: 0; display: block; }
.site-footer__copy { background: var(--gold); padding: 14px 0; text-align: center; }
.site-footer__copy .copy { font-family: var(--font-head); color: var(--teal); font-size: 16px; margin: 0; }

@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand .social { justify-content: center; }
}

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-photo .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 760px) {
  .hero { padding: 140px 0 50px; background-attachment: scroll; }
  .page-hero { padding: 140px 0 50px; background-attachment: scroll; }
  .contact-cta { background-attachment: scroll; }
  .contact-card { padding: 32px 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .services-photo .services-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-cols { grid-template-columns: 1fr; gap: 32px; }
  .stats-photo { background-attachment: scroll; padding: 90px 0; }
}

/* ============================================================
   Propiedades / reservas — integracion Hostaway (busqueda, detalle,
   booking). Ver README.md "Propiedades / reservas (Hostaway)" para el
   mapa de archivos. El HTML de estas 3 paginas es un shell estatico
   nada mas (SEO): el contenido real lo pintan assets/js/properties.js /
   property.js / book.js contra /api/properties/* en el navegador — por
   eso casi todo aca describe estados dinamicos (cargando, sin
   resultados, tarjetas armadas por JS), no copy fijo.
   ============================================================ */

/* --- buscador (/properties/) --- */
.properties-hero { min-height: auto; padding: 160px 0 60px; text-align: left; }
.properties-hero h1 { margin-bottom: 32px; }
.search-form { max-width: 100%; }
.search-form__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }

/* Barra unica tipo pildora (icono + label + valor por campo, sin caja
   propia por input) — antes cada input era su propia caja color crema,
   que se veia bien en dark/hero pero quedaba inconsistente entre si;
   este es el mismo patron "label arriba, valor abajo" que el sitio de
   referencia (Destino / Llegada / Salida / Huespedes). */
.search-bar {
  flex: 1 1 480px; display: flex; align-items: center; background: var(--white);
  border-radius: 999px; padding: 6px 8px; box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}
.search-field { display: flex; align-items: center; gap: 10px; padding: 8px 16px; flex: 1 1 0; min-width: 0; cursor: text; }
.search-field__icon { color: var(--teal); flex-shrink: 0; }
.search-field__icon svg { width: 20px; height: 20px; display: block; }
.search-field__body { display: flex; flex-direction: column; min-width: 0; }
.search-field__label { font-size: 12px; font-weight: 700; color: var(--ink); }
.search-field input {
  border: none; background: none; padding: 0; margin: 0; width: 100%; min-width: 0;
  font-family: var(--font); font-size: 14px; color: var(--muted);
}
.search-field input:focus { outline: none; color: var(--ink); }
.search-divider { width: 1px; align-self: stretch; margin: 6px 0; background: #e5e0cd; flex-shrink: 0; }
.search-submit {
  display: flex; align-items: center; gap: 8px; background: var(--teal); color: var(--white); border: none;
  padding: 12px 24px; border-radius: 999px; font-family: var(--font); font-size: 15px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.search-submit svg { width: 18px; height: 18px; }
.btn-outline {
  display: flex; align-items: center; gap: 8px; background: var(--white); color: var(--teal-dark);
  border: 1.5px solid var(--teal); padding: 12px 22px; border-radius: 999px; font-family: var(--font);
  font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.btn-outline svg { width: 18px; height: 18px; color: var(--teal); }
.btn-outline:hover { background: var(--cream); }
/* ============================================================
   BUSCADOR DE PROPIEDADES (/properties/, /es/propiedades/)
   Split layout estilo PFS Realty / Zillow con mapa Leaflet
   ============================================================ */

/* 1. Barra de búsqueda superior */
.properties-search-bar-wrap {
  background: var(--white);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.properties-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.properties-search-fields {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  flex: 1;
  max-width: 900px;
  transition: border-color .2s, box-shadow .2s;
}

.properties-search-fields:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(69, 180, 174, 0.15);
  background: var(--white);
}

.psearch-f {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  position: relative;
  flex: 1;
}

.psearch-f--dest { flex: 1.5; }
.psearch-f--date { flex: 1.1; }
.psearch-f--guests { flex: 0.9; }

.psearch-f__icon {
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.psearch-f__icon svg { width: 18px; height: 18px; }

.psearch-f__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.psearch-f__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  line-height: 1;
  margin-bottom: 2px;
}

.psearch-f input,
.psearch-f select,
.psearch-select {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  outline: none;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.psearch-f select option {
  background: #ffffff;
  color: var(--ink);
  font-weight: 500;
  padding: 10px 16px;
}
.psearch-f input::placeholder { color: #94a3b8; font-weight: 400; }

/* Custom Destination Dropdown */
.psearch-dest-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  outline: none;
  gap: 6px;
  line-height: 1.3;
}

.psearch-dest-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.psearch-dest-arrow {
  display: flex;
  align-items: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.psearch-dest-arrow svg {
  width: 13px;
  height: 13px;
}

.psearch-f--dest.is-open .psearch-dest-arrow {
  transform: rotate(180deg);
  color: var(--teal);
}

.psearch-dest-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  padding: 6px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: psearchDestFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes psearchDestFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.psearch-dest-dropdown[hidden] {
  display: none !important;
}

.psearch-dest-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px; /* Padding generoso a la izquierda y derecha */
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  width: 100%;
}

.psearch-dest-option:hover {
  background: #f1f8f8;
  color: var(--teal);
  padding-left: 20px;
}

.psearch-dest-option.is-selected {
  background: #e6f6f5;
  color: #064e4b;
  font-weight: 700;
}

.psearch-dest-option__icon {
  display: flex;
  align-items: center;
  color: #94a3b8;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.psearch-dest-option__icon svg {
  width: 16px;
  height: 16px;
}

.psearch-dest-option:hover .psearch-dest-option__icon,
.psearch-dest-option.is-selected .psearch-dest-option__icon {
  color: var(--teal);
}

.psearch-dest-option__text {
  flex: 1;
}

.psearch-dest-option__check {
  display: flex;
  align-items: center;
  color: var(--teal);
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.psearch-dest-option__check svg {
  width: 14px;
  height: 14px;
}

.psearch-dest-option.is-selected .psearch-dest-option__check {
  opacity: 1;
}

.psearch-div {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.psearch-clear {
  position: absolute;
  right: 6px;
  background: #e2e8f0;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.psearch-clear:hover { background: #cbd5e1; color: var(--ink); }

.psearch-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  flex-shrink: 0;
}
.psearch-submit:hover { background: var(--teal-dark); }
.psearch-submit svg { width: 16px; height: 16px; }

.psearch-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--teal-dark);
  border: 1.5px solid #cbd5e1;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.psearch-filter-btn:hover {
  border-color: var(--teal);
  background: #f0fdfa;
}
.psearch-filter-btn svg { width: 16px; height: 16px; color: var(--teal); }

.filter-count-badge {
  background: var(--teal-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* 2. Drawer de Filtros (Lateral) */
.filters-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 1100;
  animation: fadeIn .2s ease;
}
.filters-scrim[hidden] { display: none; }

.filters-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  max-width: 90vw;
  background: var(--white);
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.18);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  animation: slideInRight .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.filters-drawer[hidden] { display: none; }
body.filters-open { overflow: hidden; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.filters-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}
.filters-drawer__title-row { display: flex; align-items: baseline; gap: 8px; }
.filters-drawer__title-row h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.filters-drawer__count { font-size: 13px; color: #64748b; font-weight: 500; }
.filters-drawer__close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.filters-drawer__close:hover { background: #e2e8f0; color: var(--ink); }

.filters-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.filter-group {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group__title {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-price-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}
.filter-price-field { flex: 1; }
.filter-price-field label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 500;
}
.input-currency-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  padding: 0 12px;
}
.input-currency-wrap span { color: #94a3b8; font-weight: 600; font-size: 14px; margin-right: 4px; }
.input-currency-wrap input {
  border: none;
  background: transparent;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  outline: none;
}
.filter-price-sep { color: #94a3b8; font-weight: 600; }

.filter-capacity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.filter-cap-field label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.filter-cap-field select {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.amenity-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  user-select: none;
}
.amenity-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}

.filters-drawer__foot {
  display: flex;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.btn-clear-filters {
  flex: 1;
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.btn-clear-filters:hover { background: #e2e8f0; color: var(--ink); }
.btn-apply-filters {
  flex: 1.5;
  background: var(--teal);
  border: none;
  color: var(--white);
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-apply-filters:hover { background: var(--teal-dark); }

/* 3. Split Layout: Mapa a la izquierda + Resultados a la derecha */
.properties-split-main {
  background: #f8fafc;
  width: 100%;
}

.properties-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 128px);
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

.properties-map-col {
  position: relative;
  height: 100%;
  width: 100%;
  background: #e2e8f0;
  border-right: 1px solid #e2e8f0;
}

.properties-map {
  width: 100%;
  height: 100%;
}

/* Custom Price Badges & Clusters on Leaflet Map (Estilo PFS Realty) */
.pfs-price-marker-wrap,
.leaflet-price-marker-wrap {
  background: transparent !important;
  border: none !important;
}

.map-price-badge {
  background: #0f2738;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s cubic-bezier(0.34, 1.56, 0.64, 1), background .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-price-badge.is-hover,
.map-price-badge.is-active,
.map-price-badge:hover {
  background: #2563eb !important;
  color: #ffffff !important;
  transform: scale(1.15);
  z-index: 1000 !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
  border-color: #ffffff;
}

.pfs-cluster-wrapper {
  background: transparent !important;
  border: none !important;
}

.pfs-cluster {
  background: #0f2738;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font, inherit);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.pfs-cluster:hover {
  background: #1e3a5f;
  transform: scale(1.08);
}
.pfs-cluster--sm {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.pfs-cluster--md {
  width: 44px;
  height: 44px;
  font-size: 13px;
}
.pfs-cluster--lg {
  width: 52px;
  height: 52px;
  font-size: 15px;
}

/* Columna de Resultados (Scrollable) */
.properties-results-col {
  height: 100%;
  overflow-y: auto;
  padding: 24px 28px 80px;
  background: #f8fafc;
}

.properties-results__head {
  margin-bottom: 20px;
}

.properties-results__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.2;
}

.properties-results__subtitle {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 16px;
}

.properties-results__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.properties-results__count {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 0;
}

.properties-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.properties-view-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-toggle__label { font-size: 12px; color: #64748b; font-weight: 600; }
.view-toggle__btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 34px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}
.view-toggle__btn svg { width: 16px; height: 12px; fill: currentColor; }
.view-toggle__btn.is-active,
.view-toggle__btn:hover {
  background: var(--teal-dark);
  color: #ffffff;
  border-color: var(--teal-dark);
}

.properties-sort {
  display: flex;
  align-items: center;
  gap: 6px;
}

.properties-sort__label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.properties-sort__select {
  padding: 4px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  font-family: var(--font, sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  cursor: pointer;
  height: 32px;
  transition: border-color .15s ease;
}

.properties-sort__select:hover,
.properties-sort__select:focus {
  border-color: var(--teal);
}

/* 4. Cards de Propiedades (PFS Realty Style) */
.properties-grid {
  display: grid;
  gap: 16px;
}

/* Por defecto: 2 Columnas */
.properties-grid,
.properties-grid--wide,
.properties-grid--grid {
  grid-template-columns: repeat(2, 1fr);
}

.property-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.property-card:hover .property-card__title {
  color: var(--teal);
}

.property-card.is-highlighted {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4), 0 8px 20px rgba(0,0,0,0.08);
}

.property-card.is-pulse {
  animation: cardPulse 1.2s ease;
}

@keyframes cardPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(1); }
}

.property-card__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #e2e8f0;
  overflow: hidden;
}

.property-card__image {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.property-card:hover .property-card__image {
  transform: scale(1.03);
}

.property-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}
.property-card__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}
.property-card__dots span:first-child {
  background: #ffffff;
  width: 8px;
  border-radius: 4px;
}

.property-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  z-index: 3;
  transition: all .15s ease;
  backdrop-filter: blur(4px);
}
.property-card__fav:hover {
  background: #ffffff;
  color: #ef4444;
  transform: scale(1.1);
}
.property-card__fav svg { width: 16px; height: 16px; }

.property-card__rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #fbbf24;
  padding: 3px 7px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 2;
}

.property-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.property-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}
.property-card__price-val {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.property-card__price-unit {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.property-card__specs {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 6px;
}

.property-card__address {
  font-size: 12px;
  color: #475569;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.property-card__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}

.properties-status {
  text-align: center;
  color: #64748b;
  padding: 40px 0;
  font-size: 15px;
}

/* 5. Paginación Numerada (Estilo PFS Realty) */
.properties-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px auto 20px;
  padding: 10px 0;
  font-family: var(--font, sans-serif);
}

.properties-pagination[hidden] {
  display: none;
}

.pagination-btn {
  background: transparent;
  border: none;
  color: var(--ink, #0f172a);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 0 8px;
  transition: all .15s ease;
  user-select: none;
}

.pagination-btn:hover:not(:disabled):not(.is-active) {
  background: #e2e8f0;
  color: var(--ink, #0f172a);
}

.pagination-btn.is-active {
  background: #e2e8f0;
  color: var(--ink, #0f172a);
  font-weight: 700;
  cursor: default;
}

.pagination-btn:disabled,
.pagination-btn[aria-disabled="true"] {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-btn--prev,
.pagination-btn--next {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.pagination-btn--prev svg,
.pagination-btn--next svg {
  width: 18px;
  height: 18px;
}

.pagination-ellipsis {
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  padding: 0 4px;
  user-select: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 5. Mobile Floating Switcher & Ficha Preview */
.mobile-view-bar {
  display: none;
}

.properties-map-ficha {
  position: absolute;
  bottom: 84px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  padding: 12px;
  animation: slideUp .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.properties-map-ficha[hidden] { display: none; }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.map-ficha__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  font-size: 16px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.map-ficha__card {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.map-ficha__img {
  width: 84px;
  height: 74px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  background-color: #e2e8f0;
  flex-shrink: 0;
}
.map-ficha__body { flex: 1; min-width: 0; }
.map-ficha__title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-ficha__meta { font-size: 11px; color: #64748b; margin: 0 0 6px; }
.map-ficha__price { font-size: 12px; margin: 0; }
.map-ficha__price strong { font-size: 15px; color: var(--ink); }
.map-ficha__price span { color: #64748b; }
.map-ficha__btn {
  background: var(--teal);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE (TABLET & MOBILE)
   ============================================================ */
@media (max-width: 1024px) {
  .properties-search-form {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .properties-search-fields {
    display: grid;
    grid-template-columns: 1.15fr 1.15fr 0.85fr;
    max-width: 100%;
    border-radius: 12px;
    padding: 4px 6px 8px;
    gap: 0;
  }
  .psearch-f--dest {
    grid-column: 1 / -1;
    border-bottom: 1px solid #e2e8f0;
    padding: 6px 8px 8px;
    margin-bottom: 4px;
    min-width: 0;
  }
  .psearch-f--date {
    min-width: 0;
    padding: 4px 6px;
    border-right: 1px solid #e2e8f0;
    flex: none;
  }
  .psearch-f--guests {
    min-width: 0;
    padding: 4px 6px;
    flex: none;
  }
  .psearch-f {
    gap: 6px;
  }
  .psearch-f__icon svg {
    width: 14px;
    height: 14px;
  }
  .psearch-f__label {
    font-size: 9px;
    letter-spacing: 0.02em;
    margin-bottom: 2px;
  }
  .psearch-f input {
    font-size: 11.5px;
  }
  .psearch-f input[type="date"] {
    font-size: 11px;
    padding: 0;
  }
  .psearch-div { display: none; }
  .psearch-submit {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    margin-top: 8px;
    padding: 11px;
    font-size: 14px;
  }
  .psearch-filter-btn {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 10px;
  }

  /* Split layout en movil: alternancia Mapa / Lista */
  .properties-split {
    display: block;
    height: auto;
    min-height: calc(100vh - 160px);
  }

  .properties-map-col {
    display: none;
    height: calc(100vh - 140px);
    width: 100%;
  }

  .properties-results-col {
    display: block;
    height: auto;
    padding: 16px 16px 90px;
  }

  /* Modo mapa activado en móvil */
  .properties-split.is-mapa .properties-map-col {
    display: block;
  }
  .properties-split.is-mapa .properties-results-col {
    display: none;
  }

  /* Botón flotante móvil */
  .mobile-view-bar {
    display: block;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
  }
  .mobile-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-dark);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(5, 49, 51, 0.4);
    cursor: pointer;
    transition: transform .15s ease;
  }
  .mobile-view-btn:active { transform: scale(0.96); }
  .mobile-view-btn svg { width: 18px; height: 18px; }

  .properties-grid--wide {
    grid-template-columns: 1fr;
  }
  .properties-grid--wide .property-card {
    grid-template-columns: 1fr;
  }
  .properties-grid--wide .property-card__image {
    height: 190px;
  }
  .properties-grid--grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .lang-switcher {
    top: 12px;
    right: 58px;
  }
  .properties-search-fields {
    grid-template-columns: 1.1fr 1.1fr 0.8fr;
    padding: 4px 4px 6px;
  }
  .psearch-f--date {
    padding: 4px 4px;
  }
  .psearch-f--guests {
    padding: 4px 4px;
  }
  .psearch-f__label {
    font-size: 8.5px;
  }
  .psearch-f input[type="date"] {
    font-size: 10px;
  }
  .psearch-f input[name="guests"] {
    font-size: 11px;
  }
  .filters-drawer { width: 100%; max-width: 100vw; }
  .filter-capacity-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
}

/* --- detalle (/property/) --- */
/* 40px, no 140px: a diferencia de .page-hero, .page-property NO pone el
   header en position:absolute sobre una foto (no tiene hero) — el
   header ya ocupa su alto real en flujo normal, asi que un padding
   pensado para "dejar espacio bajo un header flotante" aca solo
   agregaba una franja en blanco de mas. */
.property-page { padding: 40px 20px 80px; max-width: 1100px; }
.property-loading, .property-error { text-align: center; color: var(--muted); padding: 60px 0; }
.property-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 8px; margin-bottom: 32px;
  border-radius: var(--radius); overflow: hidden; position: relative;
}
.property-gallery__item { background-size: cover; background-position: center; background-color: #ddd; cursor: pointer; position: relative; }
.property-gallery__item--main { grid-column: span 2; grid-row: span 2; }
.property-gallery__more {
  position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .65); color: var(--white);
  padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer;
}
.property-gallery__rating {
  position: absolute; top: 14px; right: 14px; background: var(--gold); color: var(--ink);
  padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 600;
}

/* lightbox de fotos (click en la galeria). z-index bien alto (no 100)
   a proposito: Leaflet (el mapa de ubicacion, ver .property-map mas
   abajo) mete sus propios controles/panes con z-index hasta 1000 — sin
   esto, el mapa se ve POR ENCIMA del modal cuando la pagina esta
   scrolleada hasta la seccion de ubicacion. */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; } /* sin esto, [hidden] pierde contra .lightbox{display:flex} por especificidad igual */
body.lightbox-open { overflow: hidden; }
.lightbox__image { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--white);
  font-size: 36px; line-height: 1; cursor: pointer;
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .15);
  border: none; color: var(--white); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .3); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--white); font-size: 14px; }
.property-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.property-main h1 { font-family: var(--font); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 8px; }
.property-main h2 {
  font-family: var(--font); font-size: 15px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--teal-dark); margin: 32px 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid var(--gold);
}
.property-price { font-size: 20px; color: var(--ink); margin: 0 0 10px; }
.property-price strong { font-family: var(--font-head); font-size: 26px; font-weight: 400; }
.property-price span { color: var(--muted); font-size: 14px; }
.property-meta { color: var(--muted); margin: 0 0 4px; text-transform: capitalize; }
.property-rating { color: var(--gold); font-weight: 600; margin: 0 0 16px; }
.key-facts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px;
  padding: 4px 0;
}
.key-fact { display: flex; flex-direction: column; gap: 4px; }
.key-fact__label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.key-fact__value { font-family: var(--font); font-weight: 400; font-size: 18px; color: var(--ink); }
.property-description { line-height: 1.7; position: relative; }
.property-house-rules { line-height: 1.8; position: relative; } /* mismo color que .property-description (--ink por herencia) — antes usaba --muted, sin motivo real para que difieran */
.collapsible--collapsed {
  max-height: 9.5em; overflow: hidden; mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.read-more-toggle {
  background: none; border: none; color: var(--teal); font-weight: 600; cursor: pointer;
  padding: 8px 0 0; font-family: var(--font); font-size: 14px;
}
.property-cancellation { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.property-amenities {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 16px;
}
.property-amenities li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.check-badge {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--cream); flex-shrink: 0;
}
.check-badge svg { width: 16px; height: 16px; color: var(--teal); }
.rule-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.rule-chip {
  display: flex; align-items: center; gap: 8px; background: var(--white); border-radius: 20px;
  padding: 10px 16px; font-size: 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}
.rule-chip svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; }
.stars { position: relative; display: inline-block; color: #d9d4c3; letter-spacing: 2px; line-height: 1; white-space: nowrap; }
.stars__fill { position: absolute; left: 0; top: 0; overflow: hidden; color: #e0a83a; white-space: nowrap; }
.reviews-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin-bottom: 20px; }
.reviews-summary__score { font-family: var(--font-head); font-size: 34px; color: var(--teal-dark); line-height: 1; }
.reviews-summary__count { color: var(--muted); font-size: 14px; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card__head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.review-card__avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--cream); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.review-card__name { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card__date { font-size: 12px; color: var(--muted); }
.review-card__text { margin: 0; line-height: 1.6; font-size: 14px; }
.property-reviews[hidden] { display: none; }
.property-location { margin-top: 32px; }
.property-map { width: 100%; height: 320px; border-radius: var(--radius); overflow: hidden; background: #ddd; }
.map-pin { background: none; border: none; } /* Leaflet pone fondo/borde blanco por default en divIcon */

.property-booking {
  position: sticky; top: 24px; background: var(--white); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 6px 20px rgba(0, 0, 0, .1);
}
.booking-price-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.booking-price-amount {
  font-family: var(--font);
  font-size: 28px;
  font-weight: 700;
  color: #dfb27a;
}
.booking-price-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.property-booking h3 { font-family: var(--font-head); margin: 0 0 6px; }
.booking-help { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.booking-calendar__header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 600;
}
.booking-calendar__header button { background: none; border: none; cursor: pointer; font-size: 18px; padding: 4px 10px; }
.booking-calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px;
  border: none; border-radius: 6px; background: none; cursor: default;
}
.calendar-cell--available { background: var(--cream); cursor: pointer; color: var(--ink); }
.calendar-cell--available:hover { background: var(--gold); }
.calendar-cell--disabled { color: #ccc; text-decoration: line-through; }
.calendar-cell--selected { background: var(--teal) !important; color: var(--white) !important; }
.calendar-cell--in-range { background: rgba(69, 180, 174, .25); }
/* Pildoras (fechas + huespedes) — la de fechas dispara el popover del
   calendario; antes el calendario estaba siempre visible ocupando
   espacio permanente en el sidebar. */
.booking-pills { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.booking-pill {
  display: flex; align-items: center; gap: 10px; flex: 1 1 150px; min-width: 0;
  border: 1px solid #e5e0cd; border-radius: 999px; padding: 10px 16px; background: var(--white);
}
.booking-pill svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }
#dates-trigger { cursor: pointer; font-family: var(--font); font-size: 14px; color: var(--ink); text-align: left; }
#dates-trigger span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#dates-trigger[aria-expanded="true"] { border-color: var(--teal); }
.guests-stepper { display: flex; align-items: center; gap: 10px; }
.guests-stepper button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d8d2bd; background: var(--white);
  color: var(--teal-dark); font-size: 16px; line-height: 1; cursor: pointer; flex-shrink: 0;
}
.guests-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.guests-stepper input {
  width: 28px; padding: 0; border: none; text-align: center; font-family: var(--font); font-size: 15px;
  background: none; -moz-appearance: textfield;
}
.guests-stepper input::-webkit-outer-spin-button, .guests-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.guests-max-note { margin: 6px 0 0; font-size: 12px; color: var(--muted); }

/* Modal (no un dropdown anclado a la pildora): el ancho del sidebar
   (1fr de .property-layout, angosto en pantallas medianas) le quedaba
   chico a una grilla de 7 columnas — como modal usa el ancho de la
   pantalla, no el del sidebar. z-index alto por lo mismo que .lightbox
   arriba: sin esto, el mapa de Leaflet (controles/panes hasta z-index
   1000) se renderiza por encima de este modal. */
.booking-calendar-popover {
  position: fixed; inset: 0; z-index: 2000; background: rgba(15, 23, 42, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.booking-calendar-popover[hidden] { display: none; }
.booking-calendar-popover__panel {
  position: relative; background: var(--white); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .25); padding: 24px; width: 100%; max-width: 380px;
  max-height: 85vh; overflow-y: auto;
}
.booking-calendar-popover__close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.booking-calendar-popover__actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.booking-calendar-popover__actions button {
  background: none; border: 1px solid #d8d2bd; border-radius: 6px; padding: 8px 16px; cursor: pointer; color: var(--muted); font-size: 13px;
}
.calendar-min-stay { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.booking-quote { margin: 18px 0 12px; font-size: 14px; }
.quote-line { display: flex; justify-content: space-between; padding: 6px 0; color: #334155; }
.quote-line--total { font-weight: 700; font-size: 16px; color: var(--ink); border-top: 1px solid #e2e8f0; margin-top: 10px; padding-top: 12px; }
.quote-nights { font-weight: 600; margin: 0 0 8px; }
.quote-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 10px; }

.booking-actions { display: flex; gap: 10px; margin-top: 12px; }
.booking-actions .btn-outline { flex: 1 1 0; justify-content: center; padding: 12px 16px; border-radius: 24px; }
#booking-cta { flex: 1 1 0; text-align: center; border: none; cursor: pointer; border-radius: 24px; background: #f0ddbe; color: #43331b; font-weight: 700; }
#booking-cta:hover:not(:disabled) { background: #e5cc9f; }
#booking-cta:disabled { opacity: .5; cursor: not-allowed; }
.inquiry-form-wrap { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e0cd; }
.inquiry-form-wrap .contact-form { max-width: 100%; }
.inquiry-form-wrap .contact-form input, .inquiry-form-wrap .contact-form textarea { background: var(--cream); }
.inquiry-form-wrap .contact-form button {
  background: var(--teal); color: var(--white); font-size: 16px; padding: 12px; border-radius: 6px;
}

@media (max-width: 900px) {
  .property-layout { grid-template-columns: 1fr; }
  .property-booking { position: static; }
  .property-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .property-gallery__item--main { grid-column: span 2; grid-row: span 1; }
}

/* --- booking (/book/) --- */
.book-page { padding: 40px 20px 80px; max-width: 1140px; }
.book-header { margin-bottom: 28px; }
.book-header h1 { font-family: var(--font-head); font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 6px; color: var(--ink); }
.book-subtitle { font-size: 14px; color: var(--muted); margin: 0; }
.book-error { text-align: center; color: var(--muted); padding: 40px 0; font-size: 15px; }
.book-error a { color: var(--gold); text-decoration: underline; font-weight: 600; }
.book-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
.book-layout[hidden] { display: none; }

.book-form {
  background: var(--white); padding: 32px; border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); border: 1px solid rgba(0, 0, 0, 0.04);
}
.book-form__section { margin-bottom: 26px; }
.book-form__title {
  font-family: var(--font-head); font-size: 19px; color: var(--ink);
  margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid #f0ede4;
}
.book-form__desc { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.form-label .req { color: #b3261e; }

.book-form input, .book-form textarea, .book-form select {
  padding: 12px 14px; border: 1px solid #dcd7ca; border-radius: 8px;
  font-family: var(--font); font-size: 14px; background: #fdfcf9; color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%; box-sizing: border-box;
}
.book-form input:focus, .book-form textarea:focus, .book-form select:focus {
  border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(184, 148, 79, 0.15);
}
.book-form textarea { resize: vertical; min-height: 80px; }

.book-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-form__row--3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; }

.book-form__footer { padding-top: 10px; border-top: 1px solid #f0ede4; }
.book-terms-notice { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; }
.book-submit-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--gold); color: var(--ink); border: none; padding: 15px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer;
  transition: all 0.2s ease; box-shadow: 0 4px 14px rgba(184, 148, 79, 0.25);
}
.book-submit-btn:hover:not(:disabled) {
  background: #a9833e; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(184, 148, 79, 0.35);
}
.book-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.book-security-badge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center;
}
.book-security-badge svg { color: #1a7a3c; flex-shrink: 0; }

.book-status { font-size: 14px; margin-top: 14px; padding: 12px; border-radius: 6px; }
.book-status[data-state="ok"] { background: #eaf6ee; color: #1a7a3c; border: 1px solid #bce4c8; }
.book-status[data-state="error"] { background: #fdf2f2; color: #b3261e; border: 1px solid #f8c9c9; }

/* Summary card sidebar */
.book-summary { position: sticky; top: 90px; }
.book-summary__card {
  background: var(--white); border-radius: 12px; padding: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.04);
}
.book-summary__property { display: flex; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #f0ede4; }
.book-summary__thumb {
  width: 78px; height: 78px; border-radius: 8px; background-size: cover;
  background-position: center; background-color: #eee; flex-shrink: 0;
}
.book-summary__info { display: flex; flex-direction: column; justify-content: center; }
.book-summary__info h3 { font-family: var(--font-head); font-size: 16px; margin: 0 0 3px; line-height: 1.3; color: var(--ink); }
.book-summary__location { font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.book-summary__rating {
  display: inline-block; font-size: 11px; font-weight: 700; color: var(--ink);
  background: #f4ecd8; padding: 2px 7px; border-radius: 4px; align-self: flex-start;
}

.book-summary__section { padding: 16px 0; border-bottom: 1px solid #f0ede4; }
.book-summary__section h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink); margin: 0 0 10px;
}
.trip-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.trip-header h4 { margin: 0; }
.trip-edit-link { font-size: 12px; font-weight: 600; color: var(--gold); text-decoration: underline; }

.trip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip-cell { background: #faf8f2; padding: 8px 10px; border-radius: 6px; border: 1px solid #ede8dc; }
.trip-label { display: block; font-size: 10px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.trip-cell strong { font-size: 12px; color: var(--ink); word-break: break-word; }

.policy-tiers-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.policy-tier { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: #1a7a3c; line-height: 1.4; }
.policy-tier svg { flex-shrink: 0; margin-top: 2px; }

.book-summary__pricing .quote-line { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.book-summary__pricing .quote-line--total {
  padding-top: 12px; margin-top: 10px; border-top: 1px dashed #dcd7ca;
  font-size: 15px; font-weight: 700; color: var(--ink);
}
.book-summary__pricing .quote-line--total strong { font-size: 18px; color: var(--gold); }
.book-summary__pricing .quote-disclaimer { font-size: 11px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }

.book-summary__trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: 14px; font-size: 12px; font-weight: 600; color: #1a7a3c;
}

@media (max-width: 860px) {
  .book-layout { grid-template-columns: 1fr; }
  .book-summary { position: static; order: -1; }
  .book-form__row { grid-template-columns: 1fr; }
  .book-form__row--3 { grid-template-columns: 1fr; }
  .book-form { padding: 22px; }
}

@media (max-width: 760px) {
  .property-page, .book-page { padding-top: 24px; }
  .search-form__row { flex-direction: column; }
  .search-bar { flex-direction: column; border-radius: var(--radius); align-items: stretch; }
  .search-field { padding: 10px 14px; }
  .search-divider { width: auto; height: 1px; align-self: stretch; margin: 0; }
  .search-submit { justify-content: center; border-radius: var(--radius); margin: 6px 8px 0; }
  .btn-outline { justify-content: center; }
}
