/* ========================================
   ESTILOS PARA LISTADO DE INMUEBLES
   ======================================== */

/* Estilos para los botones de operación y filtros */
#resultsyorden1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.operation-filters-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.operation-buttons {
  display: flex;
  gap: 10px;
}

.btn-operation {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #f16901;
  background: white;
  color: #f16901;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-operation:hover {
  background: #f16901;
  color: white !important;
}

.btn-operation.active {
  background: #f16901;
  color: white;
}

.resulcount {
  margin: 0 !important;
}

#ordenacion {
  min-width: 280px;
  display: block;
  height: auto;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  vertical-align: middle;
  background-color: #f16901;
  background-image: none;
  border: 2px solid #f16901;
  border-radius: 0px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: border-color ease-in-out 0.15s,
    box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  margin-bottom: 0;
  text-align: center;
}

/* ========================================
   ESTILOS MÓVILES
   ======================================== */

@media (max-width: 767px) {
  #resultsyorden {
    padding: 15px 10px;
    margin-bottom: 15px;
  }

  #resultsyorden h1 {
    font-size: 24px !important;
    margin-bottom: 15px;
    text-align: center;
  }

  #resultsyorden1 {
    flex-direction: column;
    align-items: stretch !important;
    padding: 0 10px;
    gap: 15px !important;
  }

  .resulcount {
    font-size: 18px !important;
    text-align: center;
    margin-bottom: 15px !important;
    order: 1;
  }

  .operation-filters-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 15px !important;
    order: 2;
  }

  .operation-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: stretch;
  }

  .btn-operation {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
    padding: 14px 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #f16901 !important;
    background: white !important;
    color: #f16901 !important;
    border-radius: 0px !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .operation-buttons:has(.btn-operation:nth-child(3)) .btn-operation {
    flex: 1 1 100%;
    min-width: 100%;
    margin-bottom: 5px;
  }

  .btn-operation.active {
    background: #f16901 !important;
    color: white !important;
    font-weight: 700 !important;
  }

  .btn-operation:active {
    transform: scale(0.98);
  }

  #ordenacion {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
  }

  #listados {
    padding: 10px 5px;
  }

  .contenedor-interno {
    display: flex;
    gap: 20px;
  }

  .card_inmueble {
    width: 100% !important;
    padding: 0 5px !important;
    margin-bottom: 20px;
  }

  .card_inmueble .wpb_column {
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
  }

  .card_inmueble .bg-image {
    height: 250px !important;
    min-height: 250px;
  }

  .card_inmueble .light {
    font-size: 16px !important;
    line-height: 20px !important;
    padding: 8px !important;
    margin-top: 0 !important;
  }

  .card_inmueble .light span[style*="float: left"] {
    font-size: 14px !important;
    margin-left: 5px !important;
  }

  .card_inmueble .fas {
    font-size: 14px !important;
    margin-right: 3px;
  }

  .card_inmueble p span[style*="float: right"] {
    float: none !important;
    display: block;
    text-align: center;
    font-size: 18px !important;
    margin: 10px 0 !important;
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  #resultsyorden h1 {
    font-size: 20px !important;
  }

  .resulcount {
    font-size: 16px !important;
  }

  .operation-buttons {
    flex-direction: column;
  }

  .btn-operation {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
    padding: 16px 20px !important;
    font-size: 16px !important;
  }

  #ordenacion {
    font-size: 14px !important;
    height: 50px !important;
  }

  .card_inmueble .bg-image {
    height: 220px !important;
    min-height: 220px;
  }
}
/* ========================================
   ESTILOS PARA LISTADO DE INMUEBLES
   ======================================== */

/* Estilos para los botones de operación y filtros */
#resultsyorden1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.operation-filters-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.operation-buttons {
  display: flex;
  gap: 10px;
}

.btn-operation {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #f16901;
  background: white;
  color: #f16901;
  border-radius: 0px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-operation:hover {
  background: #f16901;
  color: white !important;
}

.btn-operation.active {
  background: #f16901;
  color: white;
}

.resulcount {
  margin: 0 !important;
}

#ordenacion {
  min-width: 280px;
  display: block;
  height: auto;
  color: #fff;
  font-weight: 500;
  text-transform: uppercase;
  vertical-align: middle;
  background-color: #f16901;
  background-image: none;
  border: 2px solid #f16901;
  border-radius: 0px;
  -webkit-box-shadow: none;
  box-shadow: none;
  -webkit-transition: border-color ease-in-out 0.15s,
    box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  margin-bottom: 0;
  text-align: center;
}

/* ========================================
   ESTILOS MÓVILES
   ======================================== */

