/* Каталог жилья (yctp-*) — стили перенесены дословно из сниппета 1061.
   Slick заменён на Swiper: правила .slick-* продублированы для .swiper-*. */

:root {
    --yctp-primary-color: #037fff;
    --color1: #037fff;
    --pricing-padding: 0 15px 24px 37px;
    --pricing-margin-right: 15px;
}
.yctp-container *, .yctp-card *, .yctp-image-slider *,
.yctp-card__gallery *, .yctp-card__info * { backface-visibility: hidden; }

#primary #main .yctp-container * { font-family: 'Open Sans', sans-serif; }

/* Сбрасываем ограничение #primary из темы — ширину контролирует .yctp-container */
#primary.site-main {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.yctp-container {
    --bs-gutter-x: 1.5rem; width: 100%; max-width: 1190px;
    margin-right: auto; margin-left: auto;
    padding-left: 15px; padding-right: 15px;
    box-sizing: border-box;
}
.yctp-container .row {
    --bs-gutter-x: 1.5rem; --bs-gutter-y: 0;
    display: flex; flex-wrap: wrap;
    margin-right: calc(-.5 * var(--bs-gutter-x)); margin-left: calc(-.5 * var(--bs-gutter-x));
}
.yctp-container .row > * { flex-shrink: 0; width: 100%; max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); }
.yctp-container .g-0 { --bs-gutter-x: 0; --bs-gutter-y: 0; }

.yctp-card .col-lg-4, .yctp-card .col-md-4 { width: 299px !important; max-width: 299px !important; }
.yctp-card .col-lg-5, .yctp-card .col-md-5 { width: 37% !important; }
.yctp-card .col-lg-3, .yctp-card .col-md-3 { width: 30% !important; margin-left: auto; padding-right: 15px !important; }

.yctp-card .row { 
    margin: 0 !important; 
    height: 100% !important; 
    justify-content: space-between !important; 
    overflow: hidden !important; 
}

/* Bootstrap утилиты внутри yctp-card (для независимости от bootstrap.css) */
.yctp-card .d-flex { display: flex !important; }
.yctp-card .d-none { display: none !important; }
.yctp-card .d-md-flex { display: flex !important; }
.yctp-card .align-items-center { align-items: center !important; }
.yctp-card .justify-content-between { justify-content: space-between !important; }
.yctp-card .justify-content-center { justify-content: center !important; }
.yctp-card .flex-column { flex-direction: column !important; }
.yctp-card .text-end { text-align: right !important; }
.yctp-card .fw-bold { font-weight: 700 !important; }
.yctp-card .text-dark { color: #1D1D1F !important; }
.yctp-card .text-muted { color: #6c757d !important; }
.yctp-card .small { font-size: 0.875em !important; }
.yctp-card .mb-0 { margin-bottom: 0 !important; }
.yctp-card .mb-1 { margin-bottom: 0.25rem !important; }
.yctp-card .mb-2 { margin-bottom: 0.5rem !important; }
.yctp-card .mb-4 { margin-bottom: 1.5rem !important; }
.yctp-card .p-0 { padding: 0 !important; }
.yctp-card .p-3 { padding: 1rem !important; }
.yctp-card .ps-3 { padding-left: 1rem !important; }
.yctp-card .pe-2 { padding-right: 0.5rem !important; }
.yctp-card .gap-1 { gap: 0.25rem !important; }
.yctp-card .gap-2 { gap: 0.5rem !important; }
.yctp-card .w-100 { width: 100% !important; }
.yctp-card .h-100 { height: 100% !important; }

.yctp-card {
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100% !important; max-width: 100% !important;
    margin: 0 auto 1.5rem auto !important; overflow: hidden !important;
    height: 260px !important; border-radius: 4px !important; background-color: #EFF0F1;
    padding: 1rem;
    box-sizing: border-box !important;
}
.yctp-card-featured { overflow: visible !important; }
.yctp-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.15); }

.yctp-card__gallery { position: relative; height: 225px !important; width: 299px !important; border-radius: 4px !important; overflow: visible !important; }
.yctp-card__info { padding: 0 1.5rem 1.5rem 1.5rem !important; padding-top: 0 !important; display: flex; flex-direction: column; box-sizing: border-box; height: 230px !important; position: relative; }

