.map-page .map-layout {
    min-height: calc(100vh - 180px);
}

#restaurantMap {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 420px;
    border-radius: var(--eatoria-radius);
    z-index: 1;
}

.map-filter-panel {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.map-list-panel {
    max-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.map-restaurant-list {
    overflow-y: auto;
    max-height: calc(100vh - 280px);
}

.map-list-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
    width: 100%;
    border-left: 3px solid transparent;
    background: #fff;
}

.map-list-item:hover,
.map-list-item.is-active {
    background: rgba(229, 179, 24, 0.08);
    border-left-color: var(--eatoria-primary);
}

.map-list-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.35rem;
    flex-shrink: 0;
}

.map-list-item-body {
    min-width: 0;
    flex: 1;
}

.map-list-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.map-popup-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
}

.leaflet-popup-content {
    min-width: 220px;
    max-width: 280px;
    margin: 12px 16px;
}

.map-popup {
    text-align: left;
}

.map-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.leaflet-container .leaflet-popup .map-popup a.btn-eatoria {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.leaflet-container .leaflet-popup .map-popup a.btn-eatoria:hover,
.leaflet-container .leaflet-popup .map-popup a.btn-eatoria:focus {
    color: #fff;
    text-decoration: none;
}

.map-marker-icon {
    background: transparent;
    border: none;
}

.map-marker-highlight .badge {
    box-shadow: 0 0 0 3px rgba(229, 179, 24, 0.55);
}

.map-marker-selected .badge {
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.45);
    transform: scale(1.15);
}

.map-user-marker {
    background: transparent;
    border: none;
}

.map-user-marker .badge {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.35);
}

@media (max-width: 991.98px) {
    #restaurantMap {
        height: 50vh;
        min-height: 320px;
    }

    .map-restaurant-list {
        max-height: 280px;
    }

    .map-list-panel {
        max-height: none;
    }
}
