.property-descripcion {
  display: block;
  padding-top: 1rem;
}

.inmueble-tools.clearfix {
  height: 85px;
}

.property-description {
  position: relative;
  width: 100%;
}

main.single-property-container {
  background: var(--color-background);
}

.property-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  align-content: start;
  /* Centra el div automáticamente */
  align-items: start;
  gap: 40px;
  /* Se detiene al llegar a 1200px en monitores grandes */
  margin: 0 auto;
  width: 100%;
  /* Se adapta a pantallas pequeñas */
  max-width: 1200px;
}

.hide-into-mobile {
  display: block;
}

.style-price-op {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
}

.operation-sep {
  font-size: var(--text-base);
}

.property-header h1 {
  font-size: var(--text-sm);
  font-weight: 600;
}

.property-descripcion h2 {
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 11px;
  border-bottom: 1px dotted #005b4d;
  padding-bottom: 8px;
  color: #005b4d;
  letter-spacing: 0.04rem;

}

.property-amenidades h2 {
  margin-bottom: 0px;
  margin-bottom: 1rem;
  font-weight: 600;

  font-size: 1.5rem;
  line-height: 28px;
  letter-spacing: -0.02em;
}

.property-header p {
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: var(--text-sm);
  line-height: 1.5rem;
}

.property-header li {
  font-size: var(--text-sm);
  line-height: 1.5rem;
  font-weight: 300;
}

.property-header li b,
.property-header p b {
  font-weight: 600;
}


.property-price-operation {
  padding-top: 2rem;
  display: flex;
  padding-bottom: 2rem;
  color: var(--color-contraste-micro);
  justify-content: center;
}

.property-price {
  margin-right: 6px;
  color: #333;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.7rem;
}

.datos_medidas {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 0px;
  flex-direction: row;
  align-items: flex-start;
  align-content: center;
  justify-content: space-evenly;
  flex-wrap: nowrap;
}

.dato {
  font-size: 0.7871rem;
  line-height: 0.95rem;
}

.property-details-bar {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  margin: 16px 0;
  border-radius: 12px;
  padding: 0px;
  margin-top: 0px;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 40px;
  grid-auto-flow: row;
}

li.amenidades-li img {
  max-width: 16px;
}

ul.amenidades-list {
  gap: 10px;
  list-style: none;
}

li.amenidades-li {
  display: flex;
  gap: 6px;
  font-size: 0.7871rem;
  line-height: 0.95rem;
}

.property-mini-header {
  display: grid;
  grid-template-columns: 380px 1fr;
  justify-content: space-between;
  justify-items: stretch;

  gap: 80px;
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
}

.property-amenidades {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.property-location img {
  max-width: 18px;
}

.property-location {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 0;
}

.property-title-location,
.location-text {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
}

ul.amenidades-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: space-between;
  justify-content: stretch;
  align-items: center;
  justify-items: start;
}

/* Galería Moderna */
.gallery-hero-modern {
  position: relative;
  margin-bottom: 30px;
}

.gallery-hero-main {
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  overflow: hidden;
}

#gallery-hero-img {
  transition:
    transform 0.3s,
    opacity 0.3s;
  cursor: pointer;
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.gallery-hero-badges {
  display: flex;
  position: absolute;
  top: 15px;
  left: 15px;
  gap: 10px;
  z-index: 10;
}

.badge-op {
  border-radius: 50px;
  background: #145a37;
  padding: 6px 15px;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

.badge-price {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 50px;
  background: #fff;
  padding: 6px 15px;
  color: #145a37;
  font-weight: 800;
  font-size: 14px;
}

.gallery-hero-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.gallery-thumb {
  opacity: 0.6;
  transition: 0.2s;
  cursor: pointer;
  border: 3px solid #fff;
  border-radius: 10px;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: #145a37;
}

.property-header {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-top: 0;
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.property-header bold {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 3px;
  border-radius: 35px;
  background: #14593712;
  padding: 6px 16px;
  color: #27513cb5;
  font-size: 16px;
}

#property-map {
  border-radius: 0px !important;
  height: 300px;
}

.property-content {
  max-width: 775px;
}



.detail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  color: var(--color-contraste-micro);
  font-size: var(--text-xs);
  line-height: normal;
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  gap: 2px 6px;
  min-width: 80px;
}