.yctp-card__pricing {
    background-color: #EFF0F1; border-radius: 9px; padding: 8px 15px 8px 24px !important;
    position: relative; height: 200px !important; width: 100% !important; box-sizing: border-box;
    margin-left: auto !important; overflow: visible !important; display: flex !important; flex-direction: column !important;
}
.yctp-card__pricing table { height: 100% !important; display: flex !important; flex-direction: column !important; border-collapse: collapse; margin-bottom: 0 !important; }
.yctp-card__pricing tbody { display: flex !important; flex-direction: column !important; justify-content: space-between !important; height: 100% !important; }
.yctp-card__pricing tbody tr { flex: 1 !important; display: flex !important; align-items: center !important; border-bottom: 1px solid #D9D9D9; }
.yctp-card__pricing tbody tr:last-child { border-bottom: none; }
.yctp-card__pricing tbody td { flex: 1 !important; display: flex !important; align-items: center !important; padding: 0 !important; font-size: 14px; font-weight: 400; color: #1D1D1F; line-height: 1.4; border: none; }
.yctp-card__pricing tbody td.text-end { justify-content: flex-end !important; text-align: right !important; }
.yctp-card__pricing tbody td:first-child { text-align: left !important; }

.yctp-card__inner { border-radius: 4px !important; overflow: hidden !important; height: 100%; }

/* Swiper-галерея карточки (замена slick) */
.yctp-card__gallery .yctp-image-slider,
.yctp-card__gallery .swiper { height: 100%; }
.yctp-card__gallery .swiper-slide { height: 100%; border-radius: 4px !important; overflow: hidden !important; }
.yctp-card__gallery .swiper-slide img { height: 225px; width: 299px; object-fit: cover !important; object-position: center !important; border-radius: 4px !important; display: block; }
.yctp-card__gallery .swiper-slide a { display: block; width: 100%; height: 100%; border-radius: 4px !important; overflow: hidden !important; }

.yctp-card__gallery-overlay-top { position: absolute; top: 1rem; left: 1rem; right: 1rem; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; z-index: 5; }
.yctp-card__gallery-overlay-top > * { pointer-events: auto; }
.yctp-card__gallery-overlay-top .badge { font-size: 13px !important; line-height: 18px; font-weight: 400; color: #777 !important; background-color: #fff !important; padding: 3px 12px; border-radius: 9999px; }
.yctp-card__gallery-overlay-top .yctp-fav-icon { width: 24px; height: 24px; }

.yctp-card__gallery-overlay-bottom { position: absolute; bottom: 8px; right: 8px; z-index: 10; pointer-events: none; }
.yctp-card__gallery-overlay-bottom > * { pointer-events: auto; }
.dot-indicators { display: flex; align-items: center; gap: 3px; }
.yctp-card .dot-indicators svg { width: 8px !important; height: 8px !important; flex-shrink: 0 !important; cursor: pointer; }

.price-header { display: flex; justify-content: space-between; margin-bottom: 6px; position: relative; }
.price-title, .price-value { font-size: 14px; font-weight: 400; color: #6c757d; }
.price-value { text-align: right; }
.vertical-divider { position: absolute; left: 0; top: 0; height: 233px; width: 1px; background: rgba(29,29,31,.15); z-index: 100; }

.yctp-address-link { margin: 0 0 10px 0 !important; color: #037FFF; display: flex; align-items: center; cursor: pointer; font-size: 14px; gap: 4px; }
.yctp-card__rating { line-height: 1.2; }
.yctp-card__rating .rating-val { font-size: 16px; color: #000; margin: 0 8px; }
.yctp-card__rating .rating-sep { color: #949494; margin-right: 6px; }
.yctp-card__rating .rating-cnt { font-size: 16px; color: #949494; }
.yctp-card__waves { gap: 16px; }
.yctp-card__waves .yctp-wave, .yctp-card__waves .yctp-sea { font-size: 14px; color: #1D1D1F; }
.yctp-card__features { font-size: 14px; color: #1D1D1F; }
.yctp-card__btn-wrapper { position: absolute; bottom: 5px; left: 24px; }

/* Ограничение заголовка карточек жилья максимум в 2 строки с троеточием везде */
.yctp-card__title {
    margin: 0 0 8px 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}
.yctp-card__title,
.yctp-card__title a {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word;
}

.yctp-card__btn-wrapper .btn-primary { 
    color: #fff !important; 
    background-color: #0d6efd !important; 
    border-color: #0d6efd !important;
    width: 154px !important; 
    height: 33px !important; 
    font-size: 14px !important; 
    font-weight: 500 !important;
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    box-sizing: border-box !important; 
    padding: 0 !important; 
    border-radius: 4px !important; 
    text-decoration: none; 
}
.yctp-card__btn-wrapper .btn-primary:hover { 
    background-color: #0b5ed7 !important; 
}

.yctp-container .d-flex { display: flex !important; }
.yctp-container .flex-column { flex-direction: column !important; }

/* Страница /zhile-v-ejske/ — карточки типов жилья + карта (Сниппет 1322) */
.zhile-types-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0 36px 0;
}
.zhile-type-card {
    display: block;
    background: #e7e7e7;
    border-radius: 6px;
    overflow: hidden;
    padding: 4px;
    text-decoration: none !important;
    color: #000;
    position: relative;
    transition: all 0.3s ease;
}
.zhile-type-card:hover {
    background: #037fff;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
}
.zhile-type-img {
    display: block;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #EFF0F1;
    position: relative;
    border-radius: 4px;
}
.zhile-type-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.zhile-type-card:hover .zhile-type-img img {
    transform: scale(1.05);
}
.zhile-type-img .prelod-square {
    display: block;
    width: 100%;
    height: 100%;
    background: #EFF0F1 url(/assets/img/prelod.svg) center / 48px no-repeat;
}

/* Закладочка "Перейти" */
.zhile-type-bookmark {
    position: absolute;
    top: 8px;
    left: -80px;
    background: #037fff;
    color: #fff;
    padding: 5px 10px 5px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0 4px 4px 0;
    z-index: 10;
    transition: left 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    opacity: 0;
}
.zhile-type-card:hover .zhile-type-bookmark {
    left: 0;
    opacity: 1;
}

.zhile-type-content {
    padding: 12px 10px 10px 10px;
    position: relative;
}

.zhile-type-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: inherit;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 6px;
}

/* Индикатор количества объектов */
.zhile-type-count {
    position: absolute;
    top: -12px;
    right: 8px;
    background: rgba(3, 127, 255, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 22px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    transition: background 0.3s ease, color 0.3s ease;
}
.zhile-type-card:hover .zhile-type-count {
    background: rgba(255, 255, 255, 0.95);
    color: #037fff;
}

.zhile-type-description {
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    color: inherit;
    opacity: 0.8;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
.zhile-section-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 16px 0;
}
.zhile .yctp-inline-map,
.yctp-inline-map {
    width: 100%;
    height: 420px;
    border-radius: 8px;
    overflow: hidden;
    background: #e5e7eb;
    margin-bottom: 36px;
}
.zhile .yctp-inline-map .yctp-map-canvas,
.yctp-inline-map .yctp-map-canvas { width: 100%; height: 100%; }

@media (max-width: 1199px) {
    .zhile-types-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
    .zhile-types-grid { grid-template-columns: repeat(2, 1fr); }
    .yctp-inline-map { height: 340px; }
}
@media (max-width: 575px) {
    .zhile-types-grid { grid-template-columns: 1fr; gap: 16px; }
    .yctp-inline-map { height: 280px; }
}
.yctp-container .align-items-center { align-items: center !important; }
.yctp-container .text-muted { color: #6c757d !important; }
.yctp-container .mb-2 { margin-bottom: .5rem !important; }

.stars { display: inline-flex; gap: 2px; }
.stars .star { width: 12px; height: 12px; background: rgba(255,136,0,.35); clip-path: polygon(50% 0,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); display: inline-block; }
.stars .star--on { background: #FF8800; }

/* Верх страницы */
.yctp-title, .yctp-category-header h1 { font-size: 40px; font-weight: 600; color: #1D1D1F; margin: 0 0 12px; }

/* Описание категории (типа жилья) */
.yctp-category-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: rgba(29, 29, 31, 0.76);
    max-width: 1198px;
    margin-bottom: 1.5rem;
}



/* Спиннер ленивой загрузки (из сниппета 1061) */
.yctp-loader-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #037fff;
    border-radius: 50%;
    animation: yctp-spin 1s linear infinite;
}
#yctp-load-more {
    margin-top: 24px;
}

/* Дополнительные настройки кнопок действий; общие стили заданы ниже. */


.yctp-map-button {
    width: 304px;
    height: 37px;
    background-color: #f8f9fa;
    color: #4F4F4F;
    border: 1px solid #dee2e6;
}

.yctp-add-button {
    width: 304.5px;
    height: 37px;
    background-color: #037fff;
    color: white;
    border: 1px solid #037fff;
    gap: 6px;
}

.yctp-add-icon {
    vertical-align: middle;
}

/* Скрываем мобильные блоки на десктопе */
.yctp-mobile-guests-sea,
.yctp-mobile-price-range {
    display: none;
}

/* Старые стили панели фильтров удалены в пользу 1061 сниппета */

.breadcrumbs, .yctp-breadcrumbs { font-size: 15px; color: #666; }
.breadcrumbs a { color: #037fff; text-decoration: none; }

.yctp-pagination { display: flex; gap: 8px; margin: 30px 0; justify-content: center; }
.yctp-pagination .page-num { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; color: #333; }
.yctp-pagination .page-num.current { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.yctp-empty { padding: 40px 0; color: #666; }

/* Модальная карта */
.yctp-map-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10000; display: none; }
.yctp-map-modal.active { display: block; }
.yctp-map-modal-inner { position: absolute; inset: 40px; background: #fff; border-radius: 8px; overflow: hidden; }
.yctp-map-close { position: absolute; top: 8px; right: 12px; z-index: 10; font-size: 30px; background: none; border: none; cursor: pointer; }
.yctp-map-canvas { width: 100%; height: 100%; }

/* Маркеры карты */
.yctp-custom-marker .ymarker { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: #037fff; color: #fff; border-radius: 50%; font-size: 12px; font-weight: 700; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.yctp-custom-marker .ymarker--featured { background: #ff6b35; }

/* Поведение для iPhone 5 (экраны до 320px включительно) */
.yctp-mobile-guests.yctp-mobile-guests--iphone5,
.yctp-mobile-sea.yctp-mobile-sea--iphone5,
.yctp-mobile-price-range.yctp-mobile-price-range--iphone5 {
    display: none !important;
}

@media screen and (max-width: 320px) {
    .yctp-mobile-guests.yctp-mobile-guests--normal,
    .yctp-mobile-sea.yctp-mobile-sea--normal,
    .yctp-mobile-price-range.yctp-mobile-price-range--normal {
        display: none !important;
    }
    .yctp-mobile-guests.yctp-mobile-guests--iphone5,
    .yctp-mobile-sea.yctp-mobile-sea--iphone5 {
        display: inline-flex !important;
    }
    .yctp-mobile-price-range.yctp-mobile-price-range--iphone5 {
        display: block !important;
    }
}

/* ===== АДАПТАЦИЯ ПОД МОБИЛЫ (только до 767px, на планшетах >=768px — 1-в-1 как на ПК) ===== */
@media screen and (max-width: 767px) {
    .yctp-card { height: auto !important; min-height: auto !important; padding: 12px !important; margin-bottom: 20px !important; border-radius: 8px !important; }
    .yctp-card .row { flex-direction: column !important; height: auto !important; --bs-gutter-y: 0 !important; margin-top: 0 !important; }
    .yctp-card .row > * { margin-top: 0 !important; }
    
    .yctp-card .col-lg-4, .yctp-card .col-lg-5, .yctp-card .col-lg-3,
    .yctp-card .col-md-4, .yctp-card .col-md-5, .yctp-card .col-md-3 { width: 100% !important; max-width: 100% !important; }
    .yctp-card__gallery { width: 100% !important; height: auto !important; aspect-ratio: 16 / 10 !important; border-radius: 8px !important; min-height: 0 !important; }
    .yctp-card__gallery .swiper-slide img { width: 100% !important; height: 100% !important; aspect-ratio: 16 / 10 !important; border-radius: 8px !important; object-fit: cover !important; object-position: center !important; min-height: 0 !important; }
    
    /* Инфо колонка */
    .yctp-card__info { display: flex !important; flex-direction: column !important; padding: 0 !important; gap: 0 !important; height: auto !important; min-height: auto !important; max-height: none !important; }
    
    /* Порядок и аккуратные симметричные отступы элементов в инфо на мобильных */
    .yctp-card__title { display: -webkit-box !important; order: 1 !important; margin: 16px 0 10px 0 !important; font-size: 17px !important; font-weight: 600 !important; line-height: 1.3 !important; }
    .yctp-card__title a { color: #1D1D1F !important; text-decoration: none !important; }
    .yctp-card__info p.yctp-address-link { display: flex !important; order: 2 !important; margin: 0 0 10px 0 !important; font-size: 14px !important; }
    .yctp-card__info .d-flex.align-items-center.mb-2 { order: 3 !important; margin: 0 0 10px 0 !important; padding: 0 !important; justify-content: flex-start !important; }
    .yctp-mobile-guests-sea { display: flex !important; gap: 15px !important; align-items: center !important; order: 4 !important; margin: 0 0 12px 0 !important; font-size: 16px !important; color: #1D1D1F !important; }
    .yctp-mobile-guests-sea svg { width: 20px !important; height: 20px !important; margin-right: 5px !important; transform: translateY(2px) !important; }
    
    /* Скрываем старые десктопные элементы на мобильных */
    .yctp-card__features, .yctp-desktop-sea, .yctp-card__btn-wrapper { display: none !important; }
    
    /* Блок цен */
    .yctp-card .col-lg-3, .yctp-card .col-md-3 { order: 5 !important; margin: 0 !important; padding: 0 !important; }
    .vertical-divider, .price-header { display: none !important; }
    .yctp-card__pricing { height: auto !important; background: transparent !important; border-radius: 0 !important; display: block !important; padding: 0 !important; margin: 0 !important; }
    .yctp-card__pricing table { display: none !important; }
    
    /* Показываем мобильный диапазон цен */
    .yctp-mobile-price-range { display: block !important; font-size: 18px !important; color: #1D1D1F !important; margin: 0 !important; padding: 0 !important; text-align: left !important; width: 100% !important; }
    .yctp-mobile-price-range .price-from-to { font-weight: 600 !important; color: #000 !important; }
    .yctp-mobile-price-range .price-period { font-weight: 400 !important; color: #666 !important; }
    
    /* Заголовок страницы */
    .yctp-title, .yctp-category-header h1 { font-size: 28px; }
    .yctp-map-modal-inner { inset: 10px; }
}

/* ===== АДАПТАЦИЯ ДЛЯ ПЛАНШЕТОВ (768px - 991px): фотка шире (320px), колонку цен скрываем ===== */
@media screen and (min-width: 768px) and (max-width: 991px) {
    .yctp-card .col-lg-4, .yctp-card .col-md-4 { width: 320px !important; max-width: 320px !important; }
    .yctp-card__gallery { width: 320px !important; height: 225px !important; }
    .yctp-card__gallery .swiper-slide img { width: 320px !important; height: 225px !important; }
    
    /* Скрываем колонку цен на планшетах */
    .yctp-card .col-lg-3, .yctp-card .col-md-3 { display: none !important; }
    
    /* Инфо колонка занимает всё оставшееся место */
    .yctp-card .col-lg-5, .yctp-card .col-md-5 { width: calc(100% - 320px) !important; flex: 1 1 auto !important; min-width: 0 !important; }
    .yctp-card__info { padding-left: 20px !important; padding-right: 15px !important; }
    .yctp-card__title { font-size: 17px !important; margin-bottom: 8px !important; }
    .yctp-card__btn-wrapper { padding-left: 20px !important; }
}

/* Стили для стрелок Swiper на ПК (и в карточках, и в попапах) */
.yctp-image-slider .swiper-button-prev,
.yctp-image-slider .swiper-button-next,
.yctp-popup-image-slider .swiper-button-prev,
.yctp-popup-image-slider .swiper-button-next {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background-color: rgba(29, 29, 31, 0.4) !important;
    transition: background-color 0.3s ease !important;
    z-index: 10 !important;
    margin-top: 0 !important;
}
.yctp-image-slider .swiper-button-prev::after,
.yctp-image-slider .swiper-button-next::after,
.yctp-popup-image-slider .swiper-button-prev::after,
.yctp-popup-image-slider .swiper-button-next::after {
    display: none !important;
}
.yctp-image-slider .swiper-button-prev,
.yctp-popup-image-slider .swiper-button-prev {
    left: 1rem !important;
    background: rgba(29, 29, 31, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 12 20' fill='none'%3E%3Cpath d='M10.5 1.5L2 10L10.5 18.5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 8px 14px !important;
}
.yctp-image-slider .swiper-button-next,
.yctp-popup-image-slider .swiper-button-next {
    right: 1rem !important;
    background: rgba(29, 29, 31, 0.4) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='16' viewBox='0 0 12 20' fill='none'%3E%3Cpath d='M1.5 1.5L10 10L1.5 18.5' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 8px 14px !important;
}
.yctp-image-slider .swiper-button-prev:hover,
.yctp-image-slider .swiper-button-next:hover,
.yctp-popup-image-slider .swiper-button-prev:hover,
.yctp-popup-image-slider .swiper-button-next:hover {
    background-color: rgba(29, 29, 31, 0.7) !important;
}

/* Рекомендуемое жилье: анимированная обводка и оранжевая звезда */
.yctp-card-featured {
    outline: 1px solid transparent !important;
    outline-offset: 0px !important;
    position: relative;
}
.yctp-card-featured.yctp-animation-completed {
    outline: 1px solid #ff6b35 !important;
}
.yctp-card-featured::after {
    content: "" !important;
    position: absolute !important;
    top: -10px !important;
    right: -10px !important;
    width: 20px !important;
    height: 20px !important;
    background: #ff6b35 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z'/%3E%3C/svg%3E") no-repeat center / 12px 12px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    z-index: 10 !important;
}

.yctp-card-featured.yctp-loading-animation {
    position: relative;
    outline: 1px solid transparent !important;
}
.yctp-card-featured.yctp-loading-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #ff6b35;
    border-radius: 8px;
    z-index: 1;
    clip-path: inset(0 100% 100% 0);
    animation: yctp-smooth-border-draw 3s linear forwards;
}

@keyframes yctp-smooth-border-draw {
    0% { clip-path: polygon(100% 0%, 100% 0%, 100% 0%, 100% 0%); }
    2% { clip-path: polygon(100% 0%, 100% 5%, 100% 5%, 100% 0%); }
    5% { clip-path: polygon(100% 0%, 100% 15%, 100% 15%, 100% 0%); }
    8% { clip-path: polygon(100% 0%, 100% 25%, 100% 25%, 100% 0%); }
    12% { clip-path: polygon(100% 0%, 100% 40%, 100% 40%, 100% 0%); }
    16% { clip-path: polygon(100% 0%, 100% 55%, 100% 55%, 100% 0%); }
    20% { clip-path: polygon(100% 0%, 100% 70%, 100% 70%, 100% 0%); }
    24% { clip-path: polygon(100% 0%, 100% 85%, 100% 85%, 100% 0%); }
    25% { clip-path: polygon(100% 0%, 100% 100%, 100% 100%, 100% 0%); }
    27% { clip-path: polygon(100% 0%, 100% 100%, 95% 100%, 100% 0%); }
    30% { clip-path: polygon(100% 0%, 100% 100%, 85% 100%, 100% 0%); }
    34% { clip-path: polygon(100% 0%, 100% 100%, 70% 100%, 100% 0%); }
    38% { clip-path: polygon(100% 0%, 100% 100%, 55% 100%, 100% 0%); }
    42% { clip-path: polygon(100% 0%, 100% 100%, 40% 100%, 100% 0%); }
    46% { clip-path: polygon(100% 0%, 100% 100%, 25% 100%, 100% 0%); }
    49% { clip-path: polygon(100% 0%, 100% 100%, 10% 100%, 100% 0%); }
    50% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 100% 0%); }
    52% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 95%); }
    55% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 85%); }
    59% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 70%); }
    63% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 55%); }
    67% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 40%); }
    71% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 25%); }
    74% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 10%); }
    75% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%); }
    77% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 5% 0%); }
    80% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 15% 0%); }
    84% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 30% 0%); }
    88% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 45% 0%); }
    92% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 60% 0%); }
    96% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 75% 0%); }
    99% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 90% 0%); }
    100% { clip-path: polygon(100% 0%, 100% 100%, 0% 100%, 0% 0%, 100% 0%); }
}

