/* ========== HEADER ========== */
/* .site-header {
  background: var(--fondo-header);
  color: var(--color-texto-header);
  position: sticky;
  top: 0;
  z-index: 100;
} */

.header-container {
  width: 85%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-logo {
  display: block;
  /*padding: 25px 0 15px 0;*/
  margin: 10px 0;
}

.header-logo img {
  height: min(100px, 10vh);
  display: block;
  /* margin-top: -6px;*/
}

/* Menú a la derecha (desktop) */
.header-nav {
  display: flex;
  align-items: center;
  padding: 0px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: var(--color-texto-header);
  font-family: var(--font-destacado);
  font-size: 24px;
  font-weight: 500;
  font-variation-settings: "wdth" 100;
  font-style: normal;
  letter-spacing: 4px;
}

.nav-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
}

/* Toggle oculto (checkbox hack, sin JS) */
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Botón hamburguesa (solo mobile) */
.nav-toggle-btn {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  cursor: pointer;

  /* 3 líneas centradas */
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle-btn span {
  width: 18px;
  height: 2px;
  background: #fff;
  display: block;
}

/* ====== Responsive: cuando no entra el menú ====== */
@media (max-width: 860px) {
  /* Se oculta el nav y aparece el botón */
  .nav-toggle-btn {
    display: inline-flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--blanco);
    border: 1px solid var(--azul);
    border-radius: 0;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
  }

  .nav-link {
    width: 100%;
    color: var(--azul);
    font-size: 16px;
    letter-spacing: 0;
    padding: 10px 12px;
    justify-content: flex-start;
  }

  /* Si el checkbox está checked, mostramos el menú */
  .nav-toggle:checked ~ .header-nav {
    display: flex;
  }

  /* Botón hamburguesa cuando el menú está abierto */
  .nav-toggle:checked + .nav-toggle-btn {
    background: var(--blanco);
    border: 1px solid var(--azul);
  }

  /* Líneas azules cuando el menú está abierto */
  .nav-toggle:checked + .nav-toggle-btn span {
    background: var(--azul);
  }
}

/* ===========================
   PROPIEDADES (páginas de detalle)
   =========================== */

/* Evita scroll horizontal por desbordes puntuales */
.property {
  width: 100%;
  overflow-x: hidden;
}

.property h2 {
  margin: 16px 0 16px 0;
}

/* ✅ Anchos consistentes (un poco más ancho en desktop) */
.property-header-container,
.property-description-container,
.property-features-container,
.property-map-container,
.property-back-container,
.property-top-container {
  width: min(1180px, 94%);
  margin: 0 auto;
}

/* Espaciado entre secciones */
.property-header,
.property-top,
.property-description,
.property-features,
.property-map,
.property-back {
  padding: 14px 0;
}

/* ===========================
   Header de la propiedad
   =========================== */

.property-tags {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1;
  background: rgba(37, 85, 111, 0.08);
  border: 1px solid rgba(37, 85, 111, 0.18);
}
.property-header{
  padding-bottom: 0;
}

/* ✅ título: más fino + sin mayúsculas */
.property-title {
  margin: 10px 0 6px;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
  font-size: clamp(24px, 3.5vw, 40px);
  
}

.property-location {
  margin: 0 0 6px;
  opacity: 0.85;
  font-size: 16px;
}

.property-price {
  margin: 0 0 10px 0;  
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

/* ===========================
   TOP: Galería + Panel + Actions (NUEVA ESTRUCTURA)
   =========================== */

.property-top-container {
  display: grid;
  gap: 16px;

  /* Mobile (default): 1 columna */
  grid-template-columns: 1fr;
  align-items: start;
}

/* IMPORTANTÍSIMO para que NO aparezca scroll horizontal */
.property-gallery,
.property-side,
.property-actions,
.property-panel {
  min-width: 0;
}

/* Galería: imagen + miniaturas abajo */
.property-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Columna derecha: panel + acciones */
.property-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ✅ Mobile: actions antes del panel (como lo tenías) */
.property-actions {
  order: 1;
}
.property-panel {
  order: 2;
}

/* ✅ Desktop: 2 columnas (galería izquierda / panel+acciones derecha) */
@media (min-width: 860px) {
  .property-top-container {
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
  }

  /* ✅ Desktop: panel arriba, acciones enseguida abajo */
  .property-panel {
    order: 1;
  }
  .property-actions {
    order: 2;
  }
}

/* Panel */
.property-panel-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;

  /* ✅ todo el bloque en azul */
  color: var(--azul);
}

