/* ==============================================
   TERRANEX INMOBILIARIA — Hoja de estilos principal
   Estructura:
   1. Variables y reset
   2. Tipografía base
   3. Header y navegación
   4. Responsive / móvil
   5. HERO 
   6. FOOTER
   7. SECCIÓN ALIADOS
   8. PLP — PÁGINA DE LISTADO DE PROPIEDADES
   9. PLP — BARRA SUPERIOR Y FILTROS ACTIVOS
   10. PLP — CATÁLOGO Y TARJETAS
   ============================================== */


/* ==============================================
   1. VARIABLES Y RESET
   ============================================== */

:root {
  /* Paleta de marca */
  --color-naranja:      #EA6833;
  --color-naranja-dark: #d4582a;
  --color-cafe-oscuro:  #261712;
  --color-cafe-medio:   #593A2E;
  --color-cafe-claro:   #8C6151;
  --color-fondo:        #F2F2F2;
  --color-fondo-calido: #e8e0d8;

  /* Tipografías */
  --font-titulo: 'Raleway', sans-serif;
  --font-cuerpo: 'Open Sans', sans-serif;

  /* Espaciado */
  --header-height: 80px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cuerpo);
  color: var(--color-cafe-medio);
  background-color: var(--color-fondo);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}


/* ==============================================
   2. TIPOGRAFÍA BASE
   ============================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-titulo);
  color: var(--color-cafe-oscuro);
  line-height: 1.2;
}

p {
  line-height: 1.7;
}


/* ==============================================
   3. HEADER Y NAVEGACIÓN
   ============================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Header con scroll — fondo difuminado sutil */
.header.scrolled {
  background-color: rgba(242, 242, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(89, 58, 46, 0.1);
}

/* --- Contenedor del nav --- */
.nav {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

/* --- Logo --- */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* --- Menú central --- */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-titulo);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-cafe-medio);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}


/* Línea animada bajo el link */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--color-naranja);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--color-naranja);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* --- "Consigna tu inmueble" — pill sutil --- */
.nav-consigna {
  color: var(--color-naranja);
  border: 1.5px solid rgba(234, 104, 51, 0.4);
  padding: 5px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-consigna:hover {
  background-color: rgba(234, 104, 51, 0.08);
  border-color: var(--color-naranja);
  color: var(--color-naranja);
}

/* Sin línea animada en el pill */
.nav-consigna::after {
  display: none;
}

/* --- Botón Ingresar --- */
.nav-access {
  position: relative;
}

.nav-btn {
  font-family: var(--font-titulo);
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: var(--color-naranja);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background-color 0.2s ease;
  min-width: 130px;
  white-space: nowrap;
}

.nav-btn i {
  font-size: 16px;
  color: #ffffff;
}

.nav-btn-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  background-color: var(--color-naranja-dark);
}

/* Rotar flecha cuando dropdown está abierto */
.nav-access.open .nav-btn-arrow {
  transform: rotate(180deg);
}

/* --- Dropdown de acceso --- */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: #ffffff;
  border: 0.5px solid rgba(89, 58, 46, 0.12);
  border-radius: 12px;
  padding: 10px 8px;
  min-width: 190px;
  box-shadow: 0 8px 32px rgba(38, 23, 18, 0.08);

  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

/* Dropdown visible */
.nav-access.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-label {
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-cafe-claro);
  padding: 4px 12px 8px;
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-family: var(--font-cuerpo);
  font-size: 13px;
  color: var(--color-cafe-medio);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: rgba(234, 104, 51, 0.07);
  color: var(--color-naranja);
}

.nav-dropdown-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(140, 97, 81, 0.35);
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.nav-dropdown-item:hover .nav-dropdown-dot {
  background-color: var(--color-naranja);
}

.nav-dropdown-divider {
  height: 0.5px;
  background-color: rgba(89, 58, 46, 0.1);
  margin: 6px 8px;
}

/* --- Botón hamburguesa — oculto en escritorio --- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cafe-medio);
  font-size: 26px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.nav-consigna-bar {
  display: none;
}

/* ==============================================
   4. RESPONSIVE — Móvil
   ============================================== */