/* Легенда на карте */
.yctp-map-floating-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 700;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 8px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.8);
}
.yctp-legend-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.yctp-marker-featured {
    background: #ffffff;
    border: 2px solid #ff6b35;
}

/* Стили для интерфейса администратора на карте */
.yctp-admin-map-controls {
    position: absolute;
    bottom: 80px;
    left: -320px;
    z-index: 800;
    background: white;
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.2);
    padding: 12px;
    width: 280px;
    font-size: 14px;
    transition: left 0.3s ease;
    box-sizing: border-box;
}

.yctp-admin-map-controls.active {
    left: 0;
}

.yctp-admin-map-controls h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #037fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yctp-admin-map-controls h4 .yctp-close-panel {
    cursor: pointer;
    font-size: 18px;
    color: #999;
}

.yctp-admin-map-controls h4 .yctp-close-panel:hover {
    color: #555;
}

.yctp-admin-map-controls p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #555;
}

.yctp-marker-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.yctp-marker-form label {
    font-weight: 500;
    font-size: 13px;
}

.yctp-marker-form input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.yctp-marker-form .yctp-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 5px 0;
}

.yctp-marker-form .yctp-checkbox-wrapper input[type="checkbox"] {
    margin: 0;
    padding: 0;
    width: auto;
}

