/* ==========================================================
   HE Propiedades Inmobiliarias - Frontend CSS
   ========================================================== */

/* ── Bloque Campo de Propiedad ────────────────────────────── */
.he-campo {
  display: inline;
  font-size: inherit;
  color: inherit;
}

/* Variantes de ejemplo (aplicar con "Clase CSS adicional" en Gutenberg) */
.he-campo.is-style-badge {
  display: inline-block;
  background: var(--he-acento);
  color: #fff;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
}
.he-campo.is-style-destacado {
  display: inline-block;
  color: var(--he-primario);
  font-weight: 700;
  border-bottom: 2px solid var(--he-acento);
}

:root {
  --he-primario:    #1a5276;
  --he-acento:      #2980b9;
  --he-fondo-card:  #ffffff;
  --he-texto:       #2c3e50;
  --he-gap:         24px;
  --he-pad:         16px;
  --he-radius:      8px;
  --he-shadow:      0 2px 12px rgba(0,0,0,0.08);
  --he-tam-titulo:  17px;
  --he-tam-precio:  20px;
  --he-tam-datos:   13px;
  --he-badge-venta:    #1a5276;
  --he-badge-arriendo: #117a65;
  --he-btn-bg:      var(--he-acento);
  --he-wa-bg:       #25d366;
}

/* ── Grid ─────────────────────────────────────────────────── */
.he-grid {
  display: grid;
  gap: var(--he-gap);
}
.he-cols-1 { grid-template-columns: 1fr; }
.he-cols-2 { grid-template-columns: repeat(2, 1fr); }
.he-cols-3 { grid-template-columns: repeat(3, 1fr); }
.he-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .he-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .he-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .he-cols-2,
  .he-cols-3,
  .he-cols-4 { grid-template-columns: 1fr; }
}

/* ── Filtros ──────────────────────────────────────────────── */
.he-filtros {
  background: #f4f6f8;
  border-radius: var(--he-radius);
  padding: 16px;
  margin-bottom: 24px;
}
.he-filtros-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.he-filtro {
  flex: 1 1 180px;
  min-width: 150px;
  padding: 10px 14px;
  border: 1.5px solid #d0d7de;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  color: var(--he-texto);
  cursor: pointer;
  transition: border-color .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.he-filtro:focus {
  outline: none;
  border-color: var(--he-acento);
  box-shadow: 0 0 0 3px rgba(41,128,185,.15);
}
.he-filtro:disabled {
  opacity: .5;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .he-filtro { flex: 1 1 100%; }
}

/* ── Resultados info ──────────────────────────────────────── */
.he-resultados-info {
  font-size: 13px;
  color: #666;
  margin-bottom: 16px;
}

/* ── Card ─────────────────────────────────────────────────── */
.he-card {
  background: var(--he-fondo-card);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  border: 1px solid #eaecef;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  color: var(--he-texto);
}
.he-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.13);
  border-color: #d0d9e3;
}

/* Card image */
.he-card-img-link { display: block; }
.he-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #e8edf2;
  overflow: hidden;
}
.he-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.he-card:hover .he-card-img img { transform: scale(1.05); }

/* Gradient overlay at bottom of image */
.he-card-img::after {
  content: '';
  position: absolute;
  inset: 40% 0 0 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.35));
  pointer-events: none;
}

.he-card-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #b0bec5;
}
.he-card-img-placeholder svg { width: 56px; height: 56px; }

/* Badge */
.he-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
  z-index: 1;
}
.he-badge-venta    { background: var(--he-badge-venta); }
.he-badge-arriendo { background: var(--he-badge-arriendo); }
.he-badge-lg {
  position: static;
  display: inline-block;
  font-size: 13px;
  padding: 5px 14px;
  margin-bottom: 8px;
}

/* Card body */
.he-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.he-card-title {
  font-size: var(--he-tam-titulo);
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--he-texto);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.he-card-title a {
  color: inherit;
  text-decoration: none !important;
}
.he-card-title a:hover { color: var(--he-acento); }