.detail-item img {
  grid-column: 1;
  grid-row: 1;
  max-width: 24px;
  height: 24px;
  opacity: 1;
}

.detail-item b {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.6rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
}

.detail-item .detail-label {

  grid-row: 2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000;
  opacity: 0.8;
  margin-top: 2px;
}

:root {
  --sidebar-mobile-height: 270px;
}

body {
  overflow: auto !important;
}

.splitview-microdetalles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  margin-bottom: 1rem;
}

.map-container {
  margin: 0px auto;
  margin-top: 2rem;
  border-radius: var(--radius-md);
  -webkit-border-radius: var(--radius-md);
  -moz-border-radius: var(--radius-md);
  -ms-border-radius: var(--radius-md);
  -o-border-radius: var(--radius-md);
  width: 100%;
  max-width: 1200px;
  overflow: visible;
}

.microdetalles-chip {
  display: inline-block;
  align-items: center;
  color: var(--color-contraste-micro);
  font-size: var(--text-xs);
  line-height: 1.3;
  text-align: center;
  background: #eaf5f6;
  border-radius: var(--radius-sm);
  padding: 6px;
  color: var(--chip-fg);
  font-weight: 500;
  font-size: var(--text-xs);
  margin-bottom: 1rem;
}

.contact-card-refined {
  position: relative;
  top: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  padding: 14px;
}

/* 2. Cabecera: Foto y Nombre */
.agent-compact-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.agent-photo {
  border: 2px solid #edf2f7;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.badge-asesor {
  display: inline-block;
  margin-bottom: 4px;
  color: #718096;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.agent-text strong {
  display: block;
  color: #2d3748;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 90%;
}

.agent-text p {
  margin: 0px 0 0 0;
  color: #718096;
  font-size: 12px;
}

/* 3. Botones de Acción (WhatsApp y Email) */
.action-buttons-group {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-wa-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition:
    transform 0.2s,
    background 0.2s;
  border-radius: 10px;
  background-color: #f8fafc;
  padding: 10px;
  color: #7ad06d;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.btn-wa-action:hover {
  transform: translateY(-2px);
  background-color: #7ad06d35;
  color: #7ad06d;
}

.btn-email-action img {
  filter: invert(1);
  -webkit-filter: invert(1);
}

.btn-email-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
  -moz-transition: all 0.2s;
  -ms-transition: all 0.2s;
  -o-transition: all 0.2s;
  cursor: pointer;
  border: 1px solid #172c29;
  border-radius: 10px;
  background-color: #172c29;
  padding: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}

.btn-email-action:hover {
  transform: translateY(-2px);
  border: 1px solid #172c29;
  border-radius: 10px;
  background-color: #172c29;
  color: #fff;
}

/* 4. Acordeón de Perfil */
.btn-view-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  cursor: pointer;
  border: 1px dashed #cbd5e0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
  width: 100%;
  color: #4a5568;
  font-weight: 600;
  font-size: 13px;
}

.btn-view-profile:hover {
  background: #edf2f7;
}

/* Lógica de expansión */
.agent-details-collapsed {
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  max-height: 0;
  overflow: hidden;
}

.agent-details-collapsed.expanded {
  /* Suficiente para el contenido */
  transition: max-height 0.4s ease-in;
  max-height: 2000px;
}

.details-inner {
  margin-top: 15px;
  border-top: 1px solid #edf2f7;
  padding-top: 20px;
}

/* 5. BIO y Chips de Redes Sociales */
.agent-bio-section h4 {
  margin-bottom: 8px;
  color: #2d3748;
  font-size: 14px;
}

.agent-bio-section p {
  margin-bottom: 20px;
  color: #4a5568;
  font-size: 13px;
  line-height: 1.6;
}

.agent-social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #f1f5f9;
  padding: 6px 12px;
  color: #475569;
  font-weight: 600;
  font-size: 12px;
  text-decoration: none;
}

.social-chip img,
.social-chip svg {
  flex-shrink: 0;
}

.social-chip:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Chips específicos */
.social-chip.ig {
  background: #fff5f7;
  color: #d62976;
}

