/**
 * Restaurant Marketplace Styles
 */

.localbuzz-restaurant-marketplace {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Hero Text Styling */
.marketplace-hero h1 {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 900 !important;
    color: white !important;
}

/* Google Places Autocomplete Styling - EXACT same as contest marketplace */
.pac-container {
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
}

.pac-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.pac-item:hover {
    background-color: #f8f9fa;
}

.pac-item-selected {
    background-color: #FF6B35;
    color: white;
}

.pac-matched {
    font-weight: bold;
}

.pac-icon {
    margin-right: 10px;
}

/* Search Tabs */
.search-tab.active {
    color: #333 !important;
    border-bottom-color: #ff6b35 !important;
}

.search-tab:hover {
    color: #ff6b35 !important;
}

/* Location Input Focus */
#location-search:focus {
    border-color: #ff6b35 !important;
}

.btn-search:hover {
    background: #1a252f !important;
}

.btn-location:hover {
    background: #e0e0e0 !important;
}

/* Restaurant Cards Hover Effect */
.restaurant-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}

/* Mobile Category Swiper Styles */
.mobile-category-swiper {
    display: none;
}

.category-swiper-container::-webkit-scrollbar {
    display: none;
}

.category-chip {
    transition: all 0.3s ease;
}

.category-chip.active {
    background: #ff6b35 !important;
    border-color: #ff6b35 !important;
    color: white !important;
}

.category-chip:not(.active):hover {
    border-color: #ff6b35 !important;
    color: #ff6b35 !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .marketplace-layout {
        grid-template-columns: 1fr !important;
    }
    
    .filters-sidebar {
        position: static !important;
        margin-bottom: 30px;
    }
    
    .restaurants-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    /* Show mobile category swiper, hide sidebar category filters */
    .mobile-category-swiper {
        display: block !important;
    }
    
    .filters-sidebar .category-filters {
        display: none !important;
    }
    
    .marketplace-hero h1 {
        font-size: 32px !important;
    }
    
    .search-form {
        flex-direction: column !important;
    }
    
    .search-form > * {
        width: 100% !important;
    }
    
    .restaurants-grid {
        grid-template-columns: 1fr !important;
    }
    
    .results-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .marketplace-content {
        padding: 0 10px !important;
    }
}

/* Modal Styles */
.restaurant-modal {
    animation: fadeIn 0.3s ease;
}

.modal-content {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Menu Tab Content Styles */
.menu-tab-content {
    width: 100%;
}

#embedded-menu-* {
    width: 100%;
}

/* Ensure menu styles are loaded */
.menu-tab-content .localbuzz-menu-container {
    width: 100%;
    max-width: 100%;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3) !important;
}

/* Badge Styles */
.badge,
.badge-contests,
.badge-gigs,
.badge-ordering {
    min-width: 120px !important;
    width: 120px !important;
    height: 36px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: white !important;
    padding: 6px 12px !important;
    white-space: nowrap !important;
    opacity: 0.9 !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.badge-contests {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.85) 0%, rgba(46, 125, 50, 0.85) 100%) !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
}

.badge-gigs {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85) 0%, rgba(21, 101, 192, 0.85) 100%) !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3) !important;
}

.badge-ordering {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.85) 0%, rgba(192, 57, 43, 0.85) 100%) !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3) !important;
}

/* Filter Checkboxes */
.category-filter,
.feature-filter {
    cursor: pointer;
}

/* Map Container */
#restaurants-map {
    border-radius: 12px;
}

/* Loading Animation */
#loading-restaurants::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

