/* ESTILOS PARA RESULTADOS DE BÚSQUEDA CON BOTÓN CONTACTAR */

/* Área de resultados de búsqueda */
.search-results-area {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.results-header {
    margin-bottom: 25px;
    text-align: center;
}

.results-header h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-header p {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

/* Grid de resultados */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); /* Aumentado de 450px a 520px */
    gap: 25px;
    margin-top: 20px;
}

/* Tarjetas de propiedades en resultados */
.property-result-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 580px; /* Aumentado para acomodar 3 botones */
}

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

.property-result-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.property-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-info h4 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.property-location {
    color: #6c757d;
    font-size: 14px;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-description {
    color: #495057;
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.property-price {
    color: #28a745;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
}

/* Acciones de la propiedad - AJUSTADO PARA 3 BOTONES */
.property-result-card .property-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.property-result-card .property-actions a,
.property-result-card .property-actions button {
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Botón Ver Detalles */
.property-result-card .btn-primary {
    background: #007bff;
    color: white;
}

.property-result-card .btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Botón WhatsApp */
.property-result-card .btn-whatsapp {
    background: #25d366;
    color: white;
}

.property-result-card .btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* Botón Contactar - NUEVO */
.property-result-card .btn-contact {
    background: #FF6B35;
    color: white;
}

.property-result-card .btn-contact:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

/* Mensaje sin resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h4 {
    color: #495057;
    font-size: 20px;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 16px;
    margin: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .results-grid {
        grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    }
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-result-card {
        min-height: auto;
    }
    
    .property-result-card .property-actions {
        gap: 8px;
    }
    
    .property-result-card .property-actions a,
    .property-result-card .property-actions button {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-results-area {
        margin: 20px 0;
        padding: 15px;
    }
    
    .results-header h3 {
        font-size: 20px;
    }
    
    .results-header p {
        font-size: 14px;
    }
    
    .property-result-card .property-actions a,
    .property-result-card .property-actions button {
        padding: 12px;
        font-size: 12px;
    }
}