/* Precio */
.he-card-precio {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
}
.he-precio-principal {
  font-size: var(--he-tam-precio);
  font-weight: 800;
  color: var(--he-primario);
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
}
.he-precio-secundario {
  font-size: 12px;
  font-weight: 400;
  color: #777;
}

/* Datos */
.he-card-datos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: var(--he-tam-datos);
  color: #555;
}
.he-dato {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.he-dato svg { flex-shrink: 0; color: var(--he-primario); }

/* Dirección */
.he-card-direccion {
  font-size: 12px;
  color: #888;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.he-card-direccion svg { flex-shrink: 0; margin-top: 1px; color: var(--he-acento); }

/* Botón Ver más detalle */
.he-btn-detalle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: auto !important;
  padding: 10px 18px !important;
  background: var(--he-btn-bg) !important;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: opacity .18s, transform .18s !important;
}
.he-btn-detalle:hover {
  opacity: .9 !important;
  transform: translateY(-1px) !important;
}

/* ── No results ───────────────────────────────────────────── */
.he-no-results {
  text-align: center;
  padding: 48px 24px;
  color: #888;
  font-size: 15px;
  background: #f9fafb;
  border-radius: var(--he-radius);
  grid-column: 1 / -1;
}

/* ── Paginación ───────────────────────────────────────────── */
.he-paginacion {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}
.he-pagination-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.he-pagination-nums {
  display: flex;
  align-items: center;
  gap: 4px;
}
.he-page-btn,
.he-page-nav {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border: 1px solid #e2e6ea;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #555;
  transition: border-color .15s, color .15s, background .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: inherit;
}
.he-page-btn:hover:not(.active),
.he-page-nav:hover:not(:disabled) {
  border-color: #b0bec5;
  background: #f7f9fb;
  color: var(--he-acento);
}
.he-page-btn.active {
  border-color: #d0d9e3;
  background: #fff;
  color: var(--he-acento);
  font-weight: 700;
  cursor: default;
}
.he-page-nav {
  color: #888;
  font-size: 14px;
}
.he-page-nav:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}
.he-load-more {
  padding: 12px 32px;
  background: var(--he-acento);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.he-load-more:hover { opacity: .88; }
.he-load-more:disabled { opacity: .5; cursor: not-allowed; }

/* ── Loading spinner ──────────────────────────────────────── */
.he-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.he-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e0e0e0;
  border-top-color: var(--he-acento);
  border-radius: 50%;
  animation: he-spin .7s linear infinite;
}
@keyframes he-spin { to { transform: rotate(360deg); } }

/* ── Migas de pan (breadcrumbs) ──────────────────────────── */
.he-breadcrumbs {
  margin-bottom: 18px;
}
.he-breadcrumbs-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  line-height: 1.4;
}
.he-breadcrumbs-list li {
  display: flex !important;
  align-items: center;
  list-style: none !important;
}
/* Forzar visibilidad de todos los textos — algunos temas ocultan span no-link */
.he-breadcrumbs-list li > span[itemprop="name"],
.he-breadcrumbs-list li > a {
  display: inline !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #888;
}
.he-breadcrumbs-list a {
  color: var(--he-acento) !important;
  text-decoration: none !important;
}
.he-breadcrumbs-list a:hover {
  text-decoration: underline !important;
}
.he-breadcrumbs-list [aria-current="page"] {
  color: #444 !important;
  font-weight: 500;
  max-width: 300px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block !important;
  vertical-align: bottom;
}
.he-bc-sep {
  display: inline !important;
  visibility: visible !important;
  margin: 0 7px;
  color: #ccc;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

/* ── Single propiedad ────────────────────────────────────── */
.he-single-propiedad {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.he-single-header {
  margin-bottom: 24px;
}
.he-single-titulo {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--he-texto);
  margin: 8px 0 6px;
  line-height: 1.25;
}
.he-single-ubicacion {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #666;
  font-size: 15px;
  margin: 0;
}
.he-single-ubicacion svg { flex-shrink: 0; margin-top: 2px; color: var(--he-acento); }

/* Single content layout */
.he-single-content {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .he-single-content { grid-template-columns: 1fr; }
}

/* Galería */
.he-galeria-principal {
  border-radius: var(--he-radius);
  overflow: hidden;
  margin-bottom: 10px;
  background: #eee;
}
.he-galeria-principal a { display: block; }
.he-galeria-principal img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}
.he-galeria-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.he-galeria-thumb {
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  border: 2.5px solid transparent;
  transition: border-color .2s;
  cursor: pointer;
}
.he-galeria-thumb.active,
.he-galeria-thumb:hover { border-color: var(--he-acento); }
.he-galeria-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Single info */
.he-single-info {
  background: #f7f9fb;
  border-radius: var(--he-radius);
  padding: 24px;
  position: sticky;
  top: 80px;
  border: 1px solid #e3e8ed;
}
.he-single-precio {
  margin-bottom: 20px;
}
.he-precio-principal-lg {
  display: block;
  font-size: 28px;
  font-weight: 900;
  color: var(--he-primario);
  line-height: 1.1;
}