/* Стили для контекстного меню маркера */
.yctp-marker-context-menu {
    position: absolute;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 12px;
    min-width: 180px;
    z-index: 1000;
    font-size: 13px;
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    box-sizing: border-box;
}

.yctp-marker-context-menu h5 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.yctp-marker-context-menu .yctp-context-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yctp-marker-context-menu button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    text-align: left;
    background: #f8f9fa;
    transition: all 0.2s ease;
    font-weight: 500;
    width: 100%;
}

.yctp-marker-context-menu button:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.yctp-marker-context-menu button.yctp-featured-btn {
    color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

.yctp-marker-context-menu button.yctp-featured-btn:hover {
    background: rgba(255, 107, 53, 0.2);
}

.yctp-marker-context-menu button.yctp-normal-btn {
    color: #037fff;
    background: rgba(3, 127, 255, 0.1);
}

.yctp-marker-context-menu button.yctp-normal-btn:hover {
    background: rgba(3, 127, 255, 0.2);
}

.yctp-marker-context-menu button.yctp-delete-marker-btn {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.yctp-marker-context-menu button.yctp-delete-marker-btn:hover {
    background: rgba(220, 53, 69, 0.2);
}

@media (max-width: 768px) {
    .yctp-admin-map-controls {
        max-width: 280px;
        width: 280px;
        bottom: 80px;
        top: auto;
    }
}

/* ===== ДЕСКТОПНЫЕ СТИЛИ ФИЛЬТРА (из сниппета 1061) ===== */
#yctp-filter-panel {
    background-color: #EFF0F1;
    padding: 20px 20px 16px 20px !important;
    margin-top: 0;
    margin-bottom: 24px;
    border-radius: 8px;
    height: auto !important;
    box-sizing: border-box;
    overflow: visible;
}

.yctp-action-buttons {
    display: flex;
    gap: 25px;
    justify-content: flex-end;
    margin-bottom: 19px;
}

.yctp-action-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    line-height: 1.2;
}

