/* Rentas Tulum v11 — Módulo 2: tarjeta del anfitrión en la ficha y perfil público del anfitrión (#/anfitrion/<slug>) */

/* ——— Tarjeta del anfitrión (ficha de una propiedad publicada por su propietario o broker) ——— */
.host-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s4); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.host-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.host-card:focus-visible { outline: none; box-shadow: var(--focus); }
.hc-av { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--sand); }
.hc-av.ini { display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 1.125rem; letter-spacing: .02em; }
.hc-meta { display: grid; gap: 2px; min-width: 0; }
.hc-k { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); }
.hc-meta strong { font-size: 1.0625rem; line-height: 1.25; overflow-wrap: anywhere; }
.hc-ok { display: inline-flex; align-items: center; gap: .3em; color: var(--ok); font-size: var(--fs-xs); font-weight: 650; }
.hc-ok svg, .hv-ok svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hc-go { font-size: var(--fs-xs); font-weight: 650; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
@media (max-width: 380px) { .host-card { grid-template-columns: 48px minmax(0, 1fr); } .hc-av { width: 48px; height: 48px; } .hc-go { grid-column: 2; } }

/* ——— Perfil público del anfitrión ——— */
.hostv { z-index: 81; }
.hv-wrap { max-width: 1080px; }
.hv-head { display: flex; gap: var(--s5); align-items: center; padding: var(--s5) 0 var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.hv-av { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--sand); flex: none; box-shadow: var(--shadow-2); }
.hv-av.ini { display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 2.5rem; font-weight: 700; }
.hv-id { display: grid; gap: var(--s2); min-width: 0; }
.hv-id h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; overflow-wrap: anywhere; }
.hv-id h1:focus { outline: none; }
.hv-facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); color: var(--ink-2); font-size: var(--fs-small); }
.hv-ok { display: inline-flex; align-items: center; gap: .35em; color: var(--ok); font-weight: 650; }
.hv-cols { display: grid; gap: var(--s6); margin-bottom: var(--s7); }
@media (min-width: 1024px) { .hv-cols { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: clamp(2rem, 4vw, 4rem); } }
.hv-about { display: grid; gap: var(--s3); align-content: start; min-width: 0; }
.hv-about .specs { margin-top: var(--s3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } /* sin celdas vacías si hay un solo dato */
.hv-about .specs a { color: var(--gold-ink); font-weight: 600; }
.hv-contact .btn-wa { width: 100%; }
.hv-ask { font-weight: 650; font-size: 1.125rem; }
.hv-grid { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--s5); }
.hv-card { display: grid; height: 100%; text-decoration: none; color: inherit; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.hv-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.hv-card:focus-visible { outline: none; box-shadow: var(--focus); }
.hv-card img, .hv-noimg { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sand); }
.hv-cbody { display: grid; gap: 4px; padding: var(--s4); align-content: start; }
.hv-card .card-loc { font-size: var(--fs-xs); color: var(--muted); }
.hv-card strong { font-size: 1.0625rem; line-height: 1.3; }
.hv-card .price { font-weight: 700; }
.hv-card .price small { font-weight: 500; color: var(--muted); }
.hv-loading { padding: var(--s8) 0; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .hv-head { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .hv-av { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .host-card:hover, .hv-card:hover { transform: none; } }

/* Calendario vacacional: la leyenda "Ocupado" usaba la clase .lb del visor de fotos (capa fija a pantalla completa e
   invisible que bloqueaba los clics en la ficha de las propiedades vacacionales). Ahora es .lo */
.cal-legend .lo i { background: var(--danger-soft); border: 1px solid #efb6b0; }


/* ——— v11 · fluidez: menos desenfoques recalculados en cada cuadro (mismo aspecto) ———
   Las etiquetas de las tarjetas ya son 94 % opacas: el desenfoque detrás no se nota y cada una era una capa extra al
   desplazar el catálogo. En teléfono y tablet, el dock y las barras de la ficha van casi opacos y sin desenfoque
   (igual que la barra superior desde v7): sobre el recorrido 3D, que se redibuja al hacer scroll, ese desenfoque
   se recalculaba en cada cuadro. */
.badge { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1023px) {
  .dock { background: rgba(251, 250, 247, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .detail-bar { background: rgba(243, 241, 236, .98); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .detail-cta { background: rgba(251, 250, 247, .99); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