/* Lista principal del panel */
.property-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.property-panel-item {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;

  /* ✅ fondo azul casi transparente */
  background: rgba(37, 85, 111, 0.06);
  background: color-mix(in srgb, var(--azul) 7%, transparent);

  border: 1px solid rgba(37, 85, 111, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.property-panel-item strong {
  font-weight: 700;
  color: var(--azul);
}

.property-panel-item .panel-ico {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;

  background-color: var(--azul);

  -webkit-mask-image: var(--ico);
  mask-image: var(--ico);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  mask-mode: alpha;
}

@media (min-width: 860px) {
  .property-panel-item .panel-ico {
    width: 24px;
    height: 24px;
  }
}

/* ===========================
   Actions (mobile como está; desktop solo íconos en círculo)
   =========================== */

.property-actions {
  /* ✅ Mobile: 4 acciones prolijas sin desbordar */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 0 26px;
  justify-items: center; 
}

/* Botones */
.property-actions .btn-action {
  min-width: 0;
}

.property-actions .btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--azul);
  background: #fff;

  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1;
  box-sizing: border-box;
}

/* ✅ Por defecto: solo íconos */
.property-actions .action-text {
  display: none;
}

/* ✅ Solo mostrar texto en Contactar y Compartir (mobile/tablet) */
.property-actions .btn-action--text .action-text {
  display: inline;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--azul);
}

/* ✅ En pantallas muy chicas, apagamos texto igual */
@media (max-width: 420px) {
  .property-actions .action-text {
    display: none !important;
  }
}

.property-actions .action-ico {
  width: 26px;
  height: 26px;
  display: block;
  flex: 0 0 auto;

  background-color: var(--azul);

  -webkit-mask-image: var(--ico);
  mask-image: var(--ico);

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  mask-mode: alpha;
}

/* WhatsApp en verde */
.property-actions .action-ico--wsp {
  background-color: var(--whatsapp);
}

/* ✅ Desktop: círculos + íconos más grandes + SIN texto */
@media (min-width: 860px) {
  .property-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
  }

  .property-actions .btn {
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
  }

  .property-actions .action-text {
    display: none !important;
  }

  .property-actions .action-ico {
    width: 30px;
    height: 30px;
  }

  .property-actions .action-ico--wsp {
    width: 34px;
    height: 34px;
  }
}

/* ===========================
   Galería
   =========================== */

.property-gallery-main {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);

  /* para swipe sin romper scroll vertical */
  touch-action: pan-y;
}

.property-gallery-main img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: cover;

  /* evita arrastre raro en desktop */
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Miniaturas: se envuelven en filas */
.property-gallery-thumbs {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  overflow: visible;
  padding-bottom: 0;
  max-width: 100%;
}

.property-gallery-thumbs img {
  width: 80px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;

  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.02);
}

/* ✅ Desktop: miniaturas más chicas */
@media (min-width: 860px) {
  .property-gallery-thumbs img {
    width: 54px;
    height: 40px;
    border-radius: 10px;
  }
}

/* estado seleccionado */
.property-gallery-thumbs img.is-active {
  border-color: rgba(37, 85, 111, 0.75);
  box-shadow: 0 0 0 2px rgba(37, 85, 111, 0.15);
}

/* Mobile: miniaturas un poco más chicas */
@media (max-width: 560px) {
  .property-gallery-thumbs img {
    width: 76px;
    height: 54px;
  }
}

/* ===========================
   Descripción
   =========================== */


.property-description p {
  margin: 20px 0 0 0 ;
}

/* ===========================
   Características (cards)
   =========================== */