@media (max-width: 767px) {
  #resultsyorden {
    padding: 15px 10px;
    margin-bottom: 15px;
  }

  #resultsyorden h1 {
    font-size: 24px !important;
    margin-bottom: 15px;
    text-align: center;
  }

  #resultsyorden1 {
    flex-direction: column;
    align-items: stretch !important;
    padding: 0 10px;
    gap: 15px !important;
  }

  .resulcount {
    font-size: 18px !important;
    text-align: center;
    margin-bottom: 15px !important;
    order: 1;
  }

  .operation-filters-wrapper {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 15px !important;
    order: 2;
  }

  .operation-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: stretch;
  }

  .btn-operation {
    flex: 1 1 calc(50% - 5px);
    min-width: calc(50% - 5px);
    padding: 14px 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center;
    white-space: nowrap;
    border: 2px solid #f16901 !important;
    background: white !important;
    color: #f16901 !important;
    border-radius: 0px !important;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .operation-buttons:has(.btn-operation:nth-child(3)) .btn-operation {
    flex: 1 1 100%;
    min-width: 100%;
    margin-bottom: 5px;
  }

  .btn-operation.active {
    background: #f16901 !important;
    color: white !important;
    font-weight: 700 !important;
  }

  .btn-operation:active {
    transform: scale(0.98);
  }

  #ordenacion {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 15px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
  }

  #listados {
    padding: 10px 5px;
  }

  .contenedor-interno {
    display: flex;
    gap: 20px;
  }

  .card_inmueble {
    width: 100% !important;
    padding: 0 5px !important;
    margin-bottom: 20px;
  }

  .card_inmueble .wpb_column {
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
  }

  .card_inmueble .bg-image {
    height: 250px !important;
    min-height: 250px;
  }

  .card_inmueble .light {
    font-size: 16px !important;
    line-height: 20px !important;
    padding: 8px !important;
    margin-top: 0 !important;
  }

  .card_inmueble .light span[style*="float: left"] {
    font-size: 14px !important;
    margin-left: 5px !important;
  }

  .card_inmueble .fas {
    font-size: 14px !important;
    margin-right: 3px;
  }

  .card_inmueble p span[style*="float: right"] {
    float: none !important;
    display: block;
    text-align: center;
    font-size: 18px !important;
    margin: 10px 0 !important;
    padding: 8px !important;
  }
}

@media (max-width: 480px) {
  #resultsyorden h1 {
    font-size: 20px !important;
  }

  .resulcount {
    font-size: 16px !important;
  }

  .operation-buttons {
    flex-direction: column;
  }

  .btn-operation {
    flex: 1 1 100%;
    min-width: 100%;
    width: 100%;
    padding: 16px 20px !important;
    font-size: 16px !important;
  }

  #ordenacion {
    font-size: 14px !important;
    height: 50px !important;
  }

  .card_inmueble .bg-image {
    height: 220px !important;
    min-height: 220px;
  }
}
/* ========================================
   TARJETAS LIMPIAS - NUEVO DISEÑO
   ======================================== */

.tarjeta-inmueble-limpia {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  background: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-inmueble-limpia:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.tarjeta-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.tarjeta-imagen {
  position: relative;
  width: 100%;
  height: 450px;
  background-size: cover;
  background-position: center;
}

.tarjeta-contenido {
  padding: 30px;
  padding-bottom:70px;
}

/* Características */
.tarjeta-caracteristicas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 6px;
  justify-content: center;
  width: 100%;
}

.caracteristica-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  color: #000;
  font-weight: 500;
}

.caracteristica-item .fas {
  color: #f16901;
  font-size: 14px;
  display: inline-block;
  width: auto;
  height: auto;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.caracteristica-valor {
  color: #000;
}

/* Título */
.tarjeta-titulo {
  font-family: "Cormorant Infant", serif;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  color: #222;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Precio */
.tarjeta-precio {
  font-size: 20px;
  font-weight: bold;
  margin-top: 10px;
}

.precio-normal {
  color: #000;
}

.precio-reservado {
  color: red;
}

.precio-consultar {
  color: #000;
}

/* Sin resultados */
.sin-resultados {
  text-align: center;
  padding: 40px 20px;
  font-size: 20px;
  color: #666;
}

/* Responsive Desktop: Grid de 2 columnas */
@media (min-width: 768px) {
  .contenedor-interno {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 100%;
    margin: 0 auto;
  }

  .tarjeta-inmueble-limpia {
    max-width: 100%;
    margin: 0;
  }

  .tarjeta-precio {
    font-size: 38px;
    font-weight: 500;
    color: #333 !important;
  }
}

/* Responsive Móvil */
@media (max-width: 767px) {
  .tarjeta-inmueble-limpia {
    margin: 0 20px 0px !important;
  }

  .tarjeta-imagen {
    height: 250px;
  }

  .tarjeta-contenido {
    padding: 15px;
  }

  .tarjeta-titulo {
    font-size: 18px;
  }

  .tarjeta-precio {
    font-size: 28px;
    font-weight: 500;
    padding-bottom:10px;
  }

  #listados #A1022 {
    width: 108% !important;
  }

  .tarjeta-imagen {
    width: 100%;
    height: 200px;
    border-radius: 0px !important;
  }
}

.tarjeta-titulo,
.tarjeta-precio {
  text-align: center;
}

.entry-content h3 {
  margin: 5px 0 25px;
}