/* Tabla características */
.he-single-caracteristicas h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--he-texto);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e0e8f0;
}
.he-tabla-caract {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.he-tabla-caract tr:not(:last-child) td { border-bottom: 1px solid #edf0f3; }
.he-tabla-caract td { padding: 8px 4px; vertical-align: middle; }
.he-caract-icon { width: 24px; font-size: 15px; }
.he-caract-label { color: #666; width: 45%; }
.he-caract-val { font-weight: 600; color: var(--he-texto); }

/* WhatsApp button */
.he-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 13px 20px;
  background: var(--he-wa-bg);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  transition: opacity .2s;
}
.he-btn-whatsapp:hover { opacity: .88; }

/* Descripción */
.he-single-descripcion {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid #eef1f5;
}
.he-single-descripcion h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--he-texto);
}
.he-descripcion-content { font-size: 15px; line-height: 1.75; color: #444; }

/* ── Lightbox ──────────────────────────────────────────────── */
.he-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
.he-lightbox-overlay.active { display: flex; }
.he-lightbox-img-wrap {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.he-lightbox-img-wrap img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
.he-lightbox-close,
.he-lightbox-prev,
.he-lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  font-size: 20px;
}
.he-lightbox-close:hover,
.he-lightbox-prev:hover,
.he-lightbox-next:hover { background: rgba(255,255,255,.3); }
.he-lightbox-close { top: 16px; right: 20px; width: 40px; height: 40px; font-size: 24px; }
.he-lightbox-prev  { left: 16px;  top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }
.he-lightbox-next  { right: 16px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; }

/* ── Grid Gallery (he_galeria) ─────────────────────────────── */
.he-grid-gallery {
  width: 100%;
  box-sizing: border-box;
}

.he-ggal-page {
  display: none !important;
}
.he-ggal-page.active {
  display: block !important;
}

.he-ggal-grid {
  display: grid !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.he-ggal-cols-1 { grid-template-columns: 1fr !important; }
.he-ggal-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.he-ggal-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.he-ggal-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

@media (max-width: 480px) {
  .he-ggal-cols-3,
  .he-ggal-cols-4 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Cuadrado robusto: no depende de aspect-ratio ni height:100% en img */
.he-ggal-item {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  padding-top: 100% !important;   /* truco 1:1 */
  overflow: hidden !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  background: #e8edf2;
}
.he-ggal-item img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.3s ease;
  max-width: none !important;   /* anula max-width:100% del tema */
}
.he-ggal-item:hover img {
  transform: scale(1.06);
}

/* Navigation */
.he-ggal-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
  padding: 0 !important;
}
.he-ggal-prev,
.he-ggal-next {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  font-size: 26px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  color: var(--he-primario, #1a5276) !important;
  padding: 2px 6px !important;
  opacity: 0.7;
  transition: opacity 0.2s;
  width: auto !important;
  height: auto !important;
}
.he-ggal-prev:hover,
.he-ggal-next:hover { opacity: 1; }

.he-ggal-dots {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  align-items: center !important;
}
.he-ggal-dot {
  display: inline-block !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #ccc !important;
  border: none !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: background 0.2s, transform 0.2s;
  min-width: 0 !important;
}
.he-ggal-dot.active {
  background: var(--he-acento, #2980b9) !important;
  transform: scale(1.35);
}

/* ── Destacadas ────────────────────────────────────────────── */
.he-destacadas-wrap {}
.he-destacadas-titulo {
  font-size: 22px;
  font-weight: 800;
  color: var(--he-texto);
  margin-bottom: 20px;
}

/* ── Shortcode single ─────────────────────────────────────── */
.he-shortcode-single { max-width: 360px; }

/* ── Block wrapper ────────────────────────────────────────── */
.he-prop-block { width: 100%; }

/* ==========================================================
   SINGLE PROPIEDAD — REDISEÑO v1.1
   ========================================================== */

.he-single-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}
.he-single-propiedad {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Imagen destacada ──────────────────────────────────────── */
.he-featured-img {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 0;
}

/* ── Contenido post (bloques Gutenberg/Spectra) ─────────────── */
.he-post-content {
  margin-bottom: 28px;
}

/* ── Cabecera ──────────────────────────────────────────────── */
.he-single-cabecera {
  padding: 4px 0 20px;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 20px;
}
.he-single-badge-text { margin: 0 0 10px; }
.he-badge-inline {
  position: static;
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  letter-spacing: .5px;
}
.he-single-titulo {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  color: var(--he-texto);
  margin: 0 0 8px;
  line-height: 1.25;
}
.he-single-direccion {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  color: var(--he-acento);
  font-size: 14px;
  margin: 0 0 14px;
  text-decoration: none;
}
.he-single-direccion svg { flex-shrink: 0; margin-top: 1px; }

/* Precio */
.he-single-precio-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.he-single-precio-principal {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--he-texto);
  line-height: 1;
}
.he-single-precio-secundario {
  font-size: 14px;
  color: #888;
}
.he-precio-rebaja {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.he-precio-anterior {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
}
.he-badge-rebaja {
  font-size: 11px;
  font-weight: 700;
  background: #e74c3c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .5px;
}

/* ── Características esenciales: chips con íconos SVG ──────── */
.he-single-caract-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
  margin-bottom: 20px;
}
.he-caract-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 76px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e4eaf0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  text-align: center;
  flex: 0 0 auto;
}
.he-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--he-primario);
  width: 20px;
  height: 20px;
}
.he-chip-icon svg { width: 20px; height: 20px; display: block; }
.he-chip-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--he-texto);
  line-height: 1.1;
  white-space: nowrap;
}
.he-chip-label {
  font-size: 11px;
  color: #888;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .he-caract-chip { min-width: 66px; padding: 8px 10px; }
  .he-chip-val    { font-size: 15px; }
  .he-chip-label  { font-size: 10px; }
}