.social-chip.li {
  background: #f0f7ff;
  color: #0077b5;
}

.social-chip.company {
  background: #f8fafc;
  color: #64748b;
}

/* Campos del formulario dentro del modal */
#contact-form-modal input,
#contact-form-modal textarea {
  transition: border-color 0.2s;
  margin-bottom: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  width: 100%;
  font-size: 16px;
  font: var(--font-primary);
}

#contact-form-modal input:focus,
#contact-form-modal textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
  border-color: #3182ce;
}

#contact-submit-btn {
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: #2d3748;
  padding: 16px;
  width: 100%;
  color: white;
  font-weight: 700;
}

#contact-submit-btn:hover {
  background: #1a202c;
}

.form-row-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

h3.section-title {
  padding: 10px 0px;
}

.form-response-msg {
  margin-top: 15px;
  min-height: 20px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  /* Evita que el modal salte cuando aparece el texto */
}

/* PLAYER DE YOUTUBE */

.video-container.lazy-youtube {
  position: relative;
  cursor: pointer;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #000;
  padding-bottom: 56.25%;
  max-width: 100%;
  /* Relación de aspecto 16:9 */
  height: 0;
  overflow: hidden;
}

.video-container.lazy-youtube .video-placeholder {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100%;
}

.video-container.lazy-youtube .video-placeholder::after {
  position: absolute;
  top: 0;
  left: 0;
  /* Capa oscura sutil */
  transition: background 0.3s ease;
  background: rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 100%;
  content: "";
}

.video-container.lazy-youtube:hover .video-placeholder::after {
  background: rgba(0, 0, 0, 0.6);
  /* Más oscuro al pasar el mouse */
}

.video-container.lazy-youtube .play-button {
  /* Para que esté por encima de la capa oscura */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

.video-container.lazy-youtube .play-button svg {
  transition: transform 0.2s ease;
  width: 68px;
  height: 48px;
}

.video-container.lazy-youtube .play-button:hover svg {
  transform: scale(1.1);
}

.video-container.lazy-youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  /* Inicialmente oculto */
  transition: opacity 0.3s ease;
  border: 0;
  width: 100%;
  height: 100%;
}

.video-container.lazy-youtube.loaded .video-placeholder {
  opacity: 0;
  /* Oculta el placeholder cuando el video carga */
  pointer-events: none;
  /* Desactiva clics en el placeholder */
}

.video-container.lazy-youtube.loaded iframe {
  opacity: 1;
  /* Muestra el iframe cuando está cargado */
}

/* ESTILOS PARA EL MAPA SWEEP GALLERY */

/* La tarjeta que se queda fija al hacer scroll */
.contact-card {
  position: -webkit-sticky;
  position: sticky;
  top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  /* Se detendrá a 20px del borde superior al bajar */
  background: #fdfdfd;
  padding: 24px;
}

.contact-card h3 {
  margin-bottom: 20px;
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1.2rem;
}

/* Info del Agente */
.agent-info {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.agent-photo {
  border-radius: 50%;
  background: #f0f0f0;
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.agent-info strong {
  display: block;
  color: #333;
  font-size: 1rem;
}

.agent-info p {
  margin: 0;
  color: #777;
  font-size: var(--text-xs);
}

/* Botón WhatsApp */
.btn-whatsapp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  -webkit-transition:
    transform 0.2s ease,
    background 0.2s ease;
  -moz-transition:
    transform 0.2s ease,
    background 0.2s ease;
  -ms-transition:
    transform 0.2s ease,
    background 0.2s ease;
  -o-transition:
    transform 0.2s ease,
    background 0.2s ease;
  margin-bottom: 20px;
  border-radius: 10px;
  background: #4caf50;
  padding: 12px;
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  -webkit-transform: translateY(-2px);
  -moz-transform: translateY(-2px);
  -ms-transform: translateY(-2px);
  -o-transform: translateY(-2px);
  background: #1eb954;
  color: white;
}

.btn-whatsapp img {
  gap: 4px;
  filter: brightness(0) invert(1);
  padding: 12px 6px;
  width: 20px;
  height: 20px;
  /* Pone el icono blanco */
}

/* Formulario */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#contact-form input,
#contact-form textarea {
  transition: border-color 0.2s;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-size: 0.95rem;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: none;
  border-color: #007bff;
}

