/* MySnackMap – Styles */

.page-map .map-search-bar { position: relative; z-index: 1000; }
.page-map .map-container { height: calc(100vh - 130px); position: relative; }
.page-map .map-sidebar {
    width: 380px; min-width: 380px;
    overflow-y: auto; background: #fff;
    border-right: 1px solid #dee2e6;
    z-index: 999;
}
.page-map .map-canvas { flex: 1; min-height: 400px; z-index: 1; }

.sidebar-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}
.sidebar-item:hover { background: #fff8e1; }

.map-popup { min-width: 180px; }
.map-popup strong { font-size: 0.95rem; }

.stars { color: #f5a623; font-size: 1rem; }
.stars.small { font-size: 0.8rem; }

.sidebar-toggle {
    display: none;
    position: absolute;
    top: 10px; left: 10px;
    z-index: 1001;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.card-restaurant { transition: box-shadow 0.2s; }
.card-restaurant:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.restaurant-header {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}
.restaurant-header .logo {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffc107;
}
.restaurant-header a { color: #ffc107; }

.opening-table td { padding: 2px 8px; font-size: 0.9rem; }
.opening-table .today { background: #fff3cd; font-weight: 600; }

@media (max-width: 991px) {
    .page-map .map-sidebar {
        position: absolute;
        top: 0; left: -400px;
        height: 100%;
        width: 320px; min-width: 320px;
        transition: left 0.3s;
        z-index: 1100;
        box-shadow: 2px 0 10px rgba(0,0,0,0.15);
    }
    .page-map .map-sidebar.open { left: 0; }
    .sidebar-toggle { display: block; }
    .page-map .map-container { height: calc(100vh - 180px); }
}

@media (max-width: 575px) {
    .page-map .map-sidebar { width: 85%; min-width: 85%; }
}

.text-truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.cursor-pointer { cursor: pointer; }

.leaflet-popup-content-wrapper { border-radius: 8px; }
.leaflet-popup-content { margin: 10px 14px; }
