/* static/css/map.css */

.map-page-wrapper {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#map-container {
    flex-grow: 1;
    border-radius: 5px; 
    overflow: hidden;
    border: 2px solid var(--black);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    z-index: 1;
}

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

/* --- СТИЛИ ДЛЯ КАРТОЧКИ (Без стекла, в стиле сайта) --- */
.leaflet-popup-shadow { display: none !important; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background: var(--white) !important;
    border: 2px solid var(--black) !important;
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15) !important;
    border-radius: 5px !important;
}

.leaflet-popup-content-wrapper { padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; background: transparent !important; }

.glass-popup {
    padding: 15px;
    text-align: center;
    min-width: 200px;
    font-family: 'Inter', sans-serif; 
}

.glass-popup img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 8px;
    border: 1px solid var(--grey);
}

.glass-popup .no-img {
    width: 100%;
    height: 100px;
    background: rgba(0,0,0,0.05);
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    font-weight: 500;
}

.glass-popup h3 {
    margin: 0 0 5px 0 !important;
    font-size: 1.1rem !important;
    font-family: 'Inter', sans-serif !important; 
    color: var(--black) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.glass-popup .category {
    font-size: 0.8rem;
    color: var(--blue);
    
    margin-bottom: 5px;
    font-weight: 600;
    font-family: 'Inter', sans-serif; 
}

.glass-popup .schedule {
    font-size: 0.85rem;
    color: var(--black);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 8px;
    border-radius: 5px;
    font-family: 'Inter', sans-serif; 
    font-weight: 500;
}

/* Стили для кастомных маркеров (Пиктограмм) */
.custom-map-pin {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-map-pin:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 4px 6px 0px rgba(0,0,0,0.2);
    z-index: 1000 !important;
}