#contact-form textarea {
  height: 100px;
  resize: none;
}

#contact-form button {
  transition: background 0.2s;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: #1a1a1a;
  padding: 14px;
  color: white;
  font-weight: 600;
}

#contact-form button:hover {
  background: #333;
}

.agent-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 15px;
  /* Una línea sutil para separar */
}

.agent-photo {
  border: 1px solid #eaeaea;
  border-radius: 50%;
  /* Crucial: evita que la foto se estire */
  background-color: #f7f7f7;
  width: 54px;
  height: 54px;
  /* Foto circular */
  object-fit: cover;
}

.agent-info strong {
  display: block;
  color: #222;
  font-size: 1rem;
  line-height: 1.2;
}

.agent-info p {
  margin: 4px 0 0 0;
  color: #777;
  font-size: var(--text-xs);
}

/* Botón Ver Más */
.btn-view-more {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  padding: 10px 0;
  width: 100%;
  color: #007bff;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-view-more:hover {
  color: #0056b3;
}

.btn-view-more span {
  transition: transform 0.3s ease;
}

/* Estado activo del botón (flecha gira) */
.btn-view-more.active span {
  transform: rotate(180deg);
}

/* Ejemplo rápido de cómo se vería en móvil */

.related_post {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 0px;
  border-radius: 12px;
  background: #f9f9f9;
  padding-right: 2vw;
  padding-bottom: 4rem;

  padding-left: 2vw;
  width: 100%;
}

.related_post h6 {
  margin-top: 4rem;
  font-size: 2rem;
}

section.suggested-properties h3 {
  padding: 2rem 0px;
  text-align: center;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
  margin-bottom: 4px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  width: 100%;
  max-width: 920px;
  text-decoration: none;
}

.mini-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #f8f9fa;
}

/* Miniatura cuadrada con bordes redondeados */
.mini-thumb {
  flex-shrink: 0;
  border-radius: 8px;
  background-color: #eee;
  width: 200px;
  height: 190px;
  overflow: hidden;
  position: relative;
}

.mini-thumb img {
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenedor de texto */
.mini-info {
  flex-grow: 1;
  min-width: 0;
  /* Vital para que el truncado funcione en flex */
}

/* Título con recorte a 1 sola línea */
.mini-title {
  display: -webkit-box;
  margin: 0;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  color: #1a202c;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Subtítulo (Municipio) */
.mini-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--color-contraste-micro);
  font-size: 12px;
}

.description-text {
  max-width: 100%;
  /* O el ancho de tu card */
  line-height: 1.5;
}

.grid-agent {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.description-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* Corta en la línea 2 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid #23232333;
}

.read-more-btn.collapsed {
  display: inline;
  position: relative;
  top: auto;
  bottom: 5px;
  left: 6px;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  cursor: pointer;
  margin-left: 5px;
  border-radius: 0px 0px 8px 8px;
  background: rgba(243, 244, 246, 0.77);
  padding-right: 6px;
  padding-left: 6px;
  color: #15803d;
  font-weight: 500;
  font-size: var(--text-xs);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 0px;
}

.read-more-btn.collapsed:hover {
  transform: translateX(3px);
  /* Pequeño movimiento a la derecha */
  color: #166534;
  text-decoration: underline;
  /* Refuerza la accesibilidad */
}

.read-more-btn.expanded {
  display: inline;
  position: relative;
  top: auto;
  right: auto;
  bottom: 5px;
  left: 6px;
  transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  cursor: pointer;
  margin-left: 5px;
  background: rgba(243, 244, 246, 0.77);
  padding-right: 6px;
  padding-left: 6px;
  color: #15803d;
  font-weight: 600;
  font-size: var(--text-xs);
  margin-left: 5px;
  border-radius: 0px 0px 8px 8px;
  background: rgba(243, 244, 246, 0.77);
  padding-right: 6px;
  padding-left: 6px;
  color: #15803d;
  font-weight: 500;
  font-size: var(--text-xs);
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: 0px;
}

.read-more-btn.expanded:hover {
  transform: translateX(3px);
  /* Pequeño movimiento a la derecha */
  color: #166534;
  text-decoration: underline;
}