/* ── Slider galería ─────────────────────────────────────────── */
.he-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 12px;
  background: #111;
  aspect-ratio: 4/3;
}
.he-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.he-slider-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.he-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.he-slider .he-slider-btn {
  all: unset;
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: rgba(0,0,0,0.45) !important;
  color: #fff !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  font-size: 28px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 10 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
  box-sizing: border-box !important;
}
.he-slider .he-slider-btn:hover { background: rgba(0,0,0,0.7) !important; }
.he-slider .he-slider-prev { left: 10px !important; }
.he-slider .he-slider-next { right: 10px !important; }
.he-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.he-slider .he-slider-dot {
  all: unset;
  display: block !important;
  width: 8px !important;
  height: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  background: rgba(255,255,255,0.5) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  transition: background 0.2s !important;
  box-sizing: content-box !important;
}
.he-slider .he-slider-dot.active { background: #fff !important; }

/* ── Detalles completos ─────────────────────────────────────── */
.he-detalles-titulo {
  font-size: 18px;
  font-weight: 700;
  color: var(--he-texto);
  margin: 0 0 10px;
}
.he-single-detalles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #e8ecf0;
  border-radius: var(--he-radius);
  overflow: hidden;
  margin-bottom: 32px;
}
.he-detalle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px;
  border-bottom: 1px solid #eef1f5;
  font-size: 15px;
}
.he-detalle-item:last-child,
.he-detalle-item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.he-detalle-item:nth-child(4n+3),
.he-detalle-item:nth-child(4n+4) { background: #f9fafb; }
.he-detalle-icon {
  display: flex;
  align-items: center;
  color: var(--he-primario);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.he-detalle-icon svg { width: 16px; height: 16px; display: block; }
.he-detalle-label {
  color: #555;
  min-width: 140px;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}
.he-detalle-val {
  font-weight: 700;
  color: var(--he-texto);
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}
@media (max-width: 640px) {
  .he-single-detalles { grid-template-columns: 1fr !important; }
  .he-detalle-item:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid #eef1f5; }
  .he-detalle-item:last-child { border-bottom: none; }
  .he-detalle-item:nth-child(4n+3),
  .he-detalle-item:nth-child(4n+4) { background: transparent; }
  .he-detalle-item:nth-child(even) { background: #f9fafb; }
  .he-detalle-label { min-width: 0; font-size: 14px; }
  .he-detalle-val   { font-size: 14px; }
}

/* ── Descripción ────────────────────────────────────────────── */
.he-single-descripcion {
  margin-bottom: 28px;
}
.he-desc-titulo {
  font-size: 18px;
  font-weight: 700;
  color: var(--he-texto);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eef1f5;
}
.he-desc-content {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
}
.he-desc-content p { margin-bottom: 12px; }

/* ── CTA WhatsApp ───────────────────────────────────────────── */
.he-single-cta {
  margin-top: 8px;
}
.he-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: opacity .2s, transform .15s;
}
.he-btn-whatsapp:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ── WooCommerce-style two-column layout ──────────────────────── */
.he-single-propiedad .he-woo-layout {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 48px !important;
  align-items: start !important;
  margin-bottom: 40px;
}

.he-single-propiedad .he-woo-media {
  min-width: 0;
}

.he-single-propiedad .he-woo-summary {
  position: sticky !important;
  top: 100px;
  min-width: 0;
}

/* Badge inline en el summary — anular position:absolute del badge de card */
.he-woo-summary .he-badge-inline {
  position: static !important;
  display: inline-block !important;
}

/* Summary elements spacing */
.he-woo-summary .he-single-badge-text { margin: 0 0 12px; }
.he-woo-summary .he-single-titulo     { margin: 0 0 10px; }
.he-woo-summary .he-single-direccion  { margin-bottom: 18px; }
.he-woo-summary .he-single-precio-wrap { margin-bottom: 20px; }
.he-woo-summary .he-single-caract-bar {
  margin-bottom: 24px;
}

/* ── Contact button ─────────────────────────────────────────── */
.he-single-cta {
  margin-top: 8px;
}
.he-btn-contacto {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--he-acento);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: opacity .2s, transform .15s;
  box-sizing: border-box;
}
.he-btn-contacto:hover {
  opacity: .9;
  transform: translateY(-1px);
}

/* ── Responsive: stack to single column ────────────────────── */
@media (max-width: 900px) {
  .he-single-propiedad .he-woo-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .he-single-propiedad .he-woo-summary {
    position: static !important;
  }
}

/* ── Galería unificada single propiedad ─────────────────────── */
.he-prop-gallery {
  margin-bottom: 20px;
}

/* Imagen principal */
.he-pgal-main-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  margin-bottom: 10px;
  cursor: zoom-in;
  line-height: 0;
}
.he-pgal-main-img {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

/* Strip: flechas a los lados de las miniaturas */
.he-pgal-strip {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 8px !important;
}
.he-pgal-thumbs-wrap {
  flex: 1 !important;
  min-width: 0 !important;
}

/* Flechas del strip */
.he-pgal-nav {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 28px !important;
  height: 28px !important;
  font-size: 22px !important;
  line-height: 1 !important;
  color: #0B3A66 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  opacity: 0.8;
  transition: opacity 0.2s !important;
  box-sizing: border-box !important;
}
.he-pgal-nav:hover { opacity: 1; }

/* Contador */
.he-pgal-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
  pointer-events: none;
}