.yctp-map-button {
    width: 304px;
    height: 37px;
    background-color: #f8f9fa;
    color: #4F4F4F;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yctp-map-button:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.yctp-add-button {
    width: 304.5px;
    height: 37px;
    background-color: #037fff;
    color: white;
    border: 1px solid #037fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.yctp-add-button:hover {
    background-color: #0366d6;
    border-color: #0366d6;
    transform: translateY(-1px);
}

.yctp-add-icon {
    vertical-align: middle;
    margin-right: 2px;
    position: relative;
    top: -1px;
}

.yctp-filters-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px !important;
}

.yctp-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yctp-filter-item label {
     font-size: 16px;
     color: #6c757d;
     white-space: nowrap;
}

.yctp-filter-item input,
.yctp-filter-item select {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    background-color: #fff;
    height: 40px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.yctp-object-id-filter input {
    width: 52px;
    height: 37px;
    padding: 4px 8px;
    text-align: center;
    border-radius: 4px;
}

.yctp-filter-item select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

#yctp-object-id-filter,
#yctp-category-switcher,
#yctp-district-filter {
    border: none !important;
    box-shadow: none !important;
}

.yctp-category-filter,
.yctp-district-filter {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: 455px !important;
}

.yctp-category-filter select,
.yctp-district-filter select {
    width: 100% !important;
    min-width: 100% !important;
    height: 37px !important;
    box-sizing: border-box !important;
}