/* Cuando se expande, quitamos el límite */
.description-text.expanded {
  display: block;
  width: 100%;
  min-width: 100%;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  border: 1px solid #23232333;
}

article.inmueble-card.front-page .card-location {
  margin: 0px auto;
  padding: 0px;
  width: 100%;
  color: #000;
  font-size: 10px;
  line-height: 1.5;
}

.status-vendida {
  background: #F44336;
  color: #fff;
}

.status-disponible {
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}

.status-reservada {
  background: #77777733;
  color: #3c3c3c;
}

.property-status {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-xs);
  -webkit-border-radius: var(--radius-xs);
  -moz-border-radius: var(--radius-xs);
  -ms-border-radius: var(--radius-xs);
  -o-border-radius: var(--radius-xs);
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-xs);
}

.inmueble-tools {
  display: grid;
  grid-template-columns: 162px 1fr;
  justify-content: start;
  align-items: center;
  justify-items: start;
  gap: 12px;
  margin-top: 0rem;
  font-size: var(--text-xs);
}

.edit-error {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 50vh;
}

.only-mobile {
  display: none !important;
}

.header-action-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 6rem;
}

h4.h4_related {
  font-size: 20px;
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-wrap: wrap;
  align-content: start;
  align-items: center;
  /* justify-content: space-around; */
  /* flex-direction: row; */
  justify-items: stretch;
  gap: 15px;
  margin: 0px auto;
  width: 60%;
}

.related_post_carousel {
  padding-left: 40px;
  width: 100vw;
  height: 500px;
}

.related_post_carousel .info h2 {
  margin-bottom: 0px;
  font-size: var(--text-base);
}