/* Tira de miniaturas */
.he-pgal-thumbs-wrap {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  width: 100% !important;
}
.he-pgal-thumbs-wrap::-webkit-scrollbar { display: none; }

.he-pgal-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding-bottom: 4px !important;
  margin: 0 !important;
  list-style: none !important;
  align-items: flex-start !important;
}

.he-pgal-thumb {
  all: unset;
  display: block !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  flex-basis: 80px !important;
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  /* Cuadrado robusto con padding-top */
  position: relative !important;
  padding-top: 80px !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 5px !important;
  overflow: hidden !important;
  border: 2.5px solid transparent !important;
  cursor: zoom-in !important;
  opacity: 0.65 !important;
  transition: border-color 0.2s, opacity 0.2s !important;
  box-sizing: border-box !important;
  line-height: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}
.he-pgal-thumb:hover,
.he-pgal-thumb.active {
  border-color: var(--he-acento) !important;
  opacity: 1 !important;
}
.he-pgal-thumb img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  pointer-events: none !important;
  transition: transform 0.2s !important;
}
.he-pgal-thumb:hover img {
  transform: scale(1.06) !important;
}

/* ── Lightbox ─────────────────────────────────────────────────── */
.he-pgal-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 999999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.he-pgal-lightbox.active { display: flex; }

