/*
    Theme Name:     TierrasDelSur
    Description:    TierrasDelSur - Divi Child Theme
    Author:         Walter Caballero
    Template:       Divi
    Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */


/*

form#search_home_form select,
form#search_home_form button {
    padding: 8px;
    margin: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
form#search_home_form button {
    background-color: #3e5041;
    color: white;
    border: none;
}
*/

#home-search-container {
	display: flex;
	gap: 20px;
	border: 1px solid #ddd;
	border-radius: 10px;
	overflow: hidden;
	background: #f9f9f9;
	padding: 20px;
	flex-direction: row;
	align-items: center;
}

#cat-selector {
	flex: 0 0 180px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
}

#cat-selector div {
	text-align: center;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.3s ease;
	padding: 10px; 
	background: #eee; 
	margin-right: 5px;
}

#cat-selector div.selected {
	background: #112412;
	color: #fff;
	font-weight: bold;
}

#cat-selector div a {
	color: inherit;
	text-decoration: none;
	display: block;
	line-height: 40px;
	padding: 0 10px;
	font-size: 20px;
}

#fields-container {
    display: flex;
    align-items: center;
}

#search_home_form {
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: center;
}

#field-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#field-search {
  flex: 1;
  min-width: 220px;
}

#field-search .input-box {
	display: flex;
	gap: 10px;
}

#search_home_form .input-text,
#search_home_form  select {
  padding: 10px;
  width: 100%;
  /*max-width: 240px;*/
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  height: 50px;
}

/* Botón buscar */
#search_home_form .button {
  padding: 10px 20px;
  background: #112412;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#search_home_form .button:hover {
  background: #2b402b;
}

/* Filtros */
#fields-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#search_home_form .input-box {
  flex: 1;
  min-width: 140px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  #home-search-container {
    flex-direction: column;
  }

  #cat-selector {
    flex-direction: row;
    justify-content: space-around;
  }

  #fields-filters {
    flex-direction: column;
  }

  #search_home_form .input-text,
  #search_home_form select {
    max-width: 100%;
  }
}








.filtros-taxonomias {
    font-family: Arial, sans-serif;
}
.filtro-bloque {
    margin-bottom: 20px;
    padding: 10px;
    box-shadow: 0 0 5px #ccc;
    background-color: #fff;
}
.filtro-bloque strong {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}
.filtro-bloque ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.filtro-bloque li {
    margin-bottom: 4px;
    font-size: 14px;
}
.filtro-bloque li a {
    text-decoration: none;
    color: #000;
}
.filtro-bloque li a:hover {
    text-decoration: underline;
}


.filtro-busqueda { margin-bottom: 2em; }
.filtro-tax { margin-bottom: 1em; }
.filtro-tax ul, .filtros-activos ul { list-style: none; padding-left: 0; }
.filtro-tax li, .filtros-activos li { margin-bottom: 5px; }
.filtros-activos { background: #f5f5f5; padding: 10px; margin-bottom: 15px; border-left: 4px solid #999; }
.filtros-activos a { margin-left: 5px; color: red; }




/* === Estilo general === */
.barra-resultados {
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
    padding-bottom: 10px;
    font-size: 14px;
}
.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.barra-superior label {
    margin-right: 5px;
    display: inline-block;
    font-weight: 500;
}
.form-controles select {
    margin: 0 5px;
    padding: 4px 6px;
    font-size: 14px;
}
.ver-como a {
    margin-left: 8px;
    text-decoration: none;
    font-size: 14px;
}
.ver-como a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* === Grilla === */
.grid-propiedades.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.grid-propiedades.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.item-propiedad {
    border: 1px solid #ddd;
    padding: 10px;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.grid-propiedades.list .item-propiedad {
    flex-direction: row;
    align-items: flex-start;
}
.grid-propiedades.list img {
    max-width: 200px;
    margin-right: 15px;
}
.item-propiedad img {
    width: 100%;
    height: auto;
    display: block;
}
.item-propiedad h3 {
    margin: 10px 0 5px;
    font-size: 16px;
}
.item-propiedad .detalles {
    font-size: 14px;
}
.item-propiedad .detalles p {
    margin: 4px 0;
}

/* === Paginación === */
.paginacion {
    margin-top: 20px;
    text-align: center;
}
.paginacion a,
.paginacion span {
    margin: 0 4px;
    padding: 5px 10px;
    background: #f2f2f2;
    text-decoration: none;
    display: inline-block;
    border-radius: 3px;
}
.paginacion .current {
    background: #333;
    color: #fff;
}

/* === Responsive === */
@media (max-width: 768px) {
    .barra-superior {
        flex-direction: column;
        align-items: flex-start;
