/* =========================================================
   FILTROS AVANZADOS – LAYOUT GENERAL
========================================================= */

.inmo-portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}

/* =========================================================
   ASIDE FILTROS
========================================================= */

.inmo-filters {
  position: sticky;
  top: 96px;
  align-self: start;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  padding: 16px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

/* header */
.inmo-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inmo-filters__head strong {
  font-size: 16px;
  font-weight: 600;
}

.inmo-filters__close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
}

/* body */
.inmo-filters__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================
   BLOQUES DE FILTRO
========================================================= */

.inmo-filterblock {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 16px;
}

.inmo-filterblock:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.inmo-filterblock__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--inmo-text);
}

/* =========================================================
   FILAS / CAMPOS
========================================================= */

.inmo-filterrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inmo-filterfield {
  display: flex;
  flex-direction: column;
  font-size: 13px;
}

.inmo-filterfield span {
  margin-bottom: 4px;
  color: #6b7280;
}

.inmo-filterfield select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 10px;
  font-size: 14px;
  background: #fff;
}

/* =========================================================
   CHECKBOXES
========================================================= */

.inmo-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.inmo-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--inmo-primary);
  cursor: pointer;
}

/* =========================================================
   SUBSECCIONES DE FEATURES
========================================================= */

.inmo-filtersub {
  margin-bottom: 14px;
}

.inmo-filtersub__title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.inmo-filtersub__items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

/* =========================================================
   BOTÓN MÓVIL (ENCIMA DE RESULTADOS)
========================================================= */

.inmo-mobile-filtersbar {
  display: none;
  margin-bottom: 16px;
}

/* =========================================================
   OVERLAY MÓVIL
========================================================= */

.inmo-filters__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 998;
}

.inmo-filters__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   MODO MÓVIL / TABLET
========================================================= */

@media (max-width: 1024px) {

  .inmo-portal-layout {
    grid-template-columns: 1fr;
  }

  .inmo-mobile-filtersbar {
    display: block;
  }

  .inmo-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 340px;
    border-radius: 0 18px 18px 0;
    transform: translateX(-100%);
    transition: transform .3s ease;
    z-index: 999;
    max-height: none;
  }

  .inmo-filters.is-open {
    transform: translateX(0);
  }

  .inmo-filters__close {
    display: block;
  }
}

/* =========================================================
   SCROLLBAR SUAVE (OPCIONAL)
========================================================= */

.inmo-filters::-webkit-scrollbar {
  width: 6px;
}

.inmo-filters::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 6px;
}

/* =========================================================
   BADGES FILTROS ACTIVOS
========================================================= */

.inmo-active-filters {
  display: none;
  margin-bottom: 14px;
}

.inmo-badgesbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inmo-filterbadge {
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.inmo-filterbadge:hover {
  border-color: #d1d5db;
}

.inmo-filterbadge.is-clear {
  background: var(--inmo-primary);
  color: #fff;
  border-color: var(--inmo-primary);
}

.inmo-filterbadge span {
  font-size: 16px;
  line-height: 1;
}

/* botón ghost */
.inmo-btn.inmo-btn--ghost {
  background: #f3f4f6;
  color: #111827;
}
.inmo-btn.inmo-btn--ghost:hover {
  background: #e5e7eb;
}