.he-pgal-lb-img-wrap {
  max-width: 92vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.he-pgal-lb-img-wrap img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.he-pgal-lb-btn {
  all: unset;
  position: absolute !important;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  cursor: pointer !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.2s !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}
.he-pgal-lb-btn:hover { background: rgba(255,255,255,0.3) !important; }

.he-pgal-lb-close {
  top: 16px !important;
  right: 20px !important;
  width: 40px !important;
  height: 40px !important;
  font-size: 20px !important;
}
.he-pgal-lb-prev {
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  font-size: 36px !important;
}
.he-pgal-lb-next {
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 50px !important;
  height: 50px !important;
  font-size: 36px !important;
}

.he-pgal-lb-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .he-pgal-lb-prev { left: 6px !important; }
  .he-pgal-lb-next { right: 6px !important; }
  .he-pgal-lb-prev,
  .he-pgal-lb-next { width: 40px !important; height: 40px !important; font-size: 26px !important; }
  .he-pgal-thumb {
    flex-basis: 64px !important;
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    padding-top: 64px !important;
  }
}

/* ── Responsive global ──────────────────────────────────────── */

/* Tablet (≤ 768px) */
@media (max-width: 768px) {
  /* Igualar margen lateral con el footer: cancelar padding de Astra y poner 15px */
  body.single-propiedad .ast-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .he-single-main {
    padding: 0 0 40px;
  }
  .he-pgal-main-img {
    max-height: 360px;
  }
  .he-btn-whatsapp,
  .he-btn-contacto {
    display: flex !important;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
  }
  .he-single-precio-wrap { margin-bottom: 12px; }
  .he-woo-summary .he-single-caract-bar { margin-bottom: 16px; }
}

/* Móvil (≤ 480px) */
@media (max-width: 480px) {
  .he-single-main {
    padding: 0 0 32px;
  }
  .he-pgal-main-img {
    max-height: 260px;
  }
  /* Grid galería: bajar a 1 col en pantallas muy estrechas */
  .he-ggal-cols-2 { grid-template-columns: 1fr !important; }
  /* Precio más compacto */
  .he-single-precio-principal { font-size: clamp(22px, 6vw, 32px); }
  /* Filtros: full width */
  .he-filtros { padding: 12px; }
  /* Paginación: botones más pequeños */
  .he-page-btn { width: 34px; height: 34px; font-size: 13px; }
}

/* ── CF7: ocultar campos hidden sin dejar espacio ──────────── */
.wpcf7 input.wpcf7-hidden { display: none !important; }
.wpcf7 input.wpcf7-hidden + br,
.wpcf7 br:has(+ input.wpcf7-hidden) { display: none !important; line-height: 0 !important; }
.wpcf7 p:empty { display: none !important; margin: 0 !important; }

/* ── Mapa de ubicación ──────────────────────────────────────── */
.he-mapa-section {
  margin: 32px 0;
}
.he-mapa-wrap {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e4eaf0;
  margin-bottom: 10px;
}
.he-mapa-nota {
  font-size: 13px;
  color: #555;
  margin: 0 0 4px;
}
.he-mapa-nota--aviso {
  color: #888;
  font-size: 12px;
  font-style: italic;
}

