/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Область карты */
.map-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
}

/* Левый сайдбар - OVERLAY поверх карты */
.venues-sidebar {
    width: 320px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    z-index: 10;
    position: absolute;
    top: 95px;
    left: 8px;
    height: calc(100vh - 100px);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    border-radius: 16px;
    background: #F2F2F2;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.05), 0px 4px 40px 0px rgba(0, 0, 0, 0.15);
    padding: 16px 8px 16px 24px;
}

.venues-sidebar.visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.venues-sidebar.hidden {
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
}

.sidebar-header {

}

.sidebar-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #3b3b3b;
}

.venues-counter {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-close:hover {
    background: #f0f0f0;
    color: #333;
}

.venues-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    gap: 32px;
    box-sizing: border-box;
}

/* Убираем внутренние отступы которые могут сдвигать контент */
.venues-container * {
    box-sizing: border-box;
}

.venue-card {
    display: flex;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    background-color: transparent !important;
}

.venues-container::-webkit-scrollbar {
    width: 8px;
    border: 4px;
    overflow: hidden;
}

.venues-container::-webkit-scrollbar-track {
    background-color: #E0E0E0;
}

.venues-container::-webkit-scrollbar-thumb {
    border-radius: 4px;
    overflow: hidden;
    background-color: #bdbdbd;
}

.venue-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-bottom: 8px;
}

.venue-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.venue-name {
    font-size: 15px;
    font-weight: 400;
    color: #3b3b3b;
    margin-bottom: 2px;
    line-height: 150%;
}

.venue-type {
    font-size: 12px;
    color: #3b3b3b;
    margin-bottom: 2px;
    opacity: 0.6;
}

.venue-price {
    font-size: 14px;
    font-weight: 500;
    color: #3b3b3b;
    line-height: 150%;
}

.venue-address {
    font-size: 12px;
    color: #3b3b3b;
    margin-bottom: 2px;
    line-height: 150%;
}

/* НОВЫЕ стили для цветных индикаторов метро */
.venue-metro {
    font-size: 10px;
    color: #0066cc;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.metro-color-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

/* Стили для метро в модальном окне */
.simple-modal-metro .metro-color-indicator {
    width: 14px;
    height: 14px;
    margin-right: 2px;
}

.simple-modal-metro {
    font-size: 12px;
    padding: 0 16px;
    font-weight: 400;
    line-height: 150%;
    color: #3b3b3b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.loading-more {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
}

.no-venues {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Кнопка переключения сайдбара */
.sidebar-toggle {
    position: absolute;
    top: 95px;
    left: 20px;
    z-index: 50;
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 0;
    background-color: transparent;
    border: none;
    transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle span {
    background: #F2F2F2;
    border-radius: 16px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #3b3b3b;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle.with-sidebar svg {
    transform: rotate(180deg);
}

.sidebar-toggle.with-sidebar span {
    display: none;
}

.sidebar-toggle .icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.60);
    cursor: pointer;
}

.sidebar-toggle.with-sidebar {
    left: 340px;
}

/* Контейнер карты */
.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
    /* Улучшенное сенсорное взаимодействие для мобильных */
    touch-action: pan-x pan-y;
}

/* Плавающая информационная панель */
.floating-info {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
    z-index: 50;
}