.related_post_carousel img {
  border-radius: var(--radius-md);
  -webkit-border-radius: var(--radius-md);
  -moz-border-radius: var(--radius-md);
  -ms-border-radius: var(--radius-md);
  -o-border-radius: var(--radius-md);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

p.location-text {
  padding: 0px;
  margin: 0px;
  margin-bottom: 0rem;
}

/* ==========================================================================
   BREAKPOINTS  (Mobile-First / Responsive)
   ========================================================================== */

/* PANTALLAS EXTRA GRANDES (Monitores Pro, iMacs) */
@media (max-width: 1536px) {
  /* Ajustes para pantallas tipo MacBook Pro 16" o monitores 2K */
}

/* ESCRITORIO GRANDE (Laptops de 15", Monitores de oficina) - Equivalente a 'xl' */
@media (max-width: 1280px) {
  /* El contenedor suele bajar a 1200px o 1140px */
}

/* ESCRITORIO NORMAL / LAPTOPS (MacBook Air, Laptops 13") - Equivalente a 'lg' */
@media (max-width: 1024px) {
  /* Punto crítico: Aquí el menú suele pasar a móvil */
}

/* TABLETS EN VERTICAL (iPad, Tablets Android) - Equivalente a 'md' */
@media (max-width: 768px) {}

/* MÓVILES (Smartphones actuales: iPhone 15, Samsung S24) - Equivalente a 'sm' */
@media (max-width: 640px) {
  .property-header {
    margin-top: -1.6rem;
    z-index: 2;
  }


  .property-location {
    padding-bottom: 0px;
    margin-bottom: 0px;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
  }

  button.btn-share {
    position: relative;
    z-index: 999;
  }

  div#sticky-price {
    color: #333333;
    font-size: 1.6rem;
    font-weight: 600;
  }


  button#open-contact-modal.btn-email-action img {
    filter: invert(1);
    width: 16px !important;
    height: 16px !important;
  }

  button#open-contact-modal {
    gap: 4px;
    padding: 12px 6px;
    color: #fff;
    font-size: 13px;
  }

  .mini-thumb {
    width: 80px;
    height: 90px;
  }

  .properties-grid {
    width: 100%;
  }

  .mobile-actions {
    display: flex;
    width: 100%;
  }

  .fav-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
  }

  header#masthead {
    display: none;
  }

  /* ABUELO MÓVIL: Aquí se hacen los cambios más drásticos para asegurar que el sitio sea usable en pantallas pequeñas. */
  main.single-property-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    /* Cambiado de repeat(4, 1fr) para permitir que el sticky funcione */
    gap: 10px;
    padding-top: 0;
    /* Restaurado a 0 como solicitó el usuario */
    min-height: 100vh;
  }

  /* HIJO 1 encabezado */
  .property-mini-header {
    order: 1;
  }

  /* HIJO 2 contenido de la propiedad */
  .property-grid {
    order: 2;
  }

  #neighborhood-section {
    order: 3;
  }

  /* HIJO 3 contenido de la propiedad */
  .map-container {
    order: 4;
  }

  #comparison-section {
    order: 5;
  }






  .related_post {
    order: 6;
    max-width: 100dvw;
  }

  /* PAPA MÓVIL: Reorganizamos el contenido para que sea vertical y fácil de navegar */
  .property-grid {
    display: grid;
    grid-template-rows: auto auto;
    /* Dos filas */
    grid-template-columns: 1fr;
    /* Una columna */
    overflow: visible !important;
  }

  /* hijo 1: .property-grid */
  .property-header {
    order: 2;
  }

  /* hijo 2: .property-grid */
  .tpl-gallery-infosell {
    order: 1;
  }

  .property-grid {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
    gap: 0px;
    margin: 0px auto;
    padding: 0px;
    width: 100%;
    overflow: visible !important;
  }

  .property-header {
    order: 2;
    overflow: visible !important;
    padding: 0 var(--space-3);
  }

  .tpl-gallery-infosell {
    order: 1;
    overflow: visible !important;
  }

  .property-description {
    overflow: visible !important;
  }

  /*   ANOTACION */
  /* -- single-property-container
  /* ------- // property-mini-header
  /* ------- // property-grid
                ----- property-header
                ----- tpl-gallery-infosell
  /* ------- // map-container
  /* ------- // related_post
  */

  .property-sidebar {
    position: fixed;
    right: 0;
    bottom: -2px !important;
    left: 0;
    z-index: 1999;
    margin-bottom: -190px;
    padding-right: 0;
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: 0;
    touch-action: none;
  }

  .property-tpl-center {
    display: block;
    margin: 0px auto;
    width: 100%;
  }

  /* Comportamiento base del precio (fijo solo en móvil vía media query abajo) */
  .property-price-operation {
    display: flex;
    padding: 10px 0;
    justify-content: center;
  }

  .style-price-op {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .detail-item {
    display: flex;
    flex-direction: row;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #0c0c0c1a;

    padding: 0.5rem;
    color: var(--color-contraste-micro);
    font-size: var(--text-sm);
    line-height: 1.2;
    text-align: left;
  }

  .property-details-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(50px, auto);
    grid-auto-flow: row;
    align-items: stretch;
    gap: 8px;
    margin: 0.5rem 0;
    background: transparent;
    padding: 0px;
    min-height: 68px;
  }

  .property-details-bar>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border-radius: var(--radius-sm);
    -webkit-border-radius: var(--radius-sm);
    -moz-border-radius: var(--radius-sm);
    -ms-border-radius: var(--radius-sm);
    -o-border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0px;
    text-align: left;
    min-height: 68px;
    border: 0px;
  }

  .detail-item img {
    margin-right: 10px;
    margin-bottom: 0px;
    margin-left: 5px;
    width: 30px;
    height: 30px;
  }

  .grid-agent {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-content: space-between;
    justify-content: stretch;
    align-items: center;
    justify-items: stretch;
    width: 100%;
  }

  .hide-into-mobile {
    display: none;
  }

  aside .contact-card-refined {
    margin: 0px auto;
    box-shadow: inset 0 1px 0 0 rgba(0, 0, 0, 0.3);
    border: 0px;
    border-radius: 0px;
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    -ms-border-radius: 0px;
    -o-border-radius: 0px;
    padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0px;
    padding-left: 0.6rem;
    width: 100%;
  }

  aside .agent-text p {
    margin: 2px 0 0 0;
    width: 110px;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  aside .agent-text strong {
    width: 110px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  aside .agent-compact-info {
    margin-bottom: 12px;
  }

  aside .action-buttons-group {
    grid-template-columns: 36px 1fr;
    gap: 6px;
    margin-bottom: 12px;
  }

  li.amenidades-li {
    font-size: var(--text-sm);
  }

  .agent-photo {
    width: 44px;
    height: 44px;
  }

  .btn-wa-action {
    max-width: 50px;
  }

  .inmueble-tools {
    margin-top: 0px !important;
    margin-top: 0px;
    background: var(--color-surface);
    padding: 1rem 0.5rem;
    padding-top: 0px;
  }

  .related_post_carousel img {
    height: 240px;
  }

  .related_post_carousel {
    padding-left: 0px;
    width: 100%;
    max-width: 100vw;
    height: auto;
  }

  h3.suggested-title {
    margin: 0px auto;
    padding: 0px;
  }

  .related_post>p {
    margin: 0px;
    padding: 0px;
    max-width: 61%;
    line-height: 1.5;
    text-align: center;
  }

  h3.h4_related {
    margin: 30px auto 0px;
    padding: 0px;
  }

  .property-mini-header {
    display: none;
  }

  .read-more-btn.collapsed {
    top: -8px;
  }


  .property-amenidades h2 {
    margin-bottom: 0px;
    font-size: var(--text-lg);
  }

  .property-descripcion h2 {
    font-size: var(--text-micro);

  }

  .read-more-btn.expanded {
    top: -8px;
  }

  .mini-card {
    min-width: 90%;
  }
}

/* ===== FIN DEL NUEVO ORDEN ===================================================================== */
/*
 * UBIHOME - single-property-v2.css
 * Estilos extraídos de single-inmueble.php para optimización de performance.
 */

/* PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f1f5eb;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
}

.preloader-logo {
  width: 90px;
  height: auto;
  z-index: 10;
  animation: logo-float 2s ease-in-out infinite;
}

.pulse-wave {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: #6c757d;
  border-radius: 50%;
  opacity: 0;
  animation: material-pulse 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.delay-pulse {
  animation-delay: 1s;
}

@keyframes material-pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

@keyframes logo-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.preloader-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* FAVORITO ANIMATIONS */
.js-like-property {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
  display: inline-block;
  user-select: none;
}

.js-like-property:hover {
  transform: rotate(15deg) scale(1.15);
  filter: brightness(1.1);
}

.js-like-property:active {
  transform: scale(0.9);
}

.fav-pulse-animation {
  animation: fav-pulse 0.4s linear;
}

@keyframes fav-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

/* MODALES GLOBALES */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
  position: relative;
  width: 100vw;
}