@media (max-width: 1024px) {

  .nav {
    padding: 0 20px;
    position: relative;
  }

  /* Hamburguesa — oculto */
  .nav-toggle {
    display: none;
  }

  /* Logo — centrado */
  .nav-logo {
    order: 2;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-logo-img {
    height: 60px;
  }

  /* Botón ingresar — derecha */
  .nav-access {
    order: 3;
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  /* En móvil ocultar texto, solo ícono y flecha */
  .nav-btn-text {
    display: none;
  }

  .nav-btn {
    padding: 9px 12px;
    min-width: unset;
    gap: 4px;
  }

  /* Dropdown abre hacia la izquierda en móvil */
  .nav-dropdown {
    right: 0;
    left: auto;
  }

  /* Menú — oculto completamente en móvil */
  .nav-menu {
    display: none;
  }

  /* ── Franja "Consigna tu inmueble" — debajo del header ── */
  .nav-consigna-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(234, 104, 51, 0.06);
    border-bottom: 1px solid rgba(234, 104, 51, 0.18);
    padding: 10px 20px;
    margin-top: var(--header-height);
  }

  .nav-consigna-bar a {
    font-family: var(--font-titulo);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-naranja);
    border: 1.5px solid rgba(234, 104, 51, 0.4);
    padding: 7px 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }

  .nav-consigna-bar a:hover {
    background-color: rgba(234, 104, 51, 0.08);
    border-color: var(--color-naranja);
  }

}


/* ==============================================
   5. HERO
   ============================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-fondo);
}

/* Fondo con degradados sutiles de marca */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(234, 104, 51, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(140, 97, 81, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(89, 58, 46, 0.06) 0%, transparent 40%);
}

/* Textura de cuadrícula sutil */
.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(89, 58, 46, 0.025) 60px,
      rgba(89, 58, 46, 0.025) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(89, 58, 46, 0.025) 60px,
      rgba(89, 58, 46, 0.025) 61px
    );
}

/* Círculos decorativos */
.hero-deco {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(234, 104, 51, 0.1);
  top: 12%;
  right: 8%;
  pointer-events: none;
}

.hero-deco2 {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid rgba(89, 58, 46, 0.08);
  bottom: 12%;
  left: 6%;
  pointer-events: none;
}

/* Contenido centrado */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 40px 80px;
  max-width: 780px;
  margin: 0 auto;
}

/* Eyebrow — líneas + nombre de marca */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-titulo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-naranja);
  margin-bottom: 32px;
  opacity: 0.85;
}

.hero-eyebrow-line {
  width: 28px;
  height: 1px;
  background-color: var(--color-naranja);
  opacity: 0.6;
  display: inline-block;
}

/* Título principal */
.hero-title {
  font-family: var(--font-titulo);
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 600;
  color: var(--color-cafe-oscuro);
  line-height: 1.45;
  letter-spacing: -0.3px;
  margin-bottom: 24px;
}

/* Palabra destacada en naranja */
.hero-title em {
  font-style: normal;
  color: var(--color-naranja);
}

/* Subtítulo de apoyo */
.hero-sub {
  font-family: var(--font-cuerpo);
  font-size: 15px;
  color: var(--color-cafe-claro);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
  opacity: 0.85;
}

/* --- Hero responsive --- */
@media (max-width: 1024px) {

  .hero-content {
    padding: 100px 32px 60px;
  }

  .hero-deco {
    width: 120px;
    height: 120px;
    top: 8%;
    right: 4%;
  }

  .hero-deco2 {
    display: none;
  }

}

/* ==============================================
   6. FOOTER
   ============================================== */

.footer {
  background-color: #593A2E;
  font-family: var(--font-cuerpo);
  width: 100%;
}

/* --- Grid principal --- */
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 1.2fr;
  gap: 0 1px;
}

/* --- Columnas con divisor via border --- */
.footer-col {
  padding: 0 40px;
}

.footer-col:first-child {
  padding-left: 0;
  border-right: 0.5px solid rgba(242, 242, 242, 0.1);
}

.footer-col:nth-child(2) {
  border-right: 0.5px solid rgba(242, 242, 242, 0.1);
}

.footer-col:last-child {
  padding-right: 0;
}

/* --- Logo --- */
.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}

/* --- Tagline --- */
.footer-tagline {
  font-size: 12.5px;
  color: rgba(242, 242, 242, 0.4);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 220px;
}

/* --- Info legal --- */
.footer-legal {
  margin-bottom: 16px;
}

