/* Geolocation and Nearby Restaurants Styles */

/* Location Button Styles */
.location-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    min-width: 200px;
    justify-content: center;
}

.location-btn:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.location-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.location-btn.location-active {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.location-btn.location-active:hover {
    background: linear-gradient(135deg, #1976D2, #2196F3);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.location-icon {
    font-size: 16px;
}

.location-text {
    flex: 1;
}

.location-status {
    font-size: 14px;
}

/* Nearby Restaurants Section */
.nearby-restaurants-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.section-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 700;
}

.section-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Restaurant Cards Grid */
.nearby-restaurants-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.restaurant-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.restaurant-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.restaurant-distance {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.restaurant-info {
    margin-bottom: 15px;
}

.restaurant-address {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.restaurant-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.restaurant-rating {
    color: #ff9800;
    font-size: 14px;
    font-weight: 600;
}

.restaurant-type {
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Dishes Preview */
.restaurant-dishes {
    margin-bottom: 20px;
}

.restaurant-dishes h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.dishes-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dish-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.dish-name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    flex: 1;
}

.dish-price {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 700;
}

/* Restaurant Actions */
.restaurant-actions {
    display: flex;
    gap: 10px;
}

.view-menu-btn,
.get-directions-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-menu-btn {
    background: #4CAF50;
    color: white;
}

.view-menu-btn:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.get-directions-btn {
    background: #2196F3;
    color: white;
}

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

/* Loading Indicator */
.location-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

.loader-content p {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Notification Styles */
.location-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.location-notification.success {
    background: #4CAF50;
}

.location-notification.error {
    background: #f44336;
}

.location-notification.info {
    background: #2196F3;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nearby-restaurants-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .restaurant-card {
        padding: 15px;
    }
    
    .restaurant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .restaurant-distance {
        align-self: flex-end;
    }
    
    .restaurant-actions {
        flex-direction: column;
    }
    
    .location-btn {
        min-width: auto;
        width: 100%;
    }
    
    .location-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .nearby-restaurants-section {
        margin: 20px 0;
        padding: 15px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .restaurant-name {
        font-size: 18px;
    }
    
    .restaurant-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Integration with existing filter section */
.filter-section .location-btn {
    width: 100%;
    margin-top: 15px;
}

/* Results counter update */
.results-count {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
    text-align: center;
}