/* ── Equipamiento y características ─────────────────────────── */
.he-equipamiento-section {
  margin: 32px 0;
}
.he-equip-grupo {
  margin-bottom: 20px;
}
.he-equip-grupo-titulo {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .6px;
  margin: 0 0 10px;
}
.he-equip-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.he-equip-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: #f0f6ff;
  border: 1px solid #c8ddf5;
  border-radius: 20px;
  font-size: 13px;
  color: var(--he-texto);
  font-weight: 500;
  white-space: nowrap;
}
.he-equip-check {
  display: flex;
  align-items: center;
  color: var(--he-primario);
  flex-shrink: 0;
}
.he-equip-check svg { width: 13px; height: 13px; display: block; }

/* ── Ocultar título nativo del tema en single propiedad ─────── */
.single-propiedad .entry-title,
.single-propiedad .page-title,
.single-propiedad h1.ast-single-post-title,
.single-propiedad .ast-post-title-wrap,
.single-propiedad .site-main > article > .entry-header {
  display: none !important;
}

/* ── Banner: propiedad no disponible ────────────────────────── */
.he-no-disponible-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff7ed;
  border: 1.5px solid #fb923c;
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 28px;
  color: #7c2d12;
}
.he-no-disponible-banner svg {
  color: #ea580c;
  flex-shrink: 0;
  margin-top: 2px;
}
.he-no-disponible-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.he-no-disponible-banner p {
  margin: 0;
  font-size: .9rem;
  color: #9a3412;
}

/* ── Sección propiedades similares ──────────────────────────── */
.he-similares-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}
.he-similares-section .he-detalles-titulo {
  margin-bottom: 25px;
}
.he-no-similares {
  color: #6b7280;
  font-style: italic;
}