.footer-legal-item {
  font-size: 11.5px;
  color: rgba(242, 242, 242, 0.4);
  line-height: 2;
}

.footer-legal-item strong {
  color: rgba(242, 242, 242, 0.6);
  font-weight: 500;
}

/* --- Matrícula inmobiliaria --- */
.footer-matricula {
  padding: 12px 14px;
  border: 0.5px solid rgba(234, 104, 51, 0.25);
  border-radius: 8px;
  background: rgba(234, 104, 51, 0.05);
}

.footer-matricula-title {
  font-family: var(--font-titulo);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-naranja);
  opacity: 0.8;
  display: block;
  margin-bottom: 6px;
}

.footer-matricula-num {
  font-size: 13px;
  font-weight: 600;
  color: rgba(242, 242, 242, 0.7);
  display: block;
  margin-bottom: 5px;
}

.footer-matricula-dep {
  font-size: 10.5px;
  color: rgba(242, 242, 242, 0.32);
  line-height: 1.6;
  display: block;
}

/* --- Título de columna --- */
.footer-col-title {
  font-family: var(--font-titulo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--color-naranja);
  opacity: 0.85;
  margin-bottom: 22px;
  display: block;
}

/* --- Items de contacto --- */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item i {
  font-size: 15px;
  color: var(--color-naranja);
  opacity: 0.75;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.25);
  display: block;
  margin-bottom: 2px;
}

.footer-contact-text {
  font-size: 13px;
  color: rgba(242, 242, 242, 0.55);
  line-height: 1.5;
}

.footer-contact-text a {
  color: rgba(242, 242, 242, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-text a:hover {
  color: var(--color-naranja);
}

/* --- Horario --- */
.footer-horario {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 0.5px solid rgba(242, 242, 242, 0.07);
}

.footer-horario-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-horario-header i {
  font-size: 14px;
  color: var(--color-naranja);
  opacity: 0.7;
}

.footer-horario-title {
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.3);
}

.footer-horario-item {
  font-size: 12px;
  color: rgba(242, 242, 242, 0.45);
  line-height: 1.9;
  padding-left: 22px;
}

/* --- Navegación --- */
.footer-nav-list {
  list-style: none;
  margin-bottom: 28px;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list a {
  font-size: 13px;
  color: rgba(242, 242, 242, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a i {
  font-size: 13px;
  color: rgba(234, 104, 51, 0.45);
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--color-naranja);
}

.footer-nav-list a:hover i {
  color: var(--color-naranja);
}

/* --- Redes sociales --- */
.footer-social-title {
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.3);
  margin-bottom: 14px;
  display: block;
  padding-top: 20px;
  border-top: 0.5px solid rgba(242, 242, 242, 0.07);
}

.footer-col:last-child .footer-social-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 8px;
  border: 0.5px solid rgba(242, 242, 242, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(242, 242, 242, 0.6);
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.footer-social-btn i {
  font-size: 20px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.footer-social-btn:hover {
  border-color: var(--color-naranja);
  color: var(--color-naranja);
  background: rgba(234, 104, 51, 0.08);
}

/* --- Bottom bar --- */
.footer-bottom {
  border-top: 0.5px solid rgba(242, 242, 242, 0.07);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 11.5px;
  color: rgba(242, 242, 242, 0.25);
}

.footer-policy {
  font-size: 11.5px;
  color: rgba(242, 242, 242, 0.25);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-policy i {
  font-size: 13px;
}

.footer-policy:hover {
  color: var(--color-naranja);
}

/* --- Footer responsive --- */
@media (max-width: 1024px) {

  .footer-main {
    grid-template-columns: 1fr;
    padding: 40px 24px 32px;
    gap: 32px;
  }

  .footer-col {
    padding: 0;
    border-right: none;
    border-top: 0.5px solid rgba(242, 242, 242, 0.08);
    padding-top: 32px;
  }

  .footer-col:first-child {
    border-top: none;
    border-right: none;
    padding-top: 0;
  }

  .footer-bottom {
    padding: 20px 24px;
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

}

/* ==============================================
   7. SECCIÓN ALIADOS
   ============================================== */

.aliados-section {
  background-color: var(--color-fondo);
  padding: 48px 0 36px;
  overflow: hidden;
  position: relative;
}

/* --- Título --- */
.aliados-header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 48px;
}

.aliados-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-titulo);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-naranja);
  opacity: 0.8;
}

.aliados-eyebrow-line {
  width: 24px;
  height: 1px;
  background: var(--color-naranja);
  opacity: 0.5;
  display: inline-block;
}

/* --- Contenedor cinta --- */
.aliados-track-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
}

.aliados-track-wrap:active {
  cursor: grabbing;
}

/* Degradados en bordes */
.aliados-track-wrap::before,
.aliados-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.aliados-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--color-fondo), transparent);
}