/* ===== МОБИЛЬНЫЕ СТИЛИ ФИЛЬТРА (из сниппета 1061) ===== */
@media (max-width: 991px) {
    #yctp-filter-panel {
        background-color: #EFF0F1;
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 8px;
        height: auto !important;
        min-height: 120px;
        box-sizing: border-box;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .yctp-filters-top {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }

    .yctp-category-filter,
    .yctp-district-filter {
        width: 100% !important;
    }

    .yctp-filter-item {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .yctp-object-id-filter {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .yctp-object-id-filter label {
        white-space: nowrap;
        margin: 0 !important;
        font-size: 16px !important;
        color: #6c757d !important;
        font-weight: 400 !important;
    }

    .yctp-object-id-filter input {
        width: 55px !important;
        height: 37px !important;
        padding: 4px 8px !important;
        border-radius: 2px !important;
        text-align: center !important;
        flex-shrink: 0;
    }

    .yctp-filter-item label {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    .yctp-filter-item input[type="text"] {
        width: 100%;
        padding: 10px 12px;
        font-size: 18px;
        border: 1px solid #ced4da;
        border-radius: 2px;
        background-color: #fff;
        color: #333;
        box-sizing: border-box;
        height: 48px;
    }

    .yctp-filter-item select {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 18px !important;
        border: 1px solid #ced4da !important;
        border-radius: 2px !important;
        background-color: #fff !important;
        color: #333 !important;
        box-sizing: border-box !important;
        height: 48px !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
        background-repeat: no-repeat !important;
        background-position: right 12px center !important;
        background-size: 16px 12px !important;
        padding-right: 40px !important;
    }

    .yctp-slider-filter {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
        align-items: flex-start;
    }

    .yctp-slider-filter label {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }

    #yctp-sea-distance-slider-container {
        padding-top: 25px;
        padding-bottom: 10px;
        width: 100%;
        flex-grow: unset;
    }

    #yctp-sea-distance-slider-container::before {
        top: 34px;
    }

    #yctp-progress-line {
        top: 34px;
    }

    #yctp-sea-distance-slider-container .minute-ticks,
    #yctp-sea-distance-slider-container .main-ticks {
        top: 34px;
    }

    .yctp-action-buttons {
        display: flex !important;
        order: 999;
        flex-direction: column !important;
        gap: 10px !important;
        margin: 15px 0 0 0 !important;
    }

    .yctp-map-button,
    .yctp-add-button {
        width: 100% !important;
        min-width: unset !important;
        height: 48px !important;
        font-size: 18px !important;
        justify-content: center !important;
    }
}