.property-features-group {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.property-features-group + .property-features-group {
  margin-top: 14px;
}

.property-features-group h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

/* Listas */
.property-features-list {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.property-features-list li {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.property-features-list strong {
  font-weight: 700;
}

@media (max-width: 820px) {
  .property-features-list {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Mapa responsive
   =========================== */

.property-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 600px) {
  .property-map iframe {
    height: 320px;
  }
}

/* ===========================
   Volver
   =========================== */

.property-back a {
  text-decoration: none;
  font-weight: 600;
  color: var(--azul);
}

.property-back a span {
  font-weight: 800;
} 

.property-back a:hover {
  text-decoration: underline;
}


/* ===== overrides: consistent header ===== */
.site-header {
  background: rgba(37, 85, 111, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(37, 85, 111, 0.84);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.header-container { min-height: 88px; width: min(1180px, 92%); }
.header-logo { margin: 10px 0; }
.header-logo img { height: 72px; transition: height .25s ease; }
.site-header.is-scrolled .header-logo img { height: 54px; }
.nav-link { padding: 12px 14px; font-size: 20px; letter-spacing: 3px; }
@media (max-width: 860px) {
  .header-container { min-height: 74px; width: min(92%, 1180px); }
  .header-logo img { height: 56px; }
  .site-header.is-scrolled .header-logo img { height: 50px; }
}

.property-tags--status { color: #fff; border: none; }
.property-tags--sold { background: #d74c4c; }
.property-tags--reserved { background: #ce7d17; }

.property-gallery-main { position: relative; }
.property-gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px;
  border: none; border-radius: 999px;
  background: rgba(255,255,255,.90);
  color: var(--azul);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.18);
  z-index: 3;
}
.property-gallery-nav:hover { background: #fff; }
.property-gallery-nav--prev { left: 14px; }
.property-gallery-nav--next { right: 14px; }
.property-gallery-nav::before {
  content: '';
  width: 12px; height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
}
.property-gallery-nav--prev::before { transform: rotate(-135deg); margin-left: 4px; }
.property-gallery-nav--next::before { transform: rotate(45deg); margin-right: 4px; }
.property-gallery-caption {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,24,31,.58);
  color: #fff;
  font-size: 12px; line-height: 1;
  letter-spacing: .03em;
  backdrop-filter: blur(3px);
}
.property-gallery-ribbon {
  position: absolute;
  top: 28px; right: -80px;
  z-index: 2;
  width: 280px;
  text-align: center;
  padding: 10px 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: rotate(33deg);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.property-gallery-ribbon--sold { background: rgba(215,76,76,.95); }
.property-gallery-ribbon--reserved { background: rgba(206,125,23,.95); }

.property-gallery-thumbs { position: relative; }
.property-gallery-thumbs img { transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.property-gallery-thumbs img:hover { transform: translateY(-1px); }

.property-panel-item .panel-ico,
.property-actions .action-ico {
  background-image: var(--ico);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-color: transparent;
  -webkit-mask-image: none;
  mask-image: none;
}

.property-actions .btn {
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.property-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0,0,0,.10);
}

@media (max-width: 640px) {
  .property-gallery-nav { width: 38px; height: 38px; }
  .property-gallery-caption { top: 12px; left: 12px; font-size: 11px; }
  .property-gallery-ribbon { width: 220px; right: -72px; top: 26px; font-size: 12px; }
}

/* ===== Íconos SVG reales: evita incompatibilidades de CSS mask ===== */
img.panel-ico,
img.action-ico {
  display: block;
  object-fit: contain;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  opacity: 1;
}
img.panel-ico {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}
img.action-ico {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}
img.action-ico--wsp {
  width: 31px;
  height: 31px;
}


/* Carrasco Valley / propiedades con información parcial */
.property-panel-card--sparse {
  gap: 14px;
}
.property-panel-note {
  margin-top: 4px;
  padding: 14px 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,85,111,.10), rgba(37,85,111,.035));
  border: 1px solid rgba(37,85,111,.12);
}
.property-panel-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--azul);
}
.property-panel-note p {
  margin: 0;
  line-height: 1.5;
  color: rgba(20,54,72,.88);
}


/* ===== Carrasco Valley v4: página sin precio ni tabla tradicional ===== */
.carrasco-summary-card {
  justify-content: flex-start;
  padding: 22px;
}
.carrasco-summary-kicker {
  margin: 0 0 5px;
  color: #25556f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.carrasco-summary-title {
  margin: 0 0 10px;
  color: #25556f;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.18;
}
.carrasco-summary-text {
  margin: 0 0 16px;
  color: rgba(20,54,72,.84);
  line-height: 1.55;
}
.carrasco-summary-list {
  margin-bottom: 2px;
}
@media (min-width: 860px) {
  .property-header:has(.property-title) .property-title {
    max-width: 900px;
  }
}