.venues-count {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.venues-count span {
    color: #667eea;
    font-weight: 600;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Скрытие элементов Yandex.Карт */
.ymaps-2-1-79-svg-icon {
    display: none !important;
}

/* ===== СТИЛИ ДЛЯ КАСТОМНЫХ КЛАСТЕРОВ ===== */

/* Переопределяем все стандартные стили Yandex Maps для кластеров */
.ymaps-2-1-79-cluster,
.ymaps-2-1-79-cluster * {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Контейнер кластера */
.ymaps-2-1-79-cluster {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Основные стили кастомного кластера */
.custom-cluster {
    background: #705ABF!important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    cursor: pointer !important;
    user-select: none !important;
    position: relative !important;
    z-index: 100 !important;
    line-height: 1 !important;
    text-align: center !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
    pointer-events: auto !important;
}

/* Эффекты наведения для кластеров */
.custom-cluster:hover {
    transform: scale(1.1) !important;
    border-color: #5a67d8 !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4) !important;
    z-index: 101 !important;
}

/* Активное состояние кластера */
.custom-cluster:active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease !important;
}

/* Анимация появления кластеров */
@keyframes clusterAppear {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.custom-cluster {
    animation: clusterAppear 0.3s ease-out !important;
}

/* Убираем все возможные интерференции от стандартных стилей */
.ymaps-2-1-79-cluster .ymaps-2-1-79-placemark-overlay,
.ymaps-2-1-79-cluster-content {
    display: none !important;
}

/* Обеспечиваем корректную работа события клика */
.ymaps-2-1-79-cluster,
.ymaps-2-1-79-cluster .custom-cluster {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Обеспечиваем корректную работу балунов */
.ymaps-2-1-79-geoObject-balloon {
    z-index: 1000 !important;
}

/* ===== НОВЫЕ СТИЛИ ФИЛЬТРОВ ===== */

.panel-new {
    position: fixed;
    top: 8px;
    left: 8px;
    padding: 16px;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.05), 0px 4px 40px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 8px;
    z-index: 1000;
    border-radius: 16px;
    background-color: #F2F2F2;
    max-width: calc(100vw - 16px);
    overflow: visible;
    flex-wrap: wrap;
}

.panel-new__back {
    border-radius: 100px;
    background-color: #fff;
    padding: 8px 16px 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.panel-new__back svg path {
    stroke: #3b3b3b;
}

.panel-new__back:hover {
    background-color: #5e4ba3;
    transform: translateY(-1px);
}

.panel-new__back:hover span {
    color: #fff;
}

.panel-new__back:hover svg path {
    stroke: #fff;
}

.panel-new__back span {
    color: #3b3b3b;
    font-weight: 500;
    font-size: 14px;
}

.panel-new__dropdown {
    position: relative;
    flex-shrink: 0;
}

.panel-new__dropdown-head {
    background-color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px 9px 16px;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

.panel-new__dropdown-head span {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

/* Активные фильтры имеют другой цвет */
.panel-new__dropdown.filter-active .panel-new__dropdown-head {
    background-color: #705ABF;
    border-color: #705ABF;
}

.panel-new__dropdown.filter-active .panel-new__dropdown-head span {
    color: white;
}

.panel-new__dropdown.filter-active .panel-new__dropdown-head svg path {
    stroke: white;
}

.dropdown--open .panel-new__content {
    display: block;
}

.panel-new__content {
    position: fixed;
    top: 61px;
    left: auto;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.05), 0px 4px 40px 0px rgba(0, 0, 0, 0.15);
    padding: 24px 16px 16px 16px;
    display: none;
    width: 288px;
    z-index: 9999;
}

.panel-new__content .input-one {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    background: #FFF;
    font-size: 16px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s ease;
}

.panel-new__content .input-one:focus {
    border-color: #705ABF;
}

.panel-new__list-wrapper {
    max-height: 300px;
    overflow: auto;
}

.panel-new__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-new__label {
    display: flex;
    align-items: start;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px;
    border-radius: 8px;
}

.panel-new__label:hover {
    background-color: #f8f9fa;
}

.panel-new__label input {
    display: none;
}

.panel-new__label input:checked + .panel-new__checkbox {
    background-color: #705ABF;
    border-color: #705ABF;
    color: white;
}

.panel-new__label span {
    font-size: 16px;
    color: #333;
}

.panel-new__checkbox {
    min-width: 24px;
    max-width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid #BDBDBD;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: bold;
}

.select-window__input-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.select-window__input-box input {
    width: 100%;
}

.input-range {
    grid-column-start: span 2;
}

.irs {
    grid-column-start: span 2;
}

.irs-line {
    height: 2px;
    background-color: #E0E0E0;
}

.irs-from, .irs-min, .irs-max, .irs-to {
    display: none;
}

.irs-handle {
    width: 20px;
    height: 20px;
    border: none;
    background-color: #705ABF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(112, 90, 191, 0.3);
}

.irs-handle:hover {
    transform: scale(1.1);
}

.irs-to {
    display: none;
}

.irs-max, .irs-min {
    display: none;
}

.select-window__input-box .select-input-number {
    height: 48px;
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    padding: 12px;
    outline: none;
    transition: border-color 0.2s ease;
    font-size: 16px;
}

.select-window__input-box .select-input-number:focus {
    border-color: #705ABF;
}

.irs--round .irs-handle {
    border: none;
    width: 20px;
    height: 20px;
    top: -8px;
    cursor: pointer;
    background-color: #705ABF;
    box-shadow: 0 2px 8px rgba(112, 90, 191, 0.3);
}

.irs--round {
    height: 30px;
}

.irs--round .irs-line {
    height: 4px;
    top: 13px;
    background-color: #E0E0E0;
    border-radius: 2px;
}

.irs--round .irs-bar {
    height: 4px;
    background-color: #705ABF;
    top: 13px;
    border-radius: 2px;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.input-range1 {
    grid-column-start: span 2;
}

.irs-single {
    display: none !important;
}

.panel-new__reset-filters {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0;
    background-color: transparent;
    border: none;
    cursor: pointer;
    margin-left: 16px;
}

.panel-new__reset-filters span {
    font-size: 14px;
    font-weight: 600;
    line-height: 16px;
    color: #3b3b3b;
    opacity: 0.6;
}

/* НОВЫЕ стили для кнопок управления фильтрами */
.panel-new__content-controls {
    display: none; /* Изначально скрыты */
    gap: 8px;
    padding-top: 16px;
    animation: slideInControls 0.3s ease-out;
}

@keyframes slideInControls {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-controls__btn {
    width: 50%;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    cursor: pointer;
    padding: 10px 16px;
    transition: all 0.2s ease;
    border: 2px solid #705ABF;
}

.content-controls__btn1 {
    background-color: #705ABF;
    color: #fff;
}

.content-controls__btn1:hover {
    background-color: #5e4ba3;
    border-color: #5e4ba3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 90, 191, 0.3);
}

.content-controls__btn2 {
    background-color: transparent;
    color: #705ABF;
}

.content-controls__btn2:hover {
    background-color: #705ABF;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(112, 90, 191, 0.3);
}

/* Анимации для появления/исчезновения элементов */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.panel-new__content {
    animation: slideIn 0.2s ease-out;
}

/* Анимация пульсации для кластеров */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    /* .venues-sidebar {
        width: 280px;
    } */
    
    .sidebar-toggle.with-sidebar {
        left: 300px;
    }
    
    .panel-new {
        padding: 12px;
        gap: 6px;
    }
    
    .floating-info {
        top: 15px;
        right: 15px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .panel-new {
        top: 4px;
        left: 4px;
        right: 4px;
        padding: 12px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: flex-start;
        max-width: calc(100vw - 8px);
    }
    
    .panel-new__back {
        padding: 6px 12px 6px 8px;
        font-size: 12px;
    }
    
    
    .map-wrapper {
        flex-direction: column;
    }
    
    /* Мобильный сайдбар - выезжает снизу */
    /* .venues-sidebar {
        width: 100%;
        height: 50vh;
        max-height: 400px;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        border-right: none;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        border-radius: 16px 16px 0 0;
    } */
    
    .venues-sidebar.visible {
        transform: translateX(0);
    }
    
    .venues-sidebar.hidden {
        transform: translateX(80%);
    }
    
    .sidebar-toggle {
        top: auto;
        bottom: 20px;
        left: 20px;
        padding: 8px 12px;
        font-size: 12px;
    }
    

    
    /* Адаптивность индикаторов метро для мобильных */
    .metro-color-indicator {
        width: 10px;
        height: 10px;
    }
    
    .floating-info {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
    }
    
    .venues-count {
        font-size: 11px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }

    /* Адаптивность кластеров для мобильных */
    .custom-cluster {
        transform: scale(0.9) !important;
    }
    
    .custom-cluster:hover {
        transform: scale(1) !important;
    }

    
    .panel-new__label {
        min-height: 44px;
        padding: 8px;
    }
    
    /* Скрытие скроллбаров на мобильных для лучшего UX */
    .venues-container::-webkit-scrollbar {
        width: 3px;
    }
    
    .venues-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .venues-container::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
    }
}

/* Компактное модальное окно рядом с точкой */
.compact-modal {
    display: none;
    position: absolute;
    z-index: 1001;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 280px;
    max-height: 400px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.compact-modal.show {
    display: block;
    animation: compactAppear 0.2s ease-out;
}

@keyframes compactAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.compact-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compact-modal-header h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.compact-close {
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
    line-height: 1;
}

.compact-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.compact-modal-body {
    padding: 15px;
}

.compact-venue-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.compact-venue-type {
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
    margin-bottom: 6px;
}

.compact-venue-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.compact-venue-address {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

.compact-metro-info {
    font-size: 11px;
    color: #0066cc;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.compact-book-btn {
    width: 100%;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.compact-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Стрелочка указывающая на точку */
.compact-modal::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

/* Стили для улучшения производительности на мобильных */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    input, textarea {
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        user-select: text;
    }
    
    /* Оптимизация для производительности */
    .custom-cluster,
    .venue-card,
    .panel-new__dropdown-head {
        will-change: transform;
    }
}

/* Плавное скрытие/показ недоступных типов площадок */
.panel-new__label {
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 44px;
}

.panel-new__label[style*="display: none"] {
    max-height: 0;
    opacity: 0;
    padding: 0 4px;
    margin: 0;
    transform: translateX(-10px);
}

/* Стили для активных фильтров */
.panel-new__dropdown.filter-active .panel-new__dropdown-head {
    background-color: #705ABF !important;
    border-color: #705ABF !important;
    color: white !important;
}

.panel-new__dropdown.filter-active .panel-new__dropdown-head span {
    color: white !important;
}

.panel-new__dropdown.filter-active .panel-new__dropdown-head svg path {
    stroke: white !important;
}

/* Анимация для изменения диапазонов */
.panel-new__content .select-input-number {
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.panel-new__content .select-input-number:focus {
    background-color: #f8f9fa;
}

/* Анимация для обновления диапазонов */
.panel-new__dropdown-head span {
    transition: all 0.2s ease;
}

.panel-new__dropdown.updating .panel-new__dropdown-head span {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Улучшенная типографика для активных фильтров */
.panel-new__dropdown.filter-active .panel-new__dropdown-head span {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Стили для пустого состояния фильтров */
.panel-new__content.empty-state {
    opacity: 0.6;
    pointer-events: none;
}

.panel-new__content.empty-state::after {
    content: 'Нет доступных вариантов';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #999;
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

/* Отзывчивость для мобильных устройств */
@media (max-width: 768px) {
    .panel-new__label {
        max-height: 52px; /* Больше места для тач-интерфейса */
    }
}

/* Стили для smooth transitions при изменении диапазонов */
.irs-handle {
    transition: all 0.2s ease !important;
}

.irs-handle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px rgba(112, 90, 191, 0.4) !important;
}

.irs-bar {
    transition: background-color 0.2s ease !important;
}



.panel-new__dropdown.filter-active .panel-new__dropdown-head:hover {
    background-color: #5e4ba3 !important;
    box-shadow: 0 4px 12px rgba(112, 90, 191, 0.3);
}

.simple-modal-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.50);
    z-index: 4;
    cursor: pointer;
    transition: all 0.2s ease;
}

.simple-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.70);
    transform: scale(1.05);
}

.simple-modal-img {
    width: 100%;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin-bottom: 8px;
}

.simple-modal-name {
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 125%;
    margin-bottom: 8px;
    color: #3b3b3b;
}

.simple-modal-adress {
    padding: 0 16px;
    display: flex;
    align-items: start;
    gap: 2px;
}

.simple-modal-adress span {
    font-size: 12px;
    line-height: 150%;
    font-weight: 400;
    color: #3b3b3b;
}

.simple-modal-price {
   font-size: 14px;
   padding: 0 16px;
   font-weight: 500;
   line-height: 150%;
   color: #3b3b3b; 
}

.simple-modal-type {
    font-size: 12px;
    padding: 0 16px 12px;
    color: #828282;
    font-weight: 400;
    line-height: 150%;
}

.simple-modal-link {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    cursor: pointer;
}

.panel-new__dropdowns-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.panel-new__btn-show-filters {
    border-radius: 100px;
    background-color: #705ABF;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 6px 12px 6px 10px;
    border: none;
    display: none;
}

.panel-new__btn-show-filters span {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 16px;
}

.filters-popup__title {
    display: none;
}

.filters-popup__close-btn {
    display: none;
}

@media (max-width: 991px) {
    .filters-popup__title {
        display: block;
        position: absolute;
        top: 16px;
        left: 16px;
        font-size: 20px;
        font-weight: 600;
    }

    .filters-popup__close-btn {
        display: flex;
        position: absolute;
        top: 16px;
        right: 16px;
        width: 24px;
        height: 24px;
        align-items: center;
        justify-content: center;
        border: none;
        background-color: transparent;
    }

    .panel-new__btn-show-filters {
        display: flex;
    }

    .panel-new__dropdowns-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        overflow-y: auto;
        z-index: 1005;
        flex-direction: column;
        background-color: #fff;
        padding: 64px 16px;
        gap: 16px;
        flex-wrap: nowrap;
        height: 100vh;
        display: none;
        
    }

    .panel-new__dropdowns-wrapper--show {
        display: flex;
    }

    .panel-new__dropdown-head {
        padding: 0;
        margin-bottom: 12px;
    }

    .panel-new__dropdown-head span {
        font-size: 15px;
        font-weight: 600;
        line-height: 16px;
        padding-bottom: 4px;
    }

    .panel-new__dropdown-head svg {
        display: none;
    }

    .panel-new__content {
        position: static;
        display: block;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
    }

    .panel-new__list-wrapper {
        max-height: initial;
    }

    .panel-new__label {
        padding: 0;
        border-radius: 0;
        max-height: initial;
        min-height: initial;
    }

    .panel-new__label .panel-new__checkbox {
        display: none;
    }

    .panel-new__list {
        gap: 6px;
        flex-direction: row;
        flex-wrap: wrap;
		margin-bottom: 100px;
    }

    .panel-new__label span {
        padding: 6px 12px;
        border-radius: 100px;
        border: 1px solid #bdbdbd;
        font-size: 14px;
        color: #3b3b3b;
        font-weight: 500;
    }

    .panel-new__input-checkbox:checked + .panel-new__checkbox + span {
        color: #fff;
        background-color: #705ABF;
    }

    .panel-new__dropdown.filter-active .panel-new__dropdown-head {
        background-color: transparent !important;
        border-color: transparent !important;
        color: #3b3b3b !important;
    }

    .panel-new__dropdown.filter-active .panel-new__dropdown-head span {
        color: #3b3b3b !important;
    }

    .panel-new__reset-filters {
        display: none !important;
    }

    .panel-new__content-controls {
        position: fixed;
        bottom: 0;
        width: calc(100vw - 32px);
        display: none !important;
		z-index: 10;
		background: #ffffff;
    }

    .content-controls__btn {
        width: 100%;
        max-width: 300px;
        flex-grow: 1;
		margin-bottom: 10px;
    }

    .controls--show {
        display: flex !important;
    }

    .panel-new {
        width: max-content;
    }

    .floating-info {
        display: none;
    }

    .sidebar-toggle {
        top: 12px !important;
        right: 8px !important;
        bottom: initial;
        left: initial;
        padding: 0;
        z-index: 1002;
    }

    .venues-sidebar {
        position: fixed;
        top: 0;
        z-index: 1001;
        bottom: 0;
        left: initial;
        right: 0;
        padding: 16px !important;
        width: 80%;
        border-radius: 0;
        transition: translate;
        height: initial !important;
        box-shadow: -200px 0px 0px 0px rgba(0, 0, 0, 0.6);
    }

    .sidebar-toggle.with-sidebar {
        right: 81% !important;
        left: initial !important;
    }

    .sidebar-toggle.with-sidebar span {
        display: none;
    }

    .toggler--hidden {
        display: none;
    }
}

.input-range {
    opacity: 0;
}

.input-range2 {
    opacity: 0;
}

@media (max-width: 768px) {
    .irs--round {
    display: none;  
    }

    .with-sidebar .icon {
        display: flex;
        transform: rotate(180deg);
    }
}

.sidebar-toggle .icon {
    display: none;
}

  .with-sidebar .icon {
        display: flex;
    }