/* =================== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE RESULTADOS =================== */

/* ------------------- Elementos de Estructura ------------------- */
body {
  background-color: #f8f9fa;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #212529;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card-title {
  font-size: 1.1rem;
  color: #0d6efd;
  font-weight: 600;
}

.card-footer .btn {
  border-radius: 8px;
  font-weight: 500;
}

h2 {
  text-transform: capitalize;
  color: #212529;
}


/* ============================================
   ESTILOS PARA PÁGINA DE RESULTADOS
   Mobile First - Responsive Design
============================================ */

/* Variables de colores - ACTUALIZADAS para coincidir con tu estándar */
:root {
    --primary-color: #0d6efd; /* Azul Bootstrap */
    --success-color: #198754; /* Verde Bootstrap */
    --warning-color: #ffc107; /* Amarillo Bootstrap */
    --danger-color: #dc3545; /* Rojo Bootstrap */
    --gradient-primary: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%); /* Gradiente azul */
}

/* Mobile First Styles */
.availability-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    background: #0d6efd;
    color: white;
    font-weight: 500;
}

.apartment-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1rem;
    cursor: pointer;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.apartment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
}

.search-summary {
    background: var(--gradient-primary); /* Ahora usa gradiente azul */
    color: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
}

.search-summary-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.search-badges .badge {
    border: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    color: white;
}

.no-results-icon {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 1rem;
    color: var(--warning-color);
}

.suggestion-card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.capacity-badge {
    background: var(--primary-color);
    color: white;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Elementos específicos */
.apartment-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.apartment-card-body {
    padding: 1rem;
    background: #fff;
}

.apartment-name {
    font-size: 1.1rem;
    line-height: 1.3;
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.apartment-location {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.apartment-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #555;
    margin-bottom: 0.5rem;
}

.apartment-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #198754;
}

/* Botones optimizados para mobile */
.btn-mobile {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.touch-friendly {
    padding: 12px 16px;
}

.view-details-btn,
.primary-action-btn {
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--primary-color);
    border: none;
    color: white;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.view-details-btn:hover,
.primary-action-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.secondary-action-btn {
    font-weight: 600;
    border-radius: 8px;
    background-color: #6c757d;
    border: none;
    color: white;
    padding: 10px 20px;
}

.new-search-btn {
    border-radius: 6px;
    font-weight: 500;
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 10px 20px;
}

.new-search-btn:hover {
    background-color: #0b5ed7;
}

/* Estados de hover para botones */
.view-details-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Contenedores específicos */
.no-results-container {
    padding: 1rem 0;
    background: #fff;
    border-radius: 12px;
}

.no-results-title {
    font-weight: 600;
    color: #333;
}

.no-results-alert {
    border-radius: 10px;
    border-left: 4px solid var(--warning-color);
    background: #fff;
    padding: 1.5rem;
}

.no-results-suggestion {
    line-height: 1.5;
    color: #555;
}

.suggestions-grid {
    margin-top: 1.5rem;
}

.suggestion-icon {
    opacity: 0.8;
    color: var(--primary-color);
}

.suggestion-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.suggestion-text {
    line-height: 1.4;
    min-height: 2.8rem;
    color: #555;
}

.suggestion-btn {
    border-radius: 6px;
    font-weight: 500;
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 8px 16px;
}

.suggestion-btn:hover {
    background-color: #0b5ed7;
}

.action-buttons {
    margin-top: 2rem;
}

/* Títulos de resultados */
.results-title {
    line-height: 1.3;
    color: #333;
}

.available-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333;
}

.unavailable-title {
    opacity: 0.9;
    color: #666;
}

/* ============================================
   MEDIA QUERIES - RESPONSIVE DESIGN
============================================ */

/* Tablets pequeñas (≥576px) */
@media (min-width: 576px) {
    .apartment-image {
        height: 220px;
    }
    
    .apartment-name {
        font-size: 1.2rem;
    }
    
    .search-summary {
        padding: 1.5rem;
    }
    
    .no-results-icon {
        font-size: 3.5rem;
    }
}

/* Tablets (≥768px) */
@media (min-width: 768px) {
    .availability-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
        top: 12px;
        right: 12px;
    }
    
    .apartment-card-body {
        padding: 1.25rem;
    }
    
    .no-results-icon {
        font-size: 4rem;
    }
    
    .suggestion-card .card-body {
        padding: 2rem 1.5rem;
    }
    
    .action-buttons {
        flex-direction: row !important;
        justify-content: center;
        gap: 1rem;
    }
}

/* Desktop (≥992px) */
@media (min-width: 992px) {
    .apartment-image {
        height: 240px;
    }
    
    .no-results-icon {
        font-size: 5rem;
    }
    
    .search-summary {
        padding: 2rem;
    }
    
    .apartment-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }
}

/* Desktop grandes (≥1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .apartment-card-body {
        padding: 1.5rem;
    }
}

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

.mobile-optimized {
    -webkit-tap-highlight-color: transparent;
}

/* Mejora de rendimiento para animaciones */
@media (prefers-reduced-motion: reduce) {
    .apartment-card,
    .suggestion-card,
    .btn {
        transition: none;
    }
}