:root {
            --primary-color: #000000;
            --accent-color: #333333;
            --light-color: #eeeebe;
            --dark-color: #000000;
            --panel-width: 350px;
            --transition-speed: 0.3s;
        }

        body, html {
            margin: 0;
            padding: 0;
            height: 100%;
            overflow: hidden;
            font-family: 'Montserrat', sans-serif;
            color: var(--dark-color);
            background-color: var(--light-color);
        }

        #map {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 1;
        }

        /* Панель информации */
        #info-panel {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: var(--panel-width);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
            overflow-y: auto;
            padding: 20px;
            box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
            z-index: 1002; /* Увеличиваем z-index для панели информации */
            transition: right var(--transition-speed) ease-in-out;
            border-left: 1px solid rgba(0, 0, 0, 0.1);
            display: none; /* Скрываем панель по умолчанию */
        }

        #info-panel.visible {
            display: block; /* Показываем панель */
        }

        #info-panel h2 {
            font-family: 'Playfair Display', serif;
            color: var(--primary-color);
            margin-top: 0;
            border-bottom: 2px solid var(--secondary-color);
            padding-bottom: 10px;
        }

        #info-content {
            line-height: 1.6;
        }

        #info-content img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 15px auto;
            border-radius: 5px;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        }

        /* Кнопка закрытия панели */
        #hide-button {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent-color);
            border: none;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-speed);
            z-index: 1003; /* Увеличиваем z-index для кнопки закрытия */
        }

        #hide-button:hover {
            background: #1a1a1a;
            transform: rotate(90deg);
        }

        /* Элементы управления */
        .map-control {
            position: absolute;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transition: all var(--transition-speed);
        }

        .map-control:hover {
            background: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        /* Кнопки масштабирования */
        #zoom-controls {
            top: 20px;
            left: 20px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .zoom-button {
            width: 40px;
            height: 40px;
            border: none;
            background: none;
            color: var(--primary-color);
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-speed);
        }

        .zoom-button:hover {
            background: var(--light-color);
            color: var(--secondary-color);
        }

        .zoom-button:first-child {
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        /* Панель мест */
        #locations-panel {
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            width: var(--panel-width);
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(5px);
            overflow-y: auto;
            padding: 20px;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            z-index: 1001;
            transition: left var(--transition-speed) ease-in-out;
            border-right: 1px solid rgba(0, 0, 0, 0.1);
            display: none; /* Скрываем панель по умолчанию */
        }

        #locations-panel.visible {
            display: block; /* Показываем панель */
        }

        #locations-panel h3 {
            font-family: 'Playfair Display', serif;
            color: var(--primary-color);
            margin-top: 0;
            border-bottom: 2px solid var(--secondary-color);
            padding-bottom: 10px;
        }

        #locations-list {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        #locations-list li {
            padding: 12px 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            transition: all var(--transition-speed);
            cursor: pointer;
            border-radius: 4px;
            margin-bottom: 5px;
        }

        #locations-list li:hover {
            background: rgba(0, 0, 0, 0.05);
            color: var(--secondary-color);
            transform: translateX(5px);
        }

        #locations-list li.active {
            background: rgba(0, 0, 0, 0.1);
            color: var(--secondary-color);
            font-weight: 500;
        }

        /* Кнопка открытия панели мест */
        #locations-button {
            position: absolute;
            top: 50%;
            left: 0;
            transform: translateY(-50%);
            background: rgba(255, 255, 255, 0.9);
            border: none;
            color: var(--primary-color);
            width: 40px;
            height: 60px;
            cursor: pointer;
            border-radius: 0 8px 8px 0;
            box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition-speed);
            z-index: 1001;
        }

        #locations-button:hover {
            background: white;
            width: 45px;
            color: var(--secondary-color);
        }

        /* Выбор категории */
        #category-select {
            position: absolute;
            top: 20px;
            right: 20px;
            z-index: 1000; /* Уменьшаем z-index для меню выбора категорий */
            padding: 10px 15px;
            border: none;
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.9);
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            font-family: 'Montserrat', sans-serif;
            color: var(--primary-color);
            cursor: pointer;
            transition: all var(--transition-speed);
            width: 200px;
        }

        #category-select:hover {
            background: white;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        /* Заголовок */
        #title {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.9);
            padding: 10px 25px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            font-family: 'Playfair Display', serif;
            font-size: 1.2rem;
            color: var(--primary-color);
            text-align: center;
        }

        /* Кастомные маркеры */
        .custom-icon {
            background-repeat: no-repeat;
            background-size: contain;
            transition: transform 0.3s, filter 0.3s;
            filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
        }

        .custom-icon:hover {
            transform: translateY(-5px) scale(1.1);
            filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
        }

        #leaflet-control-attribution leaflet-control {
            opacity: 0;
        }

        .leaflet-control-attribution {
    display: none !important;
}


/* Скрываем атрибуцию Leaflet (надпись в правом нижнем углу) */
.leaflet-control-attribution {
    display: none !important;
}

/* Скрываем все флаги в элементах управления */
.leaflet-control-layers-toggle,
.leaflet-control-layers-base,
.leaflet-control-layers-overlays,
.leaflet-control-layers-list {
    /* Убираем фоновые изображения с флагами */
    background-image: none !important;
}

/* Скрываем конкретно украинский флаг если он есть в качестве фона */
[style*="ukraine"],
[style*="Ukraine"],
[class*="ukraine"],
[class*="Ukraine"] {
    display: none !important;
    background-image: none !important;
}

/* Убираем флаги из списка слоев */
.leaflet-control-layers label {
    background-image: none !important;
}

/* Скрываем любые изображения флагов */
.leaflet-control-layers img,
.leaflet-marker-icon[src*="flag"],
.leaflet-marker-icon[src*="ukraine"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Дополнительно: скрываем элементы с флагами в popup */
.leaflet-popup-content img[src*="flag"],
.leaflet-popup-content img[src*="ukraine"] {
    display: none !important;
}