.ubihome-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.ubihome-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ubihome-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
}

.ubihome-modal-window {
  position: relative;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  width: 90%;
  max-width: 380px;
  text-align: center;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.ubihome-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.btn-login-required {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #0d6efd;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}

/* TOOLBAR SHARED - RESTAURADO */
.toolbar-shared {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

#share-property-btn.btn-share {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  font-size: var(--text-xs);
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

#share-property-btn.btn-share:hover {
  background: #f1f9f7;
  border-color: #b9d3c1;
}

.btn-fav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 6px 3px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

@media (max-width: 768px) {

  .map-title-side h3 {
    font-size: 1rem;
  }

  .property-mini-header {
    display: none !important;
  }

  .toolbar-shared {
    display: none !important;
  }

  .mobile-property-bar.only-mobile {
    display: flex !important;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 64px;
    background: transparent;
    z-index: 10000;
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }

  .mobile-property-bar.only-mobile.is-sticky-active {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    pointer-events: auto;
    /* Permite clics en toda la barra si es necesario, o mantenerlo en none si solo hijos */
  }

  .mobile-property-bar.only-mobile>* {
    pointer-events: auto;
  }

  .btn-back-top-bar {
    margin-right: auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  .mobile-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
  }

  .mobile-actions.btn-share img {
    filter: invert(1);
    transition: filter 0.3s ease;
  }

  .mobile-property-bar.only-mobile.is-sticky-active .mobile-actions.btn-share img {
    filter: invert(1)
      /* Volver al color original si el fondo es blanco */
  }

  .mobile-actions .btn-share img {
    filter: invert(1);
    transition: filter 0.3s ease;
  }

  .mobile-property-bar.only-mobile.is-sticky-active .mobile-actions .btn-share img {
    filter: invert(1);
    /* Volver al color original si el fondo es blanco */
  }

  .mobile-actions .btn-share,
  .mobile-actions .fav-mobile {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }

  /* PRECIO STICKY EXCLUSIVO MOBILE */
  .property-price-operation {
    width: 100%;

    padding: 12px 16px !important;
  }

  .property-metrics-container {
    padding-bottom: 16px;
  }

  .style-price-op {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
}

/* REFINAMIENTOS SVG Y ESTÉTICA */
#share-property-btn.btn-share svg {
  stroke: #475569;
  width: 20px;
  height: 20px;
}

.img-fav-desktop,
.img-fav-movil {
  transition: transform 0.2s ease;
}

.img-fav-desktop:hover,
.img-fav-movil:hover {
  transform: scale(1.1);
}

/* Evitar que el preloader rompa el scroll si algo falla */
html,
body {
  overflow-x: hidden;
}

#preloader.preloader-hidden {
  pointer-events: none;
}

/* MAP CONTROLS */
.btn-map-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-map-control:hover {
  background: #f8fafc;
  border-color: #cbd5e0;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-map-control svg {
  color: #145a37;
}

#map-fullscreen-container:fullscreen {
  width: 100dvw !important;
  height: 100dvh !important;
  background: #fff;
  z-index: 99999;
}