/* Фикс z-index для кнопок закрытия карты, чтобы они не перекрывались слоями Leaflet */
.yctp-map-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20000 !important;
    color: #333 !important;
    background: white !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    font-weight: bold !important;
    border: 1px solid #ddd !important;
    font-size: 22px !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

.combined-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20000 !important;
    color: #333 !important;
    background: white !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
    font-size: 22px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    padding: 0 !important;
    cursor: pointer !important;
    border: 1px solid #ddd !important;
}

.combined-close:hover {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.yctp-map-close:hover {
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* ===== МОБИЛЬНАЯ ПАНЕЛЬ ИНФОРМАЦИИ О МАРКЕРЕ ===== */
.yctp-mobile-info-panel {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 1000005;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 70vh;
    overflow-y: auto;
    padding: 0;
}
.yctp-mobile-info-panel.open {
    display: block !important;
    transform: translateY(0) !important;
}
.yctp-mobile-info-panel-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    cursor: pointer;
    flex-shrink: 0;
}
.yctp-mobile-info-panel-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}
.yctp-mobile-info-panel-content {
    padding: 0 16px 20px;
    font-family: 'Open Sans', sans-serif;
}
.yctp-mobile-info-panel-content img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}
.yctp-mobile-panel-slider {
    position: relative;
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.yctp-mobile-panel-slider .swiper-slide {
    width: 100%;
    height: 180px;
}
.yctp-mobile-panel-slider .swiper-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 0;
}
.yctp-mobile-panel-slider .swiper-button-prev,
.yctp-mobile-panel-slider .swiper-button-next {
    color: #fff;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
}
.yctp-mobile-panel-slider .swiper-button-prev::after,
.yctp-mobile-panel-slider .swiper-button-next::after {
    font-size: 12px;
    font-weight: bold;
}
.yctp-mobile-panel-slider .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
}
.yctp-mobile-panel-slider .swiper-pagination-bullet-active {
    background: #037fff;
    opacity: 1;
}
.yctp-mobile-info-panel-content h4 {
    margin: 0 0 8px;
    color: #1d1d1f;
    font-size: 17px;
    font-weight: 600;
}
.yctp-mobile-info-panel-content .info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
    font-size: 13px;
    color: #555;
}
.yctp-mobile-info-panel-content .info-row svg {
    flex-shrink: 0;
}
.yctp-mobile-info-panel-content .btn-more {
    display: block;
    background: #037fff;
    color: white;
    text-align: center;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
}
.yctp-mobile-info-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    background: #f0f0f0;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #555;
    line-height: 1;
    z-index: 10;
}



/* ===== СЛАЙДЕР РАССТОЯНИЯ ДО МОРЯ В ФИЛЬТРЕ (точно как в сниппете 1061) ===== */
.yctp-slider-filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 0 !important;
    width: 100%;
}

.yctp-slider-filter label {
    white-space: nowrap;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #6c757d;
    flex-shrink: 0;
}

#yctp-sea-distance-slider-container {
    position: relative;
    flex-grow: 1;
    padding-top: 16px !important;
    margin-bottom: 0;
}

#yctp-sea-distance-value {
    position: absolute;
    top: -4px;
    font-weight: 500;
    color: #037fff;
    white-space: nowrap;
    pointer-events: none;
    font-size: 14px;
    text-align: center;
    min-width: 60px;
    transform: translateX(-50%);
}

/* Серая базовая линия */
#yctp-sea-distance-slider-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 27px;
    width: 100%;
    height: 1px;
    background: #9D9D9D;
    pointer-events: none;
    z-index: 1;
}

/* Мелкие риски каждую минуту */
#yctp-sea-distance-slider-container .minute-ticks {
    position: absolute;
    left: 0;
    right: 0;
    top: 27px;
    height: 5px;
    background-image: linear-gradient(to right, #9D9D9D 1px, transparent 1px);
    background-size: 3.333% 5px;
    background-repeat: repeat-x;
    pointer-events: none;
    z-index: 1;
}

/* Основные отметки (0, 5, 10, 15, 20, 25, 30) */
#yctp-sea-distance-slider-container .main-ticks {
    position: absolute;
    left: 0;
    right: 0;
    top: 27px;
    height: 8px;
    background-color: transparent;
    background-image:
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px),
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px),
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px),
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px),
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px),
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px),
        linear-gradient(to bottom, #9D9D9D 0, #9D9D9D 8px);
    background-position: 0% 0, 16.666% 0, 33.333% 0, 50% 0, 66.666% 0, 83.333% 0, 100% 0;
    background-repeat: no-repeat;
    background-size: 2px 8px, 2px 8px, 2px 8px, 2px 8px, 2px 8px, 2px 8px, 2px 8px;
    pointer-events: none;
    z-index: 2;
}

/* Синяя линия прогресса */
#yctp-progress-line {
    position: absolute;
    left: 0;
    top: 27px;
    height: 2px;
    background: #037fff;
    pointer-events: none;
    z-index: 2;
    transition: width 0.3s ease;
}

/* Input[range] — прозрачный трек, только thumb */
#yctp-sea-distance-filter {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 30px;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: all 0.2s ease;
    position: relative;
    z-index: 100;
}

