/* =========================================================
   LISTADO DE INMUEBLES
========================================================= */

.property-listing-section {
  background: #f8fafb;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.property-listing-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 45px;
}

.property-listing-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.property-listing-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   LAYOUT
========================================================= */

.property-listing-layout {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);
  align-items: start;
  gap: 45px;
}


/* =========================================================
   FILTROS
========================================================= */

.properties-filter {
  position: sticky;
  top: 110px;

  overflow: hidden;

  background: var(--white);
  border: 1px solid var(--line);

  box-shadow: var(--shadow-card);
}

.properties-filter__header {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 20px 20px;

  color: var(--white);
  background: var(--blue-deep);
}

.properties-filter__header > .material-symbols-outlined {
  color: var(--gold);
  font-size: 27px;
}

.properties-filter__header strong,
.properties-filter__header small {
  display: block;
}

.properties-filter__header strong {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.properties-filter__header small {
  margin-top: 2px;
  color: rgba(255,255,255,.65);
  font-size: 11px;
}


/* campos */

.properties-filter__fields {
  display: grid;
  gap: 17px;
  padding: 22px;
}

.properties-filter__fields label {
  display: grid;
  gap: 6px;
}

.properties-filter__fields label > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.properties-filter__fields select {
  width: 100%;
  min-height: 46px;

  padding: 0 12px;

  color: var(--ink);
  background: #f8fafb;

  border: 1px solid var(--line);
  border-radius: 3px;

  outline: none;
}

.properties-filter__fields select:focus {
  border-color: var(--blue);
}

.properties-filter__clear {
  padding: 4px;

  color: var(--muted);
  background: transparent;

  border: 0;

  font-size: 12px;
  font-weight: 600;
}

.properties-filter__clear:hover {
  color: var(--blue);
}


/* =========================================================
   RESULTADOS
========================================================= */

.properties-results {
  min-width: 0;
}

.properties-results__top {
  display: flex;
  min-height: 66px;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  margin-bottom: 20px;
  padding-bottom: 16px;

  border-bottom: 1px solid var(--line);
}

.properties-results__top h3 {
  margin: 3px 0 0;

  color: var(--ink);

  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.properties-results__count {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .08em;
}


/* ordenar */

.properties-order {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--muted);
  font-size: 12px;
}

.properties-order select {
  min-height: 40px;
  padding: 0 34px 0 12px;

  color: var(--ink);
  background: var(--white);

  border: 1px solid var(--line);
}


/* =========================================================
   ITEM
========================================================= */

.property-list-item {
  display: grid;
  grid-template-columns: 285px minmax(0, 1fr);

  min-height: 235px;

  margin-bottom: 25px;

  overflow: hidden;

  background: var(--white);

  border: 1px solid rgba(36,74,96,.09);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.property-list-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}


/* =========================================================
   IMAGEN
========================================================= */

.property-list-item__image {
  position: relative;

  display: block;

  min-height: 235px;

  overflow: hidden;

  background: var(--sand);
}

.property-list-item__image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform .5s ease;
}

.property-list-item:hover .property-list-item__image img {
  transform: scale(1.035);
}


/* operación */

.property-list-item__operation {
  position: absolute;

  top: 16px;
  left: 16px;

  padding: 7px 11px;

  color: var(--white);
  background: var(--blue-deep);

  font-size: 11px;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: .05em;
}


/* tipo */

.property-list-item__type {
  position: absolute;

  left: 16px;
  bottom: 16px;

  padding: 6px 10px;

  color: #fff;
  background: var(--gold);

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   CONTENIDO
========================================================= */

.property-list-item__content {
  display: flex;
  flex-direction: column;

  min-width: 0;

  padding: 24px 27px;
}

.property-list-item__location {
  display: flex;
  align-items: center;
  gap: 4px;

  color: var(--muted);

  font-size: 12px;
  font-weight: 600;
}

.property-list-item__location .material-symbols-outlined {
  color: var(--gold-dark);
  font-size: 17px;
}

.property-list-item__content > h3 {
  max-width: 680px;

  margin: 7px 0 8px;

  color: var(--ink);

  font-family: "Manrope", sans-serif;

  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;

  line-height: 1.2;

  letter-spacing: -0.025em;
}

.property-list-item__description {
  max-width: 720px;

  margin: 0 0 16px;

  color: var(--muted);

  font-size: 13px;
  line-height: 1.55;
}


/* =========================================================
   CARACTERÍSTICAS
========================================================= */

.property-list-item__features {
  display: flex;
  flex-wrap: wrap;

  gap: 8px 18px;

  margin-top: auto;
  padding-top: 14px;

  border-top: 1px solid var(--line);

  color: #526773;

  font-size: 12px;
}

.property-list-item__features > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.property-list-item__features .material-symbols-outlined {
  color: var(--blue);
  font-size: 18px;
}


/* =========================================================
   FOOTER ITEM
========================================================= */

.property-list-item__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-top: 16px;
}

.property-list-item__price {
  margin: 0;

  color: var(--blue);

  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.property-list-item__price small {
  color: var(--muted);

  font-family: "DM Sans", sans-serif;

  font-size: 11px;
  font-weight: 500;
}

.property-list-item__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  color: var(--ink);

  font-size: 13px;
  font-weight: 700;
}

.property-list-item__link .material-symbols-outlined {
  font-size: 17px;

  transition: transform .2s ease;
}

.property-list-item__link:hover {
  color: var(--blue);
}

.property-list-item__link:hover .material-symbols-outlined {
  transform: translateX(4px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

  .property-listing-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 25px;
  }

  .property-list-item {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .property-list-item__content {
    padding: 20px;
  }

  .property-list-item__features {
    gap: 8px 12px;
  }

}


/* =========================================================
   MOBILE / TABLET CHICA
========================================================= */

@media (max-width: 820px) {

  .property-listing-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .property-listing-layout {
    grid-template-columns: 1fr;
  }

  .properties-filter {
    position: static;
  }

  .properties-filter__fields {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-filter__fields .button,
  .properties-filter__clear {
    grid-column: 1 / -1;
  }

  .property-list-item {
    grid-template-columns: 260px minmax(0, 1fr);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 580px) {

  .property-listing-heading {
    margin-bottom: 30px;
  }

  .property-listing-heading h2 {
    font-size: 2.25rem;
  }


  /* filtros */

  .properties-filter__fields {
    grid-template-columns: 1fr;
  }

  .properties-filter__fields .button,
  .properties-filter__clear {
    grid-column: auto;
  }


  /* cabecera resultados */

  .properties-results__top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .properties-order {
    width: 100%;
  }

  .properties-order select {
    flex: 1;
  }


  /* propiedad */

  .property-list-item {
    grid-template-columns: 1fr;
  }

  .property-list-item__image {
    min-height: 230px;
    aspect-ratio: 1.45;
  }

  .property-list-item__content {
    padding: 20px 18px 22px;
  }

  .property-list-item__content > h3 {
    font-size: 20px;
  }

  .property-list-item__description {
    font-size: 13px;
  }

  .property-list-item__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

}