html {
    scroll-behavior: smooth;
}

.term-description__title h1 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.single-header__title__text {
    display: block;
    font-weight: 500;
    font-size: 30px;
    line-height: 1.3;
}

.single-aside__glamping-price__button h4 {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin: 10px 0 0;
}

.single-aside__glamping-price__button span {
    padding: 2px 4px;
    color: #fff;
}

.single-aside__glamping-price__button svg:focus {
    border: none;
    outline: none;
}

.glamping-price-mobile {
    top: auto;
    bottom: 0;
    margin: 0;
}

.glampings-items__item__img__fitems {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.glampings-items__item__img__featured {
    position: static;
}

/* Tippy */
.tippy-tooltip.tripinglamp-theme {
	border-radius: 4px;
  	background: var(--Gray-900, #1a2b48);
    font-family: 'Montserrat';
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    padding: 8px 12px;
    text-align: left;
}

.tippy-tooltip.tripinglamp-theme[data-animatefill] {
  background-color: transparent;
}

.tippy-tooltip.tripinglamp-theme .tippy-backdrop {
	background: var(--Gray-900, #1a2b48);
}

.h1 {
    display: block;
    font-size: 2em;
    margin: 0.67em 0;
    font-weight: bold;
}

.warning-file-list {
    display: none;
    font-weight: 500;
    color: red;
    margin-bottom: 10px;
}

.warning-file-list.active {
    display: block;
}

.statistics {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.statistics-item {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: calc((100% - 40px)/2);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d3d3d3;
}

.statistics-item__title h3 {
    margin: 0;
}

.statistics-item__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.statistics-item__info__item {
    display: flex;
    gap: 20px;
}

.statistics-item__info__item__label {
    font-weight: 600;
}

.statistics-item__info__item__value {
    font-size: 14px;
    font-weight: 600;
}

.glampings-items__item__content__reviews-stars {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.glampings-items__item__content__reviews-stars__count {
    display: flex;
    line-height: 1;
    /* margin-top: 2px; */
}

.glampings-items__item__content__reviews-stars__separator {
    display: flex;
}

.glampings-items__item__content__reviews-count {
    line-height: 1;
}

.single-header__rating {
    position: relative;
}

.link-reviews {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.book-link-type {
    display: block;
    font-size: 16px;
    padding: 12px 25px;
    border-radius: 4px;
    color: var(--color-bg);
    background: var(--link-color);
    text-decoration: none;
    text-align: center;
}

.container-with-sitebar-right .single-article__thumbnail-bottom {
    gap: 20px;
}

.term-tag-link {
    margin-top: 20px;
}

.term-tag-link .item-category {
    padding: 0;
}

.single-aside__glamping-price {
    flex-wrap: wrap;
}

.promocod {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
}

.promocod-cod {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promocod-cod span {
    color: #FFFFFF;
    padding: 2px 4px;
    border-radius: 4px;
    background: #f44;
    font-weight: 600;
    font-size: 13px;
}

.site-main-article__top__count {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.site-main-article__top__button {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--link-color);
}

.site-main-article__top__button:hover {
    color: var(--text-color);
}

.site-main-article__top__button:hover svg path {
    fill: var(--text-color);
}

.item-location {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 20px;
}

.item-category {
    padding: 20px 0 20px;
}

/* Map */
.map-wrap {
    width: 100%;
    height: 0;
    overflow: hidden;
}

.map-wrap.active {
    height: 600px;
    margin-bottom: 20px;
}

.map {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.glc-icon-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 22px;
    background: #FFFFFF; /*var(--color-svg-form); */
    border-radius: 12px;
    border: 1px solid var(--link-color);
    font-weight: 600;
    color: var(--link-color);
}
/* rgb(70, 122, 60) */

.glc-icon-content:before {
	content: "";
	border: solid transparent;
	position: absolute;
 	top: 100%;
	left: 50%;
	border-top-color: var(--link-color);
	border-width: 4px;
	margin-left: -4px;
}

.glc-icon-content.active {
    background: var(--link-color);
    color: #fff;
    z-index: 99;
}

.glc-icon-content.active:before {
	border-top-color: var(--link-color);
}


.glc-icon-content.focus {
    background: var(--link-color);
    color: #fff;
    z-index: 99;
}

.glc-icon-content.focus:before {
	border-top-color: var(--link-color);
}


.ymaps-2-1-79-balloon {
    border-radius: 12px;
    font-family: "Roboto", sans-serif;
    line-height: 1.2;
}

.ymaps-2-1-79-balloon .ymaps-2-1-79-balloon__content {
    font: 13px / 20px Roboto, sans-serif;
}

.ymaps-2-1-79-balloon.ymaps-2-1-79-balloon_layout_panel {
    border-radius: 0;
}

.ymaps-2-1-79-balloon .ymaps-2-1-79-balloon__layout {
    border-radius: 12px;
}

.balloon-content-body {
    display: flex;
    gap:  8px;
    height: 100%;
}

.balloon-content-body__img {
    flex: none;
    display: flex;
    height: fit-content;
    border-radius: 8px;
    overflow: hidden;
}

.balloon-content-body__content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
}

.balloon-content-body__content__title a {
    font-size: 120%;
    font-weight: 700;
    color: var(--link-color);
    text-decoration: none;
}

.balloon-content-body__content__title a:hover {
    color: var(--text-color);
}

.balloon-content-body__content__address {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color-light);
}

.balloon-content-body__content__rating-price {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.balloon-content-body__content__rating-price__rating {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.balloon-content-body__content__rating-price__price {
    font-size: 120%;
    font-weight: 700;
}

.balloon-content-body__content__btn {
    display: block;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    color: var(--color-bg);
    background: var(--link-color);
    text-decoration: none;
    text-align: center;
}

.balloon-content-body-pan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap:  8px;
    height: 100%;
}

.balloon-content-body-pan__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.balloon-content-body-pan__img {
    flex: none;
    display: flex;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}

.balloon-content-body-pan__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.balloon-content-body-pan__content__info {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
}

.balloon-content-body-pan__content__info__title a {
    font-size: 120%;
    font-weight: 700;
    color: var(--link-color);
    text-decoration: none;
}

.balloon-content-body-pan__content__info__title a:hover {
    color: var(--text-color);
}

.balloon-content-body-pan__content__info__address {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color-light);
}

.balloon-content-body-pan__content__info__rating-price {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.balloon-content-body-pan__content__info__rating-price__rating {
    display: flex;
    align-items: flex-end;
    gap: 4px;
}

.balloon-content-body-pan__content__info__rating-price__price {
    font-size: 120%;
    font-weight: 700;
}

.classification-number {
    position: relative;
    margin-top: 8px;
    cursor: pointer;
}

.classification-number:hover .classification-number-info {
    height: auto;
    visibility: visible;
    opacity: 1;
}

.classification-number span:hover .classification-number-info-single {
    height: auto;
    visibility: visible;
    opacity: 1;
}

.classification-number-info {
    position: absolute;
    top: 10px;
    left: 0;
    height: 0;
    visibility: hidden;
    opacity: 0;
    padding-top: 8px;
}

.classification-number-single-wrap {
    width: 100%;
}

.classification-number-single {
    width: fit-content;
    position: relative;
    margin-top: 8px;
}

.classification-number-title {
    display: flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    cursor: pointer;
}

.classification-number-title svg path {
    fill: #768090;
}

.classification-number-single:hover .classification-number-info-single {
    height: auto;
    visibility: visible;
    opacity: 1;
}

.classification-number-info-single {
    position: absolute;
    width: 430px;
    top: 20px;
    left: 0;
    height: 0;
    visibility: hidden;
    opacity: 0;
    padding-top: 8px;
}

.cni-text {
    background: #FFFFFF;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--border-widget-color);
}

.cni-text span {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
}

.cni-text a {
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
}

.cni-text a:hover {
    color: #28a782;
}

@media (min-width: 992px) {
    .mobile-onli {
        display: none;
    }

    .filtr__item__content__buttons .lc-submit {
        display: block;
    }
}

@media (max-width: 1099px) {
    .page-template-page-location .term-may-like__items__item__title {
        font-size: 20px;
    }
}

@media (max-width: 991px) {
    .single-aside__glamping-price__button h4 {
        margin: 0 0 10px;
    }

    .single-glampings .container-with-sitebar-right {
        margin-bottom: 0;
    }

    .statistics-item {
        width: 100%;
    }

    .fiitr-button-mobile {
        flex-direction: column;
        align-items: flex-end;
    }
}

@media (max-width: 767px) {
    .container-with-sitebar-right .single-article__thumbnail-bottom__item {
        flex: none;
        width: calc((100% - 20px) / 2);
    }

    .promocod {
        flex-direction: column;
        gap: 0;
        padding: 10px 10px 0 10px;
    }

    .promocod-cod {
        gap: 20px;
    }
}

@media (max-width: 567px) {
    .classification-number-single {
        width: 100%;
    }

    .classification-number-info-single {
        width: 100%;
    }
}

@media (max-width: 476px) {

    .container-with-sitebar .site-main-article__top {
        margin-bottom: 20px;
    }

    .site-main-article__top__count {
        flex-direction: column;
        gap: 20px;
    }

    .ymaps-2-1-79-gototech {
        display: none!important;
    }

    /* .map-wrap.active {
        height: 400px;
    } */
}

/* ==============================================================
   Дизайн блока ответа администрации (Глобальные стили)
   ============================================================== */
.single-article__reviews-items__admin-reply {
    margin-top: 20px !important;
    margin-left: 35px !important; /* Принудительный отступ слева на ПК и моб */
    padding: 16px 20px !important;
    background-color: #f4f7f9 !important;
    border-radius: 8px !important;
    position: relative;
    display: block;
    width: auto;
}

/* "Хвостик" сверху, как в мессенджерах */
.single-article__reviews-items__admin-reply::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 20px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #f4f7f9;
}

.add-reply-btn:hover {
    text-decoration: underline;
}

/* ==========================================================================
   СТРАНИЦА КОНТАКТОВ
   ========================================================================== */
.contacts-page {
    margin-top: 40px;
    margin-bottom: 60px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.contacts-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f2f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 32px;
}

.contacts-card h3 {
    font-size: 24px;
    color: var(--Gray-900, #1a2b48);
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 700;
}

.contacts-card p {
    color: #6b8194;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-method {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #e6f5ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-size: 13px;
    color: #6b8194;
    font-weight: 500;
}

.contact-link {
    font-size: 16px;
    font-weight: 600;
    color: #1a2b48;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #28a782;
}

/* Кнопки соцсетей */
.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.social-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.social-btn.whatsapp { background: #25D366; }
.social-btn.telegram { background: #0088cc; }
.social-btn.vk { background: #0077FF; }

/* Форма */
.modern-form .form-group {
    margin-bottom: 20px;
}

.modern-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b48;
    margin-bottom: 8px;
}

.modern-form .required {
    color: #f44;
}

.modern-form .tr-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s ease;
}

.modern-form .tr-input:focus {
    border-color: #28a782;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(40, 167, 130, 0.1);
    outline: none;
}

.form-submit-btn {
    width: 100%;
    background: #28a782;
    color: #fff;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-submit-btn:hover {
    background: #208b6b;
}

.form-policy {
    font-size: 12px !important;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 0 !important;
}

/* Адаптивность */
@media (max-width: 991px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   СТРАНИЦА ДОБАВЛЕНИЯ ГЛЭМПИНГА
   ========================================================================== */
/* Контейнер страницы */
.add-glamping-page {
    margin-top: 0; 
    margin-bottom: 60px;
    max-width: 960px; 
    margin-left: auto;
    margin-right: auto; /* Чтобы сама страница стояла по центру экрана */
}

/* Обёртка заголовка: возвращаем центрирование и отступ снизу */
.add-glamping-header {
    text-align: center;
    margin-bottom: 40px; /* Тот самый отступ, чтобы форма не прилипала */
}

/* Сам заголовок H2 */
.add-glamping-header h2 {
    font-size: 28px;
    color: #1a2b48;
    font-weight: 700;
    margin-top: 0; /* Убили стандартный браузерный отступ сверху */
    margin-bottom: 12px;
}

/* Текст-описание под заголовком */
.add-glamping-header p {
    color: #6b8194;
    font-size: 15px;
    max-width: 650px;
    margin: 0 auto; /* Центрируем сам блок текста */
    line-height: 1.5;
}


.form-section-title {
    font-size: 18px;
    color: #1a2b48;
    font-weight: 700;
    margin: 30px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f2f5;
}

.modern-form .form-section-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    gap: 20px;
    align-items: end; 
    margin-bottom: 30px; /* Добавили отступ снизу, чтобы отодвинуть следующий блок */
}

/* Убираем лишний отступ снизу у групп, которые находятся внутри колонок */
.form-row .form-group {
    margin-bottom: 0;
}

.form-row.two-cols {
    grid-template-columns: 1fr 1fr;
}

.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 30px 0;
}

/* Оформление чекбоксов */
.modern-form .group-checkbox {
    display: grid;
    gap: 12px;
}

.modern-form .grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.modern-form .list-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.modern-form .for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1a2b48;
    line-height: 1.3;
}

.modern-form .for-checkbox input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 1px;
    accent-color: #28a782;
    cursor: pointer;
}

.form-add-glampings__group__subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #6b8194;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Кнопка и статусы */
.form-submit-wrapper {
    margin-top: 40px;
    text-align: center;
}

.form-submit-wrapper .form-submit-btn {
    max-width: 320px;
    margin: 0 auto;
}

.status-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    margin-top: 20px;
}

.error-msg {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
}

.success-msg {
    background: #ecfdf5;
    color: #10b981;
    border: 1px solid #a7f3d0;
}

/* Адаптивность */
@media (max-width: 767px) {
    .form-row.two-cols,
    .form-row.three-cols,
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ==========================================================================
   17. СЕТКА КАТАЛОГА КАРТОЧЕК
   ========================================================================== */

.glampings-items,
.glampings-items-static {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
}

/* Убиваем clearfix-псевдоэлементы */
.glampings-items::before,
.glampings-items::after,
.glampings-items-static::before,
.glampings-items-static::after {
    display: none !important;
}

/* ==========================================================================
   18. КАРТОЧКА ГЛЭМПИНГА
   ========================================================================== */

.glampings-items__item {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid #f0f2f5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    overflow: hidden !important;
    height: 100% !important;
}

.glampings-items__item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
}

/* Обложка (фото) */
.glampings-items__item__img {
    width: 100% !important;
    height: 220px !important;
    display: block !important;
    border-radius: 16px 16px 0 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.glampings-items__item__img a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 2;
}

/* Убиваем старый багованный зум фона, который создавал белый отступ в отфильтрованном каталоге */
.glampings-items__item:hover .glampings-items__item__img {
    background-size: cover !important; 
}

/* Применяем красивый и безопасный зум к самой картинке (там, где она выводится тегом img) */
.glampings-items__item__img img {
    transition: transform 0.4s ease !important;
    transform: scale(1) !important;
}

.glampings-items__item:hover .glampings-items__item__img img {
    transform: scale(1.05) !important;
}

/* Бейджи */
.glampings-items__item__img__fitems {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.glampings-items__item__img__featured {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(4px);
    color: #1a2b48 !important;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: static !important;
}

/* ==========================================================================
   19. КОНТЕНТ КАРТОЧКИ
   ========================================================================== */

.glampings-items__item__content {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

/* Название — 2 строки */
.glampings-items__item__content > a span[itemprop="name"] {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a2b48 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
}

/* Адрес */
/* 1. Настраиваем адрес как Grid-сетку и заставляем занять всю высоту до отзывов */
.glampings-items__item__content__adress {
    display: grid !important;
    grid-template-columns: 14px 1fr !important; /* 1 колонка: иконка, 2 колонка: текст */
    grid-template-rows: max-content 1fr !important; /* 2 строка будет растягиваться */
    column-gap: 6px !important;
    flex-grow: 1 !important; /* Блок занимает всё свободное пространство карточки */
    margin-bottom: 12px !important;
    align-items: start !important;
}

/* Иконка геолокации всегда слева вверху */
.glampings-items__item__content__adress > svg {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-top: 2px !important;
}

/* Текст адреса всегда справа вверху */
.glampings-items__item__content__adress > span {
    grid-column: 2 !important;
    grid-row: 1 !important;
}

/* Отзывы прижаты к низу */
.glampings-items__item__content__reviews {
    margin-top: 0 !important; /* Убираем auto */
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.glampings-items__item__content__reviews-stars__count {
    color: #1a2b48 !important;
    font-weight: 700 !important;
}

/* Цена */
.price-color {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #28a782 !important;
}



/* ==========================================================================
   20. БЕЙДЖ "ИНОЕ ЖИЛЬЁ" В КАРТОЧКЕ
   ========================================================================== */

/* 2. Плашка "Иное жилье" (в фильтрах JS) падает в самый низ карточки */
.glampings-items__item__content__adress > .classification-number {
    grid-column: 1 / 3 !important; /* Занимает ширину обеих колонок */
    grid-row: 2 !important; /* Находится в растягивающейся строке */
    align-self: end !important; /* Прижимается к самому низу! */
    justify-self: start !important; /* Обрезает зеленый фон строго по тексту */
    margin-top: 12px !important; 
    margin-bottom: 0 !important;
    
    /* Внешний вид (зеленый стиль) */
    display: inline-flex !important;
    align-items: center !important;
    background-color: #e6f5ef !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #c2e6da !important;
}

.glampings-items__item__content__adress > .classification-number > span {
    color: #28a782 !important;
    font-weight: 600 !important;
}

/* Прячем старую длинную инфо-подсказку в JS, чтобы она не ломала высоту */
.glampings-items__item__content .classification-number-info {
    display: none !important;
}

/* ==========================================================================
   21. НОВЫЙ ЗЕЛЁНЫЙ БЕЙДЖ "ИНОЕ ЖИЛЬЁ" (classification-badge)
   ========================================================================== */

.classification-badge {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background-color: #e6f5ef !important;
    color: #28a782 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    margin-bottom: 12px !important;
    width: fit-content;
    border: 1px solid #c2e6da !important;
}

.classification-badge__info-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
}

.classification-badge__info-icon svg {
    fill: #28a782;
    transition: opacity 0.2s;
}

.classification-badge__info-icon:hover svg {
    opacity: 0.7;
}

.classification-badge__tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: 220px;
    background: #1a2b48 !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
    cursor: default;
}

.classification-badge__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #1a2b48 transparent transparent transparent;
}

.classification-badge__info-icon:hover .classification-badge__tooltip {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   22. ХЕДЕР И НАВИГАЦИЯ
   ========================================================================== */

.site-header {
    position: relative !important;
    z-index: 100000;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}

.site-header__topbar {
    background: #1a2b48 !important;
}

.site-header__topbar a {
    opacity: 0.7;
    transition: opacity 0.2s ease !important;
}

.site-header__topbar a:hover {
    opacity: 1;
}

/* Заголовок страницы */
.page-header {
    background: linear-gradient(135deg, #132035 0%, #1c2e4f 50%, #243b63 100%) !important;
    padding: 32px 0 !important;
}

.page-header .page-title {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
}

/* ==========================================================================
   26. СТРОКА РЕЗУЛЬТАТОВ И КНОПКА КАРТЫ
   ========================================================================== */

.site-main-article__top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.site-main-article__top__count {
    font-size: 16px !important;
    color: #1a2b48 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-main-article__top__count .count-number {
    font-weight: 800 !important;
    font-size: 18px !important;
    margin-left: 6px;
}

.site-main-article__top__button {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #1a2b48 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.15) !important;
    cursor: pointer;
}

.site-main-article__top__button svg path {
    fill: #ffffff !important;
}

.site-main-article__top__button:hover {
    background: #28a782 !important;
    transform: translateY(-2px) !important;
    color: #ffffff !important;
}

/* ==========================================================================
   ФИКС ВЕРСТКИ AJAX-ФИЛЬТРА (BUNDLE.MIN.JS)
   ========================================================================== */

/* 1. Блок изображения: возвращаем бейджи на место */
.glampings-items__item__img {
    position: relative !important;
}

.glampings-items__item__img > .glampings-items__item__img__featured {
    position: absolute !important;
    left: 12px !important;
    z-index: 3 !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    color: #1a2b48 !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Бейдж "Рекомендуем" */
.glampings-items__item__img > .glampings-items__item__img__featured:nth-of-type(1) {
    top: 12px !important;
}

/* Бейдж "Промокод" */
.glampings-items__item__img > .glampings-items__item__img__featured:nth-of-type(2) {
    top: 48px !important;
    background: #f44 !important;
    color: #fff !important;
}

/* На случай, если JS все-таки выводит обертку fitems */
.glampings-items__item__img__fitems {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}
.glampings-items__item__img__fitems .glampings-items__item__img__featured {
    position: static !important;
    margin: 0 !important;
}

/* 2. Заголовок карточки */
.glampings-items__item__content > a[itemprop="name"] {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a2b48 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
}

/* 3. Плашка "Иное жилье" - стилизуем старый div под новый зеленый бейдж */
.glampings-items__item__content .classification-number {
    display: inline-flex !important;
    align-items: center !important;
    background-color: #e6f5ef !important;
    color: #28a782 !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    margin-top: 6px !important;
    margin-bottom: 12px !important;
    width: fit-content !important;
    border: 1px solid #c2e6da !important;
    position: static !important;
    transition: none !important;
}

.glampings-items__item__content .classification-number > span {
    color: #28a782 !important;
    font-weight: 600 !important;
}

/* Скрываем старую длинную инфо-табличку, чтобы она не ломала высоту */
.glampings-items__item__content .classification-number-info {
    display: none !important;
}

/* 4. Отзывы (скрываем все лишние 4 звезды) */
.glampings-items__item__content__reviews-stars svg:nth-of-type(n+2) {
    display: none !important;
}

/* ==========================================================================
   БЫСТРЫЕ ФИЛЬТРЫ: ФИНАЛЬНАЯ СТРУКТУРА И ДИЗАЙН
   ========================================================================== */

/* 1. Главный контейнер (БЛОК: чтобы фильтры гарантированно сдвигали карточки вниз) */
.single-article__content__item.item-category {
    display: block !important; 
    width: 100%;
    margin-bottom: 24px !important; /* Внешний отступ до блока "Найдено глэмпингов" */
    padding-bottom: 8px !important;
}

/* 2. Заголовок (стоит четко НАД плашками) */
.item-category__title {
    display: block !important;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.item-category__title h3 {
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8c9baf;
    font-weight: 700;
    margin: 0 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

/* 3. Обертки фильтров (снимаем вообще все ограничения по высоте) */
.search-queries {
    display: block !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    width: 100%;
}

.search-queries-item {
    display: flex !important;
    flex-wrap: wrap !important; /* Разрешаем перенос на новые строки */
    gap: 10px !important;
    padding: 4px 4px 12px 4px !important;
    margin: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important; /* Никакой обрезки плашек */
}

/* 4. Сами кнопки-пилюли (Дизайн) */
.search-queries-item a {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #ffffff;
    color: #1a2b48;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid rgba(26, 43, 72, 0.05);
    box-shadow: 0 2px 8px rgba(26, 43, 72, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
    will-change: transform, box-shadow, background-color;
    white-space: nowrap;
}

.search-queries-item a:hover {
    background: #28a782;
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 130, 0.2);
}

/* 5. Скрываем кнопку "Показать еще" навсегда */
.search-queries-btn {
    display: none !important;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (до 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .single-article__content__item.item-category {
        margin-bottom: 24px !important;
    }
    
    .search-queries-item {
        gap: 8px !important; /* На телефоне кучкуем плотнее */
    }
    
    /* Делаем плашки компактнее */
    .search-queries-item a {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    /* 1. Возвращаем верхнюю панель в обычное состояние (убираем липкость и Grid) */
    .site-main-article__top {
        display: flex !important;
        flex-direction: column !important; /* Текст и карта друг под другом */
        align-items: center !important;
        position: relative !important;
        top: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        z-index: 9999 !important;
    }

    .site-main-article__top__count {
        margin-top: 0 !important;
        gap: 12px !important;
    }

    /* Фейковая колонка слева для идеального баланса центрирования */
    .site-main-article__top::before {
        content: '';
        display: block;
    }

    /* 2. Блок "Найдено..." и кнопка Карты */
    .site-main-article__top__count {
        grid-column: 2 !important; /* Ставим строго по центру */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        text-align: center !important;
        margin-top: 6px !important;
    }

    /* Дизайн текста "Найдено глэмпингов" */
    .site-main-article__top__count > span {
        font-size: 15px !important;
        color: #1a2b48 !important;
        display: block;
    }

    .site-main-article__top__button {
        margin: 0 auto !important; /* Центрируем саму кнопку карты */
    }

    /* 3. Кнопка Фильтров (справа) */
    .fiitr-button-mobile {
        grid-column: 3 !important; /* Ставим строго справа */
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important; /* Прижимаем к правому краю */
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* 4. Отступ от Быстрых фильтров до первой карточки глэмпинга */
    .single-article__content__item.item-category {
        margin-bottom: 20px !important; 
    }

        /* ==========================================================================
       ОПТИМИЗАЦИЯ ШАПКИ НА МОБИЛЬНЫХ
       ========================================================================== */

    /* 1. Сужаем белый блок и разносим элементы по краям */
    .site-header__header {
        display: flex !important;
        justify-content: space-between !important; /* <--- Это растащит лого и бургер по разным краям */
        align-items: center !important; 
        padding-top: 8px !important;
        padding-bottom: 8px !important;
        min-height: auto !important; 
        width: 100%; /* Убеждаемся, что шапка занимает всю ширину */
    }

    /* 2. Делаем логотип чуть компактнее */
    .site-header__header-branding {
        margin: 0 !important;
    }
    
    .site-header__header-branding img {
        max-height: 32px !important; /* Ограничиваем высоту логотипа */
        width: auto !important;
        object-fit: contain;
    }

    /* 3. Современная кнопка меню (Бургер) */
    .site-header__header-menu-toggle {
        margin: 0 !important;
        padding: 8px !important; /* Увеличили область нажатия */
        background: transparent !important;
        border: none !important;
        border-radius: 50% !important; /* Идеальный круг при тапе */
        display: flex !important;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s ease, transform 0.2s ease !important;
    }

    /* Серый круг при наведении или удержании пальцем (эффект как в iOS) */
    .site-header__header-menu-toggle:hover,
    .site-header__header-menu-toggle:active {
        background-color: #f0f2f5 !important;
        transform: scale(0.95) !important; /* Микро-сжатие при клике */
    }

    .site-header__header-menu-toggle svg {
        width: 28px !important; 
        height: 28px !important;
    }


    /* 4. Слегка ужимаем верхнюю темную полоску (где ВК, ТГ, Почта) */
    .site-header__topbar {
        padding: 10px 0 !important;
    }
    
    .site-header__topbar-wrapper {
        min-height: auto !important;
    }

        /* 5. Умная пилюля поиска по центру шапки */
    .header-mobile-smart-search {
        display: flex !important;
        align-items: center;
        gap: 8px;
        margin: 0 auto; /* Центрируем между лого и бургером */
        padding: 8px 16px;
        background: #ffffff;
        color: #1a2b48;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        border-radius: 100px;
        border: 1px solid rgba(26, 43, 72, 0.05);
        box-shadow: 0 2px 8px rgba(26, 43, 72, 0.06), 0 1px 2px rgba(26, 43, 72, 0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    /* Иконка лупы в нашем фирменном цвете */
    .header-mobile-smart-search svg {
        color: #28a782;
    }

    /* Эффект при нажатии пальцем */
    .header-mobile-smart-search:active {
        transform: scale(0.96);
        box-shadow: 0 1px 4px rgba(26, 43, 72, 0.04);
    }

/* ==========================================================================
   АДАПТИВ И ФИКСЫ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ========================================================================== */

/* 1. Отключаем фиксацию шапки на мобильных (убираем рывки) */
.site-header,
.site-header.fixed,
.site-header.sticky {
    position: relative !important;
    top: auto !important;
    transform: none !important;
    animation: none !important;
    box-shadow: none !important; 
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* 2. Блокируем JS-костыли (пустые клоны и отступы), которые создает скрипт при скролле */
.site-main-article__top,
.site-main-article,
body,
#primary {
    padding-top: 0 !important;
}

.site-main-article__top > div:empty,
.clone,
.sticky-clone,
.placeholder {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-main-article__top > div {
    height: auto !important;
    min-height: 0 !important;
}

/* 3. ПЛАВАЮЩАЯ КНОПКА ФИЛЬТРА (Справа посередине навсегда) */
.fiitr-button-mobile,
.fiitr-button-mobile.active,
.fiitr-button-mobile.fixed {
    position: fixed !important; 
    top: 50% !important;
    right: 0 !important;
    transform: translateY(-50%) !important;
    z-index: 99990 !important;
    width: auto !important;
    margin: 0 !important;
    
    /* Современный дизайн боковой кнопки */
    background: #ffffff !important;
    padding: 12px 14px !important;
    border-radius: 12px 0 0 12px !important; 
    box-shadow: -4px 4px 16px rgba(26, 43, 72, 0.12) !important; 
    border: 1px solid rgba(0,0,0,0.05) !important;
    border-right: none !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

/* Эффект при нажатии */
.fiitr-button-mobile:active {
    background: #f4f7f9 !important;
    transform: translateY(-50%) scale(0.95) !important;
}

/* Сброс стилей самой иконки внутри кнопки */
#fiitr-mobile {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    }
}

/* Скрываем мобильную пилюлю на ПК */
.header-mobile-smart-search {
    display: none !important;
}

/* ==========================================================================
   ФИКС БЛОКА "Вам может понравиться" (Регионы и Глэмпинги)
   ========================================================================== */

/* 1. Вытаскиваем блок с глэмпингами на всю ширину страницы под сайдбаром */
.container-with-sitebar-right > noindex {
    grid-column: 1 / -1 !important; /* Растягиваем на обе колонки сетки */
    width: 100% !important;
    margin-top: 40px !important;
    padding-top: 20px !important;
    border-top: 1px solid #e2e8f0 !important;
}

.single-article__related {
    width: 100% !important;
}

/* Оформление заголовка блока */
.single-article__related .single-article__reviews-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 24px !important;
    color: #1a2b48 !important;
}

/* 2. Блок регионов: делаем строгую и аккуратную сетку из 4 колонок */
.term-may-like__items {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
}

/* Убиваем старые стили ширины, теперь за нее отвечает Grid */
.term-may-like__items__item {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* 3. Адаптив для блока Регионов на планшетах и телефонах */
@media (max-width: 1099px) {
    .term-may-like__items {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .term-may-like__items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 476px) {
    .term-may-like__items {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   ВЫРАВНИВАНИЕ ВЫСОТЫ КОНТЕНТА В КАРТОЧКАХ КАТАЛОГА
   ========================================================================== */

/* 1. Задаем заголовку минимальную высоту, равную ровно 2 строкам текста */
.glampings-items__item__content > a span[itemprop="name"],
.glampings-items__item__content > a[itemprop="name"] {
    min-height: 47px !important; /* 18px (шрифт) * 1.3 (высота строки) * 2 строки = ~46.8px */
}

/* 2. Прижимаем нижний блок с ценой и ночами строго к низу карточки */
.glampings-items__item__content__bottom {
    margin-top: auto !important;
}

@media (max-width: 991px) {
    body.mobile-filter-open {
        overflow: hidden !important;
    }

    .filtr-wrapper {
        position: fixed !important;
        inset: 0 !important;
        z-index: 100001 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        background: rgba(15, 23, 42, 0.10) !important;
        transition: opacity .24s ease, visibility .24s ease !important;
    }

    .filtr-wrapper.active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

      .filtr-wrapper > .container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  background: #fff !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
 }



    .filtr-wrapper__title {
        position: sticky !important;
        top: 0 !important;
        z-index: 6 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 18px 16px 14px 16px !important;
        background: #fff !important;
        border-bottom: 1px solid #eef2f6 !important;
    }

    .filtr-wrapper__title span {
        font-size: 18px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        color: #1a2b48 !important;
    }

    .filtr-wrapper__clouse {
        flex: 0 0 32px !important;
        width: 32px !important;
        height: 32px !important;
        transform: translateY(-10px) !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 999px !important;
        background: #f5f7fc !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: inset 0 0 0 1px rgba(26, 43, 72, 0.05) !important;
    }

    .filtr-wrapper__body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 8px 10px 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #btn-filtr-all,
    .filtr__item.all-filtr {
        display: none !important;
    }

    .filtr,
    .filtr.filtr-two {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .filtr.filtr-two {
        margin-top: 8px !important;
    }

    .filtr .filtr__item,
    .filtr.filtr-two .filtr__item {
        display: block !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
    }

    .filtr .filtr__item:last-child,
    .filtr.filtr-two .filtr__item:last-child {
        margin-bottom: 0 !important;
    }

    .filtr__item {
        position: relative !important;
        width: 100% !important;
        border: 1px solid #e9eef5 !important;
        border-radius: 16px !important;
        background: #fff !important;
        box-shadow: none !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    .filtr__item__button,
    .filtr__item__button button {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .filtr__item__button button {
        min-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 0 46px 0 14px !important;
        margin: 0 !important;
        border: none !important;
        background: #fff !important;
    }

    .filtr__item__button button > span {
        flex: 1 1 auto !important;
        text-align: left !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        color: #1a2b48 !important;
    }

    .filtr__item__button button svg:first-child {
        flex: 0 0 auto !important;
        opacity: 0.72 !important;
    }

    .filtr__item__button .arrow-down {
        flex: 0 0 auto !important;
        opacity: 0.7 !important;
        transition: transform .2s ease !important;
    }

    .filtr__item__button .arrow-down.active {
        transform: rotate(180deg) !important;
        opacity: 1 !important;
    }

    .filtr__item__count {
        position: absolute !important;
        top: -6px !important;
        right: -6px !important;
        transform: none !important;
        z-index: 5 !important;

        display: none !important;
        align-items: center !important;
        justify-content: center !important;

        min-width: 20px !important;
        height: 20px !important;
        padding: 0 6px !important;
        border-radius: 999px !important;

        background: #ff5a3c !important;
        color: #fff !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        line-height: 1 !important;

        border: 2px solid #fff !important;
        box-shadow: none !important;
    }

    .filtr__item__count.active {
        display: inline-flex !important;
    }

    .filtr__item__content {
        display: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: static !important;
        padding: 12px 14px 14px !important;
        border-top: 1px solid #f1f5f9 !important;
        background: #fff !important;
    }

    .filtr__item__content.active {
        display: block !important;
    }

    .filtr__item.price .filtr__item__content,
    .filtr__item .capacitys__content {
        padding-top: 18px !important;
    }

    .filtr__item.price .price__content,
    .filtr__item .capacitys__content {
        margin-top: 8px !important;
    }

    .filtr__item.price .price__content-slider,
    .filtr__item .capacitys__content {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .filtr__item__content__buttons {
        display: none !important;
    }

    .filtr-mobile-footer {
        position: sticky !important;
        bottom: 0 !important;
        flex: 0 0 auto !important;
        display: grid !important;
        grid-template-columns: 1fr 1.45fr !important;
        gap: 12px !important;
        padding: 12px 12px calc(12px + env(safe-area-inset-bottom)) !important;
        background: #fff !important;
        border-top: 1px solid #e9eef5 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        z-index: 4 !important;
    }

    .filtr-mobile-footer__reset,
    .filtr-mobile-footer__apply {
        min-height: 56px !important;
        border: none !important;
        border-radius: 18px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
    }

    .filtr-mobile-footer__reset {
        background: #eef3f8 !important;
        color: #1a2b48 !important;
    }

    .filtr-mobile-footer__apply {
        background: linear-gradient(135deg, #28a782 0%, #23a06f 100%) !important;
        color: #fff !important;
        box-shadow: 0 8px 18px rgba(40, 167, 130, 0.22) !important;
    }
}

@media (max-width: 767px) {
    /* ===== FILTER PREMIUM POLISH ===== */

    /* 1. Чище шапка */
    .filtr-wrapper__title {
        padding: 20px 18px 14px 18px !important;
    }

    .filtr-wrapper__title span {
        font-size: 19px !important;
        font-weight: 700 !important;
        letter-spacing: -0.01em !important;
    }

    .filtr-wrapper__clouse {
        width: 36px !important;
        height: 36px !important;
        background: #f7f9fc !important;
        box-shadow: inset 0 0 0 1px rgba(26, 43, 72, 0.06) !important;
    }

    /* 2. Карточки фильтров приятнее и ровнее */
    .filtr__item {
        border-color: #e8eef5 !important;
        border-radius: 20px !important;
        transition: border-color .2s ease, background-color .2s ease, transform .15s ease !important;
    }

    .filtr__item__button button {
        min-height: 62px !important;
        padding: 0 52px 0 18px !important;
    }

    .filtr__item__button button > span {
        font-size: 16px !important;
        font-weight: 600 !important;
    }

    .filtr__item__button button:active {
        transform: scale(0.995) !important;
    }

    /* 3. Активный фильтр = заметное состояние */
    .filtr__item:has(.filtr__item__count.active) {
        border-color: rgba(40, 167, 130, 0.38) !important;
        background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%) !important;
    }

    .filtr__item:has(.filtr__item__count.active) .filtr__item__button button > span {
        color: #183c34 !important;
    }

    /* 4. Счётчик на верхнем правом краю */
    .filtr__item__count {
        top: -7px !important;
        right: -7px !important;
        min-width: 22px !important;
        height: 22px !important;
        padding: 0 6px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        border: 2px solid #fff !important;
        box-shadow: 0 4px 10px rgba(255, 90, 60, 0.22) !important;
    }

    /* 5. Стрелка читается лучше */
    .filtr__item__button .arrow-down {
        opacity: 0.9 !important;
    }

    .filtr__item__button .arrow-down path {
        fill: #8b97a7 !important;
    }

    .filtr__item__button .arrow-down.active path {
        fill: #1a2b48 !important;
    }

    /* 6. Больше воздуха в раскрытых блоках */
    .filtr__item__content {
        padding: 18px 16px 16px !important;
    }

    .filtr__item.price .filtr__item__content,
    .filtr__item .capacitys__content {
        padding-top: 20px !important;
    }

    .filtr__item.price .price__content,
    .filtr__item .capacitys__content {
        margin-top: 10px !important;
    }

    /* 7. Footer выглядит дороже */
    .filtr-mobile-footer {
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom)) !important;
        border-top: 1px solid #edf2f7 !important;
    }

    .filtr-mobile-footer__reset,
    .filtr-mobile-footer__apply {
        min-height: 58px !important;
        border-radius: 20px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
    }

    .filtr-mobile-footer__reset {
        background: #eef3f8 !important;
    }

    .filtr-mobile-footer__apply {
        background: linear-gradient(135deg, #29b184 0%, #1fa36f 100%) !important;
        box-shadow: 0 10px 20px rgba(40, 167, 130, 0.22) !important;
    }

    /* 8. Скролл визуально чище */
    .filtr-wrapper__body {
        scrollbar-width: none;
    }

    .filtr-wrapper__body::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 767px) {
    /* Убираем любые белые круги/декоративные слои по углам */
    .filtr__item::before,
    .filtr__item::after,
    .filtr__item__button::before,
    .filtr__item__button::after,
    .filtr__item__button button::before,
    .filtr__item__button button::after,
    .filtr__item__content::before,
    .filtr__item__content::after {
        content: none !important;
        display: none !important;
        background: none !important;
        box-shadow: none !important;
    }

    /* Саму плашку делаем чистой */
    .filtr__item {
    overflow: visible !important;
    background: #fff !important;
    box-shadow: none !important;
    position: relative !important;
}


    /* Внутренняя кнопка без лишних слоев */
    .filtr__item__button,
    .filtr__item__button button {
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 18px !important;
    }

    /* Контент раскрытия тоже без артефактов */
    .filtr__item__content {
        background: #fff !important;
        box-shadow: none !important;
        border-radius: 0 0 18px 18px !important;
    }
}


@media (max-width: 767px) {
    /* Убираем серую подложку у выбранной строки внутри фильтра */
    .filtr__item__content ul li,
    .filtr__item__content ul li label {
        background: transparent !important;
        box-shadow: none !important;
    }

    .filtr__item__content input:checked + label,
    .filtr__item__content input[type="radio"]:checked + label,
    .filtr__item__content input[type="checkbox"]:checked + label {
        background: transparent !important;
        box-shadow: none !important;
        color: #1a2b48 !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 767px) {
    .fiitr-button-mobile {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .fiitr-button-mobile__clear {
        width: 44px !important;
        height: 44px !important;
        flex: 0 0 44px !important;
        display: none !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 999px !important;
        background: #fff3f0 !important;
color: #ff5a3c !important;
        box-shadow: 0 6px 16px rgba(26, 43, 72, 0.10) !important;
    }

    .fiitr-button-mobile__clear.active {
        display: inline-flex !important;
    }

    .fiitr-button-mobile__clear:active {
        transform: scale(0.96) !important;
    }
    
}

/* ==========================================================================
   БЕЙДЖ СЧЕТЧИКА ДЛЯ МОБИЛЬНОГО ФИЛЬТРА
   ========================================================================== */

/* Гарантируем, что кнопка может отображать элементы, выходящие за ее границы */
#fiitr-mobile {
    position: relative !important;
    overflow: visible !important;
}

/* Сам кружок со счетчиком */
.global-filter-badge {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    background: #ff5a3c !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    min-width: 20px !important;
    height: 20px !important;
    padding: 0 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important; 
    border: 2px solid #fff !important; 
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(255, 90, 60, 0.4) !important;
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Гарантированное отображение кнопки сброса (крестика) */
@media (max-width: 767px) {
    .fiitr-button-mobile__clear.active {
        display: flex !important; 
        animation: fadeInClear 0.3s ease;
    }
}

@keyframes fadeInClear {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   ФИКС АВТОМАТИЧЕСКОГО ЗУМА В КАЛЕНДАРЕ (iOS Safari)
   ========================================================================== */
@media (max-width: 767px) {
    /* Safari автоматически зумит страницу, если шрифт в input/select меньше 16px. 
       Принудительно ставим 16px для инпутов календаря и его выпадающих списков. */
    input#daterange,
    .filtr__item__daterange,
    .sidebar-widget__content__search-title__daterange,
    .daterangepicker select.monthselect,
    .daterangepicker select.yearselect {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   ФИКС ОТОБРАЖЕНИЯ ФИЛЬТРОВ НА ПК
   ========================================================================== */

@media (min-width: 992px) {
    /* 1. Прячем корявые мобильные кнопки "Сбросить / Показать варианты" на компьютерах */
    .filtr-mobile-footer {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .filtr__item.order,
    #order-btn,
    #content-order {
        display: none !important;
    }
}

/* ==========================================================================
   РАСКРЫТИЕ ВТОРОГО РЯДА ФИЛЬТРОВ НА ПК
   ========================================================================== */
@media (min-width: 992px) {
    /* 1. Прячем мобильный подвал с кнопками на ПК */
    .filtr-mobile-footer {
        display: none !important;
    }

    /* 2. Прячем второй ряд фильтров по умолчанию */
    .filtr.filtr-two {
        display: none;
        width: 100%;
        margin-top: 16px;
    }
    
    /* 3. Показываем второй ряд, когда JavaScript добавляет класс .active */
    .filtr.filtr-two.active {
        display: flex !important;
        animation: fadeInRow 0.3s ease-in-out;
    }
}

/* Плавное появление второго ряда */
@keyframes fadeInRow {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ГЛОБАЛЬНАЯ КНОПКА СБРОСА (ДЕСКТОП)
   ========================================================================== */
.reset-all-desktop {
    border: none !important;
    background: transparent !important;
    width: auto !important;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
    margin-left: 10px !important;
}

.reset-all-desktop.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.reset-all-desktop .filtr__item__button button {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 0 16px !important;  /* Сделали боковые отступы компактнее */
    min-height: 38px !important; /* Уменьшили высоту под размер плашек */
    border-radius: 100px !important;
    background: #fff3f0 !important; 
    color: #ff5a3c !important;      
    transition: all 0.2s ease !important;
}

.reset-all-desktop .filtr__item__button button > span {
    color: #ff5a3c !important;
    font-weight: 600 !important;
    font-size: 13px !important; /* Уменьшили шрифт, чтобы смотрелось элегантно */
}

/* Уменьшаем саму иконку крестика пропорционально */
.reset-all-desktop .filtr__item__button button svg {
    width: 14px !important;
    height: 14px !important;
}

.reset-all-desktop .filtr__item__button button:hover {
    background: #ffe4de !important;
    transform: translateY(-2px);
}

.reset-all-desktop .filtr__item__button button:active {
    transform: translateY(0);
}

/* Скрываем эту кнопку на мобильных устройствах */
@media (max-width: 991px) {
    .filtr .filtr__item.all-filtr,
    .filtr .filtr__item.reset-all-desktop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Возвращаем кнопки Сбросить/Показать для ползунков на мобильных */
    .filtr__item.capacitys .filtr__item__content__buttons,
    .filtr__item.price .filtr__item__content__buttons {
        display: flex !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin-top: 24px !important;
        width: 100% !important;
    }

    /* Дизайн самих кнопок на мобильном (50/50 по ширине) */
    .filtr__item.capacitys .filtr__item__content__buttons button,
    .filtr__item.price .filtr__item__content__buttons button {
        flex: 1 !important;
        min-height: 44px !important;
        border-radius: 12px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .filtr__item.capacitys .lc-remove,
    .filtr__item.price .lc-remove {
        background: #f5f7fc !important;
        color: #1a2b48 !important;
        border: none !important;
    }

    .filtr__item.capacitys .lc-submit,
    .filtr__item.price .lc-submit {
        background: #28a782 !important;
        color: #fff !important;
        border: none !important;
    }
}

/* Отступ от блока "Вам может понравиться" до рассылки на мобильных */
@media (max-width: 991px) {
    .single-article__related {
        margin-bottom: 40px !important;
    }
}

/* ==========================================================================
   СТРОГАЯ СЕТКА: 3 РЕГИОНА В РЯД НА ГЛАВНОЙ СТРАНИЦЕ
   ========================================================================== */
.home .section.popular .term-may-like__items {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Сбрасываем старые стили ширины и отступов карточек */
.home .section.popular .term-may-like__items__item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* ================== АДАПТИВ ================== */

/* Для планшетов и смартфонов горизонтально (2 в ряд) */
@media (max-width: 767px) {
    .home .section.popular .term-may-like__items {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

/* Для узких смартфонов (1 в ряд) */
@media (max-width: 476px) {
    .home .section.popular .term-may-like__items {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   СТРОГИЙ ДИЗАЙН: CTA, SEO, FOOTER
   ========================================================================== */

/* --- 1. Блок партнерства (CTA) --- */
.partner-cta {
    margin-top: 60px;
    margin-bottom: 60px;
}

.partner-cta__inner {
    background-color: #1a2b48; /* Фирменный глубокий синий */
    border-radius: 20px;
    padding: 56px 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.partner-cta__content {
    max-width: 600px;
}

.partner-cta__title {
    color: #ffffff;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.partner-cta__text {
    color: #94a3b8; /* Светло-серый для контраста с фоном */
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.partner-cta__action {
    flex-shrink: 0;
}

.partner-cta__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    color: #1a2b48;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.partner-cta__btn:hover {
    background-color: #f1f5f9;
    transform: translateY(-2px);
    color: #1a2b48;
}

/* --- 2. Журнальная SEO-секция --- */
.editorial-seo {
    margin-bottom: 80px;
}

.editorial-seo__inner {
    max-width: 800px; /* Ограничиваем ширину для идеальной длины строки */
    margin: 0 auto;
}

.editorial-seo__title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b48;
    margin: 0 0 24px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.editorial-seo__content {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
}

.editorial-seo__content p {
    margin-bottom: 1.5em;
}

.editorial-seo__content p:last-child {
    margin-bottom: 0;
}

/* --- 3. Чистый Футер --- */
.global-footer {
    background-color: #f8fafc; /* Очень легкий серый фон */
    border-top: 1px solid #e2e8f0;
    padding: 64px 0 32px;
    font-family: inherit;
}

.global-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr; /* Левая колонка чуть шире */
    gap: 40px;
    margin-bottom: 64px;
}

.global-footer__heading {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a2b48;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

/* Списки в футере */
.global-footer__list,
.global-footer__nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.global-footer__list a,
.global-footer__nav ul li a {
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}

.global-footer__list a:hover,
.global-footer__nav ul li a:hover {
    color: #28a782; /* Фирменный зеленый */
}

/* Соцсети */
.global-footer__socials {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.global-footer__socials a {
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
}

.global-footer__socials a:hover {
    color: #1a2b48;
    transform: translateY(-2px);
}

/* Низ футера */
.global-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 32px;
}

.global-footer__copyright {
    font-size: 14px;
    color: #1a2b48;
    font-weight: 500;
}

.global-footer__disclaimer {
    font-size: 13px;
    color: #94a3b8;
    max-width: 500px;
    text-align: right;
    line-height: 1.5;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 991px) {
    .partner-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 48px 32px;
        gap: 32px;
    }
    
    .global-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .global-footer__col--brand {
        grid-column: 1 / -1; /* Бренд занимает всю ширину сверху */
        margin-bottom: 24px;
    }
}

@media (max-width: 767px) {
    .partner-cta__title {
        font-size: 26px;
    }
    
    .editorial-seo__title {
        font-size: 24px;
    }

    .global-footer {
        padding: 48px 0 24px;
    }

    .global-footer__grid {
        grid-template-columns: 1fr; /* Все колонки друг под другом */
        gap: 40px;
        margin-bottom: 40px;
    }

    .global-footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .global-footer__disclaimer {
        text-align: center;
    }
}

/* ==========================================================================
   НЕНАВЯЗЧИВЫЙ SEO-БЛОК
   ========================================================================== */
.seo-text-block {
    margin-top: 40px;
    margin-bottom: 60px;
    padding-top: 40px;
    border-top: 1px solid #f0f2f5; /* Легкий разделитель, отсекающий контент */
}

/* Заголовок делаем компактным и полупрозрачным */
.seo-text-block__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a2b48 !important;
    margin: 0 0 16px 0 !important;
    opacity: 0.7; 
}

/* Сам текст разбиваем на 2 колонки, уменьшаем шрифт и делаем его серым */
.seo-text-block__content {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #6b8194 !important;
    column-count: 2;           /* Магия: бьет текст на 2 колонки */
    column-gap: 40px;          /* Расстояние между колонками */
}

/* Настройки абзацев внутри SEO-текста */
.seo-text-block__content p {
    margin-top: 0 !important;
    margin-bottom: 1em !important;
    break-inside: avoid;       /* Чтобы абзац не разрывался на две колонки */
}

.seo-text-block__content p:last-child {
    margin-bottom: 0 !important;
}

/* Ссылки внутри текста (если есть) делаем аккуратными */
.seo-text-block__content a {
    color: #6b8194;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.seo-text-block__content a:hover {
    color: #28a782;
    text-decoration-color: #28a782;
}

/* ==========================================================================
   ЭСТЕТИЧНЫЙ SEO-БЛОК (Глобальные стили, ПК, Планшет, Смартфон)
   ========================================================================== */

/* --- 1. Базовые стили контента и обертки --- */
.seo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* На ПК кнопка и текст строго по левому краю */
    width: 100%;
}

.seo-text-block__content {
    position: relative !important;
    width: 100%;
    transition: max-height 0.4s ease;
}

/* Убираем отступ у первого абзаца, чтобы текст стоял вровень с заголовком */
.seo-text-block__content > p:first-child,
.seo-text-block__content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- 2. Состояние свернутого текста (Размытие) --- */
.seo-text-block__content.is-collapsed {
    max-height: 140px !important; /* Видно ~5-6 строк текста */
    overflow: hidden !important;
    /* Современный градиент размытия, который не ломается в Grid */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 50px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 50px), transparent 100%);
}

.seo-text-block__content::after {
    display: none !important; /* Убиваем старый глючный градиент */
}

/* --- 3. Кнопка "Читать полностью" --- */
.seo-text-block__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #28a782; /* Фирменный зеленый */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.seo-text-block__toggle:hover { color: #1a2b48; }
.seo-text-block__toggle:active { transform: scale(0.98); }
.seo-text-block__toggle svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.seo-text-block__toggle.is-expanded svg { transform: rotate(180deg); }


/* ==========================================================================
   ЕДИНЫЙ СТИЛЬ SEO-БЛОКА ДЛЯ ПК (КАК НА МОБИЛЬНЫХ)
   ========================================================================== */
@media (min-width: 768px) {
    .seo-text-block {
        margin-top: 40px;
        margin-bottom: 60px;
        padding-top: 40px;
        border-top: none !important; 
        position: relative;
        text-align: center; 
    }
    
    /* Та самая зеленая черта сверху по центру (как на смартфоне) */
    .seo-text-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 3px;
        background: #28a782; 
        border-radius: 3px;
    }

    .seo-text-block__inner {
        display: block !important;
        max-width: 100%; /* Ограничиваем ширину, чтобы текст было удобно читать */
        margin: 0 auto;
    }

    .seo-text-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрируем кнопку */
        width: 100%;
    }

    .seo-text-block__content {
        column-count: 1 !important; /* Возвращаем 1 колонку */
        text-align: left !important; /* Текст по центру */
        font-size: 14px !important; 
        line-height: 1.6 !important;
        color: #6b8194 !important; /* Ваш приглушенный цвет */
    }

    .seo-text-block__content p {
        margin-bottom: 1.2em !important;
    }

    /* Возвращаем кнопку к простому виду (без фона-пилюли) */
    .seo-text-block__toggle {
        margin-top: 16px !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #28a782 !important;
    }

    .seo-text-block__toggle:hover {
        color: #1a2b48 !important;
    }
}



/* --- 5. АДАПТИВ: Планшеты --- */
@media (min-width: 768px) and (max-width: 991px) {
    .seo-text-block__content {
        column-count: 1 !important;
    }
}


/* --- 6. АДАПТИВ: Смартфоны ("Манифест") --- */
@media (max-width: 767px) {
    .seo-text-block {
        margin-top: 32px;
        margin-bottom: 48px;
        padding-top: 40px;
        border-top: none; 
        position: relative;
        text-align: center; 
    }
    
    .seo-text-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 48px;
        height: 3px;
        background: #28a782; 
        border-radius: 3px;
    }
    
    .seo-text-block__title {
        font-size: 18px !important; 
        opacity: 1 !important; 
        margin-bottom: 16px !important;
    }
    
    .seo-text-block__content {
        column-count: 1 !important;
        text-align: center !important; 
        font-size: 14px !important; 
        line-height: 1.6 !important;
        padding: 0 12px; 
    }

    /* На телефоне центрируем кнопку под текстом */
    .seo-text-wrapper {
        align-items: center; 
    }
}

/* ==========================================================================
   ПРЕМИАЛЬНОЕ ГЛАВНОЕ МЕНЮ (ДЕСКТОП И МОБИЛЬНЫЕ) - 2.0
   ========================================================================== */

/* --- 1. ДЕСКТОП: Навигация (Premium Floating Pill Design + Иконки) --- */
@media (min-width: 992px) {
    .site-header__header-navigation {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex: 1 !important;
        margin-left: 40px !important;
    }

    .site-header__header-navigation ul#primary-menu {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Убиваем старые подчеркивания и артефакты темы */
    .site-header__header-navigation ul#primary-menu li a::after {
        display: none !important; 
    }

    /* Базовый дизайн пункта меню (прозрачный, сливается с шапкой) */
    .site-header__header-navigation ul#primary-menu li a {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 10px 20px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #1a2b48 !important;
        background: transparent !important;
        border-radius: 100px !important;
        text-decoration: none !important;
        text-transform: none !important;
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    /* СТИЛЬНЫЙ ХОВЕР: Парящая пилюля с мягкой тенью */
    .site-header__header-navigation ul#primary-menu li a:hover {
        background: #ffffff !important;
        color: #28a782 !important; /* Фирменный зеленый текст */
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 20px rgba(26, 43, 72, 0.08), 0 2px 6px rgba(26, 43, 72, 0.03) !important;
    }
    
    .site-header__header-navigation ul#primary-menu li a:active {
        transform: translateY(0) scale(0.98) !important;
        box-shadow: 0 2px 8px rgba(26, 43, 72, 0.05) !important;
    }

    /* =========================================================
       ИКОНКИ ДЛЯ ДЕСКТОПА (Базовые настройки)
       ========================================================= */
    .site-header__header-navigation ul#primary-menu li a[href*="glamping"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="region"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="location"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="favorite"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="izbrannoe"]::before {
        content: '' !important;
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        flex-shrink: 0 !important;
    }

    /* Анимация иконок при наведении (Пульсация) */
    .site-header__header-navigation ul#primary-menu li a:hover::before {
        transform: scale(1.15) !important;
    }

    /* 1. Иконка: /* Каталог глэмпингов */
    .site-header__header-navigation ul#primary-menu li a[href*="glamping"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-1.9-2.63l5.5-12a2 2 0 0 1 3.65 0l5.65 12A2 2 0 0 1 19 21z'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M8 21l4-6 4 6'/%3E%3C/svg%3E");
    }

    /* 2. Иконка: РЕГИОНЫ (Синяя гео-метка) */
    .site-header__header-navigation ul#primary-menu li a[href*="region"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="location"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
    }

    /* 3. Иконка: ИЗБРАННОЕ (Красное контурное сердечко) */
    .site-header__header-navigation ul#primary-menu li a[href*="favorite"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="izbrannoe"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E") !important;
    }

    /* Особый ховер для Избранного (текст рубиновый + тень с легким красным свечением) */
    .site-header__header-navigation ul#primary-menu li a[href*="favorite"]:hover,
    .site-header__header-navigation ul#primary-menu li a[href*="izbrannoe"]:hover {
        color: #e11d48 !important;
        box-shadow: 0 8px 20px rgba(225, 29, 72, 0.12), 0 2px 6px rgba(225, 29, 72, 0.04) !important;
    }

    /* =========================================================
       ВЫПАДАЮЩИЕ МЕНЮ
       ========================================================= */
    .main-navigation ul ul {
        position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
        width: 240px; background: #ffffff; border-radius: 16px; box-shadow: 0 10px 40px rgba(26, 43, 72, 0.08);
        border: 1px solid #f0f2f5; padding: 8px; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 999;
        display: flex !important; flex-direction: column; gap: 4px;
    }
    .main-navigation ul ul::before {
        content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg);
        width: 12px; height: 12px; background: #ffffff; border-left: 1px solid #f0f2f5; border-top: 1px solid #f0f2f5;
    }
    .main-navigation li::after { content: ''; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }
    .main-navigation li:hover > ul { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
    .main-navigation ul ul a { padding: 10px 16px; border-radius: 10px; font-size: 14px; width: 100%; box-sizing: border-box; }
}



/* --- 2. МОБИЛЬНОЕ МЕНЮ (Шторка) --- */
@media (max-width: 991px) {
    /* Контейнер ссылок */
    .site-header__header-navigation ul#primary-menu {
        display: flex;
        flex-direction: column;
        gap: 8px;
        list-style: none;
        margin-top: 100px;
        margin-bottom: 32px;
        padding: 0 16px !important; /* Отступы от краев шторки */
    }

    .site-header__header-navigation ul#primary-menu li {
        width: 100%;
        margin: 0 !important;
    }

    /* Дизайн кнопок (крупные, кликабельные плашки) */
    .site-header__header-navigation ul#primary-menu li a {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 14px 20px;
        font-size: 16px;
        font-weight: 600;
        color: #1a2b48;
        background: transparent;
        border-radius: 16px; /* Скругление как у кнопок */
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    /* Эффект нажатия на телефоне */
    .site-header__header-navigation ul#primary-menu li a:active {
        background: #f1f5f9;
    }

    /* УМНЫЕ ИКОНКИ (Подставляются по кускам ссылок) */
    .site-header__header-navigation ul#primary-menu li a::before {
        content: '';
        display: block;
        width: 24px;
        height: 24px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.8;
        flex-shrink: 0;
        /* Дефолтная иконка-кружок, если совпадений не найдено */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3C/svg%3E");
    }

    /* Главная страница (Темно-синий домик) */
    .site-header__header-navigation ul#primary-menu li a[href="/"]::before,
    .site-header__header-navigation ul#primary-menu li a[href="https://tripinglamp.ru/"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V9'/%3E%3C/svg%3E");
    }

    /* 1. Каталог глэмпингов (Зеленый шатер как на ПК) */
    .site-header__header-navigation ul#primary-menu li a[href*="glamping"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a782' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21H5a2 2 0 0 1-1.9-2.63l5.5-12a2 2 0 0 1 3.65 0l5.65 12A2 2 0 0 1 19 21z'/%3E%3Cpath d='M12 9v12'/%3E%3Cpath d='M8 21l4-6 4 6'/%3E%3C/svg%3E");
    }

    /* 2. Регионы (Синяя гео-метка как на ПК) */
    .site-header__header-navigation ul#primary-menu li a[href*="region"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="location"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    }

    /* 3. Избранное (Красное сердечко как на ПК) */
    .site-header__header-navigation ul#primary-menu li a[href*="favorite"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="izbrannoe"]::before {
        opacity: 1; /* Делаем ярче */
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef4444' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'%3E%3C/path%3E%3C/svg%3E");
    }

    /* 4. Контакты (Темно-синий телефон) */
    .site-header__header-navigation ul#primary-menu li a[href*="contact"]::before,
    .site-header__header-navigation ul#primary-menu li a[href*="kontakt"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
    }
    /* 5. Добавить глэмпинг (Темно-синий плюсик в кружке) */
    .site-header__header-navigation ul#primary-menu li a[href*="add"]::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b48' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='16'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
    }
}


/* --- 2. Кнопка в верхней панели --- */
.site-header__topbar-right a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-header__topbar-right a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   ОДИНОЧНАЯ СТРАНИЦА ОТЗЫВА (single-reviews.php)
   ========================================================================== */
.review-single-page {
    max-width: 800px;
    margin: 40px auto 80px;
}

/* Кнопка возврата */
.review-single-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background-color: #f8fafc;
    color: #475569;
    border-radius: 100px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.review-single-back strong {
    color: #1a2b48;
}

.review-single-back:hover {
    background-color: #e2e8f0;
    color: #1a2b48;
}

/* Карточка отзыва */
.review-single-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(26, 43, 72, 0.04);
}

.review-single-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.review-single-card__author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.review-single-card__avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #28a782 0%, #1c7c60 100%);
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-transform: uppercase;
}

.review-single-card__name {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a2b48 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}

.review-single-card__date {
    font-size: 14px;
    color: #64748b;
}

.review-single-card__rating {
    display: flex;
    gap: 4px;
}

.review-single-card__rating svg {
    width: 20px;
    height: 20px;
}

.review-single-card__content {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
}

.review-single-card__content p {
    margin-bottom: 1em;
}

.review-single-card__content p:last-child {
    margin-bottom: 0;
}

/* Ответ администрации */
.review-single-card__reply {
    margin-top: 32px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px 32px;
    position: relative;
}

/* "Хвостик" ответа */
.review-single-card__reply::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 40px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #f8fafc;
}

.reply-badge {
    font-size: 13px;
    font-weight: 700;
    color: #28a782;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.reply-text {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

/* Адаптив */
@media (max-width: 767px) {
    .review-single-card {
        padding: 24px;
    }
    
    .review-single-card__reply {
        padding: 20px;
    }
}

/* ==========================================================================
   ЛИЧНЫЙ КАБИНЕТ ОТЕЛЬЕРА (PARTNER DASHBOARD)
   ========================================================================== */

/* Скрываем стандартные хедер, футер, синюю полосу и хлебные крошки темы для обеих страниц ЛК */
body.page-template-page-dashboard .site-header,
body.page-template-page-dashboard .header-title.page-header,
body.page-template-page-dashboard .breadcrumbs,
body.page-template-page-dashboard .site-footer,
body.page-template-page-edit-property .site-header,
body.page-template-page-edit-property .header-title.page-header,
body.page-template-page-edit-property .breadcrumbs,
body.page-template-page-edit-property .site-footer {
    display: none !important;
}

body.page-template-page-dashboard,
body.page-template-page-edit-property {
    background-color: #f8fafc;
}


/* --- Экран входа --- */
.dashboard-guest-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-guest {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    padding: 60px;
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.dashboard-guest__title {
    font-size: 28px;
    color: #1a2b48;
    margin-bottom: 12px;
}

.dashboard-guest__text {
    color: #64748b;
    margin-bottom: 32px;
}

/* Стилизация формы WP */
#partner-login-form .login-username,
#partner-login-form .login-password {
    text-align: left;
    margin-bottom: 20px;
}
#partner-login-form label { display: block; font-weight: 600; margin-bottom: 8px; color: #1a2b48; }
#partner-login-form input[type="text"],
#partner-login-form input[type="password"] {
    width: 100%; padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
}
#partner-login-form .login-submit input {
    width: 100%; padding: 16px; background: #28a782; color: #fff; border: none; border-radius: 12px; font-weight: 700; cursor: pointer;
}

/* Отключаем автоматический зум на iPhone при клике по инпутам */
#partner-login-form input[type="text"],
#partner-login-form input[type="password"],
.modern-form .tr-input {
    font-size: 16px !important; 
}


/* Скрываем стандартные хедер, футер, синюю полосу и хлебные крошки темы напрочь */
body.page-template-page-dashboard .site-header,
body.page-template-page-dashboard .header-title.page-header,
body.page-template-page-dashboard .breadcrumbs,
body.page-template-page-dashboard .site-footer {
    display: none !important;
}

body.page-template-page-dashboard {
    background-color: #f8fafc;
}

/* --- Панель управления --- */
.partner-dashboard {
    display: flex;
    min-height: 100vh;
    max-width: 100% !important; /* Убиваем ограничения контейнера темы */
    padding: 0 !important;
    margin: 0 !important;
}

/* Сайдбар */
.dashboard-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100; /* ВАЖНО: сайдбар всегда сверху */
}

.dashboard-sidebar__user {
    padding: 32px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.dashboard-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a2b48 0%, #3b5a8c 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
}

.dashboard-user-info { display: flex; flex-direction: column; }
.dashboard-user-name { font-weight: 700; color: #1a2b48; font-size: 16px; }
.dashboard-user-role { font-size: 13px; color: #94a3b8; }

.dashboard-nav {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dashboard-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s;
}

.dashboard-nav__link:hover, .dashboard-nav__link.active {
    background: #f1f5f9;
    color: #28a782;
}

.dashboard-nav__link svg { width: 20px; height: 20px; opacity: 0.7; }
.dashboard-nav__link.active svg { opacity: 1; stroke: #28a782; }

.dashboard-nav__link--logout {
    margin-top: auto;
    color: #ef4444;
}
.dashboard-nav__link--logout:hover { background: #fef2f2; color: #dc2626; }

.dashboard-badge {
    margin-left: auto; background: #ef4444; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 100px;
}

/* Основной контент */
.dashboard-content {
    flex: 1;
    min-width: 0; /* МАГИЯ: Это предотвращает вылезание Grid/Flex-карточек на сайдбар! */
    margin-left: 280px; /* Отступ на ширину сайдбара */
    padding: 48px 60px;
}

.dashboard-header { margin-bottom: 40px; }
.dashboard-title { font-size: 32px; color: #1a2b48; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em; }
.dashboard-subtitle { color: #64748b; font-size: 16px; margin: 0; }

/* Карточки статистики */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.stat-card {
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.stat-card__icon {
    width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
}

.stat-card__info { display: flex; flex-direction: column; }
.stat-card__label { font-size: 14px; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.stat-card__value { font-size: 28px; color: #1a2b48; font-weight: 800; line-height: 1; }

/* Секция объектов */
.dashboard-section__header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.dashboard-section__header h2 { font-size: 24px; margin: 0; color: #1a2b48; }
.dashboard-btn { padding: 12px 24px; border-radius: 12px; font-size: 14px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.dashboard-property-card {
    background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid #e2e8f0; display: flex; flex-direction: column;
}

.dashboard-property-card__img {
    height: 200px; background-size: cover; background-position: center; position: relative; padding: 16px;
}

.property-status {
    position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 700;
}
.status-active { background: rgba(255,255,255,0.9); color: #28a782; }
.status-pending { background: rgba(255,255,255,0.9); color: #f59e0b; }

.dashboard-property-card__content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.dashboard-property-card__content h3 { margin: 0 0 8px; font-size: 18px; color: #1a2b48; }
.property-address { color: #64748b; font-size: 13px; margin: 0 0 16px; line-height: 1.4; }
.property-metrics { margin-bottom: 24px; font-size: 14px; font-weight: 600; color: #475569; }

.property-actions { display: flex; gap: 12px; margin-top: auto; }
.btn-outline { flex: 1; padding: 10px; border: 1px solid #cbd5e1; background: transparent; border-radius: 8px; font-weight: 600; color: #475569; cursor: pointer; transition: 0.2s; }
.btn-outline:hover { background: #f8fafc; color: #1a2b48; border-color: #94a3b8; }
.btn-link { flex: 1; text-align: center; padding: 10px; background: #f1f5f9; color: #28a782; font-weight: 600; text-decoration: none; border-radius: 8px; transition: 0.2s; }
.btn-link:hover { background: #e2e8f0; }

/* ==========================================================================
   АДАПТИВ ЛИЧНОГО КАБИНЕТА ДЛЯ МОБИЛЬНЫХ
   ========================================================================== */
.dashboard-mobile-header,
.dashboard-sidebar-overlay {
    display: none;
}

@media (max-width: 991px) {
    .partner-dashboard {
        flex-direction: column;
    }
    
    .dashboard-content {
        margin-left: 0 !important;
        margin-top: 0 !important;
        padding: 80px 16px 24px !important; /* Увеличили отступ, чтобы шапка точно ничего не перекрывала */
    }

    /* Мобильная шапка кабинета */
    .dashboard-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        padding: 16px 20px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 90;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    }

    .dashboard-mobile-logo {
        font-weight: 800;
        color: #1a2b48;
        font-size: 18px;
    }

    .dashboard-mobile-toggle {
        background: transparent;
        border: none;
        color: #1a2b48;
        cursor: pointer;
        padding: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Превращаем сайдбар в мобильную шторку */
    .dashboard-sidebar {
        transform: translateX(-100%); /* Прячем за левым краем экрана */
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 101; /* Поверх всего */
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
    }
    
    .dashboard-sidebar.active {
        transform: translateX(0); /* Выдвигаем */
    }

    /* Затемняющий оверлей */
    .dashboard-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.5);
        backdrop-filter: blur(2px);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
    }
    
    .dashboard-sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Адаптив внутреннего контента */
    .dashboard-title {
        font-size: 24px;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr; /* Карточки статистики друг под другом */
        gap: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr; /* Карточки объектов друг под другом */
    }

    /* Адаптив карточки отзыва */
    .dashboard-review-card__header {
        flex-direction: column;
        gap: 12px;
    }

    .dashboard-review-card__rating {
        align-self: flex-start;
    }

    /* Адаптив выезжающей панели редактирования (которая справа) */
    .dashboard-drawer {
        width: 100%; /* На телефоне редактор занимает 100% ширины */
        right: -100%;
    }
}

/* ==========================================================================
   БОКОВАЯ ПАНЕЛЬ РЕДАКТИРОВАНИЯ (DRAWER)
   ========================================================================== */
.dashboard-drawer-overlay {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(2px);
    z-index: 100000; opacity: 0; visibility: hidden; transition: 0.3s ease;
}
.dashboard-drawer-overlay.active { opacity: 1; visibility: visible; }

.dashboard-drawer {
    position: fixed; top: 0; right: -650px; /* Увеличили ширину */
    width: 650px; /* Было 400px, стало 650px для удобства редактирования */
    max-width: 100vw; height: 100vh; height: 100dvh;
    background: #fff; z-index: 100001; box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dashboard-drawer.active { right: 0; }

/* Стили для формы редактирования внутри панели */
.drawer-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.drawer-form-full {
    grid-column: 1 / -1;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.dashboard-drawer__header {
    padding: 24px; border-bottom: 1px solid #f0f2f5; display: flex; justify-content: space-between; align-items: center;
}
.dashboard-drawer__title { margin: 0 0 4px; font-size: 20px; color: #1a2b48; font-weight: 700; }
.dashboard-drawer__subtitle { font-size: 13px; color: #64748b; }
.dashboard-drawer__close {
    background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s;
}
.dashboard-drawer__close:hover { background: #e2e8f0; }

.dashboard-drawer__body { flex: 1; overflow-y: auto; padding: 24px; }

.drawer-section { margin-bottom: 32px; }
.drawer-section__title { font-size: 16px; color: #1a2b48; margin: 0 0 8px; font-weight: 700; }
.drawer-section__desc { font-size: 13px; color: #64748b; margin: 0 0 16px; line-height: 1.5; }

/* Зона загрузки фото */
.upload-area {
    border: 2px dashed #cbd5e1; border-radius: 12px; padding: 32px 20px; text-align: center;
    position: relative; background: #f8fafc; transition: 0.2s; cursor: pointer;
}
.upload-area:hover { border-color: #28a782; background: #f0fdf4; }
.upload-area__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-area__text { display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.upload-area__text span { font-weight: 600; color: #1a2b48; font-size: 14px; }
.upload-area__text small { color: #94a3b8; font-size: 12px; }

.dashboard-drawer__footer { padding-top: 24px; border-top: 1px solid #f0f2f5; margin-top: auto; }

/* ==========================================================================
   ЛИЧНЫЙ КАБИНЕТ: ОТЗЫВЫ
   ========================================================================== */
.dashboard-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-review-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.dashboard-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.dashboard-review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-avatar--small {
    width: 40px; height: 40px; font-size: 16px;
}

.dashboard-review-card__author strong {
    display: block; font-size: 16px; color: #1a2b48;
}

.dashboard-review-card__author span {
    font-size: 13px; color: #64748b;
}

.dashboard-review-card__rating {
    background: #fffbeb; color: #d97706; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 14px;
}

.dashboard-review-card__text {
    font-size: 15px; color: #334155; line-height: 1.6; margin-bottom: 20px;
}

.dashboard-review-reply-area {
    border-top: 1px dashed #e2e8f0;
    padding-top: 20px;
}

.dashboard-review-reply-text {
    background: #f8fafc; padding: 16px; border-radius: 12px; border-left: 4px solid #28a782;
}

.dashboard-review-reply-text strong {
    font-size: 13px; text-transform: uppercase; color: #28a782; display: block; margin-bottom: 6px;
}

.dashboard-review-reply-text p {
    margin: 0; font-size: 14px; color: #475569; line-height: 1.5;
}

/* Тумблер (Switch) */
.tr-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.tr-switch input { opacity: 0; width: 0; height: 0; }
.tr-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .3s; border-radius: 24px; }
.tr-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
input:checked + .tr-slider { background-color: #28a782; }
input:checked + .tr-slider:before { transform: translateX(20px); }

/* ==========================================================================
   ПОЛНОЭКРАННОЕ РЕДАКТИРОВАНИЕ ОБЪЕКТА
   ========================================================================== */
.edit-property-page {
    margin-top: 40px;
    margin-bottom: 80px;
}

.edit-property-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.back-link:hover { color: #1a2b48; }

.edit-property-header h1 {
    font-size: 32px;
    color: #1a2b48;
    margin: 0;
    font-weight: 800;
}

.edit-property-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Левое меню (Вкладки) */
.edit-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
}

.edit-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.edit-nav li a {
    display: block;
    padding: 16px 20px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.edit-nav li a:hover { background: #f8fafc; }
.edit-nav li.active a {
    background: #f0fdf4;
    color: #28a782;
    border-left-color: #28a782;
}

/* Правая часть (Контент) */
.edit-content {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 40px;
}

.edit-tab {
    display: none;
}
.edit-tab.active {
    display: block;
    animation: fadeInTab 0.3s ease;
}

.edit-tab h2 {
    font-size: 24px;
    color: #1a2b48;
    margin-top: 0;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991px) {
    .edit-property-layout { flex-direction: column; }
    .edit-sidebar { width: 100%; position: static; }
    .edit-content { padding: 24px; }
}

/* ==========================================================================
   ФИКС: СЕТКА ФОТОГРАФИЙ В РЕДАКТОРЕ
   ========================================================================== */
.existing-photos-grid,
.js-photo-preview { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: 20px !important; 
    margin-top: 16px !important; 
    margin-bottom: 24px !important; 
}
.existing-photo-item { 
    position: relative !important; 
    width: 140px !important; 
    height: 140px !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important; 
    transition: transform 0.2s !important; 
    flex: 0 0 auto !important; /* Запрещаем сжиматься или растягиваться */
    display: block !important;
}
.existing-photo-item:hover { 
    transform: translateY(-3px) !important; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important; 
}

/* Обертка фото с эффектом лупы */
.existing-photo-img-wrap { width: 100% !important; height: 100% !important; position: relative !important; border-radius: 12px !important; overflow: hidden !important; cursor: zoom-in !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; display: block !important; }
.existing-photo-img-wrap img { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: all 0.3s ease !important; display: block !important; }
.existing-photo-img-wrap:hover img { transform: scale(1.05) !important; filter: brightness(0.6) !important; }

/* Иконка лупы появляется при наведении */
.photo-overlay-icon { position: absolute !important; inset: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; opacity: 0 !important; transition: 0.3s ease !important; color: #fff !important; }
.existing-photo-img-wrap:hover .photo-overlay-icon { opacity: 1 !important; transform: scale(1.1) !important; }

/* Стильный крестик удаления */
.remove-photo-btn {
    position: absolute !important; top: -10px !important; right: -10px !important; width: 28px !important; height: 28px !important;
    border-radius: 50% !important; background: #ffffff !important; color: #ef4444 !important; border: 1px solid #fecaca !important;
    display: flex !important; align-items: center !important; justify-content: center !important; cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2) !important; transition: all 0.2s ease !important; z-index: 10 !important; padding: 0 !important;
}
.remove-photo-btn svg { width: 14px !important; height: 14px !important; }
.remove-photo-btn:hover { background: #ef4444 !important; color: #ffffff !important; transform: scale(1.15) rotate(90deg) !important; border-color: #ef4444 !important; }

/* Фикс рамки для текстового редактора */
.wp-editor-wrapper-custom { border: 1px solid #e2e8f0 !important; border-radius: 12px !important; overflow: hidden !important; }


/* ==========================================================================
   ЛАЙТБОКС (ПОЛНОЭКРАННОЕ УВЕЛИЧЕНИЕ ФОТО)
   ========================================================================== */
.photo-lightbox {
    position: fixed !important; 
    inset: 0 !important; 
    background: rgba(15, 23, 42, 0.9) !important; 
    backdrop-filter: blur(5px) !important;
    z-index: 999999 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    opacity: 0 !important; 
    visibility: hidden !important; 
    transition: 0.3s ease !important;
}
.photo-lightbox.active { 
    opacity: 1 !important; 
    visibility: visible !important; 
}
.photo-lightbox img {
    max-width: 90vw !important; 
    max-height: 90vh !important; 
    border-radius: 12px !important; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.3) !important;
    transform: scale(0.9) !important; 
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; 
    object-fit: contain !important;
}
.photo-lightbox.active img { 
    transform: scale(1) !important; 
}
.photo-lightbox-close {
    position: absolute !important; 
    top: 24px !important; 
    right: 24px !important; 
    background: rgba(255,255,255,0.1) !important; 
    border: none !important; 
    color: white !important;
    width: 48px !important; 
    height: 48px !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important;
    cursor: pointer !important; 
    transition: 0.2s !important; 
    backdrop-filter: blur(4px) !important;
    padding: 0 !important;
}
.photo-lightbox-close:hover { 
    background: rgba(255,255,255,0.2) !important; 
    transform: scale(1.1) !important; 
}

.glampings-items__item__content a {
    line-height: 25px !important;
    font-size: 16px  !important; 
    color: rgb(26 43 72) !important; 
    font-weight: 700 !important; 
    text-decoration: none;
    margin-bottom: 13px !important; 
}

/* ==========================================================================
   СВЕРНУТОЕ СОСТОЯНИЕ САЙДБАРА (Desktop)
   ========================================================================== */

/* Плавные переходы для ширины сайдбара и контента */
.dashboard-sidebar,
.dashboard-content,
.dashboard-sidebar__user,
.dashboard-nav__link,
.dashboard-sidebar-collapse {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Кнопка скрытия внизу сайдбара */
.dashboard-sidebar-collapse {
    background: transparent;
    border: none;
    border-top: 1px solid #f1f5f9;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}
.dashboard-sidebar-collapse:hover {
    color: #1a2b48;
    background: #f8fafc;
}
.dashboard-sidebar-collapse svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* --- Класс .is-collapsed вешается на <body> с помощью JS --- */

/* 1. Сужаем сайдбар */
body.is-collapsed .dashboard-sidebar {
    width: 80px;
}

/* 2. Растягиваем контент */
body.is-collapsed .dashboard-content {
    margin-left: 80px;
}

/* 3. Прячем текст в меню и аватарке */
body.is-collapsed .dashboard-sidebar__user {
    padding: 24px 16px;
    justify-content: center;
}
body.is-collapsed .dashboard-user-info,
body.is-collapsed .nav-text,
body.is-collapsed .dashboard-badge {
    opacity: 0;
    visibility: hidden;
    width: 0;
    display: none; /* Полностью убираем из потока, чтобы не мешали */
}

/* 4. Центрируем иконки в меню */
body.is-collapsed .dashboard-nav__link {
    justify-content: center;
    padding: 14px 0;
}
body.is-collapsed .dashboard-sidebar-collapse {
    justify-content: center;
    padding: 20px 0;
}

/* 5. Переворачиваем стрелку у кнопки свертывания */
body.is-collapsed .dashboard-sidebar-collapse svg {
    transform: rotate(180deg);
}

/* На мобилках кнопка свертывания не нужна (там шторка) */
@media (max-width: 991px) {
    .dashboard-sidebar-collapse {
        display: none !important;
    }
}

/* ==========================================================================
   ФИКС: ПРЯЧЕМ МОБИЛЬНЫЕ БЛОКИ МЕНЮ НА ПК
   ========================================================================== */
@media (min-width: 992px) {
 .header-mobile-smart-search,
 .site-header__header-menu-toggle,
 .mobile-menu-header,
 .mobile-menu-illustration-wrap,
 .mobile-menu-contacts,
 .site-mobile-overlay {
  display: none !important;
 }
}

/* ==========================================================================
   МОБИЛЬНОЕ МЕНЮ (ШТОРКА) - ПРЕМИУМ + ПОЛЬЗОВАТЕЛЬСКИЕ ПРАВКИ
   ========================================================================== */
@media (max-width: 991px) {
    /* Оверлей (затемнение фона) */
    .site-mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(3px);
        z-index: 99998 !important; 
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
        cursor: pointer;
        touch-action: none;
    }
    .site-mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Сама шторка меню */
    .site-header__header-navigation {
        position: fixed !important;
        top: 0;
        left: -100%;
        width: 330px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: #ffffff !important;
        z-index: 99999 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        margin: 0 !important;
        overflow-y: auto;
    }

    .site-header__header-navigation.toggled {
        left: 0 !important; 
    }

    /* Кнопка закрытия (Абсолютное позиционирование по вашей задумке) */
    .site-header__header-navigation button.menu-clouse {
        position: absolute;
        top: 25px;
        right: 20px;
        display: flex !important; /* Перебиваем десктопный display: none */
        background: #f1f5f9 !important;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        transition: transform 0.2s ease;
        z-index: 10;
    }
    .site-header__header-navigation button.menu-clouse:active {
        transform: scale(0.9);
    }

    /* Контейнер ссылок (Отступ 40px сверху) */
    .site-header__header-navigation ul#primary-menu {
        display: flex;
        flex-direction: column;
        gap: 12px;
        list-style: none;
        margin-top: 120px;
        margin-bottom: 32px;
        padding: 0;
    }

    .site-header__header-navigation ul#primary-menu li {
        width: 100%;
        margin: 0 !important;
    }

    /* Дизайн кнопок меню (Ваши отступы, шрифт и цвет) */
    .site-header__header-navigation ul#primary-menu li a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 4px 30px;
        font-size: 14px;
        font-weight: 600;
        color: var(--color-primary, #1a2b48);
        background: transparent;
        text-decoration: none;
        transition: opacity 0.2s ease, color 0.2s ease;
    }

    .site-header__header-navigation ul#primary-menu li a:active {
        color: #28a782;
        opacity: 0.7;
    }

    /* Вставляем SVG-иконки для ссылок меню */
    .site-header__header-navigation ul#primary-menu li a::before {
        content: '';
        display: block;
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 0.7;
        flex-shrink: 0;
    }
    .site-header__header-navigation ul#primary-menu li a:active::before {
        opacity: 1;
    }

    /* Картинка путешественника (Ваши ширина и сдвиг влево) */
    .mobile-menu-illustration-wrap {
        display: flex;
        justify-content: flex-start; /* Выравнивание под сдвиг */
        padding: 0;
        margin-top: auto; 
        margin-bottom: 32px; 
        overflow: hidden; /* Чтобы сдвинутая картинка не ломала ширину меню */
    }
    
    .mobile-menu-illustration {
        width: 300px;
        max-width: 100%;
        height: auto;
        object-fit: contain;
        margin-left: 0px;
    }

    /* Блок контактов */
    .mobile-menu-contacts {
        background: #f8fafc;
        padding: 24px;
        border-top: 1px solid #e2e8f0;
    }

    .mobile-menu-contacts__title {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        color: #94a3b8;
        letter-spacing: 0.05em;
        margin-bottom: 16px;
    }

    .mobile-menu-contact-link {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 16px;
        font-weight: 400;
        color: var(--color-primary, #1a2b48);
        text-decoration: none;
        margin-bottom: 20px;
    }

    .mobile-menu-socials {
        display: flex;
        gap: 12px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        transition: transform 0.2s ease;
    }
    
    .social-icon:active { transform: scale(0.9); }
    .social-icon.vk { background: #0077FF; }
    .social-icon.tg { background: #0088cc; }
    .social-icon.wa { background: #25D366; }
}

/* ==========================================================================
   ФИКС: ЕДИНАЯ КНОПКА ФИЛЬТРОВ ДЛЯ СМАРТФОНОВ И ПЛАНШЕТОВ (ДО 991px)
   ========================================================================== */
@media (max-width: 991px) {
    /* Сама плавающая кнопка (Справа посередине навсегда) */
    .fiitr-button-mobile,
    .fiitr-button-mobile.active,
    .fiitr-button-mobile.fixed {
        position: fixed !important; 
        top: 50% !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important; /* Выше шапки и всех картинок */
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        flex-direction: column !important;
        
        background: #ffffff !important;
        padding: 12px 14px !important;
        border-radius: 12px 0 0 12px !important; 
        box-shadow: -4px 4px 16px rgba(26, 43, 72, 0.12) !important; 
        border: 1px solid rgba(0,0,0,0.05) !important;
        border-right: none !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    #fiitr-mobile {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        display: flex !important;
    }

    /* Кнопка крестика (Сброс фильтров) */
    .fiitr-button-mobile__clear {
        width: 36px !important;
        height: 36px !important;
        flex: 0 0 36px !important;
        display: none !important; /* Показывается только когда активна через JS */
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        border: none !important;
        border-radius: 999px !important;
        background: #fff3f0 !important;
        color: #ff5a3c !important;
        box-shadow: 0 6px 16px rgba(26, 43, 72, 0.10) !important;
    }

    .fiitr-button-mobile__clear.active {
        display: inline-flex !important;
    }
    
    .fiitr-button-mobile__clear:active {
        transform: scale(0.96) !important;
    }

    /* Делаем само модальное окно фильтров на весь экран до 991px */
    body.mobile-filter-open {
        overflow: hidden !important;
    }

    .filtr-wrapper {
        position: fixed !important;
        inset: 0 !important;
        z-index: 100001 !important;
    }
    
    .filtr-wrapper > .container {
        position: fixed !important;
        top: 30px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        background: #fff !important;
        border-radius: 28px 28px 0 0 !important;
    }
}

@media (max-width: 991px) {
  /* 1. Возвращаем верхнюю панель в обычное состояние (убираем липкость и Grid) */
    .site-main-article__top {
        display: flex !important;
        flex-direction: column !important; /* Текст и карта друг под другом */
        align-items: center !important;
        position: relative !important;
        top: auto !important;
        background: transparent !important;
        backdrop-filter: none !important;
        border: none !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        z-index: 9999 !important;
    }
    .site-main-article__top,
.site-main-article,
body,
#primary {
    padding-top: 0 !important;
}

.site-main-article__top > div:empty,
.clone,
.sticky-clone,
.placeholder {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-main-article__top > div {
    height: auto !important;
    min-height: 0 !important;
}
}

/* Выравниваем иконку и высоту кнопки "Все фильтры" под остальные плашки */
.filtr__item.all-filtr .filtr__item__button button svg:first-child {
    width: 16px !important;
    height: 16px !important;
}

@media (min-width: 992px) and (max-width: 1250px) {
    
        /* === ЗАМЕНЯЕМ ДЛИННЫЕ ЦИФРЫ НА КОРОТКИЕ СЛОВА === */
    .filtr__item.price .filtr__item__button button > span {
        font-size: 0 !important; 
        line-height: 0 !important; /* УБИВАЕМ ВЛИЯНИЕ 20PX */
    }
    
    .filtr__item.price .filtr__item__button button > span::before {
        content: "Цена";
        font-size: 11px !important;
        color: #1a2b48 !important;
        /* Выравниваем текст: */
        display: inline-block !important; 
        line-height: normal !important;
    }

    .filtr__item__button button {

    color: #1a2b48 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

    .filtr__item__button button > span {
        font-size: 11px !important;
        color: #1a2b48 !important; /* ЖЕСТКО ЗАДАЕМ ЦВЕТ ВНУТРЕННЕМУ ТЕКСТУ */
    }
    
    div#desktop-all-filters-badge {
        visibility: hidden;
    }

    /* Родитель для позиционирования */
    .filtr__item.all-filtr .filtr__item__button {
        position: relative !important;
    }

    /* Контейнер сброса */
    .filtr__item.reset-all-desktop {
        position: absolute !important;

        top: -8px !important;
        right: -8px !important;

        margin: 0 !important;
        padding: 0 !important;
        border: none !important;

        z-index: 999 !important;
    }

    /* Красная кнопка */
    .filtr__item.reset-all-desktop .filtr__item__button button {
        position: static !important;
        transform: none !important;

        width: 18px !important;
        height: 18px !important;
        min-width: 18px !important;
        min-height: 18px !important;

        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border: none !important;
        border-radius: 50% !important;

        background: #ff5a3c !important;
    }

    /* Прячем текст */
    .filtr__item.reset-all-desktop .filtr__item__button button > span {
        display: none !important;
    }

    /* Крестик */
    .filtr__item.reset-all-desktop .filtr__item__button button svg {
        margin: 0 !important;
        width: 12px !important;
        height: 12px !important;
        stroke: #fff !important;
    }
}

.filtr__item__button button span.vibor {
    font-size: 11px;
    color: #1a2b48;
}

@media (max-width: 991px) {
    /* 1. Делаем шапку относительной для выравнивания внутри неё */
    .site-header__header {
        justify-content: space-between !important;
        position: relative !important;
    }

    /* 2. Ставим пилюлю в абсолютный центр */
    .header-mobile-smart-search {
        display: flex !important;
        align-items: center;
        gap: 8px;
        
        /* === МАГИЯ АБСОЛЮТНОГО ЦЕНТРИРОВАНИЯ === */
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        /* ======================================== */
        
        padding: 8px 16px;
        background: #ffffff;
        color: #1a2b48;
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        border-radius: 100px;
        border: 1px solid rgba(26, 43, 72, 0.05);
        box-shadow: 0 2px 8px rgba(26, 43, 72, 0.06), 0 1px 2px rgba(26, 43, 72, 0.04);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        z-index: 10;
    }

    /* Эффект при нажатии (сохраняем центрирование) */
    .header-mobile-smart-search:active {
        transform: translateX(-50%) scale(0.96) !important;
        box-shadow: 0 1px 4px rgba(26, 43, 72, 0.04);
    }
}

/* ==========================================================================
   ФИКС: УБИРАЕМ "ВЫРЕЗАННЫЕ" УГЛЫ-БИЛЕТИКИ У ПЛАШЕК ФИЛЬТРОВ
   ========================================================================== */
@media (max-width: 991px) {
    /* Жестко убиваем все псевдоэлементы-кружочки, которые перекрывают рамку */
    .filtr__item::before,
    .filtr__item::after,
    .filtr__item__button::before,
    .filtr__item__button::after,
    .filtr__item__button button::before,
    .filtr__item__button button::after,
    .filtr__item__content::before,
    .filtr__item__content::after {
        display: none !important;
        content: none !important;
        background: transparent !important;
        width: 0 !important;
        height: 0 !important;
        box-shadow: none !important;
    }

    /* Восстанавливаем нормальную, целую рамку для самой плашки */
    .filtr__item {
        border: 1px solid #e2e8f0 !important;
        border-radius: 16px !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    /* Гарантируем, что у самой кнопки тоже нет скрытых рамок */
    .filtr__item__button,
    .filtr__item__button button {
        border: none !important;
        border-radius: 16px !important;
    }
}
    
    /* --- 1. БЫСТРЫЕ ФИЛЬТРЫ (Пилюли над каталогом) --- */
    .search-queries-item a {
        background: #28a782 !important; /* Сразу делаем их зелеными (цвет наведения) */
        color: #ffffff !important;
        border-color: transparent !important;
        box-shadow: 0 4px 12px rgba(40, 167, 130, 0.15) !important;
    }
    
    /* Убиваем смену цвета и залипание ховера при тапе пальцем */
    .search-queries-item a:hover,
    .search-queries-item a:active,
    .search-queries-item a:focus {
        background: #28a782 !important;
        color: #ffffff !important;
        /* Оставляем только легкое физическое уменьшение кнопки для тактильности */
        transform: scale(0.96) !important; 
        box-shadow: 0 2px 6px rgba(40, 167, 130, 0.1) !important;
    }

/* ==========================================================================
   ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ ПРЫЖКА И ОТСТУПА ФИЛЬТРОВ НА ПК
   ========================================================================== */
@media (min-width: 992px) {
    /* 1. Переводим фильтр на нативное прилипание.
          Жестко фиксируем top: 0 !important, чтобы JS-скрипт не мог "угнать" панель вниз 
          своими инлайн-стилями, когда вы доходите до конца листинга. */
    .filtr-wrapper,
    .filtr-wrapper.filtr-fixed {
        position: sticky !important;
        top: 0 !important; 
        bottom: auto !important;
        transform: none !important;
        margin-top: 0 !important;
        z-index: 1000 !important;
    }

    /* 2. Строго запрещаем скрипту добавлять тот самый padding-top к <main>.
          Именно из-за него появлялась огромная белая дыра перед карточками! */
    main#primary.site-main {
        padding-top: 0 !important;
    }
}

/* Базовые стили для рейтинга в шапке (ПК и планшеты) */
.single-header__rating {
    display: flex;
    align-items: end;
    justify-content: flex-end !important; /* Выравнивание по правому краю */
    gap: 10px;
    flex-wrap: wrap;
    position: relative; /* Для абсолютной ссылки .link-reviews */
}

/* Адаптив для смартфонов */
@media (max-width: 767px) {
    .single-header__rating {
        justify-content: flex-start !important; /* Выравнивание по левому краю */
        margin-top: 12px; /* Небольшой отступ от заголовка H1 */
        align-items: self-start;
    }
}

/* ==========================================================================
   СТИЛИ ТАБЛИЦЫ РЕЙТИНГА ГЛЭМПИНГОВ (LEADERBOARD)
   ========================================================================== */
.glamping-leaderboard {
    margin-bottom: 60px;
}

.glamping-leaderboard__title {
    font-size: 24px;
    font-weight: 800;
    color: #1a2b48;
    margin-bottom: 24px;
}

/* Обертка для мобильного скролла */
.glamping-leaderboard__table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.glamping-leaderboard__table {
    width: 100%;
    min-width: 700px; /* Чтобы не сжималась на мобильных, а скроллилась */
    border-collapse: collapse;
    text-align: left;
}

.glamping-leaderboard__table th {
    background: #f8fafc;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
}

.glamping-leaderboard__table td {
    padding: 16px 20px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
}

.glamping-leaderboard__table tbody tr:hover td {
    background: #fcfcfd;
}

.glamping-leaderboard__table tbody tr:last-child td {
    border-bottom: none;
}

/* Кружочки с местами */
.lb-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}
.rank-gold   { background: #fef3c7; color: #b45309; box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2); }
.rank-silver { background: #f1f5f9; color: #475569; box-shadow: 0 2px 4px rgba(148, 163, 184, 0.2); }
.rank-bronze { background: #ffedd5; color: #9a3412; box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2); }
.rank-default{ background: #ffffff; color: #94a3b8; border: 1px solid #e2e8f0; }

/* Название и фото */
.lb-glamping-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1a2b48;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}
.lb-glamping-link img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}
.lb-glamping-link:hover { color: #28a782; }

/* Текст региона */
.lb-loc-text {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Блок рейтинга */
.lb-rating-box {
    display: flex;
    align-items: center;
    gap: 6px;
}
.lb-score {
    font-size: 16px;
    font-weight: 800;
    color: #1a2b48;
}
.lb-reviews {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.lb-btn,
.lb-btn:visited {
 display: inline-block;
 padding: 8px 16px;
 background: #f1f5f9 !important;
 color: #1a2b48 !important;
 font-size: 13px;
 font-weight: 600;
 border-radius: 8px;
 text-decoration: none !important;
 transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
 -webkit-tap-highlight-color: transparent;
 outline: none !important;
}
.lb-btn:hover,
.lb-btn:focus,
.lb-btn:focus-visible,
.lb-btn:active {
 background: #28a782 !important;
 color: #ffffff !important;
 text-decoration: none !important;
 outline: none !important;
 box-shadow: 0 4px 12px rgba(40, 167, 130, 0.25);
}
.lb-btn:active {
 background: #218c6d !important;
 color: #ffffff !important;
 transform: scale(0.98);
}


.glamping-leaderboard__footer {
 text-align: center;
 margin-top: 18px;
}

.lb-btn.lb-btn--full-rating,
.lb-btn.lb-btn--full-rating:visited {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 6px;
 padding: 12px 24px;
 font-size: 14px;
 font-weight: 600;
 line-height: 1.4;
 border-radius: 12px;
 background: #ffffff !important;
 color: #1a2b48 !important;
 border: 1.5px solid #28a782 !important;
 box-shadow: 0 4px 12px rgba(40, 167, 130, 0.10);
}

.lb-btn.lb-btn--full-rating:hover,
.lb-btn.lb-btn--full-rating:focus,
.lb-btn.lb-btn--full-rating:focus-visible,
.lb-btn.lb-btn--full-rating:active {
 background: #28a782 !important;
 color: #ffffff !important;
 border-color: #28a782 !important;
 box-shadow: 0 6px 16px rgba(40, 167, 130, 0.25);
}



/* ==========================================================================
   СТИЛИ ДЛЯ КОПИРОВАНИЯ ПРОМОКОДА
   ========================================================================== */
.js-copy-promocode {
    cursor: pointer;
    user-select: none;
    display: inline-block;
    white-space: nowrap; /* Не дает длинному тексту переноситься на вторую строку */
    transition: transform 0.2s ease, background-color 0.3s ease, opacity 0.2s ease !important;
}

.js-copy-promocode:active {
    transform: scale(0.92);
    opacity: 0.8;
}

/* ==========================================================================
   СОВРЕМЕННАЯ КНОПКА ПРОМОКОДА (ЕДИНАЯ ДЛЯ ПК И МОБИЛЬНЫХ)
   ========================================================================== */
.modern-promo-wrapper {
    width: 100%;
    margin-top: 16px;
    margin-bottom: 12px;
}

@media (max-width: 991px) {
    .modern-promo-wrapper {
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 2px;
}
}

.modern-promo-btn {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Раскидываем текст и код по краям */
    background: linear-gradient(135deg, #ff5a3c 0%, #e63939 100%);
    color: #fff !important; /* Принудительно белый цвет */
    padding: 10px 16px;
    border-radius: 8px; /* Скруглили как кнопку Забронировать */
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: none;
    width: 100%; /* Занимает всю ширину как кнопка "Забронировать" */
    box-sizing: border-box;
    user-select: none;
    transition: transform 0.2s ease, background 0.3s ease;
}

.modern-promo-btn:active {
    transform: scale(0.96);
}

.modern-promo-btn__discount {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modern-promo-btn__code {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ПЕРЕКЛЮЧАТЕЛЬ "ТОЛЬКО С ПРОМОКОДАМИ" (КАТАЛОГ)
   ========================================================================== */
.promo-filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: #fff3f0;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #ffe6e0;
    transition: background 0.2s;
    margin-left: auto;
    margin-right: 16px;
}

.promo-filter-toggle:hover { background: #ffe9e4; }
.promo-filter-toggle input { display: none; }
.promo-filter-toggle__switch {
    width: 34px; height: 20px; background: #cbd5e1; border-radius: 20px;
    position: relative; transition: 0.3s;
}
.promo-filter-toggle__switch::after {
    content: ''; position: absolute; width: 16px; height: 16px;
    background: #fff; border-radius: 50%; top: 2px; left: 2px;
    transition: 0.3s; box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.promo-filter-toggle input:checked + .promo-filter-toggle__switch { background: #ff5a3c; }
.promo-filter-toggle input:checked + .promo-filter-toggle__switch::after { transform: translateX(14px); }
.promo-filter-toggle__text { font-size: 14px; font-weight: 600; color: #1a2b48; }

@media (max-width: 767px) {
    .promo-filter-toggle { margin: 0 auto; width: fit-content; }
}

.single-glampings .btn-to-top {
    bottom: 150px !important;
    right: 10px;
}

.btn-to-top {
    bottom: 100px !important;
}

/* ==========================================================================
   СЛАЙДЕР ОТЗЫВОВ (CATALOG REVIEWS)
   ========================================================================== */
.catalog-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Навигация слайдера (Стрелки) */
.catalog-reviews-nav {
    display: flex;
    gap: 12px;
}

.swiper-btn-prev-custom,
.swiper-btn-next-custom {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #1a2b48;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.swiper-btn-prev-custom:hover,
.swiper-btn-next-custom:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.swiper-btn-prev-custom.swiper-button-disabled,
.swiper-btn-next-custom.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Карточка отзыва в слайдере */
.catalog-review-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    
    /* Флексбокс настройки для высоты */
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important; 
    box-sizing: border-box;
    
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.catalog-review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(26, 43, 72, 0.08);
}

.catalog-review-card__header {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 12px;
    margin-bottom: 16px;
}

.catalog-review-card__avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1a2b48 0%, #3b5a8c 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.catalog-review-card__meta {
    flex: 1;
    min-width: 0;
}

.catalog-review-card__name {
    font-weight: 700;
    color: #1a2b48;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.catalog-review-card__date {
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}

/* Новая ссылка на глэмпинг (под датой) */
.catalog-review-card__glamping-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #28a782;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.catalog-review-card__glamping-link:hover {
    color: #1a2b48;
    text-decoration: underline;
}

.catalog-review-card__rating {
    background: #fffbeb;
    color: #d97706;
    padding: 4px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.catalog-review-card__text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 0;
    flex-grow: 1 !important; 
}

.catalog-reviews-swiper .swiper-slide {
    height: auto !important; 
}

@media (max-width: 767px) {
    .catalog-reviews-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }
}


/* ==========================================================================
   АДАПТИВ СЛАЙДЕРА ОТЗЫВОВ ДЛЯ СМАРТФОНОВ
   ========================================================================== */
@media (max-width: 767px) {
    /* Скрываем кнопки-стрелки на мобильных */
    .catalog-reviews-nav {
        display: none !important;
    }

    /* Уменьшаем отступ под заголовком, так как кнопок больше нет */
    .catalog-reviews-header {
        margin-bottom: 16px !important;
    }
    
    /* Добавляем небольшой отступ справа, чтобы последний отзыв (если свайпать в конец)
       не прилипал жестко к краю экрана при loop: true */
    .catalog-reviews-swiper {
        padding-right: 16px !important;
    }
}

section.no-results.not-found {
    margin-bottom: 0px !important;
}

.term-may-like__title {
	margin-top: 0 !important;
	margin-bottom: 18px !important;
	text-align: left !important;
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #1a2b48 !important;
	line-height: 1.25 !important;
}

@media (max-width: 767px) {
	.term-may-like__title {
		font-size: 20px !important;
		margin-bottom: 14px !important;
		text-align: left !important;
	}
}

/* Плюсы и минусы в отзывах */
.review-pro-con {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
    color: #334155;
}
.review-pros strong { color: #28a782; }
.review-cons strong { color: #dc2626; }

.review-main-text {
    margin-top: 12px;
}

/* Бейджи источника отзыва */
.review-badge-origin {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

/* Гость с нашего сайта */
.review-badge-origin.user-origin {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Отзыв с Яндекса / Сети */
.review-badge-origin.import-origin {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* ==========================================================================
   УМНОЕ САММАРИ ОТЗЫВОВ (Премиальный Soft UI дизайн)
   ========================================================================== */
.smart-reviews-summary {
    background: #ffffff;
    border: 1px solid #eef2f6; /* Очень легкая, дорогая граница */
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 8px 30px rgba(26, 43, 72, 0.03); /* Мягкая, глубокая тень */
}

/* Шапка блока */
.smart-summary-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.smart-summary-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a2b48;
    flex-shrink: 0;
}

.smart-summary-title h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #1a2b48 !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.2 !important;
}

.smart-summary-title p {
    font-size: 13px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Сетка тегов */
.smart-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Чуть плотнее друг к другу */
    justify-content: center;
}

/* Общий стиль тега (Компактный) */
.summary-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px; /* Иконка ближе к тексту */
    padding: 4px 12px; /* Убрали лишнюю высоту */
    border-radius: 100px; /* Идеальная форма пилюли */
    font-size: 13px; /* Элегантный размер шрифта */
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, background-color 0.2s ease;
    cursor: default;
    user-select: none;
}

/* Оптимизированная анимация наведения */
.summary-tag:hover {
    transform: translateY(-2px);
}

/* Плюсы (Свежий изумрудный цвет) */
.summary-tag.tag-pro {
    background: #ecfdf5; 
    color: #047857;
    border: 1px solid #a7f3d0; /* Четкая, но нежная граница */
}

.summary-tag.tag-pro svg {
    color: #10b981;
    width: 12px;
    height: 12px;
}

.summary-tag.tag-pro:hover {
    background: #d1fae5;
}

/* Минусы (Мягкий ягодный цвет) */
.summary-tag.tag-con {
    background: #fef2f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.summary-tag.tag-con svg {
    color: #f43f5e;
    width: 12px;
    height: 12px;
}

.summary-tag.tag-con:hover {
    background: #ffe4e6;
}

/* Адаптив для телефонов */
@media (max-width: 767px) {
    .smart-reviews-summary {
        padding: 20px;
        border-radius: 16px;
    }
    
    .smart-summary-header {
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .smart-summary-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    
    .smart-summary-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .smart-summary-title h3 {
        font-size: 16px !important;
    }
    
    .smart-summary-title p {
        font-size: 12px !important;
    }
    
    /* Делаем плашки на мобильных еще компактнее */
    .summary-tag {
        font-size: 12px;
        padding: 4px 10px;
        gap: 4px;
    }
    
    .summary-tag svg {
        width: 10px;
        height: 10px;
        stroke-width: 3; /* Оставляем иконку плотной, несмотря на мелкий размер */
    }
}

/* ==========================================================================
   DARK NEON / НОЧНОЙ ЛЕС (Под цвет главной шапки)
   ========================================================================== */
.sg-contacts-wrapper {
    margin-top: 32px;
    padding: 32px 24px;
    /* Тот самый градиент из вашей шапки H1 */
    background: linear-gradient(135deg, #132035 0%, #1c2e4f 50%, #243b63 100%);
    border-radius: 20px;
    /* Легкая белая фаска для придания стеклянного объема */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 2px 20px rgba(40, 167, 130, 0.1), 0 10px 30px rgba(19, 32, 53, 0.2);
}

.sg-contacts-heading {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Светящаяся точка у заголовка */
.sg-contacts-heading::before {
    content: ""; 
    display: block; 
    width: 8px; 
    height: 8px; 
    border-radius: 50%;
    background: #28a782; /* Фирменный зеленый Трипинглэмп */
    box-shadow: 0 0 12px #28a782;
}

.sg-contacts-list { 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
}

/* Стеклянные кнопки */
.sg-c-item {
    display: flex; 
    align-items: center; 
    gap: 16px; 
    padding: 16px;
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; 
    text-decoration: none;
    position: relative; 
    overflow: hidden;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease;
}

.sg-c-icon {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 44px; 
    height: 44px; 
    border-radius: 10px;
    background: rgba(40, 167, 130, 0.1); 
    color: #28a782;
    transition: all 0.3s ease;
}
.sg-c-icon svg { width: 22px; height: 22px; stroke-width: 2; }

.sg-c-text { 
    display: flex; 
    flex-direction: column; 
    z-index: 2; 
    min-width: 0;
}
.sg-c-label { 
    font-size: 11px; 
    font-weight: 500; 
    color: rgba(255, 255, 255, 0.6); 
    letter-spacing: 0.5px; 
}
.sg-c-value { 
    font-size: 16px; 
    font-weight: 600; 
    color: #ffffff; 
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Неоновый блик-лазер, пробегающий по кнопке при наведении */
.sg-c-item::before {
    content: ""; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 130, 0.15), transparent);
    transition: left 0.5s ease;
}

/* Эффект наведения */
.sg-c-item:hover {
    border-color: #28a782;
    background: rgba(40, 167, 130, 0.05);
    transform: translateY(-2px);
}

.sg-c-item:hover::before { 
    left: 100%; 
}

.sg-c-item:hover .sg-c-icon { 
    background: #28a782; 
    color: #fff; 
    box-shadow: 0 0 15px rgba(40, 167, 130, 0.5); 
}

@media (max-width: 991px) {
    .sg-contacts-wrapper {
    margin-top: 0px;
}}

/* ==========================================================================
   CASH-БЛОК: ПРЕМИАЛЬНАЯ КАРТОЧКА БРОНИРОВАНИЯ (ДЕСКТОП)
   ========================================================================== */
.sg-booking-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px -10px rgba(26, 43, 72, 0.08);
    position: relative;
    overflow: hidden;
}

/* Цена */
.sg-booking-card__price-wrap {
    margin-bottom: 24px;
}

.sg-booking-card__price-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.sg-booking-card__price-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #1a2b48;
    white-space: nowrap; /* ДОБАВЛЕНО: Запрет переноса всей строки цены */
}

.sg-booking-card__price-from { font-size: 16px; font-weight: 600; color: #94a3b8; }
.sg-booking-card__price-num { 
    font-size: 32px; 
    font-weight: 800; 
    line-height: 1; 
    letter-spacing: -0.02em; 
    white-space: nowrap; /* ДОБАВЛЕНО: Запрет разрыва тысяч (5 000) */
}
.sg-booking-card__price-currency { font-size: 24px; font-weight: 700; }
.sg-booking-card__price-period { font-size: 14px; color: #94a3b8; font-weight: 500; margin-left: 4px; }

/* Промокод (Дизайн "Купон") */
.sg-booking-card__promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff5f3;
    border: 2px dashed #ffc5b9;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 24px;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.sg-booking-card__promo:hover {
    background: #ffebe6;
    border-color: #ff5a3c;
    transform: scale(1.02);
}

.sg-booking-card__promo-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ff5a3c;
}

.sg-booking-card__promo-code {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid #ffc5b9;
    font-family: monospace;
    font-size: 13px;
    font-weight: 800;
    color: #ff5a3c;
}
.sg-booking-card__promo-code svg { width: 14px; height: 14px; opacity: 0.7; }

/* Кнопка */
.sg-booking-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #28a782 0%, #1fa36f 100%);
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(40, 167, 130, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    box-sizing: border-box;
}

.sg-booking-card__btn svg { width: 22px; height: 22px; transition: transform 0.3s ease; }

.sg-booking-card__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(40, 167, 130, 0.35);
}
.sg-booking-card__btn:hover svg { transform: translateX(5px); }
.sg-booking-card__btn:active { transform: translateY(0) scale(0.98); }

/* Подсказка снизу */
.sg-booking-card__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}
.sg-booking-card__hint svg { width: 14px; height: 14px; }

/* Плашка "Не работает" */
.sg-booking-card__unavailable {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fef2f2; color: #ef4444; padding: 20px; border-radius: 16px;
    font-size: 16px; font-weight: 700; border: 1px solid #fecaca;
}


/* ==========================================================================
   CASH-БЛОК: ФИКСИРОВАННАя ПАНЕЛЬ БРОНИРОВАНИЯ
   ========================================================================== */
.sg-mobile-booking-bar {
    display: none; /* Скрыто на ПК */
}

@media (max-width: 991px) {
    /* Скрываем только десктопную карточку бронирования, а не весь сайдбар целиком */
    .sg-booking-card {
        display: none !important;
    }

    /* Добавляем отступ к body, чтобы панель не перекрывала футер */
    body {
        padding-bottom: 90px !important;
    }

    .sg-mobile-booking-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px); /* Эффект размытия как в iOS */
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -10px 30px rgba(26, 43, 72, 0.05);
        z-index: 9999;
        /* Безопасная зона для iPhone (челка снизу) */
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Внутренний контейнер бара */
    .sg-mobile-booking-bar__inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 26px 20px;
        gap: 16px;
        padding-bottom: 10px;
    }

    /* Левая колонка - Цена */
    .sg-mobile-booking-bar__price-col {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sg-mobile-price-val {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b48;
    line-height: 1;
    letter-spacing: -0.02em;
    white-space: nowrap; /* ДОБАВЛЕНО: Не даем цене переноситься */
}

    .sg-mobile-price-period {
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
        margin-top: 4px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Правая колонка - Кнопка */
    .sg-mobile-booking-bar__btn-col {
        flex: 1;
        display: flex;
        justify-content: flex-end;
    }

    .sg-mobile-btn {
        background: linear-gradient(135deg, #28a782 0%, #1fa36f 100%);
        color: #ffffff !important;
        font-size: 16px;
        font-weight: 700;
        padding: 14px 28px;
        border-radius: 12px;
        text-decoration: none;
        display: inline-block;
        box-shadow: 0 8px 16px rgba(40, 167, 130, 0.25);
        transition: transform 0.1s ease;
        text-align: center;
        width: 100%;
        max-width: 220px;
    }

    .sg-mobile-btn:active {
        transform: scale(0.96);
    }

    /* Всплывающий баббл с промокодом (над баром) */
    .sg-mobile-promo-bubble {
        position: absolute;
        bottom: 95%;
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        background: #1a2b48;
        color: #ffffff;
        font-size: 12px;
        font-weight: 500;
        padding: 10px 20px;
        border-radius: 100px;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(26, 43, 72, 0.15);
        cursor: pointer;
        user-select: none;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .sg-mobile-promo-bubble strong {
        color: #34d399; /* Зеленый текст промокода */
        font-family: monospace;
        font-size: 13px;
        background: rgba(255, 255, 255, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        margin-left: 4px;
    }

    .sg-mobile-promo-bubble:active {
        transform: translateX(-50%) translateY(10px) scale(0.95);
        background: #28a782;
    }

    .sg-mobile-booking-bar__unavailable {
        background: #fef2f2; color: #ef4444; padding: 16px; 
        text-align: center; font-weight: 700; font-size: 15px;
    }
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЕ КАРТОЧКИ: ВАРИАНТЫ РАЗМЕЩЕНИЯ
   ========================================================================== */
.premium-variants-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 10px;
}

.pvc-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    gap: 24px;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.03);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.pvc-card:hover {
    box-shadow: 0 12px 30px rgba(26, 43, 72, 0.08);
    border-color: #cbd5e1;
}

/* Левая часть: галерея */
/* 1. На ПК (Делаем шире и выше) */
.pvc-gallery-wrap {
    width: 341px !important; /* Было 320px */
    height: 251px !important; /* Было 240px */
    flex-shrink: 0 !important;
    display: block !important;
}

.pvc-gallery-wrap .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Правая часть: контент */
.pvc-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
}

.pvc-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a2b48;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

/* Метки (Площадь, Вместимость) */
.pvc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.pvc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
}

.pvc-meta-item svg {
    width: 16px;
    height: 16px;
    color: #28a782;
}

/* Описание */
.pvc-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Удобства (Теги) */
.pvc-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.pvc-amenity-tag {
    font-size: 12px;
    font-weight: 600;
    color: #1a2b48;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 100px;
}

/* Подвал (Цена и кнопка) */
.pvc-footer {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.pvc-price {
    font-size: 14px;
    color: #64748b;
}

.pvc-price strong {
    font-size: 24px;
    font-weight: 800;
    color: #1a2b48;
    letter-spacing: -0.02em;
}

.pvc-btn {
    background: linear-gradient(135deg, #28a782 0%, #1fa36f 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(40, 167, 130, 0.2);
}

.pvc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(40, 167, 130, 0.3);
}

/* --- Адаптивность --- */
@media (max-width: 767px) {
    .pvc-card {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
    }
    
    .pvc-gallery-wrap {
        width: 100%;
        height: 200px; /* На мобильных фото сверху и чуть ниже */
    }
    
    .pvc-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .pvc-btn {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Защита от сплющивания фото до загрузки JavaScript */
.pvc-swiper .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Делаем точки пагинации белыми и красивыми */
.pvc-swiper .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}
.pvc-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
}

/* Разрешаем левой колонке менять высоту в зависимости от наличия миниатюр */
.pvc-gallery-wrap {
    width: 320px;
    height: auto; /* Заменили жесткие 240px */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* Главное фото: занимает 100% ширины */
.pvc-swiper-main .swiper-slide {
    width: 100% !important;
    flex-shrink: 0 !important;
}

/* Миниатюры: отдаем контроль ширины самому скрипту Swiper (чтобы влезло 4 в ряд) */
.pvc-swiper-thumbs .swiper-slide {
    width: 25%; /* Фоллбэк до инициализации JS */
    height: 100% !important;
    flex-shrink: 0 !important;
}

/* Дизайн неактивных миниатюр */
.pvc-swiper-thumbs .swiper-slide {
    opacity: 0.5;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

/* Дизайн активной миниатюры (зеленая рамка) */
.pvc-swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: #28a782; /* Фирменный цвет Трипинглэмп */
}

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .pvc-gallery-wrap {
        width: 100%;
    }
}

/* ==========================================================================
   ОСНОВНАЯ ИНФОРМАЦИЯ: ХАРАКТЕРИСТИКИ, ТЕГИ, ОПИСАНИЕ, ПРАВИЛА
   ========================================================================== */

/* 1. Блок 4-х характеристик (Под слайдером) */
.sg-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
    padding-top: 0px !important;
}
.sg-hl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sg-hl-item svg {
    width: 24px; height: 24px; flex-shrink: 0; color: #1a2b48; margin-top: 2px;
}
.sg-hl-label {
    display: block; font-size: 13px; color: #64748b; margin-bottom: 2px;
}
.sg-hl-val {
    display: block; font-size: 15px; font-weight: 700; color: #1a2b48; line-height: 1.3;
}

/* 2. Теги (Регион и категории) */
.sg-categories-pills {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 10px;
 margin-bottom: 32px;
}
.sg-categories-pills a {
 display: inline-flex;
 align-items: center;
 gap: 6px;
 padding: 6px 14px;
 border-radius: 100px;
 font-size: 13px;
 font-weight: 600;
 text-decoration: none;
 background: #f8fafc;
 color: #475569;
 border: 1px solid #e2e8f0;
 transition: 0.2s ease;
}
.sg-categories-pills a:hover {
 background: #f1f5f9;
 color: #1a2b48;
}
.sg-categories-pills a.sg-pill-loc {
 background: #e6f5ef;
 color: #28a782;
 border: 1px solid #c2e6da;
}
.sg-categories-pills a.sg-pill-loc svg {
 width: 14px;
 height: 14px;
}
.sg-categories-pills a.sg-pill-loc:hover {
 background: #d1fae5;
 color: #047857;
}


/* 3. Описание */
.sg-section-title {
    font-size: 24px; font-weight: 800; color: #1a2b48; margin: 0 0 20px 0;
}
.sg-desc-typography {
    font-size: 16px; line-height: 1.6; color: #475569;
}
.sg-desc-typography p { margin-bottom: 1.2em; }
.sg-desc-typography p:last-child { margin-bottom: 0; }

/* ==========================================================================
   СТИЛЬНЫЙ БЛОК: ПРАВИЛА БРОНИРОВАНИЯ И ОТМЕНЫ
   ========================================================================== */
.sg-rules-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 32px;
    margin-top: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 16px rgba(26, 43, 72, 0.03);
    position: relative;
    overflow: hidden;
}

/* Декоративная акцентная полоска слева */
.sg-rules-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #28a782 0%, #1fa36f 100%);
    border-radius: 4px 0 0 4px;
}

.sg-rules-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.sg-rules-icon {
    width: 40px;
    height: 40px;
    background: #e6f5ef;
    color: #28a782;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sg-rules-icon svg {
    width: 20px;
    height: 20px;
}

.sg-rules-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a2b48 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

/* Список правил */
.sg-rules-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-rules-content li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Кастомный изумрудный маркер вместо стандартной браузерной точки */
.sg-rules-content li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: #28a782;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #e6f5ef;
}

/* --- Адаптивность: Планшеты и Мобильные --- */
@media (max-width: 991px) {
    .sg-rules-box {
        padding: 24px 24px;
    }
}

@media (max-width: 767px) {
    .sg-rules-box {
        padding: 20px 18px;
        border-radius: 16px;
        margin-top: 16px;
        margin-bottom: 28px;
    }

    .sg-rules-header {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .sg-rules-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .sg-rules-icon svg {
        width: 17px;
        height: 17px;
    }

    .sg-rules-title {
        font-size: 16px !important;
    }

    .sg-rules-content li {
        font-size: 14px;
        padding-left: 24px;
        line-height: 1.5;
    }

    .sg-rules-content li::before {
        top: 7px;
        width: 6px;
        height: 6px;
    }
}

/* ==========================================================================
   УСЛОВИЯ РАЗМЕЩЕНИЯ (Карточки Заезда/Выезда)
   ========================================================================== */
.sg-conditions-box {
    margin-top: 40px;
    margin-bottom: 40px;
}
.sg-conditions-grid {
    display: flex;
    gap: 24px;
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #f1f5f9;
}
.sg-condition-item {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}
.sg-condition-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    color: #28a782;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.03);
    flex-shrink: 0;
}
.sg-condition-icon svg { width: 24px; height: 24px; }
.sg-condition-text { display: flex; flex-direction: column; }
.sg-cond-label { font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 2px; }
.sg-cond-val { font-size: 16px; font-weight: 700; color: #1a2b48; }

/* ==========================================================================
   УДОБСТВА И РАЗВЛЕЧЕНИЯ (КАСТОМНАЯ СЕТКА БЕЗ БАГОВ)
   ========================================================================== */
.sg-amenities-box {
    margin-bottom: 48px;
}

.sg-amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 24px;
    row-gap: 16px;
    margin-bottom: 24px;
}

.sg-amenity-title {
    grid-column: 1 / -1;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    margin-top: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.sg-amenities-grid .sg-amenity-title:first-child {
    margin-top: 0;
}

.sg-amenity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 15px;
    color: #475569;
}

.sg-amenity-item svg {
    width: 24px;
    height: 24px;
    color: #1a2b48;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Скрытые элементы */
.sg-hidden-fac {
    display: none !important;
}

/* Раскрытое состояние */
.sg-custom-amenities.is-expanded .sg-hidden-fac {
    display: flex !important;
    animation: fadeInFac 0.3s ease;
}
.sg-custom-amenities.is-expanded .sg-amenity-title.sg-hidden-fac {
    display: block !important;
}

@keyframes fadeInFac {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sg-custom-btn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b48;
    background: #ffffff;
    padding: 12px 24px;
    border: 1px solid #1a2b48;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sg-custom-btn-more:hover {
    background: #f8fafc;
}

@media (max-width: 767px) {
    .sg-amenities-grid { grid-template-columns: 1fr; gap: 12px; }
    .sg-custom-btn-more { width: 100%; justify-content: center; }
}

/* ==========================================================================
   ФИКС КРАЕВ И СВОРНАЧИВАНИЕ ОПИСАНИЯ
   ========================================================================== */

/* Отодвигаем от краев экрана на мобильных телефонах */
@media (max-width: 767px) {
    .sg-description-box {
        padding: 0 16px;
    }
}

/* Плавный переход при открытии */
.sg-desc-typography.js-desc-content {
    position: relative;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Класс свернутого состояния (высота и градиент размытия) */
.sg-desc-typography.js-desc-content.is-collapsed {
    max-height: 160px; /* Высота свернутого блока (~6-7 строк) */
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 40px), transparent 100%);
}

/* Кнопка "Читать полностью" */
.sg-desc-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #28a782; /* Фирменный зеленый */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.sg-desc-toggle-btn:hover {
    color: #1a2b48;
}

.sg-desc-toggle-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Переворот стрелочки при открытии */
.sg-desc-toggle-btn.is-expanded svg {
    transform: rotate(180deg);
}

/* ==========================================================================
   ОБЪЕДИНЕННАЯ ПАНЕЛЬ ОТЗЫВОВ (DASHBOARD)
   ========================================================================== */
.sg-reviews-dashboard {
    display: flex;
    gap: 48px;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.03);
}

/* Левая часть */
.sg-rd-left {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
}

.sg-rd-score-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.sg-rd-score {
    font-size: 56px;
    font-weight: 800;
    color: #1a2b48;
    line-height: 1;
    letter-spacing: -0.02em;
}

.sg-rd-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    margin-bottom: 4px;
}

.sg-rd-text span {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px; /* Отступ до кнопки */
}

.sg-rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #ffffff;
    color: #1a2b48;
    border: 1px solid #1a2b48;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.sg-rd-btn:hover {
    background: #1a2b48;
    color: #ffffff;
}

.sg-rd-btn:active {
    transform: scale(0.96);
}

/* Правая часть со шкалами */
.sg-rd-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sg-rd-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sg-rd-bar-label {
    flex: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1a2b48;
}

.sg-rd-progress {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}

.sg-rd-percent {
    height: 100%;
    background: #1a2b48; /* Строгий темный цвет для шкал */
    border-radius: 4px;
}

.sg-rd-bar-count {
    flex: 0 0 24px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-align: right;
}

/* Адаптив для смартфонов */
@media (max-width: 767px) {
    .sg-reviews-dashboard {
        flex-direction: column;
        gap: 32px;
        padding: 24px;
        align-items: stretch;
    }
    
    .sg-rd-left {
        flex: auto;
        width: 100%;
        text-align: center;
        align-items: center;
    }

    .sg-rd-score-wrap {
        justify-content: center;
    }
    
    .sg-rd-btn {
        width: 100%;
    }
}

/* ==========================================================================
   КАРТОЧКА ОТЗЫВА (ПРЕМИУМ ДИЗАЙН)
   ========================================================================== */
.sg-review-card {
    padding: 32px 0;
    border-bottom: 1px solid #e2e8f0;
}

.sg-review-card:last-child {
    border-bottom: none;
}

/* Шапка: Имя, Аватар, Дата, Оценка */
.sg-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.sg-review-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sg-review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1a2b48;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    flex-shrink: 0;
}

.sg-review-meta {
    display: flex;
    flex-direction: column;
}

.sg-review-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a2b48;
    line-height: 1.2;
}

.sg-review-date {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

/* Оценка (звезды) */
.sg-review-rating {
    display: flex;
    gap: 2px;
}

.sg-review-rating svg {
    width: 16px;
    height: 16px;
}

/* Текст отзыва */
.sg-review-body {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

.sg-review-text p {
    margin-top: 0;
    margin-bottom: 12px;
}
.sg-review-text p:last-child {
    margin-bottom: 0;
}

/* Плюсы и Минусы (Пилюли) */
.sg-review-procon {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.sg-review-procon strong {
    color: #1a2b48;
    font-weight: 600;
}

.sg-review-procon.pro svg { color: #10b981; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.sg-review-procon.con svg { color: #f43f5e; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

/* Галерея фото внутри отзыва */
.sg-review-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.sg-review-gallery a {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.sg-review-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sg-review-gallery a:hover img {
    transform: scale(1.05);
}

/* Ответ администрации (Вложенный стиль) */
.sg-review-reply-box {
    margin-top: 24px !important;
    padding: 20px 24px !important;
    background: #f8fafc !important;
    border-radius: 0 16px 16px 16px !important;
    border-left: 3px solid #28a782 !important;
    margin-left: 24px !important; /* Отступ слева (имитация ветки) */
}

/* Убиваем старый серый "хвостик", он больше не нужен */
.single-article__reviews-items__admin-reply::before {
    display: none !important;
}

.sg-reply-badge {
    font-size: 12px;
    font-weight: 700;
    color: #28a782;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.sg-reply-text {
    position: relative;
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Состояние свернутого ответа представителя (~2 строки с мягким затуханием) */
.sg-reply-text.is-collapsed {
    max-height: 46px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 18px), transparent 100%);
}

/* Кнопка "Развернуть" внутри блока ответа представителя */
.sg-reply-toggle-btn {
    margin-top: 6px;
    font-size: 13px;
    color: #28a782;
    text-decoration-color: rgba(40, 167, 130, 0.35);
}

.sg-reply-toggle-btn:hover {
    color: #1e8768;
    text-decoration-color: #1e8768;
}


/* Кнопка админа "Ответить" */
.sg-admin-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.sg-admin-btn:hover { color: #1a2b48; }

/* Адаптив для мобильных */
@media (max-width: 767px) {
    .sg-review-card { padding: 24px 0; }
    .sg-review-header { flex-direction: column; gap: 12px; }
    
    /* Звездочки сдвигаем под имя, чтобы было компактнее */
    .sg-review-rating { margin-left: 64px; margin-top: -12px; }
    
    .sg-review-gallery a { width: 72px; height: 72px; }
    
    /* На телефоне убираем отступ "ветки", чтобы экономить место экрана */
    .sg-review-reply-box { margin-left: 0 !important; border-radius: 12px !important; }
}

/* ==========================================================================
   ОСНОВНОЙ ТЕКСТ ОТЗЫВА (ПРЕМИУМ ТИПОГРАФИКА И СВОРАЧИВАНИЕ)
   ========================================================================== */

/* 1. Идеальная типографика текста */
.sg-review-text {
    position: relative;
    font-size: 15px;
    line-height: 1.65; /* Увеличенный интервал для легкости чтения */
    color: #334155;    /* Мягкий графитовый цвет (не режет глаз как черный) */
    margin-top: 16px;  /* Отступ от Плюсов/Минусов или Шапки */
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sg-review-text p {
    margin-top: 0;
    margin-bottom: 12px;
}

.sg-review-text p:last-child {
    margin-bottom: 0;
}

/* 2. Состояние свернутого текста (Эффект размытия) */
.sg-review-text.is-collapsed {
    max-height: 120px; /* Показываем только первые ~4-5 строк */
    overflow: hidden;
    /* Плавно растворяем текст к низу */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 30px), transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 30px), transparent 100%);
}

/* 3. Дизайн кнопки "Читать полностью" */
.sg-review-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b48;
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 8px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.sg-review-toggle-btn:hover {
    color: #28a782; /* При наведении красится в фирменный зеленый */
    text-decoration-color: #28a782;
}

.sg-review-toggle-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.sg-review-toggle-btn.is-expanded svg {
    transform: rotate(180deg); /* Стрелочка переворачивается */
}


/* ==========================================================================
   ГЛОБАЛЬНЫЙ ОТСТУП ПО КРАЯМ (24px) ДЛЯ МОБИЛЬНЫХ (PREMIUM iOS STYLE)
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Главная сетка сайта */
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* 2. Шапка сайта и её внутренности */
    .site-header__header,
    .site-header__topbar-wrapper,
    .header-title .container,
    .breadcrumbs {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* 3. Очищаем старые ручные отступы 
       (теперь за них отвечает родительский .container, чтобы не было 24+16) */
    .sg-description-box,
    .single-article__reviews,
    .single-article__related,
    .seo-text-block__content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 4. Специфичные фиксированные блоки (которые лежат ВНЕ .container) */
    .sg-mobile-booking-bar__inner,
    .dashboard-mobile-header,
    .partner-cta__inner,
    .filtr-wrapper__title,
    .filtr-mobile-footer {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .dashboard-content {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    
    .filtr-wrapper__body {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    /* 5. Мобильное меню (Шторка) */
    .site-header__header-navigation ul#primary-menu li a,
    .mobile-menu-contacts {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
    .site-header__header-navigation button.menu-clouse {
        right: 24px !important;
    }

    /* 6. ЭСТЕТИКА: Главные фотографии и карта 
       (Их мы "вытягиваем" обратно на всю ширину экрана с помощью отрицательных отступов) */
    .single-article__thumbnail,
    .slider-div,
    .map-wrap {
        margin-left: -24px !important;
        margin-right: -24px !important;
        width: calc(100% + 48px) !important;
    }
    
    /* Слайдер отзывов в каталоге (чтобы карточки красиво "уходили" за край экрана при свайпе) */
    .catalog-reviews-swiper {
        margin-left: -24px !important;
        margin-right: -24px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
        width: calc(100% + 48px) !important;
    }
}

/* ==========================================================================
   ГАЛЕРЕЯ (ДЕСКТОП) — ПАНОРАМНЫЙ СТИЛЬ
   ========================================================================== */
.sg-desktop-gallery {
    display: block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    background: #f8fafc;
}

/* Прячем мобильный слайдер на ПК */
.sg-mobile-cinematic { display: none !important; }

/* Строгая сетка из 3-х картинок */
.sg-dg-grid {
    display: grid;
    /* Левое фото занимает 70% ширины, правые - 30% */
    grid-template-columns: 2.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 480px; 
}

.sg-item-1 { grid-row: 1 / 3; grid-column: 1 / 2; }
.sg-item-2 { grid-row: 1 / 2; grid-column: 2 / 3; }
.sg-item-3 { grid-row: 2 / 3; grid-column: 2 / 3; }

.sg-dg-item {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

.sg-dg-item img {
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Премиум-затенение остальных фото при наведении */
.sg-dg-grid:hover .sg-dg-item::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.2); 
    transition: background 0.3s ease; pointer-events: none;
}
.sg-dg-grid .sg-dg-item:hover::after { background: transparent; }
.sg-dg-item:hover img { transform: scale(1.05); }

/* Оверлей "+ Еще фото" */
.sg-dg-overlay {
    position: absolute; inset: 0; 
    background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; font-weight: 700;
    transition: background 0.3s ease;
}
.sg-item-3:hover .sg-dg-overlay { background: rgba(0,0,0,0.2); }

/* Кнопки поверх галереи */
.sg-video-btn {
    position: absolute; bottom: 24px; left: 24px;
    background: rgba(26, 43, 72, 0.7); backdrop-filter: blur(8px);
    color: #ffffff !important; font-size: 14px; font-weight: 600;
    padding: 10px 20px; border-radius: 12px; text-decoration: none;
    display: flex; align-items: center; gap: 8px; transition: 0.2s; z-index: 10;
}
.sg-video-btn:hover { background: rgba(26, 43, 72, 0.9); transform: translateY(-2px); }

.sg-show-all-photos {
    position: absolute; bottom: 24px; right: 24px;
    background: #ffffff; color: #1a2b48; font-size: 14px; font-weight: 600;
    padding: 10px 20px; border-radius: 12px; border: 1px solid #1a2b48;
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s; z-index: 10;
}
.sg-show-all-photos:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26, 43, 72, 0.15); }


/* ==========================================================================
   ГАЛЕРЕЯ (МОБИЛЬНЫЕ) — ТАКТИЛЬНАЯ СИНЕМАТИКА (НОУ-ХАУ)
   ========================================================================== */
@media (max-width: 767px) {
    .sg-desktop-gallery { display: none !important; }
    
    .sg-mobile-cinematic {
        display: block !important;
        margin-bottom: 24px;
        position: relative;
        /* Отрицательные марджины, чтобы вылезти за 24px padding'а страницы */
        margin-left: -24px !important;
        margin-right: -24px !important;
        width: calc(100% + 48px) !important;
    }
    
    .js-mob-main {
        width: 100%;
        height: 60vh; /* Вертикальный формат, выглядит очень дорого */
        min-height: 400px;
        background: #1a2b48;
        position: relative;
    }
    
    .js-mob-main .swiper-slide img {
        width: 100%; height: 100%; object-fit: cover;
    }
    
    /* Темный градиент снизу (создает подложку для элементов) */
    .sg-mob-shadow {
        position: absolute; bottom: 0; left: 0; right: 0;
        height: 160px;
        background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
        z-index: 2; pointer-events: none;
    }

    /* Счетчик наверху */
    .sg-mob-counter {
        position: absolute; top: 16px; right: 16px;
        background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
        color: #fff; padding: 4px 12px; border-radius: 100px;
        font-size: 12px; font-weight: 700; z-index: 10; border: 1px solid rgba(255,255,255,0.2);
    }
    
    /* Панель миниатюр и видео */
    .sg-mob-controls {
        position: absolute; bottom: 20px; left: 16px; right: 16px;
        z-index: 10; display: flex; align-items: center; gap: 12px;
    }

    /* Кнопка видео (Glassmorphism) */
    .sg-mob-video-glass {
        position: relative; flex-shrink: 0;
        width: 52px; height: 52px; border-radius: 14px;
        background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        display: flex; align-items: center; justify-content: center;
        color: #fff;
    }
    
    /* Эффект пульсации под кнопкой Youtube */
    .pulse-ring {
        position: absolute; inset: 0; border-radius: 14px;
        border: 2px solid #ef4444; animation: pulse-vid 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    @keyframes pulse-vid { 
        0% { transform: scale(1); opacity: 0.8; } 
        100% { transform: scale(1.6); opacity: 0; } 
    }

    /* Лента миниатюр */
    .js-mob-thumbs {
        flex: 1; min-width: 0; padding-right: 16px;
    }
    
    .js-mob-thumbs .swiper-slide {
        width: 52px; height: 52px; border-radius: 10px; overflow: hidden;
        opacity: 0.5; transition: 0.3s ease; border: 2px solid transparent; box-sizing: border-box; cursor: pointer;
    }
    
    .js-mob-thumbs .swiper-slide-thumb-active {
        opacity: 1; border-color: #ffffff; transform: scale(1.1); z-index: 2;
    }
    
    .js-mob-thumbs img { width: 100%; height: 100%; object-fit: cover; }
}

/* Прячем новую мобильную галерею на ПК */
.sg-mobile-gallery-app {
    display: none;
}

@media (max-width: 767px) {
    /* 1. Прячем десктопные элементы на мобильных */
    .sg-desktop-gallery,
    .sg-premium-header,
    .page-header { /* Скрываем стандартный синий заголовок темы, если он есть */
        display: none !important;
    }

    /* 2. Контейнер мобильной галереи (вытягиваем на всю ширину экрана) */
    .sg-mobile-gallery-app {
        display: block !important;
        position: relative;
        margin-left: -24px !important;
        margin-right: -24px !important;
        margin-top: -20px !important; /* Убираем верхний отступ страницы */
        width: calc(100% + 48px) !important;
    }

    /* 3. Верхняя навигация (Стрелка и иконки) */
    .sg-mob-app-nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 16px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 20;
        background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
    }

    .sg-mob-nav-actions {
        display: flex;
        gap: 12px;
    }

    .sg-mob-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.9);
        color: #1a2b48;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: transform 0.2s;
        text-decoration: none;
    }

    .sg-mob-nav-btn:active {
        transform: scale(0.92);
    }

    .sg-mob-nav-btn svg {
        width: 20px;
        height: 20px;
    }

    /* 4. Сам слайдер */
    .js-mob-main {
        width: 100%;
        height: 55vh; /* Фотография занимает 55% высоты экрана */
        min-height: 400px;
        position: relative;
    }

    .js-mob-main img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 5. Счетчик фотографий (Внизу справа на фото) */
    .sg-mob-app-counter {
        position: absolute;
        bottom: 44px; /* Чуть выше из-за белой плашки */
        right: 16px;
        background: rgba(0, 0, 0, 0.65);
        backdrop-filter: blur(4px);
        color: #ffffff;
        padding: 4px 12px;
        border-radius: 100px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 1px;
        z-index: 10;
    }

    /* 6. Белая наезжающая плашка (Магия здесь) */
    .sg-mob-app-board {
        position: relative;
        background: #ffffff;
        border-radius: 28px 28px 0 0; /* Скругление верхних углов */
        margin-top: -28px; /* Наезжаем на фотографию */
        z-index: 15;
        padding: 32px 24px 8px 24px; /* Отступы внутри плашки */
        text-align: center;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    }

    /* Типографика внутри плашки */
    .sg-mob-app-title {
        font-size: 26px !important;
        font-weight: 800 !important;
        color: #1a2b48 !important;
        margin: 0 0 8px 0 !important;
        line-height: 1.2 !important;
        letter-spacing: -0.02em;
    }

    .sg-mob-app-location {
        font-size: 14px;
        color: #64748b;
        font-weight: 500;
        margin-bottom: 24px;
    }

    /* Блок статистики (Оценки и Отзывы) */
    .sg-mob-app-stats {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 24px;
        margin-top: 16px;
    }

    .sg-mob-stat-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: inherit;
    }

    .sg-mob-stat-val {
        font-size: 18px;
        font-weight: 800;
        color: #1a2b48;
        line-height: 1;
        margin-bottom: 6px;
    }

    .sg-mob-stat-stars {
        display: flex;
        gap: 2px;
    }

    .sg-mob-stat-stars svg {
        width: 12px;
        height: 12px;
    }

    .sg-mob-stat-lbl {
        font-size: 11px;
        font-weight: 700;
        color: #64748b;
        letter-spacing: 0.05em;
    }

    .sg-mob-stat-divider {
        width: 1px;
        height: 32px;
        background: #e2e8f0;
    }
}

@media (max-width: 767px) {
    /* 1. Полностью скрываем синюю панель заголовка именно на карточке глэмпинга */
    body.single-glampings .header-title.page-header {
        display: none !important;
    }

    /* 2. Делаем хлебные крошки скроллируемыми (Свайп вправо-влево) и ставим над фото */
    body.single-glampings .breadcrumbs {
        display: flex !important;
        align-items: center;
        overflow-x: auto !important;     /* Включаем горизонтальный скролл */
        white-space: nowrap !important;  /* Запрещаем перенос слов на новую строку */
        padding: 12px 24px 16px 24px !important; 
        margin: 0 -24px !important;      /* Вытягиваем скролл от края до края экрана */
        background: #ffffff !important;  /* Чистый белый фон */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;           /* Прячем визуальный скроллбар (Firefox) */
        position: relative;
        z-index: 10;
    }

    /* Прячем скроллбар для хлебных крошек (Chrome/Safari) */
    body.single-glampings .breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    /* Чуть уменьшаем шрифт крошек для мобильной версии, чтобы влезало больше текста */
    body.single-glampings .breadcrumbs__link,
    body.single-glampings .breadcrumbs__current,
    body.single-glampings .breadcrumbs__separator {
        font-size: 13px !important;
    }

    /* 3. ИСПРАВЛЕНИЕ: Опускаем галерею, чтобы она больше не "съедала" крошки */
    .sg-mobile-gallery-app {
        margin-top: 0 !important; /* Раньше тут было -20px, убираем наезд */
        margin-left: -24px !important;
        margin-right: -24px !important;
        width: calc(100% + 48px) !important;
    }
}

@media (max-width: 767px) {
    /* 1. Хлебные крошки по центру и одинаковый размер шрифта */
    body.single-glampings .breadcrumbs {
        justify-content: center !important; /* Выравнивание по центру */
    }
    
    body.single-glampings .breadcrumbs__current {
        font-size: 13px !important; /* Уравниваем размер с активными ссылками */
        color: #64748b !important;  /* Делаем текущую страницу приглушенно-серой */
        font-weight: 500 !important;
    }

    /* 2. Цветной фон для блока характеристик (Тип, Проживание и т.д.) */
    .sg-highlights-grid {
        background-color: #f8fafc !important; /* Мягкий серо-голубой фон */
        padding: 20px !important;
        border-radius: 16px !important;
        border-bottom: none !important;
        margin-top: 16px !important;
    }

    /* 3. Центрирование и компактность пилюль */
    .sg-categories-pills {
        justify-content: center !important;
        gap: 4px !important; /* Было 6px, сдвигаем еще плотнее */
        margin-top: 24px !important;
        flex-wrap: wrap !important;
    }
    
    .sg-categories-pills a {
        padding: 4px 8px !important; /* Сжали внутренние отступы */
        font-size: 11px !important;  /* Уменьшили шрифт (было 12px) */
        font-weight: 600 !important;
        line-height: 1 !important;
        height: auto !important;
        border-radius: 8px !important; /* Чуть уменьшили радиус для компактного вида */
    }

    /* Уменьшаем иконку геолокации внутри пилюли региона */
    .sg-categories-pills a svg {
        width: 12px !important;
        height: 12px !important;
        margin-top: -1px !important; /* Выравниваем по центру относительно мелкого текста */
    }

    /* 4. Контейнер для FOMO-бейджа в мобильной шапке */
    .sg-mob-fomo-wrapper {
        display: flex;
        justify-content: center;
        margin-top: 16px;
    }
    
    .sg-mob-fomo-wrapper .fomo-compact-badge {
        margin-bottom: 0 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
    }
}

/* ==========================================================================
   УМНАЯ СОРТИРОВКА БЛОКОВ (Меняем местами на мобильных)
   ========================================================================== */
.sg-adaptive-header-blocks {
    display: flex;
    flex-direction: column;
    margin-top: 0px;
}

/* Порядок для ПК (Сначала Характеристики, потом Описание, потом Пилюли) */
.sg-order-hl    { order: 1; margin-bottom: 32px; }
.sg-order-desc  { order: 2; margin-bottom: 24px; }
.sg-order-pills { order: 3; margin-bottom: 32px; }

/* ==========================================================================
   БЛОК ХАРАКТЕРИСТИК (Адаптивный дизайн)
   ========================================================================== */

/* 1. Дизайн для ПК (Светлый, минималистичный, без фона) */
.sg-highlights-grid {
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: none !important;
    padding: 24px 0 !important;
    margin-bottom: 24px !important;
}

.sg-hl-label { color: #64748b !important; }
.sg-hl-val { color: #1a2b48 !important; }
.sg-hl-item svg { color: #1a2b48 !important; }


/* 2. Дизайн для Мобильных (Темно-синий премиум) */
@media (max-width: 767px) {
    .sg-highlights-grid {
        background: linear-gradient(135deg, #132035 0%, #1c2e4f 50%, #243b63 100%) !important;
        border-radius: 20px !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        box-shadow: inset 0 2px 20px rgba(40, 167, 130, 0.05), 0 10px 30px rgba(19, 32, 53, 0.1) !important;
        padding: 20px !important;
        border-bottom: none !important;
    }

    /* Перекрашиваем тексты и иконки специально для темного фона */
    .sg-highlights-grid .sg-hl-label { color: rgba(255, 255, 255, 0.6) !important; }
    .sg-highlights-grid .sg-hl-val { color: #ffffff !important; }
    .sg-highlights-grid .sg-hl-item svg { color: #28a782 !important; margin-top: 0 !important; }
}



/* ==========================================================================
   АДАПТИВНОСТЬ (МОБИЛЬНЫЕ ТЕЛЕФОНЫ)
   ========================================================================== */
@media (max-width: 767px) {
    /* 1. Меняем порядок на мобилках: Описание -> Характеристики -> Пилюли */
    .sg-order-desc  { order: 1; margin-bottom: 16px; margin-top: 8px; }
    .sg-order-hl    { order: 2; margin-bottom: 24px; padding: 20px !important; }
    .sg-order-pills { order: 3; margin-bottom: 24px; }

    /* 2. Центрируем текст описания и кнопку раскрытия */
    .sg-desc-typography { text-align: center !important; }
    .sg-desc-toggle-btn { margin: 12px auto 0 !important; display: flex !important; }
    .sg-description-box { text-align: center; } 
    
    /* 3. Центрирование и компактность пилюль */
    .sg-categories-pills {
        justify-content: center !important;
        gap: 6px !important; 
    }
    
    .sg-categories-pills a {
        padding: 6px 6px !important; /* Уменьшенные отступы */
        font-size: 12px !important; /* Мелкий шрифт */
    }

    /* 4. Выравнивание шрифтов и центровка хлебных крошек над фото */
    body.single-glampings .breadcrumbs {
        justify-content: center !important;
    }
    
    body.single-glampings .breadcrumbs__current {
        font-size: 13px !important; 
        color: #64748b !important;  
        font-weight: 500 !important;
    }
}

/* ==========================================================================
   ФИКС ГАЛЕРЕИ В ВАРИАНТАХ РАЗМЕЩЕНИЯ (МОБИЛЬНЫЕ)
   ========================================================================== */
@media (max-width: 767px) {
    .pvc-gallery-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 260px !important; /* Увеличили высоту для лучшего обзора */
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .pvc-gallery-wrap {
        width: 100% !important;
        max-width: 100% !important;
        height: 260px !important; /* Увеличили высоту для лучшего обзора */
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Делаем отступы между карточкой и краями экрана идеально ровными */
    .pvc-card {
        padding: 0px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        overflow: hidden !important;
    }
}

.sg-mob-app-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b48;
}
.sg-mob-meta-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #1a2b48;
    text-decoration: none;
}
.sg-mob-app-meta .meta-dot {
    color: #cbd5e1;
    font-weight: 800;
}
.sg-mob-app-meta .meta-loc {
    color: #64748b;
    font-weight: 500;
}
/* Стили кнопки Избранного */
.js-favorite-btn.active .fav-icon-outline { display: none; }
.js-favorite-btn.active .fav-icon-solid { display: block; }

/* Кнопка избранного в карточках каталога */
.catalog-fav-btn {
    position: absolute !important;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.catalog-fav-btn svg { width: 28px; height: 28px; transition: 0.2s; }
.catalog-fav-btn:hover { transform: scale(1.1); }
.catalog-fav-btn:active { transform: scale(0.9); }
/* Состояние активности (глобально для каталога и карточки) */
.js-favorite-btn.active .fav-icon-outline { display: none !important; }
.js-favorite-btn.active .fav-icon-solid { display: block !important; animation: heartBurst 0.3s ease; }

@keyframes heartBurst {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Десктоп кнопки */
.sg-desktop-actions { display: flex; gap: 12px; margin-left: auto; }
.sg-action-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: none; font-size: 14px; font-weight: 600; color: #1a2b48; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; transition: 0.2s; padding: 4px 8px; border-radius: 8px; }
.sg-action-btn:hover { background: #f8fafc; text-decoration-color: transparent; }
.sg-action-btn svg { width: 18px; height: 18px; }
@media (max-width: 991px) { .sg-desktop-actions { display: none; } }

/* Глобальные модалки */
.tl-app-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 999998; opacity: 0; visibility: hidden; transition: 0.3s ease; }
.tl-app-overlay.active { opacity: 1; visibility: visible; }
.tl-app-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -40%); width: 100%; max-width: 400px; background: #fff; border-radius: 24px; z-index: 999999; opacity: 0; visibility: hidden; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 20px 40px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow: hidden; }
.tl-app-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

.tl-app-modal-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.tl-app-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1a2b48; }
.tl-app-modal-close { background: #f1f5f9; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.tl-app-modal-close:hover { background: #e2e8f0; }

.tl-app-modal-body { padding: 24px; max-height: 70vh; overflow-y: auto; }

/* Сетка шеринга */
.tl-share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tl-share-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #1a2b48; font-size: 12px; font-weight: 600; cursor: pointer; }
.tl-share-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; transition: 0.2s; }
.tl-share-item:hover .tl-share-icon { transform: translateY(-3px); }
.tl-share-icon.tg { background: #0088cc; }
.tl-share-icon.wa { background: #25D366; }
.tl-share-icon.vk { background: #0077FF; }
.tl-share-icon.copy { background: #f1f5f9; color: #475569; }
.tl-share-icon svg { width: 28px; height: 28px; }

/* Подборки */
.tl-collections-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.tl-col-item { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 16px; border: 1px solid #e2e8f0; cursor: pointer; transition: 0.2s; }
.tl-col-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.tl-col-icon { width: 48px; height: 48px; background: #e6f5ef; color: #28a782; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tl-col-info { flex: 1; }
.tl-col-name { font-weight: 700; color: #1a2b48; font-size: 15px; display: block; margin-bottom: 2px; }
.tl-col-count { font-size: 13px; color: #64748b; }
.tl-col-checkbox { width: 24px; height: 24px; border: 2px solid #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tl-col-item.saved .tl-col-checkbox { background: #1a2b48; border-color: #1a2b48; }
.tl-col-item.saved .tl-col-checkbox::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; }

.tl-create-collection { display: flex; gap: 8px; }
.tl-create-collection input { flex: 1; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 14px; outline: none; }
.tl-create-collection input:focus { border-color: #28a782; }
.tl-create-collection button { background: #1a2b48; color: #fff; border: none; padding: 0 20px; border-radius: 12px; font-weight: 600; cursor: pointer; }

/* Адаптив для телефонов - делаем всплывающее меню снизу (Bottom Sheet) */
@media (max-width: 767px) {
    .tl-app-modal { top: auto; bottom: 0; left: 0; transform: translateY(100%); border-radius: 24px 24px 0 0; max-width: 100%; }
    .tl-app-modal.active { transform: translateY(0); }
}

/* ==========================================================================
   ФИКС КНОПКИ ИЗБРАННОГО В КАТАЛОГЕ
   ========================================================================== */
.catalog-fav-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 50 !important; /* ВАЖНО: Должно быть выше невидимой ссылки <a> */
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important; /* Принудительно разрешаем клик */
}

/* Иконки сердечка в каталоге */
.catalog-fav-btn svg { 
    width: 26px !important; 
    height: 26px !important; 
    transition: 0.2s ease !important; 
    /* Добавляем легкую тень, чтобы белое сердечко читалось на светлых фото */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.3)); 
}

/* ==========================================================================
   ЖЕСТКИЙ ФИКС ВЕРСТКИ ИЗБРАННОГО (ПОДАВЛЕНИЕ СКРИПТОВ ТЕМЫ)
   ========================================================================== */

/* 1. Заставляем контейнер игнорировать нулевую инлайн-высоту от скриптов */
body.page-template-page-favorites .glampings-items,
body.page-template-page-favorites #fav-content-area,
body.page-template-page-favorites #fav-items-view {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    height: auto !important;      /* УБИВАЕТ ИНЛАЙНОВУЮ ВЫСОТУ JS */
    min-height: 400px !important;
    overflow: visible !important;
    position: relative !important;
}

/* 2. Заставляем карточки игнорировать абсолютное позиционирование от скриптов */
body.page-template-page-favorites .glampings-items__item {
    position: relative !important; /* УБИВАЕТ absolute */
    top: auto !important;          /* УБИВАЕТ инлайн-координаты */
    left: auto !important;         /* УБИВАЕТ инлайн-координаты */
    transform: none !important;    /* УБИВАЕТ инлайн-сдвиги */
    float: none !important;
    height: 100% !important;
    margin: 0 !important;
}

/* 3. Гарантированный отступ от контента до футера */
body.page-template-page-favorites .site-main {
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 80px !important;
    padding-bottom: 80px !important;
}

body.page-template-page-favorites .site-footer {
    position: relative !important;
    clear: both !important;
    margin-top: 40px !important;
    z-index: 10 !important;
}

@media (max-width: 767px) {
    body.page-template-page-favorites .site-main {
        margin-bottom: 120px !important;
        padding-bottom: 120px !important;
    }
}

/* Изолированная сетка для Избранного (недоступна для поломки JS скриптами темы) */
.safe-fav-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    align-items: stretch !important;
    margin-bottom: 60px !important;
}

.safe-fav-grid .glampings-items__item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    float: none !important;
    margin: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Принудительный отступ от футера на всех устройствах */
body.page-template-page-favorites #primary {
    padding-bottom: 100px !important;
}

/* ==========================================================================
   ГЛОБАЛЬНЫЕ МОДАЛЬНЫЕ ОКНА
   ========================================================================== */
.tl-modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); z-index: 999998; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.tl-modal-overlay.active { opacity: 1; visibility: visible; }
.tl-modal-box { background: #fff; width: 100%; max-width: 400px; border-radius: 24px; display: flex; flex-direction: column; overflow: hidden; z-index: 999999; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -40%); opacity: 0; visibility: hidden; transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.tl-modal-overlay.active + .tl-modal-box,
.tl-modal-overlay.active ~ .tl-modal-box.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }

.tl-modal-header { padding: 20px 24px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; }
.tl-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #1a2b48; }
.tl-modal-close { background: #f1f5f9; border: none; font-size: 24px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; color: #64748b; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s; padding: 0; }
.tl-modal-close:hover { background: #e2e8f0; color: #1a2b48; }

/* ==========================================================================
   ОКНО ПОДЕЛИТЬСЯ (ОПТИМИЗАЦИЯ ДЛЯ CPU)
   ========================================================================== */
/* Убираем тяжелое размытие фона для слабых процессоров */
.tl-modal-overlay {
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: none !important; 
}

/* Окно перестало быть громоздким */
.tl-share-airbnb {
    max-width: 420px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important; 
}

/* Кнопки соцсетей стали аккуратными плашками */
.tl-share-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border: 1px solid #e2e8f0; border-radius: 12px;
    text-decoration: none; color: #1a2b48; font-weight: 600; font-size: 14px;
    transition: 0.2s ease; cursor: pointer; background: #ffffff;
}
.tl-share-btn:hover { background: #f8fafc; border-color: #cbd5e1; transform: translateY(-2px); }
.tl-share-btn:active { transform: translateY(0) scale(0.98); }

/* Окно подборок */
.tl-folders-list { max-height: 300px; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.tl-folder-row { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 16px; border: 1px solid #e2e8f0; cursor: pointer; transition: 0.2s; }
.tl-folder-row:hover { background: #f8fafc; border-color: #cbd5e1; }
.tl-fr-icon { width: 40px; height: 40px; background: #e6f5ef; color: #28a782; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.tl-fr-info { flex: 1; }
.tl-fr-name { font-weight: 700; color: #1a2b48; font-size: 15px; display: block; margin-bottom: 2px; }
.tl-fr-count { font-size: 12px; color: #64748b; }
.tl-fr-check { width: 24px; height: 24px; border: 2px solid #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.tl-folder-row:hover .tl-fr-check { border-color: #94a3b8; }
.tl-fr-check.active { background: #1a2b48; border-color: #1a2b48; }
.tl-fr-check.active::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 800; }

.tl-folder-create-bar { padding: 16px 24px; border-top: 1px solid #f1f5f9; display: flex; gap: 8px; }
.tl-folder-create-bar input { flex: 1; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 12px; font-size: 14px; outline: none; }
.tl-folder-create-bar input:focus { border-color: #28a782; }
.tl-folder-create-bar button { background: #1a2b48; color: #fff; border: none; padding: 0 20px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.tl-folder-create-bar button:hover { background: #28a782; }

@media (max-width: 767px) {
    .tl-modal-box { top: auto; bottom: 0; left: 0; transform: translateY(100%); border-radius: 24px 24px 0 0; max-width: 100%; padding-bottom: env(safe-area-inset-bottom, 24px); }
    .tl-modal-overlay.active + .tl-modal-box,
    .tl-modal-overlay.active ~ .tl-modal-box.active { transform: translateY(0); }
}

/* Бронебойный фикс наезжания футера на странице Избранного */

/* 1. Делаем всю страницу гибкой колонкой высотой минимум в 1 экран */
body.page-template-page-favorites #page {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

/* 2. Заставляем центральную часть растягиваться и толкать футер вниз */
body.page-template-page-favorites #primary.site-main {
    flex: 1 0 auto !important; 
    height: auto !important;
    overflow: visible !important;
    display: block !important;
    padding-bottom: 0px !important; /* Отступ от нижнего ряда карточек до футера */
}

/* 3. Гарантируем, что сетка карточек не будет схлопываться */
body.page-template-page-favorites .safe-fav-grid {
    display: grid !important;
    height: auto !important;
    overflow: visible !important;
    align-items: stretch !important;
}

body.page-template-page-favorites .safe-fav-grid .glampings-items__item {
    height: auto !important;
    min-height: 100% !important; /* Карточки одинаковой высоты в ряду */
}

/* 4. Запрещаем футеру сжиматься и сбрасываем обтекания */
.site-footer {
    flex-shrink: 0 !important;
    width: 100% !important;
    position: relative !important;
    z-index: 50 !important;
    clear: both !important;
    margin-top: auto !important;
}

/* ==========================================================================
   ВАРИАНТЫ РАЗМЕЩЕНИЯ (КАРТОЧКИ)
   ========================================================================== */
.premium-variants-list { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.pvc-card { display: flex; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 20px; gap: 24px; box-shadow: 0 4px 12px rgba(26, 43, 72, 0.03); transition: 0.3s; }
.pvc-card:hover { box-shadow: 0 12px 30px rgba(26, 43, 72, 0.08); border-color: #cbd5e1; }

/* Сетка фото (Grid) */
.pvc-gallery-wrap { width: 320px; height: 240px; flex-shrink: 0; }
.pvc-modern-grid { display: grid; gap: 6px; width: 100%; height: 100%; border-radius: 16px; overflow: hidden; }
.pvc-grid-layout-1 { grid-template-columns: 1fr; }
.pvc-grid-layout-2 { grid-template-columns: 1fr 1fr; }
.pvc-grid-layout-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.pvc-grid-layout-3 .pvc-grid-item:nth-child(1) { grid-column: 1; grid-row: 1 / 3; }
.pvc-grid-layout-3 .pvc-grid-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.pvc-grid-layout-3 .pvc-grid-item:nth-child(3) { grid-column: 2; grid-row: 2; }
.pvc-grid-item { position: relative; display: block; width: 100%; height: 100%; background: #f8fafc; overflow: hidden; }
.pvc-grid-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pvc-grid-item:hover img { transform: scale(1.05); }
.pvc-hidden-item { display: none !important; }
.pvc-more-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.4); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; transition: 0.3s; }
.pvc-grid-item:hover .pvc-more-overlay { background: rgba(0,0,0,0.2); }

/* Контент и плашки */
.pvc-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pvc-title { font-size: 20px; font-weight: 800; color: #1a2b48; margin: 0 0 12px 0; }
.pvc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; align-items: center; }
.pvc-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #475569; background: #f8fafc; padding: 6px 12px; border-radius: 8px; border: 1px solid #f1f5f9; }
.pvc-meta-item svg { width: 15px !important; height: 15px !important; color: #28a782; flex-shrink:0; }

/* Описание домика (обрезание текста отключено) */
.pvc-desc { 
    font-size: 14px; 
    color: #64748b; 
    line-height: 1.6; 
    margin-bottom: 16px; 
}

/* Удобства (С иконками) */
.pvc-amenities { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; align-items: center; }
.pvc-amenity-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: #1a2b48; background: #ffffff; border: 1px solid #e2e8f0; padding: 4px 10px; border-radius: 100px; transition: 0.2s; }
.pvc-amenity-tag svg { width: 12px !important; height: 12px !important; color: #64748b; flex-shrink: 0; }
.pvc-amenity-tag svg path, .pvc-amenity-tag svg rect, .pvc-amenity-tag svg circle { fill: currentColor; } 
.pvc-amenity-tag:hover { background: #f8fafc; border-color: #cbd5e1; }
.pvc-hidden-fac { display: none !important; }
.pvc-amenities.is-expanded .pvc-hidden-fac { display: inline-flex !important; }
.pvc-fac-toggle { background: none; border: none; color: #28a782; font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }
.pvc-fac-toggle:hover { color: #1a2b48; }

/* Скрытие и показ дополнительных номеров (Анимация) */
.pvc-hidden-variant { display: none !important; }
.js-variants-list.is-expanded .pvc-hidden-variant { display: flex !important; animation: fadeInVariant 0.4s ease-out; }
@keyframes fadeInVariant { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.pvc-variants-toggle { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 24px; padding: 16px 24px; background: #ffffff; color: #1a2b48; font-size: 15px; font-weight: 700; border: 1px solid #1a2b48; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; }
.pvc-variants-toggle:hover { background: #f8fafc; transform: translateY(-2px); }

/* Цена и кнопка брони */
.pvc-footer { margin-top: auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.pvc-price { display: flex; flex-direction: row; align-items: baseline; gap: 4px; color: #64748b; }
.pvc-price-label { display: block; font-size: 14px; white-space: nowrap; }
.pvc-price-val { font-size: 24px; font-weight: 800; color: #1a2b48; letter-spacing: -0.02em; margin-left: 4px; }
.pvc-price-period { display: block; font-size: 14px; white-space: nowrap; }
.pvc-btn { background: linear-gradient(135deg, #28a782 0%, #1fa36f 100%); color: #ffffff !important; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 24px; border-radius: 12px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 12px rgba(40, 167, 130, 0.2); flex-shrink: 0; white-space: nowrap; }
.pvc-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(40, 167, 130, 0.3); }

/* Адаптив для карточек вариантов размещения */
@media (max-width: 767px) {
    .pvc-footer { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; gap: 12px; }
    .pvc-price { flex-direction: column; align-items: flex-start; gap: 2px; }
    .pvc-price-label { font-size: 13px; line-height: 1.1; }
    .pvc-price-val { font-size: 20px; line-height: 1; }
    .pvc-price-period { font-size: 12px; line-height: 1; margin-top: 2px; }
    .pvc-btn { width: auto; text-align: center; padding: 10px 18px; font-size: 14px; border-radius: 10px; box-sizing: border-box; }
}

/* ==========================================================================
   1. ИКОНКА СРАВНЕНИЯ (КАТАЛОГ)
   ========================================================================== */
.catalog-compare-btn {
    position: absolute !important;
    top: 12px !important;    /* На одном уровне с сердечком */
    right: 50px !important;  /* Слева от сердечка (12px отступ + 32px кнопка + 6px зазор) */
    z-index: 50 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 32px !important;
    height: 32px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
}

.catalog-compare-btn svg {
    width: 24px !important;
    height: 24px !important;
}

.catalog-compare-btn:hover { transform: scale(1.1); }
.catalog-compare-btn:active { transform: scale(0.9); }
.catalog-compare-btn.active { color: #28a782 !important; filter: drop-shadow(0px 2px 6px rgba(0,0,0,0.3)); }

/* ==========================================================================
   2. ПЛАВАЮЩАЯ ПАНЕЛЬ СРАВНЕНИЯ (TOAST)
   ========================================================================== */
.compare-floating-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a2b48;
    color: #fff;
    padding: 20px 0;
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(26, 43, 72, 0.2);
}

.compare-floating-bar.active {
    transform: translateY(0);
}

.compare-floating-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-floating-bar__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.compare-floating-bar__count {
    background: #28a782;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.compare-floating-bar__text {
    font-weight: 600;
    font-size: 15px;
}

.compare-floating-bar__actions {
    display: flex;
    gap: 12px;
}

/* --- МОБИЛЬНЫЙ TOAST --- */
@media (max-width: 767px) {
    .compare-floating-bar {
        background: transparent;
        box-shadow: none;
        bottom: 24px;
        padding: 0;
        pointer-events: none; /* Пропускаем клики мимо самой плашки */
    }
    
    .compare-floating-bar__inner {
        background: rgba(26, 43, 72, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 100px;
        padding: 6px 6px 6px 16px;
        width: max-content;
        margin: 0 auto;
        pointer-events: auto; /* Возвращаем клики на плашку */
        box-shadow: 0 10px 30px rgba(26, 43, 72, 0.25);
        border: 1px solid rgba(255, 255, 255, 0.1);
        gap: 16px;
        
    }
    
    .single-glampings .compare-floating-bar__inner {
        margin-bottom: 50px;
    }
    
    .compare-floating-bar__text { display: none; } /* Прячем лишний текст */
    
    .compare-floating-bar__count {
        width: 24px; height: 24px; font-size: 12px;
    }
    
    .compare-floating-bar__actions .btn-outline { display: none; } /* Прячем "Очистить" */
    
    .compare-floating-bar__actions .btn-primary {
        border-radius: 100px;
        padding: 8px 20px;
        font-size: 14px;
        box-shadow: none;
    }
}


/* ==========================================================================
   3. УМНАЯ ТАБЛИЦА СРАВНЕНИЯ (ОБЩИЕ СТИЛИ)
   ========================================================================== */
.compare-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 40px rgba(26, 43, 72, 0.04);
}

.compare-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0;
}

/* Фиксация шапки при вертикальном скролле */
.compare-table thead th {
    position: sticky;
    top: 0; 
    background: #f8fafc;
    z-index: 10;
    border-bottom: 2px solid #e2e8f0;
    padding: 24px;
    vertical-align: top;
}

/* Фиксация первого столбца (названия параметров) */
.compare-table__feature-col,
.compare-table__feature-name {
    position: sticky;
    left: 0;
    background: #ffffff;
    z-index: 5;
    width: 220px;
    font-weight: 600;
    color: #475569;
    border-right: 1px solid #f1f5f9;
}

/* Пересечение осей (Левый верхний угол всегда сверху) */
.compare-table thead .compare-table__feature-col {
    z-index: 15;
    background: #f8fafc;
    vertical-align: middle;
}

.compare-table__item-col {
    width: 25%;
    position: relative;
}

.compare-item-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
}

.compare-item-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.compare-item-card h4 {
    margin: 0; font-size: 16px; color: #1a2b48; font-weight: 700; line-height: 1.3;
}

/* Кнопка "Убрать" */
.compare-remove-btn {
    position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,0.9); border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer; display: flex;
    align-items: center; justify-content: center; color: #ef4444; transition: 0.2s; z-index: 2;
}
.compare-remove-btn:hover { background: #ef4444; color: #fff; transform: scale(1.1); }
.compare-remove-btn svg { width: 16px; height: 16px; }

/* Строки */
.compare-table td {
    padding: 16px 24px; border-bottom: 1px solid #f1f5f9; text-align: center; color: #1a2b48; font-size: 14px;
}
.compare-table__feature-name { text-align: left !important; }

.compare-table__group-row td {
    background: #f8fafc; font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: #94a3b8; text-align: left; padding: 12px 24px;
}

/* Тумблер отличий */
.compare-toggle-diff {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    background: #ffffff; padding: 8px 16px; border-radius: 100px; border: 1px solid #e2e8f0; transition: 0.2s;
}
.compare-toggle-diff input { display: none; }
.compare-toggle-diff__switch {
    width: 34px; height: 20px; background: #cbd5e1; border-radius: 20px; position: relative; transition: 0.3s; flex-shrink: 0;
}
.compare-toggle-diff__switch::after {
    content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; left: 2px; transition: 0.3s;
}
.compare-toggle-diff input:checked + .compare-toggle-diff__switch { background: #28a782; }
.compare-toggle-diff input:checked + .compare-toggle-diff__switch::after { transform: translateX(14px); }
.compare-toggle-diff span { font-size: 12px; font-weight: 600; color: #1a2b48; }


/* ==========================================================================
   АДАПТИВ ТАБЛИЦЫ СРАВНЕНИЯ ДЛЯ МОБИЛЬНЫХ (ИСПРАВЛЕННЫЙ UX)
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Уменьшаем иконки галочек и крестиков */
    .compare-table__val-cell svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.5 !important;
    }

    /* 2. Запрещаем таблице ломать ширину колонок и сплющиваться */
    .compare-table {
        table-layout: fixed !important;
        width: max-content !important;
        min-width: 100% !important;
    }

    /* 3. Четко фиксируем левую колонку (Frozen Pane - как в Excel) */
    .compare-table__feature-col,
    .compare-table__feature-name {
        position: sticky !important;
        left: 0 !important;
        min-width: 100px !important;
        width: 100px !important;
        max-width: 100px !important;
        background: #f8fafc !important; /* Единый фон левой колонки */
        border-right: 1px solid #cbd5e1 !important; /* Явная граница, отделяющая от контента */
        box-shadow: 4px 0 12px rgba(0,0,0,0.06) !important; /* Тень поверх скроллящихся колонок */
        z-index: 5 !important;
        padding: 12px 8px !important;
        word-wrap: break-word !important;
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    /* Угол таблицы (Сверху Слева) должен быть ВЫШЕ всех */
    .compare-table thead .compare-table__feature-col {
        z-index: 15 !important;
        background: #f1f5f9 !important;
    }

    /* 4. Колонки с самими глэмпингами (Задаем жесткую ширину) */
    .compare-table__item-col,
    .compare-table__val-cell {
        min-width: 140px !important;
        width: 140px !important;
        max-width: 140px !important;
        padding: 16px 12px !important;
        scroll-snap-align: start;
    }

    /* 5. Сбрасываем залипание у группирующих строк ("Основное", "Удобства"), 
       чтобы текст не накладывался поверх колонок при скролле */
    .compare-table__group-row td {
        position: static !important;
        background: #e2e8f0 !important;
        color: #475569 !important;
        text-align: center !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
    }

    /* 6. Компактный тумблер "Отличия" для мобильных */
    .compare-toggle-diff {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
    }

    /* Прячем длинный текст "Показать только отличия" и заменяем на короткий */
    .compare-toggle-diff span {
        font-size: 0 !important;
        line-height: 0 !important;
    }
    .compare-toggle-diff span::after {
        content: "Только отличия";
        font-size: 10px !important;
        line-height: 1.2 !important;
        color: #64748b !important;
        display: block !important;
        white-space: normal !important;
    }

    /* 7. Круглые аватарки в шапке */
    .compare-table thead th {
        padding: 16px 8px !important;
    }

    .compare-item-card img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        margin: 0 auto 8px;
        display: block;
        border: 2px solid #e2e8f0;
    }

    .compare-item-card h4 {
        font-size: 12px;
        text-align: center;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 8. Кнопка крестика (Удалить) */
    .compare-remove-btn {
        width: 24px !important; 
        height: 24px !important; 
        top: 8px !important; 
        right: 8px !important;
    }
    .compare-remove-btn svg { 
        width: 12px !important; 
        height: 12px !important; 
    }
}

/* ==========================================================================
   СТИЛЬНЫЕ КНОПКИ ПЛАВАЮЩЕЙ ПАНЕЛИ СРАВНЕНИЯ
   ========================================================================== */
/* Кнопка "Сравнить" (Дорогая, темная) */
.compare-btn-submit {
    display: inline-flex; align-items: center; gap: 8px;
    background: #1a2b48 !important;
    color: #ffffff !important;
    padding: 10px 24px; border-radius: 100px;
    font-size: 15px; font-weight: 700; text-decoration: none;
    border: none;
    box-shadow: 0 4px 15px rgba(26, 43, 72, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.compare-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 43, 72, 0.25);
}
.compare-btn-submit:active { transform: scale(0.96); }

/* Кнопка "Очистить" (Современная, с красным свечением при наведении) */
.compare-btn-clear {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important;
    color: #94a3b8 !important; /* Спокойный серый по умолчанию */
    padding: 10px 16px; border-radius: 100px;
    font-size: 14px; font-weight: 600;
    border: none !important;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.compare-btn-clear:hover {
    background: rgba(239, 68, 68, 0.08) !important; /* Легкая красная заливка */
    color: #ef4444 !important; /* Яркий красный текст */
}

/* 2. Кнопка "Очистить" (Деструктивное действие) */
.compare-btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.compare-btn-clear:hover {
    background: rgba(239, 68, 68, 0.15); /* Полупрозрачный красный фон */
    color: #ef4444; /* Насыщенный красный текст */
    border-color: rgba(239, 68, 68, 0.3);
}

.compare-btn-clear:active {
    transform: scale(0.96);
    background: rgba(239, 68, 68, 0.25);
}

/* Адаптив для мобильной панели "пилюли" */
@media (max-width: 767px) {
    .compare-btn-submit {
        padding: 8px 20px;
        font-size: 14px;
        box-shadow: none;
    }
    .compare-btn-submit svg { 
        width: 16px; 
        height: 16px; 
    }
    /* Кнопка "Очистить" на смартфонах скрыта для экономии места в плашке Dynamic Island */
    .compare-floating-bar__actions .compare-btn-clear { 
        display: none; 
    }
}

/* ==========================================================================
   ИСПРАВЛЕНИЕ ШАПКИ НА ПК (Рейтинг, Адрес, Кнопки)
   ========================================================================== */
.sg-meta-row {
    display: flex;
    justify-content: space-between; /* Текст слева, кнопки справа */
    align-items: flex-start;        /* Позволяет тексту переноситься, не растягивая кнопки */
    gap: 20px;
    margin-bottom: 24px;
}

.sg-meta-left {
    display: flex;
    flex-wrap: wrap; /* Длинный адрес и просмотры будут аккуратно переноситься */
    align-items: center;
    row-gap: 8px;
    column-gap: 12px;
}

.sg-desktop-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0; /* ВАЖНО: Запрещает кнопкам сжиматься, если адрес слишком длинный */
}

/* Эстетичный дизайн кнопок (убрали обводки и фоны) */
.sg-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b48;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: 0.2s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.sg-action-btn svg { width: 18px; height: 18px; }

.sg-action-btn:hover {
    background: #f8fafc;
    text-decoration-color: #1a2b48; /* Подчеркивание появляется при наведении */
}

/* ==========================================================================
   ФИКС КНОПОК ШАПКИ НА ПЛАНШЕТАХ (ОТ 768px ДО 991px)
   ========================================================================== */
/* Изначально они скрывались на 991px. Делаем так, чтобы они скрывались только на телефонах */
@media (max-width: 767px) {
    .sg-desktop-actions { display: none !important; }
}
@media (min-width: 768px) and (max-width: 991px) {
    .sg-desktop-actions { 
        display: flex !important; 
        flex-shrink: 0;
    }
}

/* ==========================================================================
   ОКНО ПОДЕЛИТЬСЯ
   ========================================================================== */
.tl-share-airbnb {
    max-width: 440px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border: 1px solid #e2e8f0 !important;
}

.tl-share-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
}

.tl-share-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #1a2b48;
    letter-spacing: -0.01em;
}

.tl-share-body {
    padding: 0 24px 24px;
}

.tl-share-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.tl-share-preview img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(26, 43, 72, 0.08);
    flex-shrink: 0;
}

.tl-share-preview-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1a2b48;
    line-height: 1.3;
}

.tl-share-preview-info p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

/* Сетка кнопок */
.tl-share-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Сама кнопка: запрещаем сплющиваться */
.tl-share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1a2b48;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
    background: #ffffff;
    box-sizing: border-box;
}

/* МАГИЯ ИКОНОК: Жестко фиксируем размер, чтобы Flexbox не смел их мять */
.tl-share-btn svg {
    flex-shrink: 0 !important;
    display: block;
}

.tl-share-btn span {
    white-space: nowrap;
}

.tl-share-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.tl-share-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Кнопка "Скопировать ссылку" */
.tl-share-btn.copy-link {
    grid-column: 1 / -1;
    justify-content: center;
    background: #f8fafc;
    border: none;
    color: #475569;
}

.tl-share-btn.copy-link:hover {
    background: #f1f5f9;
    color: #1a2b48;
}

@media (max-width: 767px) {
    .tl-share-airbnb {
        border-radius: 24px 24px 0 0 !important;
    }
}

/* ==========================================================================
   ФИКС РАЗМЕРА ИКОНОК В ТАБЛИЦЕ (ПК И МОБИЛЬНЫЕ)
   ========================================================================== */
.compare-table__val-cell svg {
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2.5 !important;
    margin: 0 auto;
    display: block;
}

/* ==========================================================================
   ВОЗВРАТ ЗЕЛЕНОГО ГРАДИЕНТА КНОПКЕ "СРАВНИТЬ"
   ========================================================================== */
.compare-btn-submit {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: linear-gradient(135deg, #28a782 0%, #1fa36f 100%) !important;
    color: #ffffff !important;
    padding: 10px 24px; 
    border-radius: 100px;
    font-size: 15px; 
    font-weight: 700; 
    text-decoration: none;
    border: none;
    box-shadow: 0 4px 12px rgba(40, 167, 130, 0.25) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.compare-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 130, 0.35) !important;
}

.compare-btn-submit:active { 
    transform: scale(0.96); 
}

/* Иконка внутри кнопки "Сравнить" */
.compare-btn-submit svg {
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.2s ease;
}
.compare-btn-submit:hover svg {
    transform: translateX(3px); /* Легкий сдвиг стрелочки вправо */
}

/* ==========================================================================
   ЛОГИКА КНОПКИ "ОЧИСТИТЬ" (ПК)
   ========================================================================== */
.compare-btn-clear {
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px;
    background: transparent !important;
    color: #94a3b8 !important; 
    padding: 10px 16px; 
    border-radius: 100px;
    font-size: 14px; 
    font-weight: 600;
    border: none !important;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

/* Прячем иконку корзины на ПК, оставляем только текст */
.compare-btn-clear svg { 
    display: none; 
}

.compare-btn-clear:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ (ПОЯВЛЯЕТСЯ КОРЗИНА ОЧИСТКИ)
   ========================================================================== */
@media (max-width: 767px) {
    /* Кнопка "Сравнить" */
    .compare-btn-submit {
        padding: 8px 20px !important;
        font-size: 14px !important;
        box-shadow: none !important;
    }
    
    .compare-btn-submit svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Кнопка "Очистить" превращается в круглую корзину */
    .compare-floating-bar__actions .compare-btn-clear {
        display: flex !important;
        padding: 0 !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        background: rgba(239, 68, 68, 0.1) !important; /* Нежный красный фон */
        color: #ef4444 !important;
        border: none !important;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .compare-floating-bar__actions .compare-btn-clear:active {
        transform: scale(0.9);
        background: rgba(239, 68, 68, 0.2) !important;
    }

    /* Прячем текст "Очистить" */
    .compare-floating-bar__actions .compare-clear-text {
        display: none !important;
    }

    /* Показываем SVG-иконку корзины */
    .compare-floating-bar__actions .compare-btn-clear svg {
        display: block !important;
        width: 16px !important;
        height: 16px !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   ИДЕАЛЬНЫЙ ФИКС ШАПКИ НА ПК (ПОЛНЫЙ АДРЕС БЕЗ ИСКАЖЕНИЙ + КНОПКИ СПРАВА)
   ========================================================================== */
@media (min-width: 992px) {
    /* 1. Делим строку на 2 независимые колонки: Левая (тянется), Правая (под кнопки) */
    .sg-premium-header .sg-meta-row {
        display: grid !important;
        grid-template-columns: 1fr max-content !important;
        align-items: start !important; /* Кнопки держатся строго у верхнего края */
        gap: 16px 32px !important; /* 32px - безопасный отступ между текстом и кнопками */
    }

    .sg-premium-header {
    margin-bottom: 0px !important;
}

    /* 2. Левый блок превращаем в текстовый абзац, убирая жесткий Flexbox */
    .sg-premium-header .sg-meta-left {
        display: block !important;
        line-height: 1.8 !important; /* Увеличенный интервал для красивого чтения в 2 строки */
    }

    /* 3. Заставляем рейтинг и просмотры вести себя как слова в строке */
    .sg-premium-header .sg-meta-item,
    .sg-premium-header .sg-dot {
        display: inline-flex !important;
        vertical-align: middle !important;
        margin-bottom: 0 !important;
    }

    /* 4. МАГИЯ: Сам адрес делаем полностью строчным. 
       Теперь он использует всю ширину левой колонки и переносится максимально плавно */
    .sg-premium-header .sg-meta-item.sg-address,
    .sg-premium-header .sg-meta-item.sg-address span {
        display: inline !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important; /* Защита от гигантских слов без пробелов */
    }

    /* 5. Выравниваем кнопки, чтобы они оптически стояли на одной линии с первой строкой текста */
    .sg-premium-header .sg-desktop-actions {
        display: flex !important;
        gap: 12px !important;
        padding-top: 2px !important; 
        margin: 0 !important;
    }
}

/* ==========================================================================
   ИДЕАЛЬНЫЙ ФИКС ШАПКИ (ПЛАНШЕТЫ ОТ 768px И ПК)
   ========================================================================== */
@media (min-width: 768px) {
    /* Ваш отступ специально для планшетов и десктопов */
    .sg-premium-header {
        margin-bottom: 0px !important;
    }

    /* 1. Делим шапку на 2 колонки: Текст (тянется) и Кнопки (справа) */
    .sg-premium-header .sg-meta-row {
        display: grid !important;
        grid-template-columns: 1fr max-content !important;
        align-items: start !important;
        gap: 12px 24px !important;
    }

    /* 2. Левую часть делаем обычным текстовым блоком (убиваем Flexbox) */
    .sg-premium-header .sg-meta-left {
        display: block !important;
        line-height: 1.7 !important;
        font-size: 14px !important; /* Чуть компактнее на планшетах */
    }

    /* 3. Рейтинг и просмотры делаем неразрывными блоками в строке */
    .sg-premium-header .sg-rating-link,
    .sg-premium-header .sg-views {
        display: inline-block !important;
        vertical-align: baseline !important;
    }

    /* Фикс иконок внутри текста */
    .sg-premium-header .sg-meta-item svg {
        vertical-align: text-bottom !important;
        margin-right: 4px !important;
        margin-bottom: 1px !important;
        display: inline-block !important;
    }

    /* 4. САМОЕ ВАЖНОЕ: Адрес делаем строчным, чтобы он плавно переносился по словам */
    .sg-premium-header .sg-meta-item.sg-address,
    .sg-premium-header .sg-meta-item.sg-address span {
        display: inline !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    /* Точки-разделители */
    .sg-premium-header .sg-desktop-dot {
        display: inline-block !important;
        padding: 0 6px !important;
        margin: 0 !important;
    }

    /* 5. Кнопки "Поделиться" и "Сохранить" */
    .sg-premium-header .sg-desktop-actions {
        display: flex !important;
        gap: 12px !important;
        margin: 0 !important;
        padding-top: 2px !important; /* Легкое выравнивание по высоте первой строки текста */
    }
}

/* Вынесенный блок шрифта для ПК (чтобы не было ошибки вложенности) */
@media (min-width: 992px) {
    .sg-premium-header .sg-meta-left {
        font-size: 15px !important;
    }
}

/* ==========================================================================
   ФИКС БАГА: ПАНЕЛЬ СРАВНЕНИЯ НА МОБИЛЬНЫХ (Полное скрытие)
   ========================================================================== */
.compare-floating-bar {
    /* Добавляем прозрачность для 100% гарантии скрытия */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease !important;
}

.compare-floating-bar.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

@media (max-width: 767px) {
    .compare-floating-bar {
        /* Компенсируем отступ bottom: 24px, сдвигая панель за пределы экрана с запасом */
        transform: translateY(calc(100% + 40px)) !important;
    }
}



/* ==========================================================================
   ЦЕНТРИРОВАНИЕ "БЫСТРЫХ ФИЛЬТРОВ" НА МОБИЛЬНЫХ
   ========================================================================== */
@media (max-width: 767px) {
    /* Центрируем сам заголовок "Быстрые фильтры:" */
    .item-category__title h3 {
        text-align: center !important;
    }

    /* Выравниваем плашки-пилюли по центру */
    .search-queries-item {
        justify-content: center !important;
    }
}

@media (max-width: 767px) {
    .container-with-sitebar .site-main-article__top__count {
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   ПРЕМИАЛЬНАЯ ТИПОГРАФИКА ГЛАВНОГО ЭКРАНА (2026 DESIGN - COMPACT)
   ========================================================================== */
.section.hero {
    padding-top: 56px !important; /* Было 100px - сильно ужали для ПК */
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    transform: translateZ(0); 
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ БЕЙДЖ: Eco-Minimalism 2.0 (Тихая роскошь)
   ========================================================================== */
.hero__badge {
    display: inline-flex;
    align-items: center;
    /* Умный градиент: от цвета ночного неба к глубокому изумрудному оттенку */
    background: linear-gradient(135deg, rgba(26, 43, 72, 0.6) 0%, rgba(20, 40, 50, 0.4) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Составная рамка для эффекта объемного матового стекла */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom-color: rgba(255, 255, 255, 0.05); /* Снизу стекло темнее */
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1), /* Верхний блик */
        0 8px 32px rgba(0, 0, 0, 0.2);          /* Мягкая внешняя тень */
        
    border-radius: 100px;
    padding: 5px 18px 5px 5px; /* Асимметричный отступ под круглую иконку */
    margin-bottom: 20px;
    
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    cursor: default; /* Даем понять, что это элемент статуса, а не кнопка */
}

/* Тактильная левитация при наведении */
.hero__badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(26, 43, 72, 0.7) 0%, rgba(20, 40, 50, 0.5) 100%);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 12px 40px rgba(0, 0, 0, 0.25);
}

/* Иконка в стиле "Эмалевый значок" */
.hero__badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px; /* Чуть увеличили для статусности */
    height: 26px;
    background: linear-gradient(135deg, #28a782 0%, #1fa36f 100%);
    border-radius: 50%;
    margin-right: 12px;
    color: #ffffff;
    
    /* Магия объема: внутренний белый контур (блик) + зеленое свечение наружу */
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.3), 
        0 4px 12px rgba(40, 167, 130, 0.4);
}

.hero__badge-icon svg {
    width: 13px;
    height: 13px;
    /* Легкая тень у самой SVG иконки, чтобы она как бы вдавливалась в зеленую кнопку */
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* Журнальная типографика */
.hero__badge-text {
    color: #f8fafc; /* Чуть-чуть молочный оттенок вместо чистого режущего белого */
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Усилили журнальную разрядку */
    -webkit-font-smoothing: antialiased; /* Делает текст на Mac и iOS тоньше и изящнее */
    padding-top: 1px; /* Визуальная центровка относительно иконки */
}

/* Адаптив для смартфонов: делаем чуть компактнее */
@media (max-width: 767px) {
    .hero__badge {
        padding: 4px 14px 4px 4px;
        margin-bottom: 16px;
    }
    .hero__badge-icon {
        width: 22px;
        height: 22px;
        margin-right: 10px;
    }
    .hero__badge-icon svg {
        width: 11px;
        height: 11px;
    }
    .hero__badge-text {
        font-size: 10px;
        letter-spacing: 0.08em;
    }
}

/* 2. ГЛАВНЫЙ ЗАГОЛОВОК */
.hero__title {
    display: block !important;
    font-size: 52px !important; /* Было 64px - сделали аккуратнее */
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 12px 0 !important; /* Ужали отступ снизу */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.text-gradient {
    background: linear-gradient(135deg, #34d399 0%, #10b981 40%, #3b82f6 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
    text-shadow: none !important; 
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); 
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


/* 3. ПОДЗАГОЛОВОК */
.hero__subtitle {
    display: block !important;
    font-size: 18px !important; /* Было 22px */
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.5 !important;
    max-width: 640px !important;
    margin: 0 auto 32px auto !important; /* Было 48px - подняли форму поиска выше */
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    opacity: 0;
    animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* СТИЛЬНЫЙ МАРКЕР ДЛЯ СЛОВА "КОМФОРТ" */
.stylish-highlight {
    position: relative;
    display: inline-block;
    color: #ffffff;
    font-weight: 700;
    z-index: 1;
    white-space: nowrap;
}

.stylish-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    right: -4px;
    height: 100%; /* Слово закрашено целиком по умолчанию */
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.7) 0%, rgba(59, 130, 246, 0.7) 100%);
    border-radius: 2px;
    z-index: -1;
    transform: skewX(-12deg); /* Сохраняем скошенный край */
}


@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- АДАПТИВНОСТЬ: ПЛАНШЕТЫ --- */
@media (max-width: 991px) {
    .section.hero { padding-top: 48px !important; }
    .hero__title { font-size: 40px !important; }
    .hero__subtitle { font-size: 16px !important; margin-bottom: 28px !important; }
}

/* --- АДАПТИВНОСТЬ: СМАРТФОНЫ --- */
@media (max-width: 767px) {
    .section.hero { padding-top: 24px !important; } /* Максимально прижали к шапке на мобильных */
    
    .hero__badge { 
        margin-top: 20px;
        margin-bottom: 32px; 
        font-size: 11px;
        padding: 4px 12px 4px 8px;
    }
    
    .hero__title {
        font-size: 30px !important;
        line-height: 1.15 !important;
        margin-bottom: 10px !important;
        padding: 0 12px !important;
    }
    
    .hero__subtitle {
        font-size: 15px !important;
        margin-bottom: 24px !important; /* Ужали отступ до поисковой формы */
        padding: 0 16px !important;
    }
}

    .hero__search {
        margin-top: 20px;
    }

    .hero {
        padding: 100px 10px;
    }
    
    /* ==========================================================================
   TL CUSTOM DATEPICKER (УЛЬТРА ОПТИМИЗАЦИЯ ДЛЯ CPU)
   ========================================================================== */
.tl-calendar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6); /* Глухое затемнение без Blur */
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.tl-calendar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.tl-calendar-wrapper {
    position: absolute;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    padding: 24px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: max-content;
}

.tl-calendar-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tl-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.tl-cal-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #1a2b48;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tl-cal-nav-btn:hover { background: #e2e8f0; }
.tl-cal-nav-btn:active { transform: scale(0.95); }
.tl-cal-nav-btn.disabled { opacity: 0.3; pointer-events: none; }

.tl-calendar-months {
    display: flex;
    gap: 30px;
}

.tl-month-box { width: 280px; }
.tl-month-name {
    text-align: center; font-size: 16px; font-weight: 700; color: #1a2b48; margin-bottom: 16px; text-transform: capitalize;
}

.tl-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; }
.tl-weekday { text-align: center; font-size: 12px; font-weight: 600; color: #94a3b8; }
.tl-days-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }

/* КЛЕТКА ДНЯ */
.tl-day-cell {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b48;
    z-index: 1;
    margin: 2px 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Фон ячейки. Рисуется через аппаратное ускорение */
.tl-day-cell::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #f1f5f9;
    z-index: -1;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.1s ease, transform 0.1s ease;
}

/* Неактивные дни */
.tl-day-cell.is-disabled {
    color: #cbd5e1;
    pointer-events: none;
    text-decoration: line-through;
}

/* Ховер */
@media (min-width: 992px) {
    .tl-day-cell:not(.is-disabled):not(.is-selected):not(.is-in-range):hover::before {
        opacity: 1;
        transform: scale(1);
    }
}

/* Выбранные дни (Начало/Конец) */
.tl-day-cell.is-selected { color: #ffffff; }
.tl-day-cell.is-selected::before {
    opacity: 1;
    transform: scale(1);
    background: #28a782; 
    inset: 0;
}

/* Шлейф диапазона */
.tl-day-cell.is-in-range {
    background: #e6f5ef;
}

.tl-day-cell.is-range-start { border-top-left-radius: 50%; border-bottom-left-radius: 50%; }
.tl-day-cell.is-range-end { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }

/* Маркер "Сегодня" */
.tl-day-cell.is-today::after {
    content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: #f59e0b; border-radius: 50%;
}

/* Подвал */
.tl-calendar-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid #f1f5f9; padding-top: 16px; margin-top: -4px;
}

.tl-cal-clear {
    background: transparent; border: none; color: #64748b; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.tl-cal-clear:hover { color: #1a2b48; }

.tl-cal-apply {
    background: #1a2b48; color: #fff; border: none; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.tl-cal-apply:hover { background: #28a782; }

/* Адаптив для смартфонов (Bottom Sheet) */
@media (max-width: 991px) {
    .tl-calendar-wrapper {
        position: fixed; top: auto !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        width: 100% !important; max-width: 100% !important; transform: translateY(100%);
        border-radius: 28px 28px 0 0; padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
        border: none; border-top: 1px solid #e2e8f0; box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    }
    .tl-calendar-months { flex-direction: column; gap: 20px; max-height: 50vh; overflow-y: auto; padding-bottom: 20px; }
    .tl-month-box { width: 100%; }
    .tl-day-cell { height: 44px; font-size: 15px; } 
}

/* Фикс перекрытия шапкой галереи Magnific Popup */
.mfp-bg {
    z-index: 1000001 !important; /* Фон размытия должен быть выше шапки (100000) */
}

.mfp-wrap {
    z-index: 1000002 !important; /* Сама картинка и кнопки должны быть выше фона */
}

/* ==========================================================================
   ПРЕМИАЛЬНЫЙ РЕДИЗАЙН БЕЙДЖЕЙ (КОМПАКТНЫЙ + ФИРМЕННЫЙ СИНИЙ)
   ========================================================================== */

/* 1. Общий контейнер (чуть плотнее прижимаем к краям и друг к другу) */
.glampings-items__item__img__fitems {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important; /* Уменьшили расстояние между плашками */
}

/* 2. Общие свойства для всех бейджей (Компактный размер) */
.glampings-items__item__img__featured,
.glampings-items__item__img > .glampings-items__item__img__featured {
    position: static !important; /* Убиваем инлайн top: 44px от промокода */
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important; /* Было 6px 12px - сделали меньше */
    border-radius: 6px !important; /* Было 8px - сделали аккуратнее */
    font-size: 10px !important; /* Уменьшили шрифт */
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Легкий эффект взлета бейджа при наведении на карточку глэмпинга */
.glampings-items__item:hover .glampings-items__item__img__featured {
    transform: translateY(-2px) !important;
}

/* 3. БЕЙДЖ "РЕКОМЕНДУЕМ" (Фирменный синий цвет) */
.glampings-items__item__img__featured:not([style*="#f44"]),
.glampings-items__item__img > .glampings-items__item__img__featured:not([style*="#f44"]) {
    /* Градиент на основе вашего фирменного #1a2b48 */
    background: linear-gradient(135deg, #1a2b48 0%, #2b4570 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 10px rgba(26, 43, 72, 0.3) !important;
}

/* Золотая звездочка (на темно-синем фоне смотрится максимально премиально) */
.glampings-items__item__img__featured:not([style*="#f44"]) span::before {
    content: "★ ";
    color: #fde047;
    font-size: 11px;
    margin-right: 2px;
}

/* 4. БЕЙДЖ "СКИДКА С ПРОМОКОДОМ" (Компактный красный с пульсацией) */
.glampings-items__item__img__featured[style*="#f44"],
.glampings-items__item__img > .glampings-items__item__img__featured[style*="#f44"] {
    background: linear-gradient(135deg, #ff5a3c 0%, #e63939 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 10px rgba(230, 57, 57, 0.3) !important;
    animation: promoPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1) !important;
}

/* Пульсация тени стала чуть мягче из-за уменьшенных размеров */
@keyframes promoPulse {
    0%, 100% { box-shadow: 0 4px 8px rgba(230, 57, 57, 0.3); }
    50% { box-shadow: 0 4px 16px rgba(230, 57, 57, 0.6); }
}

/* ==========================================================================
   БЕЗОПАСНЫЙ ФИКС СКРОЛЛА И НИЖНЕЙ ПЛАШКИ (БЕЗ OVERFLOW: HIDDEN)
   ========================================================================== */

/* 1. Запрет на разрыв границ длинными ссылками (частая причина скролла в Вебмастере) */
p, a, span, div, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

@media (max-width: 767px) {
    /* 2. Математически точное растягивание широких блоков.
       Вместо calc(100% + 48px), который давал погрешность и скролл, 
       мы используем 100vw (ровно ширина экрана) с центрированием. */
    .sg-mobile-gallery-app,
    .slider-div,
    .map-wrap,
    .catalog-reviews-swiper,
    body.single-glampings .breadcrumbs {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        box-sizing: border-box !important;
    }

    /* Защита для Яндекс.Карт от вылезающих кнопок масштаба */
    [class*="ymaps-2-1-"] {
        max-width: 100vw !important;
    }

    /* 3. ЖЕСТКАЯ ФИКСАЦИЯ НИЖНЕЙ ПАНЕЛИ (УБИВАЕМ "ПУСТОТУ") */
    .sg-mobile-booking-bar {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        padding-bottom: 0 !important; /* Уменьшили отступ, теперь он идеальный */
        
        /* Включаем 3D-ускорение, чтобы плашка не дергалась при скролле */
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
}

/* ==========================================================================
   ФИКС ВЕРСТКИ БЕЙДЖЕЙ ПОСЛЕ ПРИМЕНЕНИЯ AJAX-ФИЛЬТРОВ
   ========================================================================== */

/* 1. Если плашки выводятся JS-скриптом напрямую поверх картинки (без обертки fitems) */
.glampings-items__item__img > .glampings-items__item__img__featured {
    position: absolute !important;
    left: 10px !important;
    margin: 0 !important;
}

/* 2. Жестко задаем отступ сверху для первой плашки (Рекомендуем) */
.glampings-items__item__img > .glampings-items__item__img__featured:nth-of-type(1) {
    top: 10px !important;
}

/* 3. Жестко задаем отступ сверху для второй плашки (Промокод/Скидка) */
.glampings-items__item__img > .glampings-items__item__img__featured:nth-of-type(2) {
    top: 42px !important; /* Ставим аккуратно под первой плашкой */
}

/* 4. Возвращаем оригинальное поведение для PHP-верстки (когда есть обертка fitems) */
.glampings-items__item__img__fitems > .glampings-items__item__img__featured {
    position: static !important; 
    margin: 0 !important;
}

/* ==========================================================================
   ВАРИАНТ 3: ИДЕАЛЬНАЯ ГЕОМЕТРИЯ (ОДИНАКОВАЯ ВЫСОТА И СИММЕТРИЧНЫЕ ОТСТУПЫ)
   ========================================================================== */

/* 1. Контейнер строки чипсов */
.glamping-chips-row {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;                /* Разрешаем перенос, если город длинный */
    row-gap: 8px !important;                  /* Равномерный отступ между строками при переносе */
    column-gap: 8px !important;               /* Отступ между соседними плашками в одном ряду */
    margin-top: 10px !important;              /* Симметричный отступ сверху (от адреса) */
    margin-bottom: 10px !important;           /* Симметричный отступ снизу (до отзывов) */
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Левый бейдж: "Иное жилье" / "В реестре" */
.glamping-chips-row .classification-badge {
    margin: 0 !important;
    height: 22px !important;                  /* Строго фиксированная высота */
    max-height: 22px !important;
    padding: 0 8px !important;                /* Вертикаль центрируется флексом */
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 20px !important;             /* Идеальная оптическая посадка текста */
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

/* 3. Правый бейдж: Расстояние (Вариант 3 - Slate Minimal) */
.glamping-chips-row .glamping-badge-distance {
    margin: 0 !important;
    height: 22px !important;                  /* В точности такая же высота, как у левого бейджа! */
    max-height: 22px !important;
    box-sizing: border-box !important;
    padding: 0 8px !important;
    background: #f1f5f9 !important;           /* Легкий чистый фон Slate */
    border: 1px solid #e2e8f0 !important;     /* Тонкая рамка в тон, чтобы толщина границ совпадала */
    border-radius: 6px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11.5px !important;
    line-height: 20px !important;
    color: #475569 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
}

/* Убираем старую точку-разделитель */
.glamping-chips-row .glamping-badge-distance::before {
    display: none !important;
    content: none !important;
}

/* Иконка компаса */
.glamping-chips-row .glamping-badge-distance svg {
    width: 12px !important;
    height: 12px !important;
    color: #64748b !important;
    stroke: #64748b !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: block !important;
}

/* Текст расстояния */
.glamping-chips-row .glamping-badge-distance span {
    font-weight: 600 !important;
    color: #1e293b !important;
    letter-spacing: -0.01em !important;
}

/* Легкий ховер при наведении на карточку */
.glampings-items__item:hover .glamping-chips-row .glamping-badge-distance {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
}

/* ==========================================================================
   ТОЧЕЧНЫЙ ФИКС ШИРИНЫ НА СТРАНИЦЕ ГЛЭМПИНГА (БЕЗ OVERFLOW НА BODY)
   ========================================================================== */

/* 1. Делаем темно-синюю плашку адаптивной: 2 колонки х 2 ряда на смартфонах */
@media (max-width: 991px) {
    .sg-highlights-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 16px !important;
        border-radius: 16px !important;
    }

    .sg-hl-item {
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .sg-hl-item svg {
        flex-shrink: 0 !important;
        width: 22px !important;
        height: 22px !important;
    }

    .sg-hl-item div {
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .sg-hl-label {
        display: block !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        opacity: 0.8 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .sg-hl-val {
        display: block !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}

/* 2. Принудительный перенос облака тегов/удобств под синей плашкой */
.single-article__content__item-tags,
.sg-pill-wrapper,
.item-category,
.item-category__item {
    display: flex !important;
    flex-wrap: wrap !important;
    max-width: 100% !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

/* 3. Предотвращение распирания по ширине для белой шапки и текста */
.single-article,
.sg-adaptive-header-blocks,
.sg-description-box {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
}

/* ==========================================================================
   ЦЕНТРИРОВАНИЕ ТЕГОВ РЕГИОНА И СЕО-СТРАНИЦ НА МОБИЛЬНЫХ УСТРОЙСТВАХ
   ========================================================================== */
@media (max-width: 991px) {
 .sg-categories-pills,
 .sg-order-pills,
 .single-article__content__item-tags {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
 }
 .sg-categories-pills .sg-pill-loc,
 .sg-pill-loc {
  margin: 0 !important;
 }
 .sg-categories-pills a,
 .sg-pill,
 .item-category__item a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
 }
}


/* ==========================================================================
   ОТОБРАЖЕНИЕ ЗАГОЛОВКА H1 НА МОБИЛЬНЫХ УСТРОЙСТВАХ
   ========================================================================== */
@media (max-width: 991px) {
    /* Принудительно показываем шапку с H1 на мобильных */
    .header-title,
    .header-title.page-header,
    .page-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 16px 0 8px 0 !important;
        margin: 0 !important;
        background: transparent !important;
        text-align: left !important;
    }

    .header-title .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Стилизация и аккуратный размер шрифта для H1 на экранах смартфонов */
    .header-title .page-title,
    h1.page-title {
        display: block !important;
        font-size: 22px !important;
        line-height: 1.25 !important;
        font-weight: 800 !important;
        color: #1a2b48 !important;
        margin: 0 0 8px 0 !important;
        word-break: break-word !important;
    }
}

/* ==========================================================================
   ТЕМНО-СИНИЙ БАННЕР H1 — ТОЛЬКО ДЛЯ МОБИЛЬНЫХ ЭКРАНОВ (ДО 991px)
   ========================================================================== */
@media (max-width: 991px) {
    /* Меняем стандартную белую шапку на стильный темно-синий баннер */
    .header-title.page-header {
        display: block !important;
        margin-top: 10px !important;
        margin-bottom: 16px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .header-title .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Синяя плашка со скруглением и тенью вокруг H1 */
    .header-title .page-title,
    h1.page-title {
        display: block !important;
        background: linear-gradient(135deg, #1a2b48 0%, #152238 100%) !important;
        border-radius: 16px !important;
        padding: 20px 18px !important;
        color: #ffffff !important;
        font-size: 22px !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        box-shadow: 0 8px 24px rgba(26, 43, 72, 0.12) !important;
        word-break: break-word !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Изумрудный блик в углу баннера */
    .header-title .page-title::after {
        content: "";
        position: absolute;
        top: -30px;
        right: -30px;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle, rgba(40, 167, 130, 0.22) 0%, rgba(26, 43, 72, 0) 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    /* Аккуратные отступы хлебных крошек на смартфонах */
    .container:has(.kama_breadcrumbs),
    .container:has(#breadcrumbs) {
        margin-top: 8px !important;
        margin-bottom: 6px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .header-title .page-title,
    h1.page-title {
        padding: 16px 16px !important;
        font-size: 19px !important;
    }
}


/* ==========================================================================
   АДАПТИВНОСТЬ ДЛЯ СМАРТФОНОВ
   ========================================================================== */
@media (max-width: 991px) {
    .catalog-breadcrumbs-wrap {
        margin-top: 10px;
        margin-bottom: 8px;
        font-size: 12px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .catalog-hero-banner {
        margin-top: 4px;
        margin-bottom: 16px;
    }

    .catalog-hero-banner__inner {
        padding: 20px 18px;
        border-radius: 16px;
    }

    .catalog-hero-banner__title {
        font-size: 22px;
        line-height: 1.25;
    }
}

@media (max-width: 480px) {
    .catalog-hero-banner__inner {
        padding: 18px 16px;
    }

    .catalog-hero-banner__title {
        font-size: 20px;
    }
}

/* ==========================================================================
   АККУРАТНЫЙ БЛОК "НИЧЕГО НЕ НАЙДЕНО"
   ========================================================================== */
.glampings-not-found-article {
    width: 100%;
}

.glampings-empty-state {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 48px 28px;
    margin: 20px 0 40px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.glampings-empty-state__icon-wrap {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: transform 0.3s ease;
}

.glampings-empty-state__icon-wrap svg {
    width: 32px;
    height: 32px;
}

.glampings-empty-state__title {
    font-size: 22px;
    line-height: 1.3;
    color: #1a2b48;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.glampings-empty-state__desc {
    color: #64748b;
    font-size: 15px;
    line-height: 1.55;
    max-width: 440px;
    margin: 0 auto 24px;
}

.glampings-empty-state__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #28a782;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.glampings-empty-state__btn:hover {
    background: #218c6d;
    transform: translateY(-1px);
}

/* Мобильная адаптация: компактные отступы, читаемый текст, удобная кнопка */
@media (max-width: 767px) {
    .glampings-empty-state {
        padding: 32px 18px;
        margin: 16px 0 30px;
        border-radius: 16px;
    }

    .glampings-empty-state__icon-wrap {
        width: 56px;
        height: 56px;
        margin-bottom: 14px;
    }

    .glampings-empty-state__icon-wrap svg {
        width: 26px;
        height: 26px;
    }

    .glampings-empty-state__title {
        font-size: 19px;
        margin-bottom: 10px;
    }

    .glampings-empty-state__desc {
        font-size: 13.5px;
        line-height: 1.5;
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .glampings-empty-state__btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 10px;
    }
}

/* ==========================================================================
   ФИКСЫ ДЛЯ МОБИЛЬНОЙ АДАПТИВНОСТИ (ЯНДЕКС.ВЕБМАСТЕР)
   ========================================================================== */

/* 1. Бронебойная защита от горизонтального скролла */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}

/* 2. Адаптивность таблиц и широких блоков */
.compare-table-wrapper,
.table-responsive,
.top-rating-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    display: block;
}

/* 3. Фикс всплывающих окон классификации */
@media (max-width: 576px) {
    .classification-number-info-single {
        width: calc(100vw - 40px) !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        box-sizing: border-box;
    }

    /* 4. Увеличение зоны нажатия для пагинации и кнопок */
    .pagination ul li a, 
    .pagination ul li span {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 40px !important;
        min-height: 40px !important;
        font-size: 15px !important;
        margin: 2px !important;
    }

    /* 5. Безопасные размеры тач-зон карточки */
    .catalog-fav-btn,
    .catalog-compare-btn {
        width: 38px !important;
        height: 38px !important;
    }
}

/* Скрываем нижнюю плавающую панель "Сравнить", когда пользователь УЖЕ на этой странице */
body.page-template-page-compare .compare-floating-bar,
body.page-template-page-compare .js-compare-bar {
    display: none !important;
}

/* ==========================================================================
   ПЛАШКИ БЫСТРЫХ ФИЛЬТРОВ: ЧЕТКИЙ ТЕКСТ В ОБЫЧНОМ И АКТИВНОМ СОСТОЯНИИ
   ========================================================================== */

/* 1. Обычное состояние плашки */
.search-queries-item a,
.item-category__item.search-queries-item a {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    color: #28a782 !important;                  /* Зеленый текст */
    background: #eaf7f2 !important;             /* Мятный фон */
    border: 1px solid rgba(40, 167, 130, 0.3) !important;
    border-radius: 100px !important;
    padding: 8px 16px !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important; /* Убираем паразитную серую мобильную вспышку */
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease !important;
}

/* 2. Состояние при нажатии (тап на телефоне или клик мышью) */
.search-queries-item a:hover,
.search-queries-item a:focus,
.search-queries-item a:active,
.item-category__item.search-queries-item a:hover,
.item-category__item.search-queries-item a:focus,
.item-category__item.search-queries-item a:active {
    background: #28a782 !important;             /* Фирменный зеленый фон */
    color: #ffffff !important;                  /* БЕЛОСНЕЖНЫЙ ТЕКСТ - ЧЕТКО ВИДЕН */
    -webkit-text-fill-color: #ffffff !important;/* Защита от сброса цвета в Safari на iPhone */
    border-color: #28a782 !important;
    transform: scale(0.97) !important;          /* Приятный тактильный микро-отклик нажатия */
}

/* 3. Центрирование на хвостовых страницах */
.term-tag-link .item-category__title {
    text-align: center !important;
}

.term-tag-link .search-queries-item,
.term-tag-link .item-category__item.search-queries-item {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
}

/* 4. Мобильная лента в одну строку со свайпом (ВЫРАВНЕНА РОВНО ПО СЕТКЕ КАРТОЧЕК) */
@media (max-width: 767px) {
    .container:not(.term-tag-link) .search-queries-item,
    .single-article__content__item:not(.term-tag-link .single-article__content__item) .search-queries-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: scroll !important;
        -webkit-overflow-scrolling: touch !important;
        
        /* ВАЖНО: 12px слева ставят первую плашку ровно по левому краю баннера H1 и карточек */
        padding: 4px 16px 8px 12px !important;
        gap: 8px !important;
        scrollbar-width: none !important;
    }

    .container:not(.term-tag-link) .search-queries-item::-webkit-scrollbar {
        display: none !important;
    }

    .search-queries-btn {
        display: none !important;
    }
}

/* ==========================================================================
   МОБИЛЬНЫЙ ПОРЯДОК БЛОКОВ В КАРТОЧКЕ ГЛЭМПИНГА (ДО 991px)
   На ПК (> 991px) все остается без изменений
   ========================================================================== */
@media (max-width: 991px) {
    /* 1. Делаем основной контейнер флекс-колонкой */
    .single-glampings main.container-with-sitebar-right {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 2. Делаем обертку сайдбара прозрачной для Flexbox, чтобы управлять Картой и Контактами отдельно */
    .single-glampings .single-aside {
        display: contents !important;
    }

    /* БЛОКИ 1–4: Шапка, Описание, Домики, Условия, Правила и Что есть в глэмпинге 
       (уже лежат внутри .single-article строго в этом порядке!) */
    .single-glampings .single-article {
        order: 10 !important;
        width: 100%;
    }

    /* БЛОК 5: Отзывы гостей + Умное AI-саммари (DeepSeek) */
    .single-glampings main.container-with-sitebar-right > #reviews.single-article__reviews {
        order: 20 !important;
        width: 100%;
        margin-top: 8px !important;
        margin-bottom: 28px !important;
    }

    /* БЛОК 6: Местоположение (Яндекс.Карта) */
    .single-glampings .single-aside > .single-aside__map {
        order: 30 !important;
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 24px !important;
    }

    /* БЛОК 7: Контакты + Реестр классификации */
    .single-glampings .single-aside > .sg-contacts-wrapper {
        order: 40 !important;
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 16px !important;
    }

    .single-glampings main.container-with-sitebar-right > .classification-text,
    .single-glampings main.container-with-sitebar-right > .classification-number-single-wrap {
        order: 45 !important;
        width: 100%;
        margin-top: 0 !important;
        margin-bottom: 24px !important;
    }

    /* БЛОК 8: Глэмпинги рядом */
    .single-glampings main.container-with-sitebar-right > .single-article__related,
    .single-glampings main.container-with-sitebar-right > noindex {
        order: 50 !important;
        width: 100%;
    }
}

/* Подъем ценников на карте */
[class*="-places-pane"],
[class*="-overlay-pane"] {
    z-index: 2501 !important;
}

.glc-icon-content {
    position: relative !important;
    z-index: 2502 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    user-select: none !important;
}

.glc-icon-content * {
    pointer-events: none !important;
}

/* Универсальная фирменная синяя плашка для всех хвостовых страниц */
.glamping-tail-badge,
.glamping-kids-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: #f0f4f8;
    border: 1px solid #d9e2ec;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    color: #1a2b48; /* Фирменный глубокий синий */
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.glamping-tail-badge svg,
.glamping-kids-badge svg {
    stroke: #2b4c7e;
    flex-shrink: 0;
}

.glampings-items__item:hover .glamping-tail-badge,
.glampings-items__item:hover .glamping-kids-badge {
    background: #e2eaf1;
    border-color: #bcccdc;
}

/* Базовый стиль плашки классификации */
.classification-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    position: relative;
}

/* 1. Если "Иное жилье" (нейтральный/сдержанный стиль) */
.classification-badge--other {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
}

/* 2. Если "В реестре классификации" (статусный изумрудный стиль доверия) */
.classification-badge--certified {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.classification-badge--certified .classification-badge__icon svg {
    stroke: #059669;
    vertical-align: middle;
}

.classification-badge--certified .classification-badge__text {
    font-weight: 600;
}

/* Иконка (i) и тултип */
.classification-badge__info-icon {
    display: inline-flex;
    align-items: center;
    cursor: help;
    position: relative;
    color: inherit;
    opacity: 0.75;
}

.classification-badge__info-icon:hover {
    opacity: 1;
}

.classification-badge__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    padding: 7px 10px;
    background: #1e293b;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 400;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    white-space: normal;
    text-align: left;
    pointer-events: none;
}

.classification-badge__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.classification-badge__info-icon:hover .classification-badge__tooltip {
    display: block;
}

/* ==========================================================================
   БЕЙДЖ "ВРЕМЕННО НЕ РАБОТАЕТ" (СДЕРЖАННЫЙ СЕРЫЙ СТИЛЬ)
   ========================================================================== */
.glampings-items__item__img__featured.is-out-of-service,
.glampings-items__item__img > .glampings-items__item__img__featured.is-out-of-service {
    background: rgba(71, 85, 105, 0.92) !important; /* Благородный темно-серый (Slate) */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25) !important;
    animation: none !important; /* Отключаем красную пульсацию */
    letter-spacing: 0.03em !important;
}

/* При наведении на карточку слегка приглушаем фото закрытого объекта */
.glampings-items__item:has(.is-out-of-service) .glampings-items__item__img img {
    filter: grayscale(20%) contrast(95%);
}

/* Предотвращение FOUC и невидимого текста на мобильных */
@media (max-width: 767px) {
  .hero__title,
  .hero__subtitle,
  .hero__badge {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Красивый системный шрифт для текста в админ-баре (как внутри wp-admin) */
#wpadminbar,
#wpadminbar a,
#wpadminbar span:not(.ab-icon):not(.dashicons),
#wpadminbar div:not(.ab-icon):not(.dashicons),
#wpadminbar .ab-item,
#wpadminbar .ab-label,
#wpadminbar .ab-empty-item {
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

/* Иконочный шрифт строго для иконок и псевдоэлементов админ-бара */
#wpadminbar .ab-icon,
#wpadminbar .ab-icon:before,
#wpadminbar .dashicons,
#wpadminbar .dashicons:before,
#wpadminbar .ab-item:before,
#wpadminbar .ab-item:after {
 font-family: dashicons !important;
}

/* ВАРИАНТ 1: Фирменный глубокий темно-синий блок отзывов + единый компактный шаг между всеми нижними секциями */
.glamping-leaderboard {
	margin-top: 28px !important;
	margin-bottom: 28px !important;
}

.catalog-reviews-block {
	background: linear-gradient(135deg, #1a2b48 0%, #243b61 100%);
	border-radius: 24px;
	padding: 32px 32px 36px 32px !important;
	margin-top: 28px !important;
	margin-bottom: 28px !important;
	box-sizing: border-box;
	box-shadow: 0 16px 36px rgba(26, 43, 72, 0.12);
}

.catalog-reviews-block .catalog-reviews-header {
	margin-bottom: 20px !important;
}

.catalog-reviews-block .glamping-leaderboard__title {
	margin-bottom: 0 !important;
	color: #ffffff !important;
}

.catalog-reviews-block .swiper-btn-prev-custom,
.catalog-reviews-block .swiper-btn-next-custom {
	background: rgba(255, 255, 255, 0.12) !important;
	color: #ffffff !important;
	border: 1px solid rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
}

.catalog-reviews-block .swiper-btn-prev-custom:hover,
.catalog-reviews-block .swiper-btn-next-custom:hover {
	background: #28a782 !important;
	border-color: #28a782 !important;
	color: #ffffff !important;
}

.catalog-reviews-block .catalog-review-card {
	background: #ffffff !important;
	border: none !important;
	border-radius: 18px !important;
	box-shadow: 0 10px 26px rgba(10, 20, 38, 0.2) !important;
}

.catalog-reviews-block .catalog-review-card__avatar {
	background: linear-gradient(135deg, #28a782 0%, #1d8264 100%) !important;
}

/* Единый компактный отступ для блока перелинковки, соседних регионов и SEO-текста */
.tl-explorer {
	margin-top: 28px !important;
	margin-bottom: 28px !important;
}

.term-may-like {
	margin-top: 28px !important;
	margin-bottom: 28px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.term-may-like__title {
	margin-top: 0 !important;
	margin-bottom: 16px !important;
}

.seo-text-block {
	margin-top: 28px !important;
	margin-bottom: 32px !important;
	padding-top: 24px !important;
}

@media (max-width: 767px) {
	.glamping-leaderboard,
	.tl-explorer,
	.term-may-like {
		margin-top: 20px !important;
		margin-bottom: 20px !important;
	}
	.catalog-reviews-block {
		padding: 22px 18px 26px 18px !important;
		border-radius: 18px;
		margin-top: 20px !important;
		margin-bottom: 20px !important;
	}
	.seo-text-block {
		margin-top: 20px !important;
		margin-bottom: 24px !important;
		padding-top: 20px !important;
	}
}

/* Убираем лишнюю пустоту между листингом карточек и таблицей "Рейтинг лучших" */
main.site-main,
.site-main,
.site-main-article,
main article {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.pagination-links {
	margin-top: 24px !important;
	margin-bottom: 12px !important;
}

.show-more {
	margin-top: 16px !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* 1. Убираем старую зеленую черточку по центру над SEO-текстом и делаем чистый разделитель */
.seo-text-block::before,
.seo-text-block__inner::before {
	display: none !important;
	content: none !important;
}

.seo-text-block {
	border-top: 1px solid #eef2f6 !important;
	padding-top: 24px !important;
	margin-top: 32px !important;
}

/* 2. Выравниваем заголовок и табы перелинковки в одну линию на широких экранах */
@media (min-width: 992px) {
	.tl-explorer__header {
		flex-wrap: nowrap !important;
		margin-bottom: 20px !important;
	}
	.tl-explorer__title {
		font-size: 22px !important;
		white-space: nowrap;
	}
	.tl-explorer__tab {
		padding: 7px 12px !important;
		font-size: 12.5px !important;
	}
}

/* 1. Табы перелинковки: НИКОГДА не переносятся на вторую строку внутри капсулы */
.tl-explorer__header {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 14px !important;
}

.tl-explorer__tabs {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.tl-explorer__tabs::-webkit-scrollbar {
	display: none;
}

.tl-explorer__tab {
	white-space: nowrap !important;
	flex-shrink: 0 !important;
	padding: 8px 13px !important;
	font-size: 13px !important;
}

/* 2. Осовремениваем первый экран каталога: убираем канцелярский заголовок "БЫСТРЫЕ ФИЛЬТРЫ:" и выделяем спец-хабы */
.item-category .item-category__title {
	display: none !important;
}

.single-article__content__item.item-category {
	margin-top: 6px !important;
	margin-bottom: 10px !important;
}

/* Выделяем спец-хабы (Топ лучших / На Новый год) благородным темно-синим стилем */
.search-queries-item a.tl-hub-pill {
	background: #1a2b48 !important;
	color: #ffffff !important;
	border-color: #1a2b48 !important;
	box-shadow: 0 4px 12px rgba(26, 43, 72, 0.12) !important;
}

.search-queries-item a.tl-hub-pill svg {
	color: #28a782 !important;
}

.search-queries-item a.tl-hub-pill:hover {
	background: #28a782 !important;
	border-color: #28a782 !important;
	color: #ffffff !important;
}

.search-queries-item a.tl-hub-pill:hover svg {
	color: #ffffff !important;
}

/* ВАРИАНТ Б: Современная скругленная Hero-капсула в границах контейнера (в рифму с блоком отзывов) */
@media (min-width: 992px) {
	.page-header,
	.header-title.page-header {
		background: transparent !important;
		padding: 16px 0 8px 0 !important;
	}

	.page-header > .container,
	.header-title.page-header > .container {
		background: linear-gradient(135deg, #1a2b48 0%, #243b61 100%) !important;
		border-radius: 20px !important;
		padding: 26px 32px !important;
		box-shadow: 0 12px 30px rgba(26, 43, 72, 0.10) !important;
		position: relative;
		overflow: hidden;
	}

	.page-header > .container::after,
	.header-title.page-header > .container::after {
		content: "";
		position: absolute;
		top: -50px;
		right: -40px;
		width: 220px;
		height: 220px;
		background: radial-gradient(circle, rgba(40, 167, 130, 0.25) 0%, rgba(26, 43, 72, 0) 70%);
		border-radius: 50%;
		pointer-events: none;
	}
}

/* 1. Быстрые фильтры: все плашки в едином нежно-мятном цвете с изумрудным кантом и темно-синим текстом */
.search-queries-item a,
.item-category__item.search-queries-item a,
.search-queries-item a.tl-hub-pill,
.item-category__item.search-queries-item a.tl-hub-pill {
	background: #f2fbf7 !important;
	color: #1a2b48 !important;
	-webkit-text-fill-color: #1a2b48 !important;
	border: 1px solid #99e2c8 !important;
	border-radius: 10px !important;
	padding: 9px 16px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	box-shadow: 0 2px 6px rgba(40, 167, 130, 0.06) !important;
	transition: all 0.2s ease !important;
}

.search-queries-item a svg,
.search-queries-item a.tl-hub-pill svg {
	color: #28a782 !important;
}

.search-queries-item a svg path,
.search-queries-item a.tl-hub-pill svg path {
	fill: #28a782 !important;
}

.search-queries-item a svg line,
.search-queries-item a.tl-hub-pill svg line {
	stroke: #28a782 !important;
}

.search-queries-item a:hover,
.item-category__item.search-queries-item a:hover,
.search-queries-item a.tl-hub-pill:hover,
.item-category__item.search-queries-item a.tl-hub-pill:hover {
	background: #28a782 !important;
	border-color: #28a782 !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(40, 167, 130, 0.16) !important;
}

.search-queries-item a:hover svg,
.search-queries-item a.tl-hub-pill:hover svg {
	color: #ffffff !important;
}

.search-queries-item a:hover svg path,
.search-queries-item a.tl-hub-pill:hover svg path {
	fill: #ffffff !important;
}

.search-queries-item a:hover svg line,
.search-queries-item a.tl-hub-pill:hover svg line {
	stroke: #ffffff !important;
}

/* 2. Hero-капсула H1 на ПК и ноутбуках: строго в границах сетки (не прилипает к краям на узких экранах) */
@media (min-width: 992px) {
	.page-header,
	.header-title.page-header {
		background: transparent !important;
		padding: 16px 15px 8px 15px !important;
		box-sizing: border-box !important;
	}

	.page-header > .container,
	.header-title.page-header > .container {
		background: linear-gradient(135deg, #1a2b48 0%, #243b61 100%) !important;
		border-radius: 20px !important;
		padding: 26px 32px !important;
		box-shadow: 0 12px 30px rgba(26, 43, 72, 0.10) !important;
		position: relative;
		overflow: hidden;
		box-sizing: border-box !important;
	}

	.page-header > .container::after,
	.header-title.page-header > .container::after {
		content: "";
		position: absolute;
		top: -50px;
		right: -40px;
		width: 220px;
		height: 220px;
		background: radial-gradient(circle, rgba(40, 167, 130, 0.25) 0%, rgba(26, 43, 72, 0) 70%);
		border-radius: 50%;
		pointer-events: none;
	}
}

/* 3. Перфорированный купон "С промокодом" + навигационная кнопка "Посмотреть на карте" */
.promo-filter-toggle {
	position: relative !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 10px !important;
	background: #ffffff !important;
	border: 1.5px dashed #28a782 !important;
	border-radius: 10px !important;
	padding: 0 18px !important;
	height: 42px !important;
	min-height: 42px !important;
	box-sizing: border-box !important;
	box-shadow: 0 2px 8px rgba(40, 167, 130, 0.06) !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Настоящие сквозные полукруглые вырезы по бокам (перекрывают пунктир белым цветом) */
.promo-filter-toggle::before,
.promo-filter-toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 10px;
	height: 10px;
	background: #ffffff !important;
	border: 1.5px solid transparent;
	border-radius: 50%;
	box-sizing: border-box;
	z-index: 2;
	pointer-events: none;
}

.promo-filter-toggle::before {
	left: -6px;
	border-top-color: #28a782;
	border-right-color: #28a782;
	transform: translateY(-50%) rotate(45deg);
}

.promo-filter-toggle::after {
	right: -6px;
	border-bottom-color: #28a782;
	border-left-color: #28a782;
	transform: translateY(-50%) rotate(45deg);
}

.promo-filter-toggle:hover,
.promo-filter-toggle:has(input:checked) {
	border-style: solid !important;
	box-shadow: 0 4px 12px rgba(40, 167, 130, 0.14) !important;
}

.promo-filter-toggle__switch {
	width: 32px !important;
	height: 18px !important;
	background: #cbd5e1 !important;
	border-radius: 20px !important;
	flex-shrink: 0 !important;
}

.promo-filter-toggle__switch::after {
	width: 14px !important;
	height: 14px !important;
	top: 2px !important;
	left: 2px !important;
}

.promo-filter-toggle input:checked + .promo-filter-toggle__switch {
	background: #28a782 !important;
}

.promo-filter-toggle input:checked + .promo-filter-toggle__switch::after {
	transform: translateX(14px) !important;
}

.promo-filter-toggle__text {
	font-size: 13.5px !important;
	font-weight: 600 !important;
	color: #1a2b48 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
}

/* Кнопка "Посмотреть на карте" (темно-синяя с сеткой координат и локатором) */
.site-main-article__top__button {
	position: relative !important;
	overflow: hidden !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #1a2b48 !important;
	background-image:
		radial-gradient(circle at 21px 50%, rgba(40, 167, 130, 0.35) 0%, rgba(40, 167, 130, 0.10) 14px, transparent 15px),
		radial-gradient(circle at 90% 15%, rgba(40, 167, 130, 0.22) 0%, transparent 50%),
		linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
	background-size: 100% 100%, 100% 100%, 10px 10px, 10px 10px !important;
	color: #ffffff !important;
	border: 1.5px solid #1a2b48 !important;
	border-radius: 10px !important;
	height: 42px !important;
	min-height: 42px !important;
	padding: 0 18px 0 43px !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	box-shadow: 0 4px 12px rgba(26, 43, 72, 0.14) !important;
	transition: all 0.25s ease !important;
}

.site-main-article__top__button::before {
	content: "";
	position: absolute !important;
	left: 21px !important;
	top: 50% !important;
	width: 24px !important;
	height: 24px !important;
	border: 1px dashed rgba(153, 226, 200, 0.65) !important;
	border-radius: 50% !important;
	transform: translate(-50%, -50%) !important;
	box-sizing: border-box !important;
	pointer-events: none;
}

.site-main-article__top__button svg {
	position: absolute !important;
	left: 21px !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	margin: 0 !important;
	z-index: 2;
	width: 13px !important;
	height: 13px !important;
	flex-shrink: 0 !important;
	transition: transform 0.25s ease !important;
}

.site-main-article__top__button svg,
.site-main-article__top__button svg path {
	fill: #99e2c8 !important;
	color: #99e2c8 !important;
}

.site-main-article__top__button:hover {
	border-color: #28a782 !important;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(26, 43, 72, 0.20) !important;
}

.site-main-article__top__button:hover svg {
	transform: translate(-50%, calc(-50% - 1.5px)) scale(1.08) !important;
}

/* На мобильном обе кнопки одинаковой высоты (38px) и в один ряд */
@media (max-width: 767px) {
	.site-main-article__top,
	.site-main-article__top__count {
		flex-direction: row !important;
		flex-wrap: wrap !important;
		justify-content: center !important;
		align-items: center !important;
		gap: 10px !important;
	}

	.site-main-article__top__count > span:first-child,
	.site-main-article__top__count > div:first-child {
		width: 100% !important;
		text-align: center !important;
		margin-bottom: 4px !important;
	}

	.promo-filter-toggle,
	.site-main-article__top__button {
		margin: 0 !important;
		height: 38px !important;
		min-height: 38px !important;
		padding: 0 14px !important;
		font-size: 12.5px !important;
		border-radius: 10px !important;
		flex: 1 1 calc(50% - 10px) !important;
		max-width: 195px !important;
	}

	/* Оставляем симметричное место слева под кружок локатора и пин на мобильном */
	.site-main-article__top__button {
		padding: 0 14px 0 40px !important;
	}
}

/* 4. Аккуратная панель основных фильтров (Единый бар с подложкой #f8fafc) + кнопка "Сбросить" */
@media (min-width: 992px) {
	.filtr-wrapper__body {
		background: #f8fafc !important;
		border: 1px solid #e2e8f0 !important;
		border-radius: 16px !important;
		padding: 14px 18px !important;
		margin-top: 8px !important;
		margin-bottom: 18px !important;
		box-shadow: 0 4px 16px rgba(26, 43, 72, 0.03) !important;
	}

	/* Сбрасываем внешнюю обертку, чтобы не было двойной рамки */
	.filtr__item__button {
		border: none !important;
		background: transparent !important;
		box-shadow: none !important;
		padding: 0 !important;
	}

	/* Стилизуем саму кнопку внутри обертки (единый чистый контур) */
	.filtr__item:not(.reset-all-desktop) .filtr__item__button > button {
		border-radius: 10px !important;
		border: 1px solid #dce4ee !important;
		background: #ffffff !important;
		min-height: 40px !important;
		box-shadow: 0 1px 2px rgba(26, 43, 72, 0.03) !important;
		transition: all 0.2s ease !important;
		outline: none !important;
	}

	.filtr__item:not(.reset-all-desktop) .filtr__item__button > button:hover,
	.filtr__item.active:not(.reset-all-desktop) .filtr__item__button > button {
		border-color: #28a782 !important;
		box-shadow: 0 4px 10px rgba(40, 167, 130, 0.08) !important;
	}

	.filtr.filtr-two.active {
		margin-top: 14px !important;
		padding-top: 14px !important;
		border-top: 1px dashed #cbd5e1 !important;
	}
}


/* Кнопка "Сбросить": убираем внешнюю белую рамку и делаем аккуратную коралловую кнопку 10px */
.reset-all-desktop,
.reset-all-desktop .filtr__item__button {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.reset-all-desktop .filtr__item__button button {
	border-radius: 10px !important;
	min-height: 40px !important;
	padding: 0 14px !important;
	background: #fff1f2 !important;
	border: 1px solid #fecdd3 !important;
	color: #e11d48 !important;
	box-shadow: none !important;
}

.reset-all-desktop .filtr__item__button button > span {
	color: #e11d48 !important;
	font-weight: 600 !important;
	font-size: 13px !important;
}

.reset-all-desktop .filtr__item__button button:hover {
	background: #ffe4e6 !important;
	border-color: #fda4af !important;
	transform: translateY(-1px) !important;
}

/* 5. Более тонкий и элегантный шрифт для H1 (убираем тяжелый ExtraBold 800) */
.page-header .page-title,
.header-title .page-title,
h1.page-title {
	font-weight: 700 !important;
	letter-spacing: -0.01em !important;
}

/* 6. Современные аккуратные хлебные крошки без лишней линии-разделителя */
.breadcrumbs,
.kama_breadcrumbs,
#breadcrumbs {
	border-top: none !important;
	border-bottom: none !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 6px !important;
	margin-bottom: 12px !important;
	font-size: 12.5px !important;
	color: #94a3b8 !important;
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 6px !important;
}

.breadcrumbs a,
.kama_breadcrumbs a,
#breadcrumbs a {
	color: #64748b !important;
	font-weight: 500 !important;
	text-decoration: none !important;
	transition: color 0.2s ease !important;
}

.breadcrumbs a:hover,
.kama_breadcrumbs a:hover,
#breadcrumbs a:hover {
	color: #28a782 !important;
}

/* 7. Чистая одноэтажная шапка */
.site-header__topbar {
	display: none !important;
}

/* 9. Убираем пустоты между шапкой, хлебными крошками, фильтрами, быстрыми плашками и карточками */

/* Подтягиваем H1-капсулу и хлебные крошки ближе друг к другу */
.page-header,
.header-title.page-header {
	padding-top: 8px !important;
	padding-bottom: 4px !important;
	margin-bottom: 0 !important;
}

.breadcrumbs,
.kama_breadcrumbs,
#breadcrumbs {
	margin-top: 4px !important;
	margin-bottom: 8px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Убираем лишние отступы вокруг панели основных фильтров на ПК */
@media (min-width: 992px) {
	.filtr-wrapper {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
	}

	.filtr-wrapper__body {
		margin-top: 4px !important;
		margin-bottom: 12px !important;
	}
}

/* Убираем огромные дыры сверху и снизу у блока мятных плашек (Быстрые фильтры) */
.single-article__content__item.item-category,
.item-category {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
	margin-top: 0 !important;
	margin-bottom: 10px !important;
}

.search-queries,
.search-queries-item {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

/* Подтягиваем строку "Найдено глэмпингов: 623" и сетку карточек */
main#primary.site-main,
.site-main-article {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

.site-main-article__top {
	margin-top: 0 !important;
	margin-bottom: 16px !important;
	padding-top: 4px !important;
	padding-bottom: 12px !important;
}

/* На мобильном: плотный ритм + обе кнопки ("С промокодом" и "Посмотреть на карте") строго в 1 ряд + убираем дублирующий боковой ярлык фильтра */
@media (max-width: 767px) {
	.header-title.page-header {
		margin-top: 4px !important;
		margin-bottom: 6px !important;
	}

	.single-article__content__item.item-category,
	.item-category {
		padding-top: 2px !important;
		padding-bottom: 2px !important;
		margin-bottom: 8px !important;
	}

	.site-main-article__top {
		margin-bottom: 12px !important;
		padding-bottom: 10px !important;
	}

	.site-main-article__top__count {
		gap: 8px !important;
	}

	.site-main-article__top__count > span:first-child {
		margin-bottom: 2px !important;
	}

	/* Чтобы "С промокодом" и "Посмотреть на карте" гарантированно помещались в ОДНУ строку на узких экранах */
	.promo-filter-toggle,
	.site-main-article__top__button {
		flex: 0 1 auto !important;
		max-width: none !important;
		height: 36px !important;
		min-height: 36px !important;
		font-size: 12px !important;
	}

	.promo-filter-toggle {
		padding: 0 12px !important;
		gap: 7px !important;
	}

	.site-main-article__top__button {
		padding: 0 12px 0 34px !important;
	}

	.site-main-article__top__button::before,
	.site-main-article__top__button svg {
		left: 17px !important;
	}

	/* Изумрудная плавающая кнопка фильтра (воронка) справа на мобильных */
	.fiitr-button-mobile,
	.fiitr-button-mobile.active,
	.fiitr-button-mobile.fixed {
		display: flex !important;
		background: #28a782 !important;
		border: 1px solid #239674 !important;
		border-right: none !important;
		border-radius: 14px 0 0 14px !important;
		padding: 11px 13px !important;
		box-shadow: -4px 6px 18px rgba(40, 167, 130, 0.28) !important;
	}

	.fiitr-button-mobile #fiitr-mobile svg,
	.fiitr-button-mobile #fiitr-mobile svg *,
	.fiitr-button-mobile svg,
	.fiitr-button-mobile svg path {
		fill: #ffffff !important;
		color: #ffffff !important;
		stroke: none !important;
		opacity: 1 !important;
	}

}

/* 10. Фирменная шапка: Логотип + Акцентная кнопка "Каталог глэмпингов" без подскакивания + Ширина 100% на планшетах */

.site-header__header-branding {
 display: inline-flex !important;
 align-items: center !important;
 gap: 14px !important;
 margin: 0 !important;
 padding: 0 !important;
 flex-shrink: 0 !important;
}
.site-header__header-branding::before,
.site-header__header-branding::after,
.site-header__header-branding a::after {
 content: none !important;
 display: none !important;
}
.site-branding__logo {
 display: inline-flex !important;
 align-items: center !important;
 gap: 10px !important;
 text-decoration: none !important;
 margin: 0 !important;
 padding: 0 !important;
 line-height: 1 !important;
}
.site-branding__logo img {
 width: 34px !important;
 height: 31px !important;
 max-width: 34px !important;
 max-height: 31px !important;
 object-fit: cover !important;
 object-position: center 4% !important;
 margin: 0 !important;
 padding: 0 !important;
 display: block !important;
 flex-shrink: 0 !important;
 transform: translateY(-1px) !important;
}
.site-branding__name {
 display: inline-flex !important;
 align-items: center !important;
 font-size: 18px !important;
 font-weight: 800 !important;
 letter-spacing: 0.04em !important;
 color: #1a2b48 !important;
 line-height: 1 !important;
 white-space: nowrap !important;
 margin: 0 !important;
 padding: 0 !important;
}
.site-branding__tagline {
 display: flex !important;
 align-items: center !important;
 height: 30px !important;
 padding-left: 14px !important;
 border-left: 1.5px solid #cbd5e1 !important;
 font-size: 12px !important;
 font-weight: 500 !important;
 line-height: 1.3 !important;
 color: #64748b !important;
 letter-spacing: -0.01em !important;
 white-space: nowrap !important;
 margin: 0 !important;
}


/* На всех экранах до 991px: растягиваем контейнер шапки на 100%, чтобы логотип и бургер не съезжали к центру на планшетах */
@media (max-width: 991px) {
	.site-header {
		border-bottom: 1px solid #eef2f6 !important;
	}

	.site-header > .container,
	.site-header .container,
	.site-header__header {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.site-header__header {
		min-height: 58px !important;
		padding: 8px 20px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
	}

.site-branding__name,
.site-branding__tagline {
 display: none !important;
}


	.site-header__header-branding img {
		width: 34px !important;
		height: 31px !important;
		max-width: 34px !important;
		max-height: 31px !important;
	}

	/* Изумрудная плавающая кнопка фильтра справа на всех экранах до 991px */
	.fiitr-button-mobile,
	.fiitr-button-mobile.active,
	.fiitr-button-mobile.fixed {
		display: flex !important;
		background: #28a782 !important;
		border: 1px solid #239674 !important;
		border-right: none !important;
		border-radius: 14px 0 0 14px !important;
		padding: 11px 13px !important;
		box-shadow: -4px 6px 18px rgba(40, 167, 130, 0.28) !important;
	}

	.fiitr-button-mobile #fiitr-mobile svg,
	.fiitr-button-mobile #fiitr-mobile svg path {
		filter: none !important;
		-webkit-filter: none !important;
		stroke: #ffffff !important;
		fill: #ffffff !important;
		color: #ffffff !important;
		opacity: 1 !important;
	}
}

/* На ПК (992px+): Просторная шапка + "Избранное | Регионы | Добавить глэмпинг" слева и темно-синяя "Каталог глэмпингов" справа */
@media (min-width: 992px) {
	.site-header {
		border-bottom: 1px solid #eef2f6 !important;
	}

	/* Добавляем больше воздуха сверху и снизу шапки */
	.site-header__header {
		min-height: 100px !important;
		padding-top: 14px !important;
		padding-bottom: 14px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: space-between !important;
		gap: 16px !important;
	}

	.site-header__header-branding {
		display: inline-flex !important;
		align-items: center !important;
		gap: 14px !important;
	}

	.site-header__header-navigation {
		display: flex !important;
		align-items: center !important;
		justify-content: flex-end !important;
		margin: 0 !important;
		flex-shrink: 0 !important;
	}

	/* Общая док-капсула навигации с увеличенным внутренним воздухом (padding: 6px) */
	.site-header__header-navigation ul#primary-menu {
		background: #ffffff !important;
		border: 1px solid #dce4ee !important;
		border-radius: 14px !important;
		padding: 6px !important;
		gap: 2px !important;
		display: inline-flex !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		box-shadow: 0 4px 16px rgba(26, 43, 72, 0.04) !important;
	}

	.site-header__header-navigation ul#primary-menu li {
		display: flex !important;
		align-items: center !important;
		position: relative !important;
		flex-shrink: 0 !important;
	}

	/* Меняем местами: 1) Избранное, 2) Регионы, 3) Добавить глэмпинг, 4) Каталог глэмпингов (справа) */
	.site-header__header-navigation ul#primary-menu li:last-child {
		order: 1 !important;
	}

	.site-header__header-navigation ul#primary-menu li:nth-child(2) {
		order: 2 !important;
	}

	.site-header__header-navigation ul#primary-menu li:nth-child(3) {
		order: 3 !important;
	}

	.site-header__header-navigation ul#primary-menu li:first-child {
		order: 4 !important;
		margin-left: 6px !important;
		margin-right: 0 !important;
	}

	/* Тонкий вертикальный разделитель между светлыми пунктами (после Избранного и после Регионов) */
	.site-header__header-navigation ul#primary-menu li:last-child::after,
	.site-header__header-navigation ul#primary-menu li:nth-child(2)::after {
		content: "";
		width: 1px;
		height: 18px;
		background: #e2e8f0;
		margin: 0 2px;
		flex-shrink: 0;
	}

	.site-header__header-navigation ul#primary-menu li a {
		display: inline-flex !important;
		align-items: center !important;
		gap: 8px !important;
		height: 36px !important;
		padding: 0 13px !important;
		font-size: 13px !important;
		font-weight: 600 !important;
		color: #1a2b48 !important;
		background: transparent !important;
		border: none !important;
		border-radius: 10px !important;
		white-space: nowrap !important;
		transform: none !important;
		transition: background-color 0.2s ease, color 0.2s ease !important;
	}

		/* Чистые контурные изумрудные иконки без фонового квадратика */
	.site-header__header-navigation ul#primary-menu li a::before,
	.site-header__header-navigation ul#primary-menu li a:hover::before {
		content: "" !important;
		display: block !important;
		width: 18px !important;
		height: 18px !important;
		flex: 0 0 18px !important;
		border-radius: 0 !important;
		background-color: transparent !important;
		background-size: 17px 17px !important;
		background-repeat: no-repeat !important;
		background-position: center !important;
		opacity: 1 !important;
		transform: none !important;
	}


	/* КНОПКА "Каталог глэмпингов" (теперь стоит крайней справа) — акцентная темно-синяя */
	.site-header__header-navigation ul#primary-menu li:first-child a {
		background: #1a2b48 !important;
		color: #ffffff !important;
		padding: 0 16px 0 12px !important;
		border-radius: 10px !important;
		box-shadow: none !important;
		transform: none !important;
	}

	.site-header__header-navigation ul#primary-menu li:first-child a::before,
	.site-header__header-navigation ul#primary-menu li:first-child a:hover::before {
		background-color: transparent !important;
		width: 18px !important;
		height: 18px !important;
		flex: 0 0 18px !important;
		background-size: 16px 16px !important;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399e2c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 21 14 3'/%3E%3Cpath d='M20.5 21 10 3'/%3E%3Cpath d='M15.5 21 12 15l-3.5 6'/%3E%3Cpath d='M2 21h20'/%3E%3C/svg%3E") !important;
	}

	.site-header__header-navigation ul#primary-menu li:first-child a:hover,
	.site-header__header-navigation ul#primary-menu li:first-child a:active,
	.site-header__header-navigation ul#primary-menu li:first-child a:focus {
		background: #243b61 !important;
		color: #99e2c8 !important;
		transform: none !important;
		box-shadow: none !important;
	}

	/* Светлые пункты ("Избранное", "Регионы", "Добавить глэмпинг") */
	.site-header__header-navigation ul#primary-menu li a[href*="location"]::before,
	.site-header__header-navigation ul#primary-menu li a[href*="region"]::before {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a782' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") !important;
	}

	.site-header__header-navigation ul#primary-menu li a[href*="add"]::before,
	.site-header__header-navigation ul#primary-menu li a[href*="dobavit"]::before,
	.site-header__header-navigation ul#primary-menu li:nth-child(3) a::before {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a782' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8'/%3E%3Cpath d='M12 8v8'/%3E%3C/svg%3E") !important;
	}

	.site-header__header-navigation ul#primary-menu li a[href*="favorite"]::before,
	.site-header__header-navigation ul#primary-menu li a[href*="izbrannoe"]::before,
	.site-header__header-navigation ul#primary-menu li:last-child a::before {
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a782' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z'/%3E%3C/svg%3E") !important;
	}

	.site-header__header-navigation ul#primary-menu li:not(:first-child) a:hover,
	.site-header__header-navigation ul#primary-menu li:not(:first-child) a:active {
		background: #f2fbf7 !important;
		color: #28a782 !important;
		transform: none !important;
		box-shadow: none !important;
	}
}

/* На более узких экранах ПК/ноутбуков (992px - 1180px) прячем текстовый дескриптор */
@media (min-width: 992px) and (max-width: 1180px) {
.site-branding__tagline {
 display: none !important;
}
}

/* 11. Мгновенно скрываем дублирующий верхний баннер H1 на спец-хабах (/top/, /novyj-god/, /na-karte/) */
body:has(.tl-top-hub) .header-title.page-header,
body:has(.tl-top-hub) .page-header,
body:has(.tl-map-hub) .header-title.page-header,
body:has(.tl-map-hub) .page-header {
	display: none !important;
}

/* 12. Стильная кнопка "Смотреть полный рейтинг..." под таблицей ТОП-10 (без тусклого серого нажатия) */
.glamping-leaderboard a[href*="/top/"],
.glamping-leaderboard a[href*="/top/"]:visited {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 gap: 8px !important;
 background: #f2fbf7 !important;
 color: #1a2b48 !important;
 -webkit-text-fill-color: #1a2b48 !important;
 border: 1.5px solid #99e2c8 !important;
 border-radius: 12px !important;
 padding: 13px 22px !important;
 font-size: 14px !important;
 font-weight: 600 !important;
 line-height: 1.35 !important;
 text-decoration: none !important;
 opacity: 1 !important;
 box-shadow: 0 3px 10px rgba(40, 167, 130, 0.08) !important;
 transition: none !important;
 -webkit-tap-highlight-color: transparent !important;
}

.glamping-leaderboard a[href*="/top/"]:hover {
 background: #28a782 !important;
 border-color: #28a782 !important;
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
 opacity: 1 !important;
}

.glamping-leaderboard a[href*="/top/"]:active,
.glamping-leaderboard a[href*="/top/"]:focus {
 background: #e0f5ec !important;
 border-color: #28a782 !important;
 color: #1a2b48 !important;
 -webkit-text-fill-color: #1a2b48 !important;
 opacity: 1 !important;
 transform: scale(0.98) !important;
 outline: none !important;
}

/* === ИСПРАВЛЕНИЕ ПЛАШЕК И КНОПОК: ЯРКОЕ НАЖАТИЕ БЕЗ СЕРОГО БАГА В SAFARI === */

/* 1. Все быстрые фильтры, включая «Топ лучших» и «На Новый год» (.tl-hub-pill) */
.search-queries-item a,
.search-queries-item a:visited,
.item-category__item.search-queries-item a,
.item-category__item.search-queries-item a:visited,
.search-queries-item a.tl-hub-pill,
.search-queries-item a.tl-hub-pill:visited,
.item-category__item.search-queries-item a.tl-hub-pill,
.item-category__item.search-queries-item a.tl-hub-pill:visited {
 background: #f2fbf7 !important;
 color: #1a2b48 !important;
 -webkit-text-fill-color: #1a2b48 !important;
 border: 1px solid #99e2c8 !important;
 border-radius: 10px !important;
 padding: 9px 16px !important;
 font-size: 13px !important;
 font-weight: 600 !important;
 box-shadow: 0 2px 6px rgba(40, 167, 130, 0.06) !important;
 transition: transform 0.12s ease !important;
 -webkit-tap-highlight-color: transparent !important;
 outline: none !important;
}

/* 2. Кнопка полного рейтинга под таблицей (.glamping-leaderboard a[href*="/top/"]) */
.glamping-leaderboard a[href*="/top/"],
.glamping-leaderboard a[href*="/top/"]:visited {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 gap: 8px !important;
 background: #f2fbf7 !important;
 color: #1a2b48 !important;
 -webkit-text-fill-color: #1a2b48 !important;
 border: 1.5px solid #99e2c8 !important;
 border-radius: 12px !important;
 padding: 13px 22px !important;
 font-size: 14px !important;
 font-weight: 600 !important;
 line-height: 1.35 !important;
 text-decoration: none !important;
 opacity: 1 !important;
 box-shadow: 0 3px 10px rgba(40, 167, 130, 0.08) !important;
 transition: transform 0.12s ease !important;
 -webkit-tap-highlight-color: transparent !important;
 outline: none !important;
}

/* 3. При наведении и при нажатии — МГНОВЕННЫЙ переход в зеленый с белым текстом */
.search-queries-item a:hover,
.search-queries-item a:active,
.search-queries-item a:focus,
.item-category__item.search-queries-item a:hover,
.item-category__item.search-queries-item a:active,
.item-category__item.search-queries-item a:focus,
.search-queries-item a.tl-hub-pill:hover,
.search-queries-item a.tl-hub-pill:active,
.search-queries-item a.tl-hub-pill:focus,
.item-category__item.search-queries-item a.tl-hub-pill:hover,
.item-category__item.search-queries-item a.tl-hub-pill:active,
.item-category__item.search-queries-item a.tl-hub-pill:focus,
.glamping-leaderboard a[href*="/top/"]:hover,
.glamping-leaderboard a[href*="/top/"]:active,
.glamping-leaderboard a[href*="/top/"]:focus,
.lb-btn:hover,
.lb-btn:active,
.lb-btn:focus {
 background: #28a782 !important;
 border-color: #28a782 !important;
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
 opacity: 1 !important;
 transform: scale(0.97) !important;
 box-shadow: 0 4px 12px rgba(40, 167, 130, 0.22) !important;
 transition: transform 0.12s ease !important;
 outline: none !important;
}

.search-queries-item a:hover svg,
.search-queries-item a:active svg,
.search-queries-item a:focus svg,
.search-queries-item a.tl-hub-pill:hover svg,
.search-queries-item a.tl-hub-pill:active svg,
.search-queries-item a.tl-hub-pill:focus svg,
.search-queries-item a:hover svg path,
.search-queries-item a:active svg path,
.search-queries-item a:focus svg path,
.search-queries-item a.tl-hub-pill:hover svg path,
.search-queries-item a.tl-hub-pill:active svg path,
.search-queries-item a.tl-hub-pill:focus svg path {
 color: #ffffff !important;
 fill: #ffffff !important;
}

.search-queries-item a:hover svg line,
.search-queries-item a:active svg line,
.search-queries-item a:focus svg line,
.search-queries-item a.tl-hub-pill:hover svg line,
.search-queries-item a.tl-hub-pill:active svg line,
.search-queries-item a.tl-hub-pill:focus svg line {
 stroke: #ffffff !important;
}

/* 4. Кнопка «Обзор ↓» (.tl-matrix-btn) на страницах ТОП и Новый год */
@media (max-width: 767px) {
 .tl-matrix-btn,
 .tl-matrix-btn:visited {
  background: #1a2b48 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transition: transform 0.12s ease !important;
 }
 .tl-matrix-btn:active,
 .tl-matrix-btn:focus {
  background: #28a782 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: scale(0.97) !important;
 }
}

/* === ВЫРАВНИВАНИЕ: ОПУСКАЕМ КНОПКИ ЧУТЬ НИЖЕ, А КАРТОЧКУ ПОДТЯГИВАЕМ ВЫШЕ === */

.site-main-article__top__button,
.site-main-article__top__button:hover,
.site-main-article__top__button:focus,
.site-main-article__top__button:active {
 transform: none !important;
 vertical-align: middle !important;
}

@media (max-width: 767px) {
 /* Шапка H1 -> Хлебные крошки */
 .header-title.page-header {
  margin-top: 4px !important;
  margin-bottom: 8px !important;
 }

 /* Хлебные крошки -> Быстрые фильтры (опускаем быстрые фильтры чуть ниже) */
 .breadcrumbs,
 .kama_breadcrumbs,
 #breadcrumbs {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
 }

 /* Быстрые фильтры -> «Найдено глэмпингов» */
 .single-article__content__item.item-category,
 .item-category {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
 }

 .search-queries,
 .search-queries-item,
 .item-category__item.search-queries-item {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 2px !important;
  padding-bottom: 2px !important;
 }

 .site-main-article__top::before {
  display: none !important;
 }

 /* Опускаем кнопки НИЖЕ от «Найдено глэмпингов» (row-gap: 16px) */
 .site-main-article__top__count {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  row-gap: 16px !important;
  column-gap: 8px !important;
  align-items: center !important;
 }

 .site-main-article__top__count > span:first-child,
 .site-main-article__top__count > div:first-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  line-height: 1.1 !important;
 }

 /* Подтягиваем первую карточку глэмпинга ВЫШЕ к кнопкам (margin-bottom: 12px) */
 .site-main-article__top {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
 }

 .map-wrap:not(.active) {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
 }

 #js-glampings-items {
  margin-top: 0 !important;
  padding-top: 0 !important;
 }

 /* Кнопки «С промокодом» и «Посмотреть на карте» на одном уровне */
 .promo-filter-toggle,
 .site-main-article__top__button {
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  transform: none !important;
 }
}

/* ==========================================================================
   PRO-ДИЗАЙН СТРАНИЦЫ РЕЙТИНГА (/top/) — КОНТРАСТНЫЙ PREMIUM UI
   ========================================================================== */

/* 3. Табы фильтрации и селект сортировки — убираем «белое на белом» */
.tl-top-controls {
 background: #f8fafc !important;
 border: 1px solid #e2e8f0 !important;
 border-radius: 18px !important;
 padding: 12px 16px !important;
 margin-bottom: 24px !important;
}

.tl-top-tab {
 background: #ffffff !important;
 border: 1px solid #cbd5e1 !important;
 color: #1e293b !important;
 box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.tl-top-tab:hover {
 border-color: #28a782 !important;
 color: #28a782 !important;
 background: #f2fbf7 !important;
}

.tl-top-tab.active {
 background: #1a2b48 !important;
 border-color: #1a2b48 !important;
 color: #ffffff !important;
 box-shadow: 0 4px 12px rgba(26, 43, 72, 0.2) !important;
}

.tl-top-tab.active .tl-top-tab__cnt {
 background: #28a782 !important;
 color: #ffffff !important;
}

/* 4. Карточка Сравнительной таблицы — четкая шапка и границы */
.tl-matrix-card {
 border: 1px solid #cbd5e1 !important;
 box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07) !important;
}

.tl-matrix-header {
 background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
 border-bottom: 1px solid #cbd5e1 !important;
 padding: 20px 26px !important;
}

.tl-matrix-table th {
 background: #f1f5f9 !important;
 color: #334155 !important;
 border-bottom: 2px solid #cbd5e1 !important;
}

.tl-matrix-table td {
 border-bottom: 1px solid #e2e8f0 !important;
}

/* === ЦЕНТРИРОВАНИЕ ХЛЕБНЫХ КРОШЕК РОВНО МЕЖДУ ХЕДЕРОМ И БАННЕРОМ === */

/* На страницах хабов (/top/, /novyj-god/, /na-karte/), где скрыт стандартный .page-header */
body:has(.tl-top-hub) .breadcrumbs,
body:has(.tl-top-hub) .kama_breadcrumbs,
body:has(.tl-top-hub) #breadcrumbs,
body:has(.tl-ny-hub) .breadcrumbs,
body:has(.tl-ny-hub) .kama_breadcrumbs,
body:has(.tl-ny-hub) #breadcrumbs,
body:has(.tl-map-hub) .breadcrumbs,
body:has(.tl-map-hub) .kama_breadcrumbs,
body:has(.tl-map-hub) #breadcrumbs {
 margin-top: 16px !important;
 margin-bottom: 16px !important;
 padding-top: 0 !important;
 padding-bottom: 0 !important;
 line-height: 1.2 !important;
}

/* Обнуляем собственный margin-top у контейнеров хабов, чтобы он не суммировался с крошками */
body .tl-top-hub,
body .tl-ny-hub,
body .tl-map-hub {
 margin-top: 0 !important;
}

@media (max-width: 767px) {
 body:has(.tl-top-hub) .breadcrumbs,
 body:has(.tl-top-hub) .kama_breadcrumbs,
 body:has(.tl-top-hub) #breadcrumbs,
 body:has(.tl-ny-hub) .breadcrumbs,
 body:has(.tl-ny-hub) .kama_breadcrumbs,
 body:has(.tl-ny-hub) #breadcrumbs,
 body:has(.tl-map-hub) .breadcrumbs,
 body:has(.tl-map-hub) .kama_breadcrumbs,
 body:has(.tl-map-hub) #breadcrumbs {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
 }
}

/* === ВАРИАНТ 4: ХВОЙНЫЙ ЛЕС С БЕЛОСНЕЖНЫМИ КАРТОЧКАМИ СПРАВА === */
body .tl-top-hub .tl-top-hero {
 background:
  radial-gradient(circle at 75% 15%, rgba(110, 231, 183, 0.22) 0%, transparent 45%),
  linear-gradient(135deg, #0b2924 0%, #133e36 55%, #1a2b48 100%) !important;
 border: none !important;
 border-radius: 26px !important;
 padding: 34px 36px !important;
 box-shadow: 0 20px 40px rgba(11, 41, 36, 0.22) !important;
}

body .tl-top-hub .tl-badge-accent {
 background: #28a782 !important;
 color: #ffffff !important;
}
body .tl-top-hub .tl-badge-date {
 color: #a7f3d0 !important;
}

body .tl-top-hub .tl-top-hero h1.tl-top-hero__title,
body .tl-top-hub .tl-top-hero .tl-top-hero__title {
 color: #ffffff !important;
 -webkit-text-fill-color: #ffffff !important;
}

body .tl-top-hub .tl-top-hero .tl-top-hero__lead {
 color: #d1fae5 !important;
}
body .tl-top-hub .tl-top-hero .tl-top-hero__lead strong {
 color: #ffffff !important;
}

/* Карточки справа — белоснежные на темно-хвойном фоне (максимальный контраст!) */
body .tl-top-hub .tl-top-stat-box {
 background: #ffffff !important;
 border: none !important;
 border-radius: 16px !important;
 padding: 14px 20px !important;
 box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18) !important;
}
body .tl-top-hub .tl-top-stat-box__val {
 color: #1a2b48 !important;
 -webkit-text-fill-color: #1a2b48 !important;
}
body .tl-top-hub .tl-top-stat-box__lbl {
 color: #64748b !important;
}

/* Кнопки */
body .tl-top-hub .tl-top-pill-btn:not(.tl-top-pill-btn--primary):not(.tl-top-pill-btn--ghost) {
 background: #ffffff !important;
 color: #1a2b48 !important;
 -webkit-text-fill-color: #1a2b48 !important;
 border: none !important;
}
body .tl-top-hub .tl-top-pill-btn--ghost {
 color: #a7f3d0 !important;
 -webkit-text-fill-color: #a7f3d0 !important;
}

/* === ФИКС ЗУМА НА МОБИЛЬНЫХ И СКРЫТИЕ ПОЛЕЙ ПЛЮСЫ/МИНУСЫ В ФОРМЕ ОТЗЫВА === */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="password"],
  textarea,
  select,
  .modal input,
  .modal textarea,
  [data-modal="add-review"] input,
  [data-modal="add-review"] textarea,
  #add-review input,
  #add-review textarea,
  .form-reviews input,
  .form-reviews textarea {
    font-size: 16px !important;
  }

  .modal[data-modal="add-review"],
  #add-review,
  .modal {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
}

/* Скрываем поля "Что понравилось" (pros) и "Что не понравилось" (cons) в форме отзыва */
[data-modal="add-review"] .form-group:has([name="pros"]),
[data-modal="add-review"] .form-group:has([name="cons"]),
.modal .form-group:has([name="pros"]),
.modal .form-group:has([name="cons"]),
form:has([name="pros"]) label:has(+ [name="pros"]),
form:has([name="cons"]) label:has(+ [name="cons"]),
input[name="pros"],
textarea[name="pros"],
input[name="cons"],
textarea[name="cons"],
#pros,
#cons {
  display: none !important;
}


/* Исправление мобильного плавающего язычка фильтров */
@media (max-width: 991px) {
 .fiitr-button-mobile,
 .fiitr-button-mobile.active,
 .fiitr-button-mobile.fixed {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 12px 11px !important;
  background: #28a782 !important;
  border: 1px solid #239674 !important;
  border-right: none !important;
  border-radius: 16px 0 0 16px !important;
  box-shadow: -4px 6px 18px rgba(40, 167, 130, 0.28) !important;
  width: auto !important;
 }

 #fiitr-mobile {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
 }

 .global-filter-badge {
  top: -7px !important;
  right: -5px !important;
  min-width: 18px !important;
  height: 18px !important;
  font-size: 10px !important;
 }

 /* Кнопка быстрого сброса фильтра под воронкой */
 .fiitr-button-mobile__clear,
 #fiitr-mobile-clear {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
 }

 .fiitr-button-mobile__clear.active,
 #fiitr-mobile-clear.active {
  display: flex !important;
 }

 /* Возвращаем видимость крестику (убираем заливку fill и включаем stroke) */
 .fiitr-button-mobile #fiitr-mobile-clear svg,
 .fiitr-button-mobile .fiitr-button-mobile__clear svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: #ffffff !important;
 }

 .fiitr-button-mobile #fiitr-mobile-clear svg path,
 .fiitr-button-mobile .fiitr-button-mobile__clear svg path {
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.5px !important;
 }
}

/* Полноэкранный мобильный фильтр + стильная кнопка закрытия */
@media (max-width: 991px) {
 body .filtr-wrapper > .container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  background: #ffffff !important;
 }

 body .filtr-wrapper__title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 18px 18px 14px 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eef2f6 !important;
 }

 body .filtr-wrapper__title span {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #1a2b48 !important;
  letter-spacing: -0.02em !important;
  line-height: 1 !important;
 }

 body .filtr-wrapper__clouse {
  position: relative !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  background: #f1f5f9 !important;
  border: 1px solid rgba(26, 43, 72, 0.06) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
  transform: translate(20px, -20px) !important; /* 4px — сдвиг вправо, -6px — сдвиг вверх */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
 }

 body .filtr-wrapper__clouse:hover,
 body .filtr-wrapper__clouse:active {
  background: #e2e8f0 !important;
  transform: translateY(-4px) scale(0.93) !important;
 }

 /* Прячем старую тяжелую SVG-иконку и рисуем четкий тонкий крестик */
 body .filtr-wrapper__clouse svg {
  display: none !important;
 }

 body .filtr-wrapper__clouse::before,
 body .filtr-wrapper__clouse::after {
  content: '' !important;
  position: absolute !important;
  width: 16px !important;
  height: 2px !important;
  background-color: #1a2b48 !important;
  border-radius: 2px !important;
  transition: background-color 0.2s ease !important;
 }

 body .filtr-wrapper__clouse::before {
  transform: rotate(45deg) !important;
 }

 body .filtr-wrapper__clouse::after {
  transform: rotate(-45deg) !important;
 }
}

/* 1. Состояние по умолчанию (карта закрыта) — СИНИЙ цвет без зеленого распыления */
.site-main-article__top__button,
.site-main-article__top__button:hover,
.site-main-article__top__button:focus,
.site-main-article__top__button:active {
    background-color: #1a2b48 !important;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 10px 10px, 10px 10px !important;
    color: #ffffff !important;
    border-color: #1a2b48 !important;
    transform: none !important;
    outline: none !important;
}

/* 2. Состояние при открытой карте (.is-map-open) — ЗЕЛЕНЫЙ цвет ("Закрыть карту") без распыления */
.site-main-article__top__button.is-map-open,
.site-main-article__top__button.is-map-open:hover,
.site-main-article__top__button.is-map-open:focus,
.site-main-article__top__button.is-map-open:active {
    background-color: #28a782 !important;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px) !important;
    background-size: 10px 10px, 10px 10px !important;
    border-color: #28a782 !important;
    color: #ffffff !important;
}

.site-main-article__top__button.is-map-open::before {
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.site-main-article__top__button.is-map-open svg,
.site-main-article__top__button.is-map-open svg path {
    fill: #ffffff !important;
    color: #ffffff !important;
}

/* 3. Пин в круге всегда строго на месте (без подъема и увеличения) */
.site-main-article__top__button svg,
.site-main-article__top__button:hover svg,
.site-main-article__top__button:focus svg,
.site-main-article__top__button:active svg,
.site-main-article__top__button.is-map-open svg,
.site-main-article__top__button.is-map-open:hover svg {
    transform: translate(-50%, -50%) !important;
    transition: none !important;
}