#yctp-sea-distance-filter::-webkit-slider-runnable-track {
    height: 2px;
    background: transparent;
    border: none;
}
#yctp-sea-distance-filter::-moz-range-track {
    height: 2px;
    background: transparent;
    border: none;
}

#yctp-sea-distance-filter::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #037fff !important;
    cursor: pointer;
    border: 2px solid #ffffff !important;
    margin-top: -9px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    position: relative;
    z-index: 10 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#yctp-sea-distance-filter::-moz-range-thumb {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #037fff !important;
    cursor: pointer;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    position: relative;
    z-index: 10 !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#yctp-sea-distance-filter.moving::-webkit-slider-thumb {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #ffffff, 0 0 8px rgba(3, 127, 255, 0.5);
}
#yctp-sea-distance-filter.moving::-moz-range-thumb {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px #ffffff, 0 0 8px rgba(3, 127, 255, 0.5);
}

/* Кнопка "Добавить жильё" - красивый блок */
.housing-add-button {
    display: block;
    max-width: 600px;
    margin: 28px auto 2rem auto;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #037fff 0%, #0366d6 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(3, 127, 255, 0.25);
    text-decoration: none;
    color: white !important;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.housing-add-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.housing-add-button:hover::before {
    left: 100%;
}

.housing-add-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(3, 127, 255, 0.4);
    color: white !important;
    text-decoration: none;
}

.housing-add-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.housing-add-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.housing-add-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.housing-add-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

/* ==========================================================================
   СИСТЕМА ИЗБРАННОГО И СОРТИРОВКИ КАТАЛОГА ЖИЛЬЯ
   ========================================================================== */

/* Кнопка-сердечко в правом верхнем углу карточки */
.yctp-card__gallery-overlay-top {
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    right: 1rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    pointer-events: none !important;
    z-index: 25 !important;
}
.yctp-card__gallery-overlay-top > * {
    pointer-events: auto !important;
}

.yctp-favorite-btn {
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    margin: -6px -6px 0 auto !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 30 !important;
    pointer-events: auto !important;
    position: relative !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}
.yctp-favorite-btn:hover {
    transform: scale(1.18);
}
.yctp-favorite-btn:active {
    transform: scale(0.88);
}
.yctp-favorite-btn .yctp-fav-icon {
    display: block;
    pointer-events: none;
    transition: transform 0.25s ease;
}
.yctp-favorite-btn .yctp-fav-heart {
    fill: #FFFFFF !important;
    transition: fill 0.2s ease;
}
.yctp-favorite-btn.is-favorite .yctp-fav-heart {
    fill: #E63946 !important;
}
.yctp-favorite-btn.is-favorite .yctp-fav-icon {
    animation: yctpHeartPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes yctpHeartPop {
    0% { transform: scale(0.5); opacity: 0.5; }
    50% { transform: scale(1.28); }
    100% { transform: scale(1); opacity: 1; }
}

/* Панель сортировки каталога */
.yctp-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 14px;
}
.yctp-sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
}
.yctp-sort-select {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1D1D1F;
    background-color: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    padding: 7px 14px;
    cursor: pointer;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.yctp-sort-select:hover {
    border-color: #037FFF;
}
.yctp-sort-select:focus {
    border-color: #037FFF;
    box-shadow: 0 0 0 3px rgba(3, 127, 255, 0.15);
}

@media (max-width: 991px) {
    .yctp-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .yctp-sort-box {
        width: 100%;
        justify-content: space-between;
    }
    .yctp-sort-select {
        flex: 1;
        max-width: 260px;
    }
}

/* Раздел «Избранное» в личном кабинете */
.cabinet-favorites-container {
    width: 100%;
}
.cabinet-fav-group {
    margin-bottom: 36px;
}
.cabinet-fav-cat-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1D1D1F;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cabinet-fav-empty {
    text-align: center;
    padding: 60px 20px;
    background: #EFF0F1;
    border-radius: 12px;
}
.cabinet-fav-empty__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: auto !important;
    min-width: 220px !important;
    height: auto !important;
    min-height: 44px !important;
    padding: 11px 28px !important;
    border-radius: 8px !important;
    background: #037FFF !important;
    border: none !important;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(3, 127, 255, 0.28) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}
.cabinet-fav-empty__btn:hover {
    background: #0266cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(3, 127, 255, 0.38) !important;
    color: #ffffff !important;
}
.cabinet-fav-empty__btn:active {
    transform: translateY(0) !important;
}

/* Стили вкладки «Избранное» в личном кабинете */
.profile-container--favorites {
    max-width: 1320px !important;
}
.profile-container--favorites .yersk-cabinet-layout {
    grid-template-columns: 260px 1fr !important;
    gap: 24px !important;
}
.cabinet-content--favorites {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-height: auto !important;
}
.cabinet-content--favorites .cabinet-fav-cat-title {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #1D1D1F !important;
    margin: 0 0 16px 0 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #E2E8F0 !important;
}
.cabinet-content--favorites .yctp-card {
    margin-bottom: 20px !important;
}

/* Бейдж избранного в боковом меню кабинета */
.js-cabinet-fav-badge,
.cabinet-menu li a .js-cabinet-fav-badge,
.cabinet-menu li a:hover .js-cabinet-fav-badge,
.cabinet-menu li a.active .js-cabinet-fav-badge {
    background-color: #E63946 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    padding: 3px 7px !important;
    border-radius: 9999px !important;
    border: none !important;
    display: inline-block;
}