.aliados-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--color-fondo), transparent);
}

/* --- Cinta animada --- */
.aliados-track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: aliados-slide 28s linear infinite;
  width: max-content;
  user-select: none;
}

.aliados-track.paused {
  animation-play-state: paused;
}

@keyframes aliados-slide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Cada logo — tamaño fijo del contenedor --- */
.aliado-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 80px;
  flex-shrink: 0;
  text-decoration: none;
  border-right: 1px solid rgba(89, 58, 46, 0.1);
  padding: 0 24px;
  transition: opacity 0.2s ease;
}

.aliado-item:hover {
  opacity: 0.75;
}

.aliado-item img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}

.aliado-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}


/* --- Responsive --- */
@media (max-width: 1024px) {

  .aliados-header {
    padding: 0 24px;
  }

  .aliados-controls {
    padding: 0 24px;
  }

  .aliados-scrollbar {
    width: 200px;
  }

  .aliados-track-wrap::before,
  .aliados-track-wrap::after {
    width: 40px;
  }

  .aliado-item {
    width: 140px;
    height: 70px;
  }

}

/* Estado activo en móvil — primer toque */
.aliado-active img {
  filter: grayscale(0%);
  opacity: 1;
  outline: 2px solid var(--color-naranja);
  outline-offset: 6px;
  border-radius: 4px;
}

/* ==============================================
   8. PLP — PÁGINA DE LISTADO DE PROPIEDADES
   ============================================== */

/* --- Layout general --- */
.plp-section {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  padding-top: var(--header-height);
}

/* ==============================================
   SIDEBAR DE FILTROS
   ============================================== */

.plp-sidebar {
  width: 256px;
  min-width: 256px;
  background: rgba(242, 242, 242, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 0.5px solid rgba(89, 58, 46, 0.06);
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease, min-width 0.3s ease;
  overflow: hidden;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

/* Scrollbar del sidebar — sutil */
.plp-sidebar::-webkit-scrollbar {
  width: 3px;
}
.plp-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.plp-sidebar::-webkit-scrollbar-thumb {
  background: rgba(89, 58, 46, 0.15);
  border-radius: 2px;
}

.plp-sidebar.collapsed {
  width: 0;
  min-width: 0;
}

.plp-sidebar-inner {
  width: 256px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- Header del sidebar --- */
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 0.5px solid rgba(89, 58, 46, 0.07);
}

.sidebar-head-title {
  font-family: var(--font-titulo);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-cafe-claro);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-head-title i {
  font-size: 14px;
  color: var(--color-naranja);
}

.sidebar-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-cafe-claro);
  display: flex;
  align-items: center;
  padding: 2px;
  transition: color 0.15s ease;
  font-size: 16px;
}

.sidebar-close-btn:hover {
  color: var(--color-naranja);
}

/* --- Grupos de filtro --- */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group-label {
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-cafe-claro);
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-group-label i {
  font-size: 12px;
  color: var(--color-naranja);
  opacity: 0.85;
}

/* --- Selects --- */
.filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 0.5px solid rgba(89, 58, 46, 0.1);
  border-radius: 6px;
  font-family: var(--font-cuerpo);
  font-size: 12px;
  color: var(--color-cafe-medio);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%238C6151' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.15s ease;
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-naranja);
}

/* --- Botones de opción (hab, baños, parq) --- */
.filter-btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn-opt {
  padding: 5px 12px;
  border: 0.5px solid rgba(89, 58, 46, 0.12);
  border-radius: 20px;
  font-size: 11px;
  color: var(--color-cafe-medio);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: var(--font-cuerpo);
  transition: all 0.15s ease;
}

.filter-btn-opt:hover,
.filter-btn-opt.active {
  background: var(--color-naranja);
  border-color: var(--color-naranja);
  color: #ffffff;
}

