/**
 * Styles pour les pages restaurants - hotelsdakhla.com
 */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/hotelsdakhla/assets/images/patterns/restaurant-pattern.png') repeat;
    opacity: 0.1;
}

.hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-stats .stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Cards des restaurants */
.restaurant-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.restaurant-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.restaurant-card:hover .card-img-top {
    transform: scale(1.05);
}

.restaurant-card .card-title a {
    color: #2c3e50;
    font-weight: 600;
}

.restaurant-card .card-title a:hover {
    color: #e74c3c;
}

.restaurant-card .price {
    font-size: 1.1rem;
}

.restaurant-card .features i {
    font-size: 1.2rem;
}

.restaurant-card .badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

/* Filtres */
.filters-section {
    border-bottom: 1px solid #dee2e6;
}

.filters-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
}

.filters-section .form-select,
.filters-section .form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.9rem;
}

.filters-section .form-check-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Section résultats */
.results-section h2 {
    color: #2c3e50;
    font-weight: 600;
}

/* Badges de services */
.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Rating */
.rating .badge {
    font-size: 0.8rem;
}

/* Pagination */
.pagination .page-link {
    color: #e74c3c;
    border-color: #e74c3c;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* Section statistiques */
.stats-section .card {
    border: none;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.stats-section .card:hover {
    transform: translateY(-3px);
}

.stats-section h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-section h6 {
    color: #2c3e50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
        text-align: center !important;
    }
    
    .filters-section .row > div {
        margin-bottom: 1rem;
    }
    
    .results-section .d-flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-section .text-end {
        text-align: start !important;
    }
    
    .restaurant-card .card-img-top {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 1.75rem;
    }
    
    .restaurant-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .restaurant-card .btn {
        font-size: 0.875rem;
    }
}

/* Animation pour les cartes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.restaurant-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* États vides */
.text-center.py-5 i {
    color: #6c757d;
}

.text-center.py-5 h3 {
    color: #495057;
    margin-bottom: 1rem;
}

/* Boutons de vue */
.btn-group .btn {
    border-radius: 8px;
}

.btn-group .btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group .btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Amélioration des badges */
.position-absolute .badge {
    backdrop-filter: blur(5px);
    font-weight: 500;
}

/* Footer des cartes */
.card-footer {
    padding: 1rem;
}

.card-footer .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-footer .btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-1px);
}

.card-footer .btn-outline-primary:hover {
    background-color: #e74c3c;
    border-color: #e74c3c;
    color: white;
}
