
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px 20px!important;
    border: 1px solid var(--stroke_black);
    border-radius: 6px;
    margin-bottom: 20px;
    align-items: end;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.filter-group-custom {
    display: flex;
    flex-direction: column;
    min-width: 170px;
    flex-grow: 1;
    position: relative;
}

.filter-group-custom label {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1a1;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Триггер (видимое поле селекта) */
.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
    transition: all 0.2s;
    height: 40px;
    border: 1px solid var(--stroke_black);
}

.custom-select-trigger:hover {
    border-color: #bcbcbc;
}

.custom-select-trigger.active-open {
    border-color: #00b0b9;
    box-shadow: 0 0 0 2px rgba(0, 176, 185, 0.1);
}

.custom-select-trigger.trigger-disabled {
    cursor: not-allowed;
}

.custom-select-trigger span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 85%;
}

.custom-select-trigger .arrow-icon {
    color: #a1a1a1;
    transition: transform 0.2s;
}

.custom-select-trigger.active-open .arrow-icon {
    transform: rotate(180deg);
    color: #333;
}

/* Раскрывающийся список (окно меню) */
.custom-dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 240px;
    background: #fff;
    border: 1px solid #bcbcbc;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    margin-top: 5px;
    max-height: 280px;
    overflow-y: auto;
    box-sizing: border-box;
}

.custom-dropdown-list.open-show {
    display: block;
}

/* Элементы с чекбоксами (Тип точки) */
.dropdown-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13.5px;
    border-bottom: 1px solid #f7f7f7;
    font-weight: 600;
    color: var(--white_text_black, #333);
}

.dropdown-checkbox-item:last-child {
    border-bottom: none;
}

.dropdown-checkbox-item:hover {
    background: #f5f7f8;
}

.dropdown-checkbox-item input {
    width: 15px;
    height: 15px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.dropdown-checkbox-item img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Элементы ссылок (Страна и Регион) */
.custom-dropdown-list.list-links {
    padding: 5px 0;
}

.dropdown-link-item {
    padding: 9px 14px;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.15s;
    color: #333;
    font-weight: 500;
}

.dropdown-link-item:hover {
    background: #f5f7f8;
    color: #00b0b9;
}

.dropdown-link-item.active {
    background: #eafafb;
    color: #009eb2;
    font-weight: 700;
}

/* Инпут живого поиска с иконкой лупы */
.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    height: 40px;
    box-sizing: border-box;
}

.search-input-wrapper input:focus {
    border-color: #00b0b9;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #a1a1a1;
    pointer-events: none;
}

/* Кнопка Очистить/Сбросить со стрелкой */
.reset-filters-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 18px;
    flex-shrink: 0;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid var(--stroke_black);
}

.reset-filters-btn:hover {
    border-color: #bcbcbc;
}
.reset-filters-btn:hover svg{
    transform: rotate(-45deg);
}

.reset-filters-btn svg {
    width: 15px;
    height: 15px;
    transform: scaleX(-1);
    fill: var(--basic_text_black);
}


.toggle-view-btn {
    padding: 11px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    height: 40px;
    box-sizing: border-box;
}

.toggle-view-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.map-wrapper {
    display: flex;
    border: 1px solid #dbe7eb;
    border-radius: 4px;
    overflow: hidden;
}

.map-box-container {
    width: 100%;
    height: 500px;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 30px;
}

/* Метки и кластеры Яндекса */
.custom-ymap-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
}

.custom-ymap-marker::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 5px 0;
    border-style: solid;
    display: block;
    width: 0;
}

.custom-ymap-marker.type-dealer {
    background: #00b0b9;
}

.custom-ymap-marker.type-dealer::after {
    border-top-color: #00b0b9;
}

.custom-ymap-marker.type-profile {
    background: #2f3440;
}

.custom-ymap-marker.type-profile::after {
    border-top-color: #2f3440;
}

.custom-ymap-marker.type-shop {
    background: #8e8e8e;
}

.custom-ymap-marker.type-shop::after {
    border-top-color: #8e8e8e;
}

[class*="cluster-icon"] svg path[fill] {
    fill: #009eb2 !important;
}

[class*="cluster-icon"] svg path[stroke] {
    stroke: #ffffff !important;
}

[class*="cluster-icon"] {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ymap-custom-balloon {
    font-family: 'Open Sans', sans-serif;
    padding: 5px;
    min-width: 240px;
    max-width: 300px;
}

.ymap-balloon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 8px;
}

.ymap-balloon-header.col-dealer {
    color: #00b0b9;
}

.ymap-balloon-header.col-profile {
    color: #2f3440;
}

.ymap-balloon-header.col-shop {
    color: #8e8e8e;
}

.ymap-balloon-title, .ymap-balloon-address, .ymap-balloon-phone {
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.ymap-balloon-title {
    font-size: 15px;
    font-weight: 700;
}

.ymap-balloon-phone a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

/* Сетка Аспро карточек */
.cards-section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
    width: fit-content;
    color: var(--white_text_black);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.shop-card {
    border: 1px solid var(--stroke_black);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shop-card .card-name {
    color: var(--white_text_black) !important;
}

.card-top-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 15px;
}

.card-top-tag:before {
    content: '';
    border: 0.5px solid #ececec;
    border-color: var(--stroke_black);
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
}

.card-top-tag:after {
    content: '';
    border: 0.5px solid #ececec;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
}

.card-top-tag img {
    width: 50px;
    object-fit: contain;
    height: 60px;
    flex: 0 0 50px;
}

.card-top-tag span {
    flex: 1 1 auto;
}

.card-top-tag.tag-dealer {
    color: #00b0b9;
}

.card-top-tag.tag-dealer:after {
    border-color: #00b0b9;
}

.card-top-tag.tag-profile:after {
    border-color: #2f3440;
}

.card-top-tag.tag-shop:after {
    border-color: #8e8e8e;
}

.card-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}

.card-name svg {
    height: 14px;
    fill: var(--white_text_black);
    margin-top: 5px;
}

.card-info-item {
    font-size: 13px;
    color: var(--white_text_black);
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.card-info-item svg {
    height: 19px;
    margin-top: 4px;
    /*fill: var(--white_text_black);*/
}

.card-info-item.item-phone {
    margin-bottom: 5px;
}

.card-info-item.item-phone a {
    text-decoration: none;
    color: inherit;
}

.card-action-link {
    font-size: 12px;
    font-weight: 700;
    color: #00b0b9;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    margin-top: auto;
}

.card-action-link:hover {
    color: #00b0b9;
}

/* Стили плашек доп. услуг */
.card-services-block {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 5px 0;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
}
.service-badge img {
    flex: 0 0 16px;
    width: 16px;
}

.service-badge.badge-siding {
    color: #27ae60;
}

.service-badge.badge-facade {
    color: #d35400;
}

.service-badge svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}