/* --- Divisor entre grupos --- */
.filter-divider {
  height: 0.5px;
  background: rgba(89, 58, 46, 0.06);
  margin: 2px 0;
}

/* --- Slider dual (área y precio) --- */
.dual-slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dual-slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}

.dual-slider-track {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(89, 58, 46, 0.1);
  border-radius: 2px;
}

.dual-slider-fill {
  position: absolute;
  height: 2px;
  background: var(--color-naranja);
  border-radius: 2px;
}

.dual-slider input[type="range"] {
  position: absolute;
  width: 100%;
  pointer-events: none;
  appearance: none;
  background: transparent;
  height: 2px;
}

.dual-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-naranja);
  pointer-events: all;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(89, 58, 46, 0.15);
}

.dual-slider-vals {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--color-cafe-claro);
}

/* --- Histograma de precio --- */
.price-histogram {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  margin-bottom: 4px;
}

.price-histogram-bar {
  flex: 1;
  background: rgba(234, 104, 51, 0.1);
  border-radius: 2px 2px 0 0;
  transition: background 0.2s ease;
}

.price-histogram-bar.active {
  background: rgba(234, 104, 51, 0.45);
}

/* --- Responsive sidebar móvil --- */
@media (max-width: 1024px) {

  .plp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 500;
    width: 280px;
    min-width: 280px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(38, 23, 18, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .plp-sidebar.open {
    transform: translateX(0);
  }

  .plp-sidebar.collapsed {
    width: 280px;
    min-width: 280px;
    transform: translateX(-100%);
  }

  .plp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(38, 23, 18, 0.3);
    z-index: 499;
    backdrop-filter: blur(2px);
  }

  .plp-overlay.visible {
    display: block;
  }

}

/* ==============================================
   9. PLP — BARRA SUPERIOR Y FILTROS ACTIVOS
   ============================================== */

/* --- Contenedor del main del catálogo --- */
.plp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- Barra superior --- */
.plp-topbar {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background: rgba(242, 242, 242, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 0.5px solid rgba(89, 58, 46, 0.07);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Botón abrir/cerrar filtros --- */
.plp-filter-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 0.5px solid rgba(89, 58, 46, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-cafe-medio);
  letter-spacing: 0.3px;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.plp-filter-toggle i {
  font-size: 14px;
  color: var(--color-naranja);
}

.plp-filter-toggle:hover {
  border-color: var(--color-naranja);
  color: var(--color-naranja);
}

/* --- Franja de filtros activos --- */
.plp-active-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
  min-width: 0;
}

/* --- Chip de filtro activo --- */
.plp-chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: default;
}

/* Etiqueta flotante — nombre del filtro */
.plp-chip-label {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 14px;
  font-family: var(--font-titulo);
  font-size: 9px;
  font-weight: 600;
  color: var(--color-naranja);
  letter-spacing: 0.3px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

/* Cuerpo del chip */
.plp-chip-body {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-naranja);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}

/* Círculo con ícono */
.plp-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-radius 0.25s ease;
}

.plp-chip-icon i {
  font-size: 12px;
  color: #ffffff;
}

/* Texto del valor — oculto por defecto */
.plp-chip-value {
  font-size: 11px;
  color: var(--color-cafe-medio);
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  transition: max-width 0.25s ease, padding 0.25s ease;
  font-family: var(--font-cuerpo);
}

/* X debajo del chip — siempre visible */
.plp-chip-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding-left: 2px;
}

.plp-chip-remove button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-cafe-claro);
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-cuerpo);
  padding: 0;
  transition: color 0.15s ease;
}

.plp-chip-remove button i {
  font-size: 10px;
}

.plp-chip-remove button:hover {
  color: var(--color-naranja);
}

/* Estado hover — se extiende la píldora */
.plp-chip:hover .plp-chip-label {
  opacity: 1;
  transform: translateY(0);
}

.plp-chip:hover .plp-chip-icon {
  border-radius: 50% 0 0 50%;
}

.plp-chip:hover .plp-chip-value {
  max-width: 120px;
  padding: 0 10px 0 6px;
}

