/* ==========================================
   DYA PROPIEDADES - ESTILOS PROFESIONALES
   ========================================== */

.dya-propiedades-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================
   SECCIÓN DE FILTROS
   ========================================== */

.dya-filters-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    overflow: hidden;
}

.dya-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    color: white;
}

.dya-filters-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dya-filters-header .dashicons {
    font-size: 24px;
}

.dya-toggle-filters {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dya-toggle-filters:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.dya-toggle-filters.active .show-text {
    display: none;
}

.dya-toggle-filters:not(.active) .hide-text {
    display: none;
}

.dya-filters-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    display: none;
    backdrop-filter: blur(10px);
}

.dya-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.dya-filter-group {
    display: flex;
    flex-direction: column;
}

.dya-filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.dya-filter-group input,
.dya-filter-group select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.dya-filter-group input:focus,
.dya-filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.dya-price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dya-price-inputs input {
    flex: 1;
}

.price-separator {
    font-weight: bold;
    color: #666;
}

/* Checkboxes personalizados */
.dya-checkboxes-group {
    grid-column: span 2;
}

.dya-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.dya-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.dya-checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.dya-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

/* Botones de acción */
.dya-filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.dya-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.dya-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.dya-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.dya-btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #e1e5e9;
}

.dya-btn-secondary:hover {
    background: #f8f9fa;
    border-color: #d1d5db;
    color: #666;
}

.dya-btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

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

.dya-active-filters {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.dya-active-filters-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dya-active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dya-active-filter {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    color: #495057;
}

/* ==========================================
   SECCIÓN DE RESULTADOS
   ========================================== */

.dya-results-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.dya-results-header {
    background: #f8f9fa;
    padding: 20px 25px;
    border-bottom: 1px solid #e9ecef;
}

.dya-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dya-results-count {
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================
   GRID DE PROPIEDADES
   ========================================== */

.dya-properties-grid {
    display: grid;
    gap: 25px;
    padding: 25px;
}

.dya-properties-grid[data-columns="2"] {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.dya-properties-grid[data-columns="3"] {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.dya-properties-grid[data-columns="4"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==========================================
   TARJETA DE PROPIEDAD
   ========================================== */

.dya-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.dya-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.dya-property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.dya-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dya-property-card:hover .dya-property-image img {
    transform: scale(1.05);
}

.dya-no-image {
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.dya-no-image .dashicons {
    font-size: 48px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* Badge de precio */
.dya-price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

/* Badges de características */
.dya-property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dya-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Contenido de la tarjeta */
.dya-property-content {
    padding: 20px;
}

.dya-property-title {
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.dya-property-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.dya-property-title a:hover {
    color: #667eea;
}

.dya-property-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.dya-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
}

.dya-detail .dashicons {
    font-size: 16px;
    color: #667eea;
}

.dya-property-actions {
    display: flex;
    justify-content: center;
}

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

.dya-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.dya-no-results-icon .dashicons {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.dya-no-results h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #495057;
}

.dya-no-results p {
    margin: 0;
    font-size: 1.1em;
    line-height: 1.6;
}

.dya-no-results a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.dya-no-results a:hover {
    text-decoration: underline;
}

/* ==========================================
   PAGINACIÓN
   ========================================== */

.dya-pagination {
    padding: 30px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.dya-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dya-pagination .page-numbers:hover,
.dya-pagination .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.dya-pagination .page-numbers.dots {
    border: none;
    background: none;
}

.dya-pagination .dashicons {
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .dya-filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dya-checkboxes-group {
        grid-column: span 1;
    }
    
    .dya-checkboxes {
        grid-template-columns: 1fr;
    }
    
    .dya-properties-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 20px;
    }
    
    .dya-filter-actions {
        flex-direction: column;
    }
    
    .dya-filters-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .dya-active-filters-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dya-results-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dya-propiedades-container {
        margin: 0 10px;
    }
    
    .dya-filters-section,
    .dya-results-section {
        border-radius: 8px;
    }
    
    .dya-properties-grid {
        padding: 15px;
    }
    
    .dya-property-content {
        padding: 15px;
    }
    
    .dya-property-details {
        flex-direction: column;
        gap: 10px;
    }
}

/* ==========================================
   ANIMACIONES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dya-property-card {
    animation: fadeInUp 0.5s ease forwards;
}

.dya-property-card:nth-child(1) { animation-delay: 0.1s; }
.dya-property-card:nth-child(2) { animation-delay: 0.2s; }
.dya-property-card:nth-child(3) { animation-delay: 0.3s; }
.dya-property-card:nth-child(4) { animation-delay: 0.4s; }
.dya-property-card:nth-child(5) { animation-delay: 0.5s; }
.dya-property-card:nth-child(6) { animation-delay: 0.6s; }

/* ==========================================
   UTILIDADES
   ========================================== */

.dya-text-center { text-align: center; }
.dya-mb-0 { margin-bottom: 0; }
.dya-mb-1 { margin-bottom: 10px; }
.dya-mb-2 { margin-bottom: 20px; }
.dya-mt-1 { margin-top: 10px; }
.dya-mt-2 { margin-top: 20px; }