#map-fullscreen-container:fullscreen #property-map {
  height: 100dvh !important;
  border-radius: 0 !important;
}

/* Fallbacks para Safari */
#map-fullscreen-container:-webkit-full-screen {
  width: 100dvw !important;
  height: 100dvh !important;
}

#map-fullscreen-container:-webkit-full-screen #property-map {
  height: 100dvh !important;
}

@media (max-width: 600px) {
  .btn-map-control {
    font-size: 13px;
    padding: 8px 12px;
  }
}

/* MAP HEADER FIX */
.map-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
  padding-bottom: 0px;
}

.map-header-controls h3 {
  padding: 0px;
  margin: 0px;
  padding-left: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (max-width: 600px) {
  .map-header-controls {
    flex-direction: row;
    /* Forzamos a par en móviles también */
    gap: 10px;
  }
}

/* PREMIUM ZOOM CONTROLS FOR MAP */
.leaflet-bar {
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  background-color: #fff !important;
  color: #475569 !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  border: none !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background-color: #f1f5f9 !important;
  color: #145a37 !important;
}

.leaflet-control-zoom-in {
  border-radius: 14px 14px 0 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.leaflet-control-zoom-out {
  border-radius: 0 0 14px 14px !important;
}

.leaflet-control-zoom {
  margin-left: 20px !important;
  margin-top: 20px !important;
}

/* PSEUDO-FULLSCREEN FALLBACK (iOS Safari) */
.map-fs-open {
  overflow: hidden !important;
}

/* MODO FULLSCREEN PSEUDO (FIXED) */
.is-pseudo-fs {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 100000 !important;
  background: #fff !important;
  padding: 0 !important;
  margin: 0 !important;
}

.is-pseudo-fs #property-map {
  flex-grow: 1 !important;
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
}

/* Ocultar header interno si estamos en pantalla completa */
.is-pseudo-fs .map-header-controls {
  display: none !important;
}

/* El botón de cerrar en modo pseudo-fs debe ser visible y flotante */
.is-pseudo-fs #map-fullscreen-btn {
  position: absolute !important;
  top: 16px !important;
  right: 80px !important;
  z-index: 100001 !important;
  background: #fff !important;
  box-shadow: var(--shadow-lg);
  border: 1px solid #e2e8f0 !important;
  padding: 10px 15px !important;
  border-radius: 8px !important;
}

/* BLOQUEO DE SCROLL EN BODY */
body.map-fs-open {
  overflow: hidden !important;
  height: 100vh !important;
}

/* OVERLAY BUTTON POSITIONS */
#map-fullscreen-container {
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



/* En modo fullscreen (nativo o pseudo) el botón se mantiene arriba a la derecha */
:fullscreen #property-map,
:-webkit-full-screen #property-map {
  width: 100vw !important;
  height: 100vh !important;
}

:fullscreen #map-fullscreen-btn,
:-webkit-full-screen #map-fullscreen-btn {
  top: 15px !important;
  right: 86px !important;
}