/* Estilos para páginas de taxonomía de propiedades */
:root {
    --propiedades360-primary: var(--wp--preset--color--primary, #2271b1);
    --propiedades360-secondary: var(--wp--preset--color--secondary, #135e96);
    --propiedades360-background: var(--wp--preset--color--background, white);
    --propiedades360-text: var(--wp--preset--color--text, #2c3338);
    --propiedades360-border: var(--wp--preset--color--border, #dcdcde);
    --propiedades360-radius: var(--wp--custom--border-radius, 4px);
    --propiedades360-spacing: var(--wp--custom--spacing, 1rem);
}

.property-taxonomy-wrapper {
    padding: 40px 0;
    background: var(--propiedades360-background, #fff);
}

.property-taxonomy-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Estilos para el encabezado de la taxonomía */
.taxonomy-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.taxonomy-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 15px;
    color: var(--propiedades360-text, #333);
}

.taxonomy-description {
    color: #666;
    line-height: 1.6;
}

.property-count {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
}

/* Filtros */
.taxonomy-filter {
    background: #f7f7f7;
    padding: 20px;
    border-radius: var(--propiedades360-radius, 4px);
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-form label {
    font-weight: 500;
    margin-right: 10px;
}

.filter-form select {
    padding: 8px 12px;
    border-radius: var(--propiedades360-radius, 4px);
    border: 1px solid #ddd;
    min-width: 200px;
    background-color: white;
}

/* ESTILOS MEJORADOS PARA CUADRÍCULA DE PROPIEDADES */
.properties-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* Margen negativo para compensar el padding de las tarjetas */
}

/* Tarjeta de propiedad */
.property-card {
    flex: 0 0 calc(33.333% - 30px);
    margin: 0 15px 30px;
/*     max-width: calc(33.333% - 30px); */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Imagen de la propiedad */
.property-image-wrapper {
    position: relative;
    width: 100%;
}

.property-image {
    position: relative;
    padding-top: 65%; /* Proporción 16:10 */
    overflow: hidden;
}

.property-image img.property-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Badges */
.property-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.property-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
}

.property-badge-modalidad {
    background: #4dabf7;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.property-badge-featured {
    background: #ffd43b;
    color: #212529;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Contenido de la tarjeta */
.property-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-header {
    margin-bottom: 10px;
}

.property-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.3;
}

.property-title a {
    color: #212529;
    text-decoration: none;
}

.property-title a:hover {
    color: #3498db;
}

/* Precio */
.property-price {
    font-size: 20px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

/* Metadatos de la propiedad */
.property-meta {
    margin-bottom: 15px;
}

.property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.property-detail {
    display: flex;
    align-items: center;
}

.property-icon {
    margin-right: 5px;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

.area-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M14,6l-4.22,5.63,1.25,1.67L14,9.33,19,16h-8.46l-4.01-5.37L1,18h22L14,6zM5,16l1.52-2.03L8.04,16H5z'/%3E%3C/svg%3E");
}

.type-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M17,10.43V2H7v8.43c0,0.35,0.18,0.68,0.49,0.86l4.18,2.51l-0.99,2.34l-3.41,0.29l2.59,2.24L9.07,22L12,20.23L14.93,22l-0.78-3.33l2.59-2.24l-3.41-0.29l-0.99-2.34l4.18-2.51C16.82,11.11,17,10.79,17,10.43z M13,12.23l-1,0.6l-1-0.6V3h2V12.23z'/%3E%3C/svg%3E");
}

.location-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12,2C8.13,2,5,5.13,5,9c0,5.25,7,13,7,13s7-7.75,7-13C19,5.13,15.87,2,12,2z M12,11.5c-1.38,0-2.5-1.12-2.5-2.5s1.12-2.5,2.5-2.5s2.5,1.12,2.5,2.5S13.38,11.5,12,11.5z'/%3E%3C/svg%3E");
}

/* Footer de la tarjeta */
.property-footer {
    margin-top: auto;
    text-align: center;
}

.property-more-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #3498db;
    color: white !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.property-more-link:hover {
    background-color: #2980b9;
    color: white !important;
    text-decoration: none;
}

/* Botón para quitar filtros */
.no-results .button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--propiedades360-primary, #2271b1);
    color: white;
    text-decoration: none;
    border-radius: var(--propiedades360-radius, 4px);
    margin-top: 10px;
    transition: background 0.3s;
}

.no-results .button:hover {
    background: var(--propiedades360-secondary, #135e96);
}

/* Paginación */
.properties-pagination {
    margin: 40px 0;
    text-align: center;
}

.properties-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 3px;
}

.properties-pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.properties-pagination a:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 992px) {
    .properties-grid .property-card {
        flex: 0 0 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 576px) {
    .properties-grid .property-card {
        flex: 0 0 calc(100% - 30px);
        max-width: calc(100% - 30px);
    }
    
    .filter-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-form select {
        width: 100%;
    }
    
    .property-details {
        flex-direction: column;
        gap: 8px;
    }
}
