/*
	van Lamoen Gestión Inmobiliaria
	2024
	I <3 CSS
*/

body{background-color:#f0f0f0}

a:hover{color: #21ACFF}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid #21ACFF;
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
}

/* Estructura, común a todas las páginas.   */

.container {
  background:white;
  padding:0 20px;
}

.site-header {
	margin: 0 0 50px;
  padding: 50px 0;
  border-bottom: 4px solid #f0f0f0;
  text-align: center;
  background: #fff;
}

.site-header img {
	display: inline;
	height: 120px;
}

.site-header h1 {
	display: none;
}

footer {
	margin-top: 50px;
  border-top: 4px solid #f0f0f0;
	text-align: center;
	font-size: 13px;
  padding: 50px 0;
}

[data-media-card] {
  cursor: grab;
}

[data-media-card]:active {
  cursor: grabbing;
}

/* Listado de Propiedades (Home) */

.propiedad_lista {
  position: relative;
	border: 2px solid #f0f0f0;
  background: #fff;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.propiedad_lista:hover {
  border-color: #c7e9ff;
  transform: translateY(-2px);
}

.propiedad_lista:hover .font-bold {
  color: #21ACFF;
  border-color: #21ACFF;
}

.propiedad_lista .link_invisible {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.propiedad_lista .datos {
  background: white;
  padding: 10px 10px 12px;
}

.propiedad_lista .foto {
  height: 200px;
  overflow: hidden;
  background: #f8f8f8;
}

.propiedad_lista .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.propiedad_lista .card-image {
  background: linear-gradient(90deg, #f1f1f1 0%, #fafafa 50%, #f1f1f1 100%);
}

.listado-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}

.meta-filtros {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resultado-total {
  font-size: 14px;
  color: #5f5f5f;
}

.orden-activo {
  font-size: 13px;
  color: #545454;
  border: 1px solid #e4e4e4;
  background: #fff;
  padding: 5px 8px;
}

.chips-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips-filtros .chip {
  border: 1px solid #d4ecfb;
  background: #f2faff;
  color: #0c6a9f;
  text-decoration: none;
  font-size: 12px;
  padding: 5px 8px;
}

.chips-filtros .chip:hover {
  border-color: #21ACFF;
  color: #085a88;
}

.chips-filtros .chip:focus-visible,
.limpiar-todo:focus-visible,
.paginacion .pag-link:focus-visible,
.filtros-actions button:focus-visible,
.filtros-actions a:focus-visible,
.sticky-cta-mobile a:focus-visible {
  outline: 3px solid #21ACFF;
  outline-offset: 2px;
}

.detalle-resumen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.detalle-resumen .resumen-pill {
  font-size: 12px;
  color: #2b2b2b;
  border: 1px solid #dcdcdc;
  background: #fafafa;
  padding: 5px 8px;
}

.limpiar-todo {
  color: #4c4c4c;
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px dashed #bfbfbf;
}

.limpiar-todo:hover {
  color: #21ACFF;
  border-bottom-color: #21ACFF;
}

.paginacion {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.paginacion .pag-link,
.paginacion .pag-info {
  border: 1px solid #d9d9d9;
  background: #fff;
  padding: 8px 12px;
  font-size: 14px;
}

.paginacion .pag-link {
  color: #1c1c1c;
  text-decoration: none;
}

.paginacion .pag-link:hover {
  border-color: #21ACFF;
  color: #21ACFF;
}

.paginacion .pag-link.disabled {
  color: #999;
  border-color: #ececec;
}

.filtros {
  margin: 0 0 18px;
  padding: 12px;
  border: 2px solid #f0f0f0;
  background: #fbfbfb;
}

.filtros-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.filtro-sort {
  min-width: 160px;
}

.filtro-item label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
}

.filtro-item select {
  width: 100%;
  border: 1px solid #dbdbdb;
  background: #fff;
  padding: 9px 10px;
}

.filtros-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.filtros-actions button,
.filtros-actions a {
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  text-decoration: none;
  padding: 7px 12px;
  font-size: 14px;
}

.filtros-actions button:hover,
.filtros-actions a:hover {
  border-color: #21ACFF;
  color: #21ACFF;
}

.propiedad_lista .badges {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.propiedad_lista .badge {
  border: 1px solid #d7d7d7;
  background: #fafafa;
  color: #4f4f4f;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 6px;
}

.propiedad_lista .badge-op {
  border-color: #21ACFF;
  color: #0d6ea8;
  background: #eef8ff;
}

.propiedad_lista .titulo-card {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: #1d1d1d;
  margin-bottom: 8px;
}

.propiedad_lista .valor-card {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f6b9f;
  margin-bottom: 8px;
}

.propiedad_lista .meta-card {
  font-size: 14px;
  line-height: 1.35;
  color: #666;
  margin-bottom: 4px;
}

.propiedad_lista .metricas-card {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.propiedad_lista .metrica {
  font-size: 12px;
  color: #3b3b3b;
  border: 1px solid #e0e0e0;
  background: #fafafa;
  padding: 3px 7px;
}

/* Single de Propiedad */

/* . Slider de fotos y videos */

.slider {
	margin: 20px 0 30px;
  width: 100%;
  height: 650px;
  max-height: 70vh;
  position: relative;
  overflow: hidden;
  border: 2px solid #f0f0f0;
}

.slider .slide {
  width: 100%;
  height: 650px;
  max-height: 70vh;
  position: absolute;
  transition: all 0.5s;
  text-align: center;
}

.slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider .slide video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider .btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  background-color: #fff;
  font-size: 22px;
  font-weight: bold;
  color: #21ACFF;
}

.slider .btn:active {
  transform: scale(1.1);
}

.slider .btn-prev {
  top: 45%;
  left: 2%;
}

.slider .btn-next {
  top: 45%;
  right: 2%;
}

/* . Ficha o descripcion  */

.ficha {
  padding-right:1em;
}

.ficha p, .ficha ul, .ficha ol {
  margin-bottom: 1em;
}

.ficha p.text-xl {
  margin-bottom: 0;
}

.ficha li {
  margin-left: 2em;
  list-style-type: disc;
  list-style-position: inside;
}

/* . Sidebar */

.sidebar div {
  margin-bottom: 15px;
  border: 1px solid #21ACFF;
  padding: 10px;
}

.sidebar .contacto a {
  font-weight:bold
}

.compartir {
  border: 1px solid #e0e0e0;
  padding: 12px;
  margin-top: 10px;
}

.compartir .btn-whatsapp,
.compartir .btn-copy {
  display: inline-block;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #111;
  text-decoration: none;
  padding: 7px 12px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
}

.compartir .btn-whatsapp:hover,
.compartir .btn-copy:hover {
  border-color: #21ACFF;
  color: #21ACFF;
}

.compartir .btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.compartir .btn-whatsapp:hover {
  background: #1f9d5a;
  border-color: #1f9d5a;
  color: #fff;
}

.related-properties {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 4px solid #f0f0f0;
}

.related-properties .propiedad_lista .foto {
  height: 110px;
}

.related-properties .propiedad_lista .datos {
  padding: 7px 8px 9px;
}

.related-properties .propiedad_lista .badges {
  margin-bottom: 5px;
  gap: 5px;
}

.related-properties .propiedad_lista .titulo-card {
  font-size: 13px;
  margin-bottom: 4px;
}

.related-properties .propiedad_lista .valor-card {
  font-size: 13px;
  margin-bottom: 4px;
}

.related-properties .propiedad_lista .metricas-card {
  gap: 5px;
  margin-bottom: 5px;
}

.related-properties .propiedad_lista .metrica {
  font-size: 11px;
  padding: 2px 5px;
}

.related-properties .propiedad_lista .meta-card {
  font-size: 12px;
}



.filtros-details {
  margin: 0 0 18px;
}

.filtros-summary {
  display: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 12px;
  border: 2px solid #f0f0f0;
  background: #fbfbfb;
}

.filtros-summary:focus-visible {
  outline: 3px solid #21ACFF;
  outline-offset: 2px;
}

.sticky-cta-mobile {
  display: none;
}

.sticky-cta-mobile a {
  text-decoration: none;
  text-align: center;
  color: #fff;
  font-weight: 700;
  padding: 11px 10px;
}

.sticky-cta-mobile .cta-whatsapp {
  background: #1f9d5a;
}

.sticky-cta-mobile .cta-email {
  background: #0f6b9f;
}

@media (max-width: 900px) {
  .container {
    padding: 5px 12px;
  }

  .slider,
  .slider .slide {
    height: 420px;
    max-height: 60vh;
  }
}

@media (max-width: 640px) {
  .slider,
  .slider .slide {
    height: 280px;
    max-height: 50vh;
  }

  .sidebar {
    margin-top: 14px;
  }

  .paginacion {
    flex-wrap: wrap;
  }

  .filtros-summary {
    display: block;
  }

  .filtros-details:not([open]) .filtros {
    display: none;
  }

  .filtros-grid {
    grid-template-columns: 1fr;
  }

  .filtros-actions {
    flex-wrap: wrap;
  }

  .listado-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .meta-filtros {
    width: 100%;
  }

  .orden-activo {
    width: auto;
  }

  .sticky-cta-mobile {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 16px;
    border: 1px solid #dfe8ee;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slider .slide,
  .slider .btn {
    transition: none;
  }
}