/* Botones inferiores de la sección similares */
.he-similares-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 30px;
}
.he-btn-similares-ver,
.he-btn-similares-contacto {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: opacity .15s;
}
.he-btn-similares-ver {
  background: var(--he-primario);
  color: #fff;
  border: 2px solid var(--he-primario);
}
.he-btn-similares-ver:hover { opacity: .85; color: #fff; }
.he-btn-similares-contacto {
  background: transparent;
  color: var(--he-primario);
  border: 2px solid var(--he-primario);
}
.he-btn-similares-contacto:hover { background: var(--he-primario); color: #fff; }
@media (max-width: 600px) {
  .he-similares-cta { flex-direction: column; }
  .he-btn-similares-ver,
  .he-btn-similares-contacto { text-align: center; }
}

/* ── Sidebar de filtros secundarios ─────────────────────────── */
.he-listado-body { display: block; }
.he-listado-body.he-has-sidebar {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.he-listado-content { flex: 1; min-width: 0; }

.he-sidebar-filtros {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  position: sticky;
  top: 24px;
  overflow: hidden;
}
.he-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e5e7eb;
}
.he-sidebar-head-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--he-texto, #2c3e50);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.he-sidebar-mob-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 4px;
}
.he-sidebar-mob-close:hover { background: #f3f4f6; }
.he-sidebar-inner {
  padding: 4px 16px 16px;
  display: flex;
  flex-direction: column;
}

/* Sección del sidebar */
.he-sf-sec {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.he-sf-sec:last-of-type { border-bottom: none; }
.he-sf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.he-sf-titulo {
  font-size: .75rem;
  font-weight: 700;
  color: var(--he-texto, #2c3e50);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
}
.he-sf-clear {
  background: none;
  border: none;
  font-size: .7rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 5px;
  line-height: 1;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.he-sf-sec.has-value .he-sf-clear {
  opacity: 1;
  pointer-events: auto;
}
.he-sf-clear:hover { color: #ef4444; background: #fee2e2; }

/* Presets */
.he-sf-presets {
  list-style: none;
  margin: 0 0 7px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.he-sf-presets li { margin: 0; padding: 0; }
.he-sf-preset {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: .74rem;
  color: #374151;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.he-sf-preset:hover,
.he-sf-preset.is-active {
  background: var(--he-primario, #1a5276);
  border-color: var(--he-primario, #1a5276);
  color: #fff;
}

/* Pestañas de moneda */
.he-sf-moneda-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.he-sf-mtab {
  flex: 1;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 600;
  color: #374151;
  padding: 5px 4px;
  cursor: pointer;
  text-align: center;
  transition: background .12s, border-color .12s, color .12s;
}
.he-sf-mtab.is-active {
  background: var(--he-primario, #1a5276);
  border-color: var(--he-primario, #1a5276);
  color: #fff;
}
.he-sf-mtab:hover:not(.is-active) { background: #e5e7eb; }

/* Inputs de rango */
.he-sf-rango {
  display: flex;
  align-items: center;
  gap: 5px;
}
.he-sf-rango-sep { color: #9ca3af; font-size: .85rem; flex-shrink: 0; }
.he-sf-min,
.he-sf-max {
  flex: 1;
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 7px;
  font-size: .78rem;
  color: var(--he-texto, #2c3e50);
  background: #fff;
  transition: border-color .15s;
  -moz-appearance: textfield;
}
.he-sf-min::-webkit-inner-spin-button,
.he-sf-min::-webkit-outer-spin-button,
.he-sf-max::-webkit-inner-spin-button,
.he-sf-max::-webkit-outer-spin-button { -webkit-appearance: none; }
.he-sf-min:focus,
.he-sf-max:focus {
  border-color: var(--he-primario, #1a5276);
  outline: none;
}

/* Botones de acción del sidebar */
.he-sb-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 14px;
}
.he-sb-aplicar {
  background: var(--he-primario, #1a5276);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 9px 0;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: opacity .15s;
}
.he-sb-aplicar:hover { opacity: .88; }
.he-sb-limpiar-todo {
  background: none;
  color: #6b7280;
  border: 1px solid #d1d5db;
  border-radius: 7px;
  padding: 8px 0;
  font-size: .8rem;
  cursor: pointer;
  width: 100%;
  transition: color .15s, border-color .15s;
}
.he-sb-limpiar-todo:hover { color: #ef4444; border-color: #fca5a5; }

/* Botón toggle móvil */
.he-sidebar-mob-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  padding: 7px 13px;
  font-size: .83rem;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s;
}
.he-sidebar-mob-toggle:hover { background: #e5e7eb; }

/* Backdrop móvil */
.he-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
}
.he-sidebar-backdrop.is-open { display: block; }

/* Responsive */
@media (max-width: 1100px) {
  .he-sidebar-filtros { width: 210px; }
}
@media (max-width: 899px) {
  .he-listado-body.he-has-sidebar { display: block; }
  .he-sidebar-mob-toggle { display: flex; }
  .he-sidebar-filtros {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 88vw;
    z-index: 1000;
    border-radius: 0;
    border: none;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 20px rgba(0,0,0,.12);
  }
  .he-sidebar-filtros.is-open { transform: translateX(0); }
  .he-sidebar-mob-close { display: block; }
}

/* ── Video de la propiedad ──────────────────────────────────── */
.he-video-section {
  margin: 32px 0;
}
.he-video-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
}
.he-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 840px) {
  .he-video-wrap { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   CARRUSEL "VER MÁS EN TU ZONA" — ficha individual de propiedad
══════════════════════════════════════════════════════════════ */

.he-zona-section {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid #e5e7eb;
}

.he-zona-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.he-zona-titulo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--he-primario, #1a5276);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.he-zona-nav-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.he-zona-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--he-primario, #1a5276);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  transition: opacity .15s, transform .15s;
  flex-shrink: 0;
  user-select: none;
}
.he-zona-btn:hover { opacity: .82; transform: scale(1.07); }
.he-zona-btn:disabled { opacity: .22; pointer-events: none; }

.he-zona-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
}
.he-zona-track::-webkit-scrollbar { display: none; }

.he-zona-slide {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  min-width: 0;
}

@media (max-width: 900px) {
  .he-zona-slide { flex: 0 0 calc(50% - 10px); }
}
@media (max-width: 600px) {
  .he-zona-slide { flex: 0 0 82%; }
  .he-zona-nav-btns { display: none; }
}
