/* Modern Restaurant Module Styles */
.mod-restaurants-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Filter Section */
.restaurants-filters {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filters-row:first-child {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group.filter-search {
    flex: 2;
    min-width: 300px;
}

.filter-group.filter-outdoor {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-group.filter-reset {
    flex: 0 0 auto;
    min-width: auto;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #2196F3;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkbox filter */
.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-checkbox-label:hover {
    background: #fff;
    border-color: #2196F3;
}

.filter-checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.filter-checkbox-label input:checked + .checkbox-custom {
    background: #2196F3;
    border-color: #2196F3;
}

.filter-checkbox-label input:checked + .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Reset Button */
.btn-reset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

/* Results Count */
.restaurants-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-left: 4px;
}

.restaurants-count span {
    font-weight: 700;
    color: #2196F3;
}

/* Restaurant Grid */
.restaurants-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Restaurant Card */
.restaurant-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.restaurant-card.hidden {
    display: none;
}

/* Card Image */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.card-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: #999;
    font-size: 14px;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #FF9800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Card Content */
.card-content {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.venue-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.venue-badge.restaurant {
    background: #E8F5E9;
    color: #2E7D32;
}

.venue-badge.bar {
    background: #FFF3E0;
    color: #E65100;
}

.card-address {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #E53935;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 4px;
    border-radius: 4px;
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.1);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.maps-link:hover {
    background: #1a73e8;
    color: #fff;
    transform: scale(1.1);
}

.maps-link svg {
    color: inherit;
    margin: 0;
}

.card-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2196F3;
    text-decoration: none;
    transition: color 0.2s;
}

.contact-link:hover {
    color: #1565C0;
}

.contact-link svg {
    flex-shrink: 0;
}

/* Cuisine Tags */
.card-cuisines {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.cuisine-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.cuisine-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    background: #e0e0e0;
    border-radius: 20px;
    font-size: 11px;
    color: #555;
    font-weight: 600;
}

/* Card Description */
.card-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Details Button */
.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: #E53935;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 16px;
}

.btn-details:hover {
    color: #C62828;
}

.btn-details:hover svg {
    transform: translateX(3px);
}

.btn-details svg {
    transition: transform 0.2s ease;
}

/* No Results */
.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results-message svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

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

/* Modal */
.restaurant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.restaurant-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close:hover {
    background: #fff;
    transform: rotate(90deg);
}

.modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Content Styles */
.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-body {
    padding: 35px 40px 40px 45px;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px 0;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.modal-info {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.modal-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #444;
}

.modal-info-item svg {
    color: #E53935;
    flex-shrink: 0;
}

.modal-info-item a {
    color: #2196F3;
    text-decoration: none;
}

.modal-info-item a:hover {
    text-decoration: underline;
}

.modal-cuisines {
    margin-bottom: 20px;
}

.modal-cuisines-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.modal-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #e0e0e0;
}

.social-link.facebook:hover {
    background: #1877F2;
    color: white;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

/* Responsive */
@media (max-width: 1200px) {
    .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .restaurants-filters {
        padding: 16px;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filters-row:first-child {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .filter-group,
    .filter-group.filter-search {
        min-width: 100%;
    }
    
    .filter-group.filter-outdoor,
    .filter-group.filter-reset {
        width: 100%;
    }
    
    .btn-reset {
        width: 100%;
        justify-content: center;
    }
    
    .restaurants-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-container {
        width: 95%;
        margin: 10px;
    }
    
    .modal-image {
        height: 200px;
    }
    
    .modal-body {
        padding: 25px 30px 30px 35px;
    }
    
    .modal-title {
        font-size: 22px;
    }
}
