/* Map Page Specific Styles */

.map-page {
    padding-top: 70px;
}

.map-container {
    display: flex;
    height: calc(100vh - 70px);
    overflow: hidden;
}

.map-sidebar {
    width: 400px;
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-filters {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--light-color);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-checkbox:hover {
    background: var(--accent-color);
}

.filter-checkbox input[type="checkbox"] {
    width: auto;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.apply-filters {
    background: var(--primary-color);
    color: white;
}

.apply-filters:hover {
    background: #d62839;
}

.clear-filters {
    background: var(--light-color);
    color: var(--text-color);
}

.clear-filters:hover {
    background: var(--border-color);
}

.restaurant-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.restaurant-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.restaurant-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.restaurant-item.active {
    border-color: var(--primary-color);
    background: rgba(230, 57, 70, 0.05);
}

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

.restaurant-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.restaurant-item-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--secondary-color);
    color: var(--dark-color);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.restaurant-item-location {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.restaurant-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.restaurant-tag {
    padding: 4px 8px;
    background: var(--light-color);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-color);
}

.restaurant-tag.price {
    color: var(--success-color);
    font-weight: 600;
}

.map-view {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    background: #e5e5e5;
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #6c757d;
    padding: 40px;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.map-placeholder h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.results-count {
    padding: 15px 20px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .map-sidebar {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 70px);
    }

    .map-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .restaurant-list {
        max-height: none;
    }

    .map-view {
        height: 400px;
        order: -1;
    }

    .filter-actions {
        flex-direction: column;
    }
}

/* Loading Spinner */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner {
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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