.property-single-container {
  max-width: var(--page-width);
  margin: 40px auto;
  padding: 20px;
  font-family: inherit !important;
  line-height: 1.6;
  color: #222;
}

.property-back-link {
  margin-bottom: 20px;
}

.property-back-link a {
  color: var(--btn-details-color, #e65638);
  text-decoration: none;
  font-weight: 500;
}

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

/* HEADER SECTION */
.property-single-header {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.property-title {
  font-size: 2rem;
  position: relative;
  margin: 10px 0;
  font-weight: 700;
  color: #111;
}

/* .property-title::after{
  content: '';
  position: absolute;
  background-color: var(--bg-stage-color);
  width: 100%;
  height: 2px;
  left: 0;
  top: 39px;
} */

.property-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 15px;
  font-size: 1rem;
}

.property-meta div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px;
  border-radius: var(--border-value);
  height: 24px;
  font-size: 1rem;
  color: black;
  /* box-shadow: 1px 1px 5px rgb(164, 164, 164); */
  padding: 1rem;
}
.property-ref, .property-location{
  background-color: rgb(224, 224, 224);
}
/* Asegúrate que el contenedor de la imagen sea relativo */
.main-image-container { position: relative; }

/* La barra de flechas */
.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;       /* bloquea el contenedor... */
  z-index: 5;                 /* por encima de la imagen */
  padding: 0 15px;
}

/* ...pero los botones sí reciben eventos */
.gallery-arrow {
  pointer-events: auto;       /* <- clave */
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  cursor: pointer;
  transition: background .25s ease, transform .25s ease;
}

/* Pseudo-elemento con la fuente Dashicons */
.gallery-arrow::before {
  content: "";
  font-family: "dashicons";   /* <- comillas y nombre exacto */
  font-size: 26px;
  line-height: 1;
  color: #222;
  display: inline-block;      /* evita rarezas en algunos temas */
  transition: color .25s ease;
}

/* Hover del botón + cambio de color del ícono */
.gallery-arrow:hover {
  background: #f5f5f5;
  transform: scale(1.1);
}
.gallery-arrow:hover::before {
  color: #000;
}

/* Códigos de las flechas */
#prevImage::before { content: "\f341"; } /* dashicons-arrow-left-alt2 */
#nextImage::before { content: "\f345"; } /* dashicons-arrow-right-alt2 */


.property-price {
  font-weight: 600 !important;
  font-size: 1.3rem;
  color: var(--bg-price-color);
}
.property-ref{
  font-weight: 600 !important;
  position: absolute;
  width: fit-content;
  top: 22px;
  right: 23px;
  font-size: 1rem;
  color:white;
  background-color: var(--bg-stage-color);
  padding: 5px;
  border-radius: var(--border-value);
  /* box-shadow: 0 0 7px gray; */
} 

.property-type,
.property-stage {
  padding: 5px 10px;
  border-radius: var(--border-value);
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
}
.property-stage{
   background-color: var(--bg-stage-color);
   color: white !important;
   font-weight: bold;
}
.property-type{
  background-color: rgb(224, 224, 224);
}


.property-gallery-section {
  width: 100%;
  margin: 0 auto 40px auto;
}

.property-gallery {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* IMAGEN PRINCIPAL */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 10;
}
/* Dashicon dentro de las flechas */
.swiper-button-next::before,
.swiper-button-prev::before {
  font-family: "dashicons";
  font-size: 24px;
  line-height: 1;
}

/* Flecha izquierda */
.swiper-button-prev::before {
  content: "\f341"; /* dashicons-arrow-left-alt2 */
}

/* Flecha derecha */
.swiper-button-next::before {
  content: "\f345"; /* dashicons-arrow-right-alt2 */
}
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none !important;
}
/* Hover suave */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: #f2f2f2;
  transform: translateY(-50%) scale(1.08);
  color: #000;
}
.thumbs-swiper .swiper-slide {
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.thumbs-swiper .swiper-slide.thumb-active {
  opacity: 1;
  border: 2px solid #333;
}

.main-image-container {
  width: 100%;
  border-radius: var(--border-value);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9; /* mantiene proporción cinematográfica */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.main-swiper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 12px;
  overflow: hidden;
}

.main-swiper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flechas */
.swiper-button-next,
.swiper-button-prev {
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 0.6);
  color: black;
}

/* Miniaturas */
.thumbs-wrapper {
  width: 100%;
  height: 10rem;
  margin-top: 10px;
}