/* --- Botón limpiar filtros --- */
.plp-clear-btn {
  display: none;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: var(--color-cafe-claro);
  font-family: var(--font-cuerpo);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.plp-clear-btn i {
  font-size: 11px;
}

.plp-clear-btn:hover {
  color: var(--color-naranja);
}

.plp-clear-btn.visible {
  display: flex;
}

/* --- Separador --- */
.plp-topbar-sep {
  width: 0.5px;
  height: 20px;
  background: rgba(89, 58, 46, 0.1);
  flex-shrink: 0;
}

/* --- Vista --- */
.plp-view-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.plp-view-label {
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-cafe-claro);
  letter-spacing: 0.3px;
}

.plp-view-opts {
  display: flex;
  gap: 3px;
}

.plp-view-btn {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  border: 0.5px solid rgba(89, 58, 46, 0.12);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cafe-claro);
  font-size: 14px;
  transition: all 0.15s ease;
  position: relative;
}

.plp-view-btn:hover,
.plp-view-btn.active {
  background: var(--color-naranja);
  border-color: var(--color-naranja);
  color: #ffffff;
}

/* Tooltip de vista */
.plp-view-tip {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-cafe-oscuro);
  color: #ffffff;
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  font-family: var(--font-cuerpo);
}

.plp-view-btn:hover .plp-view-tip {
  opacity: 1;
}

/* --- Ordenar --- */
.plp-sort-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.plp-sort-label {
  font-family: var(--font-titulo);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-cafe-claro);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.plp-sort-select {
  padding: 5px 10px;
  border: 0.5px solid rgba(89, 58, 46, 0.12);
  border-radius: 6px;
  font-size: 11px;
  color: var(--color-cafe-medio);
  font-family: var(--font-cuerpo);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  appearance: none;
  transition: border-color 0.15s ease;
}

.plp-sort-select:focus {
  outline: none;
  border-color: var(--color-naranja);
}

/* --- Responsive topbar --- */
@media (max-width: 1024px) {

  .plp-topbar {
    padding: 8px 16px;
    gap: 8px;
  }

  .plp-sort-label {
    display: none;
  }

  .plp-view-label {
    display: none;
  }

}

/* ==============================================
   10. PLP — CATÁLOGO Y TARJETAS
   ============================================== */

/* --- Contenedor del catálogo --- */
.plp-catalog {
  padding: 20px;
  flex: 1;
}

.plp-catalog-meta {
  font-size: 11px;
  color: var(--color-cafe-claro);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plp-catalog-meta i {
  font-size: 13px;
  color: var(--color-naranja);
  opacity: 0.7;
}

/* ==============================================
   VISTA CUADRÍCULA
   ============================================== */

.plp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* --- Tarjeta --- */
.prop-card {
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid rgba(89, 58, 46, 0.07);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.prop-card:hover {
  box-shadow: 0 8px 28px rgba(89, 58, 46, 0.1);
  transform: translateY(-3px);
}

/* --- Imagen --- */
.prop-card-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, rgba(234,104,51,0.07) 0%, rgba(89,58,46,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-card-img i {
  font-size: 36px;
  color: rgba(89, 58, 46, 0.1);
}

/* Badge arriendo */
.prop-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-naranja);
  color: #ffffff;
  font-family: var(--font-titulo);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Código de la propiedad */
.prop-card-code {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(38, 23, 18, 0.45);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 20px;
  font-family: var(--font-cuerpo);
}

/* --- Cuerpo --- */
.prop-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Precio */
.prop-card-price {
  font-family: var(--font-titulo);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-cafe-oscuro);
  line-height: 1.1;
}

.prop-card-price span {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-cafe-claro);
  margin-left: 2px;
}

/* Specs — hab, baños, parq, área */
.prop-card-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prop-card-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-cafe-claro);
}

.prop-card-spec i {
  font-size: 12px;
  color: var(--color-naranja);
  opacity: 0.75;
}

/* Divisor interno */
.prop-card-divider {
  height: 0.5px;
  background: rgba(89, 58, 46, 0.06);
}

/* Ubicación */
.prop-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--color-cafe-claro);
}

.prop-card-location i {
  font-size: 12px;
  color: var(--color-naranja);
  flex-shrink: 0;
}

/* ==============================================
   VISTA LISTA
   ============================================== */