.thumbs-swiper {
  width: 100%;
  height: 100%;
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.thumbs-swiper .swiper-slide {
  width: auto !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important; /* Mantiene cuadrado */
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  overflow: hidden;
}

.thumbs-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

/* La ampliación se aplica al slide, no a la imagen */
.thumbs-swiper .swiper-slide-thumb-active {
  opacity: 1;
  transform: scale(1.08); /* crece todo el contenedor */
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* El contenido (imagen) se mantiene estable */
.thumbs-swiper .swiper-slide-thumb-active img {
  opacity: 1;
  transform: none !important;
}

/* Opcional: efecto hover para consistencia */
.thumbs-swiper .swiper-slide:hover {
  opacity: 0.9;
}


/* INFO SECTION */
.property-info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.property-info-column {
  flex: 2;
  min-width: 300px;
}

.property-contact-column {
  flex: 1;
  min-width: 300px;
}
.property-meta .property-price{
  background-color: var(--bg-price-color);
  color: var(--color-text-features);
}
.price-title{
  font-weight: 400;
}
/* FEATURES */
.property-features-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  border: none;
}

/* Agrupamos dos columnas por fila */
.property-features-table tbody {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 40px; /* separación vertical y horizontal */
}

/* Cada fila se comporta como una mini-celda */
.property-features-table tr {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
  border: none;
}

/* Iconos */
.property-features-table th {
  width: auto;
  text-align: center;
  padding: 0;
  border: none;
}

.property-features-table i,
.property-features-table .dashicons {
  background-color: var(--bg-features-color);
  color: var(--color-text-features);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.property-features-table td {
  font-weight: 600;
  color: #333;
  text-align: left;
  border: none;
}

/* Opcional: ajusta en pantallas pequeñas */
@media (max-width: 768px) {
  .property-features-table tbody {
    grid-template-columns: 1fr; /* vuelve a una sola columna */
  }
}

.property-description {
  margin-bottom: 37px;
}
/* DESCRIPTION */
h3 {
  margin-top: 30px;
  font-weight: 600;
  font-size: 1.2rem;
}

.property-description-content {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: var(--border-value);
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 400 !important;
  p{
    display: flex;
    flex-direction: column;
    line-height: 1.8;
  }
}
.property-units{
  /* box-shadow: 0 2px 10px rgba(0,0,0,.05); */
  display: flex;
  flex-direction: column;
}
.property-units .units-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline; /* más natural con títulos */
  margin-bottom: 1rem;
}

.property-units .units-title span {
  align-self: flex-end;
  font-size: 18px;
  font-weight: 500;
}
/* .property-units h3{
  font-size: 1.75rem;
} */
.property-units .box-content-units{
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.property-units .box-content-units .box-outter{
  display: flex;
  border: 1px solid #8080806b;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
  cursor: pointer;
}

.property-units .box-content-units .box-outter .box-total-units{
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 7px;
  gap: 2rem;
}
#arrow{
  margin-right: 5px;
}
.property-units .box-content-units .box-outter .box-total-units .total-available{
  background-color: var(--bg-features-color);
  border-radius: var(--border-value);
  padding: 2px 5px;
  font-weight: bold;
}

/* MAP */
.property-map-section {
  margin-top: 30px;
}

.property-map-section h3 {
  margin-bottom: 10px;
}

/* CONTACT FORM */
.property-contact-form {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: var(--border-value);
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.property-contact-form h2 {
  color: var(--btn-details-color, #e65638);
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.property-single-header, .property-info-container{
  border-radius: var(--border-value);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  padding: 1.5rem;
  font-size: 1rem;

}

.box-outter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #f9f9f9;
  padding: 10px 14px;
  border-radius: var(--border-value);
  margin-bottom: 4px;
  transition: background-color 0.2s ease;
}

.box-outter:hover {
  background-color: #efefef;
}

/* Flecha animada */
.box-outter .arrow {
  transition: transform 0.3s ease;
}

/* Contenedor oculto por defecto */
.box-collapse {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  background: #fff;
  border-left: 2px solid var(--bg-features-color);
  padding-left: 10px;
}

/* Cuando el padre está activo */
.box-outter.active + .box-collapse {
  opacity: 1;
  max-height: 800px; /* lo suficiente para mostrar contenido */
  margin-bottom: 8px;
}
.box-collapse .units-table{
  width: 100%;
}
.box-collapse .units-table .table-row td{
  padding: 5px;
}
.box-collapse .units-table .table-row{
  padding: 5px;
  transition: background-color 0.2s ease;
}
.box-collapse .units-table .table-row:hover{
  background-color: rgb(242, 239, 239);
  border-radius: var(--border-value);
}
.box-outter.active .arrow {
  transform: rotate(180deg);
}

.unit-item {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}

@media (max-width: 768px) {

  /* Reordena la disposición de secciones */
  .property-info-section {
    display: flex !important;
    flex-direction: column !important;
  }
  .property-title{
    font-size: 1.5rem !important;
  }
  .property-ref{
    top: 2px;
    right: 3px;
    font-size: 0.65rem;
  }
  /* Asegura que la descripción y mapa queden primero */
  .property-info-column,
  .property-description,
  .property-map-section {
    order: 1 !important;
    width: 100% !important;
  }

  /* El formulario pasa a ser el último */
  .property-contact-column {
    order: 2 !important;
    margin-top: 25px !important;
  }

  /* Estilo limpio para móvil */
  .property-contact-form {
    width: 92% !important;
    border-radius: var(--border-value) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }
  .wpcf7-form span input,
  .wpcf7-form span textarea{
    font-size: small !important;
  }
  /* Espaciado general */
  .property-map-section {
    margin-bottom: 15px !important;
  }

  .property-description-content {
    margin-bottom: 20px !important;
  }
  .thumbs-swiper img {
    border-radius: 8px;
  }
}
.property-contact-form h2{
  color: var(--bg-features-color);
  font-weight: 600;
}
p{
  display: flex;
  .wpcf7-submit{
    border: none;
    background-color: var(--bg-features-color);
    border-radius: var(--border-value) ;
    box-shadow: 0 0 4px gray;
    align-self: flex-end;
    width: 100%;
    height: 5vh;
    font-weight: 600;
    color: white;
  }
  .wpcf7-spinner{
    display: none;
  }
}