.plp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prop-list-card {
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid rgba(89, 58, 46, 0.07);
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.prop-list-card:hover {
  box-shadow: 0 8px 28px rgba(89, 58, 46, 0.1);
}

.prop-list-img {
  width: 180px;
  min-width: 180px;
  background: linear-gradient(135deg, rgba(234,104,51,0.07) 0%, rgba(89,58,46,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.prop-list-img i {
  font-size: 32px;
  color: rgba(89, 58, 46, 0.1);
}

.prop-list-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.prop-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prop-list-specs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==============================================
   VISTA MAPA
   ============================================== */

.plp-map {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  height: calc(100vh - var(--header-height) - 60px);
}

.plp-map-canvas {
  background: rgba(234, 104, 51, 0.04);
  border: 0.5px solid rgba(89, 58, 46, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-cafe-claro);
}

.plp-map-canvas i {
  font-size: 44px;
  color: rgba(89, 58, 46, 0.1);
}

.plp-map-canvas p {
  font-size: 13px;
}

.plp-map-canvas small {
  font-size: 11px;
  opacity: 0.5;
}

.plp-map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.plp-map-list::-webkit-scrollbar {
  width: 3px;
}

.plp-map-list::-webkit-scrollbar-thumb {
  background: rgba(89, 58, 46, 0.15);
  border-radius: 2px;
}

.plp-map-card {
  background: #ffffff;
  border: 0.5px solid rgba(89, 58, 46, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.plp-map-card:hover,
.plp-map-card.active {
  border-color: var(--color-naranja);
  box-shadow: 0 2px 12px rgba(234, 104, 51, 0.1);
}

.plp-map-card-price {
  font-family: var(--font-titulo);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-cafe-oscuro);
  margin-bottom: 3px;
}

.plp-map-card-loc {
  font-size: 10px;
  color: var(--color-cafe-claro);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.plp-map-card-loc i {
  font-size: 11px;
  color: var(--color-naranja);
}

.plp-map-card-specs {
  display: flex;
  gap: 10px;
}

/* ==============================================
   ESTADO VACÍO
   ============================================== */

.plp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.plp-empty i {
  font-size: 48px;
  color: rgba(89, 58, 46, 0.1);
}

.plp-empty p {
  font-size: 14px;
  color: var(--color-cafe-claro);
}

.plp-empty small {
  font-size: 12px;
  color: var(--color-cafe-claro);
  opacity: 0.6;
}

/* ==============================================
   RESPONSIVE CATÁLOGO
   ============================================== */

@media (max-width: 1024px) {

  .plp-catalog {
    padding: 16px;
  }

  .plp-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .prop-list-img {
    width: 120px;
    min-width: 120px;
  }

  .plp-map {
    grid-template-columns: 1fr;
    height: auto;
  }

  .plp-map-canvas {
    height: 280px;
  }

  .plp-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

}

/* ==============================================
   10. PLP — CATÁLOGO Y TARJETAS
   ============================================== */

/* --- Contenedor del catálogo --- */
.plp-catalog {
  padding: 20px;
  flex: 1;
}

.plp-catalog-meta {
  font-size: 11px;
  color: var(--color-cafe-claro);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.plp-catalog-meta i {
  font-size: 13px;
  color: var(--color-naranja);
  opacity: 0.7;
}

/* ==============================================
   VISTA CUADRÍCULA
   ============================================== */

/* Grid fijo — 3 columnas escritorio, 2 móvil */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Paginación */
.plp-pagination {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.plp-load-more {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1.5px solid rgba(89, 58, 46, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  font-family: var(--font-titulo);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-cafe-medio);
  transition: all 0.2s ease;
}

.plp-load-more i {
  font-size: 14px;
  color: var(--color-naranja);
}

.plp-load-more:hover {
  border-color: var(--color-naranja);
  color: var(--color-naranja);
}

.plp-no-more {
  font-size: 11px;
  color: var(--color-cafe-claro);
  text-align: center;
  padding: 16px;
  opacity: 0.6;
}

/* --- Tarjeta --- */
.prop-card {
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid rgba(89, 58, 46, 0.07);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.prop-card:hover {
  box-shadow: 0 8px 28px rgba(89, 58, 46, 0.1);
  transform: translateY(-3px);
}

/* --- Imagen --- */
.prop-card-img {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, rgba(234,104,51,0.07) 0%, rgba(89,58,46,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.prop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop-card-img i {
  font-size: 36px;
  color: rgba(89, 58, 46, 0.1);
}

/* Badge arriendo */
.prop-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--color-naranja);
  color: #ffffff;
  font-family: var(--font-titulo);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
}

/* Código de la propiedad */
.prop-card-code {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(38, 23, 18, 0.45);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 9px;
  padding: 3px 7px;
  border-radius: 20px;
  font-family: var(--font-cuerpo);
}

/* --- Cuerpo --- */
.prop-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Precio */
.prop-card-price {
  font-family: var(--font-titulo);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-cafe-oscuro);
  line-height: 1.1;
}

.prop-card-price span {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-cafe-claro);
  margin-left: 2px;
}

/* Specs — hab, baños, parq, área */
.prop-card-specs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.prop-card-spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-cafe-claro);
}

.prop-card-spec i {
  font-size: 12px;
  color: var(--color-naranja);
  opacity: 0.75;
}

/* Divisor interno */
.prop-card-divider {
  height: 0.5px;
  background: rgba(89, 58, 46, 0.06);
}

/* Ubicación */
.prop-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--color-cafe-claro);
}

.prop-card-location i {
  font-size: 12px;
  color: var(--color-naranja);
  flex-shrink: 0;
}

/* ==============================================
   VISTA LISTA
   ============================================== */

.plp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prop-list-card {
  background: #ffffff;
  border-radius: 16px;
  border: 0.5px solid rgba(89, 58, 46, 0.07);
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease;
}

.prop-list-card:hover {
  box-shadow: 0 8px 28px rgba(89, 58, 46, 0.1);
}

.prop-list-img {
  width: 180px;
  min-width: 180px;
  background: linear-gradient(135deg, rgba(234,104,51,0.07) 0%, rgba(89,58,46,0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.prop-list-img i {
  font-size: 32px;
  color: rgba(89, 58, 46, 0.1);
}

.prop-list-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.prop-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prop-list-specs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==============================================
   VISTA MAPA
   ============================================== */

.plp-map {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  height: calc(100vh - var(--header-height) - 60px);
}

.plp-map-canvas {
  background: rgba(234, 104, 51, 0.04);
  border: 0.5px solid rgba(89, 58, 46, 0.08);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-cafe-claro);
}

.plp-map-canvas i {
  font-size: 44px;
  color: rgba(89, 58, 46, 0.1);
}

.plp-map-canvas p {
  font-size: 13px;
}

.plp-map-canvas small {
  font-size: 11px;
  opacity: 0.5;
}

.plp-map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 2px;
}

.plp-map-list::-webkit-scrollbar {
  width: 3px;
}

.plp-map-list::-webkit-scrollbar-thumb {
  background: rgba(89, 58, 46, 0.15);
  border-radius: 2px;
}

.plp-map-card {
  background: #ffffff;
  border: 0.5px solid rgba(89, 58, 46, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}

.plp-map-card:hover,
.plp-map-card.active {
  border-color: var(--color-naranja);
  box-shadow: 0 2px 12px rgba(234, 104, 51, 0.1);
}

.plp-map-card-price {
  font-family: var(--font-titulo);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-cafe-oscuro);
  margin-bottom: 3px;
}

.plp-map-card-loc {
  font-size: 10px;
  color: var(--color-cafe-claro);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.plp-map-card-loc i {
  font-size: 11px;
  color: var(--color-naranja);
}

.plp-map-card-specs {
  display: flex;
  gap: 10px;
}

/* ==============================================
   ESTADO VACÍO
   ============================================== */

.plp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 12px;
}

.plp-empty i {
  font-size: 48px;
  color: rgba(89, 58, 46, 0.1);
}

.plp-empty p {
  font-size: 14px;
  color: var(--color-cafe-claro);
}

.plp-empty small {
  font-size: 12px;
  color: var(--color-cafe-claro);
  opacity: 0.6;
}

/* ==============================================
   RESPONSIVE CATÁLOGO
   ============================================== */

@media (max-width: 1024px) {

  .plp-catalog {
    padding: 16px;
  }

  .plp-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .prop-list-img {
    width: 120px;
    min-width: 120px;
  }

  .plp-map {
    grid-template-columns: 1fr;
    height: auto;
  }

  .plp-map-canvas {
    height: 280px;
  }

  .plp-map-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

}