﻿/* CSS переменные из Tourist site */
:root {
    /* Цвета */
    --color-primary: #84acec;
    --color-secondary: #f8f9fa;
    --color-accent: #ff6b35;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-nav-hover: #5172a7;
    
    /* Типографика */
    --font-family-primary: 'Arial', sans-serif;
    --font-family-secondary: 'Georgia', serif;
    --font-family-montserrat: 'Montserrat', sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 2.5rem;
    --font-size-h2: 2rem;
    --font-size-h3: 1.5rem;
    --line-height-base: 1.6;
    
    /* Размеры */
    --container-max-width: 1920px;
    --container-padding: 0 120px;
    --header-height: 80px;
    --border-radius: 8px;
    --nav-icon-size: 30px;
    
    /* Тени */
    --shadow-small: 0 2px 8px var(--color-shadow);
    --shadow-medium: 0 4px 16px var(--color-shadow);
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

/* === Боковое меню туриста === */
.tourist-sidebar {
    width: 280px;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: var(--header-height);
    z-index: 100;
    transition: all 0.3s ease;
}

/* Заголовок сайдбара */
.sidebar-header {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-nav-hover) 100%);
    color: white;
    margin: -1px -1px 0 -1px;
}

.sidebar-title {
    font-family: var(--font-family-montserrat);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Навигационное меню */
.sidebar-nav {
    flex: 1;
    padding: 0.5rem 0;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin-bottom: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    color: #495057;
    text-decoration: none;
    font-family: var(--font-family-montserrat);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link:hover {
    background: linear-gradient(90deg, rgba(132, 172, 236, 0.1) 0%, rgba(132, 172, 236, 0.05) 100%);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    transform: translateX(2px);
}

.sidebar-link.active {
    background: linear-gradient(90deg, rgba(132, 172, 236, 0.15) 0%, rgba(132, 172, 236, 0.08) 100%);
    color: var(--color-primary);
    border-left-color: var(--color-primary);
    font-weight: 600;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    border-radius: 2px 0 0 2px;
}

.sidebar-link-icon {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.sidebar-link:hover .sidebar-link-icon,
.sidebar-link.active .sidebar-link-icon {
    opacity: 1;
    transform: scale(1.1);
}

.sidebar-link-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Футер сайдбара */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-nav-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-family: var(--font-family-montserrat);
    font-weight: 600;
    font-size: 0.9rem;
    color: #212529;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Анимации */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sidebar-item {
    animation: slideIn 0.3s ease forwards;
}

.sidebar-item:nth-child(1) { animation-delay: 0.1s; }
.sidebar-item:nth-child(2) { animation-delay: 0.2s; }
.sidebar-item:nth-child(3) { animation-delay: 0.3s; }
.sidebar-item:nth-child(4) { animation-delay: 0.4s; }
.sidebar-item:nth-child(5) { animation-delay: 0.5s; }

/* Адаптивность для сайдбара */
@media (max-width: 1200px) {
    .tourist-sidebar {
        width: 260px;
    }
    
    .sidebar-header {
        padding: 1.5rem 1.25rem 0.75rem;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .sidebar-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 992px) {
    .tourist-sidebar {
        width: 240px;
    }
    
    .sidebar-header {
        padding: 1.25rem 1rem 0.5rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
    }
    
    .sidebar-link {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .sidebar-link-icon {
        font-size: 1rem;
        width: 18px;
    }
}

@media (max-width: 768px) {
    .tourist-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        min-height: auto;
        box-shadow: none;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .sidebar-header {
        padding: 1rem;
        text-align: center;
    }
    
    .sidebar-nav {
        padding: 0.5rem 0;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .sidebar-item {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .sidebar-link {
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        min-width: 120px;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .sidebar-link:hover {
        transform: translateY(-2px);
        border-left: none;
        border-bottom-color: var(--color-primary);
    }
    
    .sidebar-link.active {
        border-left: none;
        border-bottom-color: var(--color-primary);
    }
    
    .sidebar-link.active::before {
        display: none;
    }
    
    .sidebar-link-icon {
        font-size: 1.2rem;
        width: auto;
    }
    
    .sidebar-link-text {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .sidebar-footer {
        display: none;
    }
}

@media (max-width: 480px) {
    .sidebar-menu {
        padding: 0 0.5rem;
    }
    
    .sidebar-link {
        padding: 0.5rem 0.75rem;
        min-width: 100px;
    }
    
    .sidebar-link-text {
        font-size: 0.7rem;
    }
    
    .sidebar-link-icon {
        font-size: 1rem;
    }
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

/* Основной контент */
.main {
    margin-top: var(--header-height);
    padding: 40px 0;
    background-color: var(--color-white);
}

.main__container {
    display: flex;
    gap: 40px;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 120px;
    align-items: flex-start;
}

/* Левая колонка */
.main__left-column {
    flex: 1;
    min-width: 0; /* Позволяет сжиматься */
    display: flex;
    flex-direction: column;
}

/* Правая колонка */
.main__right-column {
    width: 300px; /* Изменили базовую ширину */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Адаптивная ширина правой колонки */
@media (min-width: 1800px) {
    .main__right-column {
        width: 400px !important;
    }
}

@media (max-width: 1600px) {
    .main__right-column {
        width: 300px !important;
    }
}

@media (max-width: 1400px) {
    .main__right-column {
        width: 250px !important;
    }
}

@media (max-width: 1200px) {
    .main__right-column {
        width: 201px !important;
    }
}

/* Фильтры */
.filters {
    background-color: var(--color-white);
    border-radius: 16px;
    padding: 10px;
    box-shadow: none;
    margin-bottom: 40px;
}

.filters__top-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    margin-bottom: 16px;
}

.filters__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #FCAD1F;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 0 20px;
    height: 37px;
    width: 128px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-family-montserrat);
    font-weight: 400;
    font-size: 15px;
    justify-content: center;
}

.filters__btn:hover {
    background-color: #e69c1a;
    box-shadow: var(--shadow-small);
}

.filters__btn-text {
    color: #FFFFFF;
    font-weight: 400;
}

.filters__btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.filters__map-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--color-text);
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    font-weight: 400;
    transition: var(--transition-fast);
}

.filters__map-link:hover {
    color: var(--color-primary);
}

.filters__map-text {
    color: inherit;
}

.filters__map-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.filters__bottom-row {
    width: 440px;
    height: 42px;
    background-color: transparent;
    border-radius: 8px;
    padding-left: 0;
}

/* Слайдер - Профессиональная реализация с динамическим расчетом */
.slider {
    background-color: var(--color-white);
    border-radius: 1rem; /* 16px в rem */
    padding: 0.625rem; /* 10px в rem */
    margin-bottom: 2.5rem; /* 40px в rem */
}

.slider__title {
    font-family: var(--font-family-montserrat);
    font-size: 0.9375rem; /* 15px в rem */
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.25rem; /* 20px в rem */
}

.slider__container {
    position: relative;
    overflow: hidden;
    width: 100%;
    /* Обеспечиваем что контейнер занимает всю доступную ширину */
    max-width: 100%;
}

.slider__track {
    display: flex;
    /* gap будет устанавливаться динамически через JavaScript */
    gap: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Убираем padding для точного позиционирования */
    padding: 0;
    margin: 0;
}

.slider__slide {
    /* Ширина будет устанавливаться динамически через JavaScript */
    width: 182px;
    min-width: 182px; /* Минимальная ширина карточки */
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex-shrink: 0; /* Запрещаем сжатие карточек */
    flex-grow: 0; /* Запрещаем растяжение карточек */
}

.slider__image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадратное соотношение как на Airbnb */
    object-fit: cover;
    border-radius: 12px; /* Скругление как на Airbnb */
    flex-shrink: 0;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.slider__slide:hover .slider__image {
    opacity: 0.8;
    filter: brightness(0.9);
}

.slider__content {
    padding: 16px 16px 22px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider__slide-title {
    font-family: var(--font-family-montserrat);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.slider__slide-description {
    font-family: var(--font-family-montserrat);
    font-size: 12px;
    color: #000;
}

/* Заголовок слайдера с навигацией */
.slider__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.slider__navigation {
    display: flex;
    gap: 0.25rem;
}

.slider__nav {
    position: static;
    width: 26px;
    height: 26px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background-color: #ffffff;
    color: #717171;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.slider__nav:hover:not(.slider__nav--disabled) {
    background-color: #f7f7f7;
    border-color: #b0b0b0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.slider__nav--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #f7f7f7;
    border-color: #e0e0e0;
    color: #b0b0b0;
}

.slider__nav--disabled:hover {
    background-color: #f7f7f7;
    border-color: #e0e0e0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Когда правой колонки нет - размер карточек рассчитывается динамически */
.main__container.no-right-column .slider__slide {
    /* Ширина управляется JavaScript */
    width: auto;
}

/* Список карточек */
.cards-list {
    padding: 10px;
    margin-bottom: 40px;
    width: 100%;
}

.cards-list__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    width: 100%;
}

.cards-list__title {
    font-family: var(--font-family-montserrat);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    flex: 1;
}

.cards-list__content {
    display: flex; /* Базовый flexbox для десктопа */
    flex-wrap: wrap; /* Карточки в сетку (несколько строк) */
    gap: 20px; /* Будет переопределено JavaScript */
    margin-bottom: 24px;
    justify-content: flex-start;
    padding: 0;
}

/* Карточки в блоке cards-list - размеры управляются JavaScript на десктопе */
.cards-list__content .slider__slide {
    /* width и min-width будут устанавливаться динамически через JavaScript на десктопе */
    flex-shrink: 0;
    flex-grow: 0;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    background-color: var(--color-white);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.card__image {
    width: 100%;
    height: 210px;
    object-fit: cover;
    flex-shrink: 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.card:hover .card__image {
    opacity: 0.8;
    filter: brightness(0.9);
}

.card__image-placeholder {
    width: 100%;
    height: 210px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-family-montserrat);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card__title {
    font-family: var(--font-family-montserrat);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
}

.card__description {
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    color: var(--color-text-light);
}

.card__price {
    font-family: var(--font-family-montserrat);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.card__rating {
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    color: var(--color-text-light);
}

/* Пагинация */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pagination__btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--color-white);
    color: var(--color-text);
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.pagination a.pagination__btn:hover {
    background-color: var(--color-secondary);
}

.pagination__btn--active {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

/* Ссылки выглядят как кнопки и наследуют цвет текста */
.pagination a.pagination__btn {
    color: inherit;
    cursor: pointer;
}

/* Неактивные элементы (span) — курсор по умолчанию и без ховера */
.pagination span.pagination__btn {
    cursor: default;
}

.pagination__dots {
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    color: var(--color-text-light);
    padding: 0 8px;
}

/* Карточки турбаз */
.tourbase-card {
    background-color: var(--color-white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tourbase-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.tourbase-card:hover .tourbase-card__image {
    opacity: 0.8;
    filter: brightness(0.9);
}

.tourbase-card__image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-family-montserrat);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.tourbase-card__content {
    padding: 20px;
}

.tourbase-card__title {
    font-family: var(--font-family-montserrat);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    text-align: center;
}

.tourbase-card__season {
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 20px;
    text-align: left;
}

.tourbase-card__description {
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tourbase-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tourbase-card__feature {
    padding: 6px 12px;
    background-color: var(--color-secondary);
    border-radius: 20px;
    font-family: var(--font-family-montserrat);
    font-size: 12px;
    color: var(--color-text);
}

.tourbase-card__price {
    font-family: var(--font-family-montserrat);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.tourbase-card__rating {
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.tourbase-card__btn {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-family: var(--font-family-montserrat);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tourbase-card__btn:hover {
    background-color: var(--color-nav-hover);
}

/* Категорийный слайдер под фильтрами */
.category-slider {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 0;
}

.category-slider__label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #000000;
    margin-right: 25px;
    min-width: 40px;
}

.category-slider__nav {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: background 0.2s;
}

.category-slider__nav:disabled {
    cursor: auto;
    opacity: 0.5;
}

.category-slider__nav:disabled img {
    filter: grayscale(100%) opacity(50%);
}

.category-slider__nav:hover:not(:disabled) {
    background: none;
}

.category-slider__nav:hover:not(:disabled) img {
    filter: brightness(0) saturate(100%) invert(62%) sepia(81%) saturate(749%) hue-rotate(353deg) brightness(99%) contrast(101%);
}

.category-slider__viewport {
    overflow: hidden;
    width: 335px;
    height: 42px;
    position: relative;
}

.category-slider__track {
    display: flex;
    gap: 22px;
    transition: transform 0.3s ease;
}

.category-slider__item {
    width: auto;
    min-width: fit-content;
    height: 42px;
    background: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0 8px;
    transition: background 0.2s;
    gap: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-slider__item:hover {
    background: none;
}

.category-slider__icon {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
}

.category-slider__text {
    font-family: var(--font-family-montserrat);
    font-size: 11px;
    color: #000000;
    text-align: center;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
}

.category-slider__nav--prev {
    margin-right: 17px;
}

.category-slider__nav--next {
    margin-left: 17px;
}

/* Адаптивность для категорийного слайдера */
@media (max-width: 768px) {
    .category-slider {
        height: auto;
        padding: 0.5rem 0;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-slider__label {
        font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
        margin-right: clamp(0.75rem, 2vw, 1rem);
        min-width: auto;
        width: 100%;
        margin-bottom: 0.25rem;
    }
    
    .category-slider__viewport {
        width: 100%;
        max-width: calc(100% - 4rem);
        height: auto;
        min-height: 42px;
    }
    
    .category-slider__nav {
        width: clamp(1.5rem, 4vw, 1.75rem);
        height: clamp(1.5rem, 4vw, 1.75rem);
    }
    
    .category-slider__nav--prev {
        margin-right: clamp(0.5rem, 1.5vw, 0.75rem);
    }
    
    .category-slider__nav--next {
        margin-left: clamp(0.5rem, 1.5vw, 0.75rem);
    }
    
    .category-slider__item {
        height: auto;
        min-height: 42px;
        padding: clamp(0.25rem, 1vw, 0.5rem) clamp(0.5rem, 1.5vw, 0.75rem);
    }
    
    .category-slider__icon {
        width: clamp(1.125rem, 3vw, 1.25rem);
        height: clamp(1.125rem, 3vw, 1.25rem);
    }
    
    .category-slider__text {
        font-size: clamp(0.625rem, 1.5vw, 0.6875rem);
    }
    
    .filters__bottom-row {
        width: 100% !important;
        height: auto !important;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .category-slider {
        padding: 0.375rem 0;
    }
    
    .category-slider__label {
        font-size: 0.625rem;
        margin-right: 0.5rem;
    }
    
    .category-slider__viewport {
        max-width: calc(100% - 3rem);
    }
    
    .category-slider__nav {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .category-slider__nav--prev {
        margin-right: 0.375rem;
    }
    
    .category-slider__nav--next {
        margin-left: 0.375rem;
    }
    
    .category-slider__item {
        padding: 0.25rem 0.5rem;
    }
    
    .category-slider__icon {
        width: 1rem;
        height: 1rem;
    }
    
    .category-slider__text {
        font-size: 0.625rem;
    }
}

/* Убираем левый padding для .slider и .cards-list на десктопе для выравнивания с хлебными крошками */
@media (min-width: 769px) {
    .slider {
        padding: 0.625rem 0.625rem 0.625rem 0 !important; /* Убираем левый padding для выравнивания */
    }
    
    .cards-list {
        padding: 10px 10px 10px 0 !important; /* Убираем левый padding для выравнивания */
    }
}

/* Адаптивность для больших экранов */
@media (min-width: 1920px) {
    .main__container {
        padding: 0 160px;
    }
    
    /* Слайдер адаптируется динамически - управляется JavaScript */
    .slider__container {
        max-width: 100%;
    }
    
    .slider__image {
        aspect-ratio: 1 / 1;
    }
    
    /* cards-list теперь использует динамическую логику через JavaScript */
}


/* Адаптивность для средних экранов */
@media (max-width: 1200px) {
    .main__container {
        padding: 0 60px;
        gap: 30px;
    }
    
    
    /* Размеры карточек рассчитываются динамически через JavaScript */
    
    .slider__image {
        aspect-ratio: 1 / 1;
    }
    
    /* cards-list теперь использует динамическую логику через JavaScript */
}

/* Адаптивность для узких экранов */
@media (max-width: 1000px) {
    .main__container {
        padding: 0 40px;
        gap: 25px;
    }
    
    
    /* Размеры карточек рассчитываются динамически через JavaScript */
    
    .slider__image {
        aspect-ratio: 1 / 1;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .main {
        padding: 0 !important; /* Убираем вертикальные padding на мобильных */
        margin-top: 0 !important; /* Отступ от хедера через .search-page-spacer */
    }

    .main__container {
        flex-direction: column !important;
        padding: 0 clamp(1rem, 4vw, 1.25rem) !important; /* Единый отступ как на странице деталей отеля: 16-20px */
        gap: clamp(1rem, 2.5vw, 1.5rem) !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .main__left-column {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main__right-column {
        width: 100% !important;
        order: -1; /* Правая колонка показывается первой на мобильных, если есть */
    }

    /* Уменьшаем отступы между блоками на мобильных */
    .slider {
        margin-bottom: clamp(0.25rem, 1vw, 0.5rem) !important;
        padding: 0.125rem !important;
    }
    
    .slider__title {
        margin-bottom: clamp(0.1875rem, 0.625vw, 0.3125rem) !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
    }
    
    .slider__header {
        margin-bottom: clamp(0.25rem, 0.75vw, 0.375rem) !important;
    }
    
    /* Добавляем расстояние между карточками на мобильных */
    .slider__track {
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }
    
    /* Секция cards-list */
    .cards-list {
        padding: 0 !important;
        margin-bottom: clamp(1rem, 2.5vw, 1.5rem) !important;
        width: 100% !important;
    }
    
    .cards-list__header {
        margin-bottom: clamp(0.75rem, 2vw, 1rem) !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .cards-list__title {
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Карточки в блоке cards-list на мобильных - переключаемся на CSS Grid для надежного контроля */
    .cards-list__content,
    #hotels-grid.cards-list__content,
    #hotels-grid {
        display: grid !important; /* Переключаемся на Grid на мобильных - переопределяет JavaScript */
        grid-template-columns: repeat(2, 1fr) !important; /* Принудительно 2 колонки на мобильных */
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important; /* Небольшое расстояние между карточками: 8-12px */
        justify-content: start !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: clamp(1rem, 2.5vw, 1.5rem) !important;
        padding: 0 !important;
        flex-wrap: unset !important; /* Убираем flex-wrap от JavaScript */
        align-items: unset !important; /* Убираем align-items от JavaScript */
        align-content: unset !important; /* Убираем align-content от JavaScript */
        visibility: visible !important; /* Принудительно видимый контейнер */
        opacity: 1 !important; /* Принудительно непрозрачный контейнер */
        min-height: 200px !important; /* Минимальная высота для видимости содержимого */
        position: relative !important; /* Относительное позиционирование */
        overflow: visible !important; /* Видимое содержимое */
    }
    
    /* Принудительно переопределяем inline стили от JavaScript на мобильных */
    .cards-list__content[style*="display"],
    #hotels-grid[style*="display"],
    .cards-list__content[style*="flex"],
    #hotels-grid[style*="flex"],
    .cards-list__content[style*="visibility"],
    #hotels-grid[style*="visibility"],
    .cards-list__content[style*="opacity"],
    #hotels-grid[style*="opacity"] {
        display: grid !important;
        flex-wrap: unset !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }
    
    .cards-list__content .slider__slide,
    .cards-list__content .hotel-card {
        width: 100% !important; /* Занимают всю ширину grid ячейки */
        min-width: 0 !important;
        max-width: 100% !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        box-sizing: border-box !important;
        border-radius: clamp(0.5rem, 1.5vw, 0.75rem) !important;
        display: flex !important; /* Принудительно flex для корректного отображения содержимого */
        flex-direction: column !important;
        visibility: visible !important; /* Принудительно видимые */
        opacity: 1 !important; /* Принудительно непрозрачные */
        height: auto !important; /* Автоматическая высота */
        min-height: 200px !important; /* Минимальная высота для видимости */
        background-color: #ffffff !important; /* Белый фон для видимости */
        border: 1px solid #e0e0e0 !important; /* Граница для видимости */
        overflow: hidden !important; /* Обрезаем содержимое по границам */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important; /* Тень для выделения */
    }
    
    /* Принудительно переопределяем inline стили от JavaScript на мобильных */
    .cards-list__content .slider__slide[style],
    .cards-list__content .hotel-card[style],
    .cards-list__content .slider__slide[style*="width"],
    .cards-list__content .hotel-card[style*="width"],
    .cards-list__content .slider__slide[style*="height"],
    .cards-list__content .hotel-card[style*="height"],
    .cards-list__content .slider__slide[style*="display"],
    .cards-list__content .hotel-card[style*="display"],
    .cards-list__content .slider__slide[style*="visibility"],
    .cards-list__content .hotel-card[style*="visibility"],
    .cards-list__content .slider__slide[style*="opacity"],
    .cards-list__content .hotel-card[style*="opacity"] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 200px !important;
        background-color: #ffffff !important;
        border: 1px solid #e0e0e0 !important;
        overflow: hidden !important;
    }
    
    /* Изображения в карточках на мобильных */
    .cards-list__content .slider__image,
    .cards-list__content .lazy-image {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 150px !important; /* Минимальная высота для видимости */
        max-height: 300px !important; /* Максимальная высота */
        object-fit: cover !important;
        border-radius: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 1.5vw, 0.75rem) 0 0 !important;
        display: block !important; /* Принудительно block для корректного отображения */
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #f0f0f0 !important; /* Фон на случай если изображение не загрузилось */
    }
    
    /* Lazy loading изображений - принудительно видимые на мобильных */
    .cards-list__content .lazy-image:not(.loaded) {
        opacity: 0.7 !important; /* Полупрозрачные пока не загружены */
        background-color: #f0f0f0 !important;
    }
    
    .cards-list__content .lazy-image.loaded {
        opacity: 1 !important;
    }
    
    /* Контент карточки на мобильных */
    .cards-list__content .slider__content {
        padding: clamp(0.75rem, 2vw, 1rem) !important;
        gap: clamp(0.375rem, 1vw, 0.5rem) !important;
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Общие стили для slider__image на мобильных */
    .slider__image {
        aspect-ratio: 1 / 1;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
        border-radius: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.5rem, 1.5vw, 0.75rem) 0 0 !important;
    }
    
    .slider__slide-title {
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        margin-bottom: clamp(0.375rem, 1vw, 0.5rem) !important;
    }
    
    .slider__slide-description {
        font-size: clamp(0.75rem, 1.75vw, 0.875rem) !important;
        line-height: 1.5 !important;
    }

    .card {
        flex-direction: column;
        text-align: center;
    }

    .card__image,
    .card__image-placeholder {
        width: 100%;
        height: 150px;
    }

    .tourbase-card__features {
        justify-content: center;
    }
    
    /* Кнопка "Загрузить еще" */
    .load-more-container {
        margin-top: clamp(1rem, 2.5vw, 1.5rem) !important;
        padding: 0 !important;
    }
    
    .load-more-btn {
        width: 100% !important;
        padding: clamp(0.75rem, 2vw, 1rem) !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        border-radius: clamp(0.5rem, 1.5vw, 0.75rem) !important;
    }
    
    /* Сообщение "Вы просмотрели все" */
    .end-message {
        margin-top: clamp(1rem, 2.5vw, 1.5rem) !important;
        padding: clamp(0.75rem, 2vw, 1rem) !important;
        text-align: center !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
    }
    
    /* Индикатор загрузки */
    .loading-indicator {
        margin-top: clamp(1rem, 2.5vw, 1.5rem) !important;
        padding: clamp(1rem, 2.5vw, 1.5rem) !important;
    }
    
    .loading-indicator .spinner {
        width: clamp(2rem, 5vw, 3rem) !important;
        height: clamp(2rem, 5vw, 3rem) !important;
        border-width: clamp(0.25rem, 0.75vw, 0.375rem) !important;
    }
    
    .loading-indicator p {
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        margin: 0 !important;
    }
    
    /* Alert сообщения */
    .alert {
        padding: clamp(0.75rem, 2vw, 1rem) !important;
        margin-bottom: clamp(0.75rem, 2vw, 1rem) !important;
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
        border-radius: clamp(0.5rem, 1.5vw, 0.75rem) !important;
        line-height: 1.5 !important;
    }
    
    .alert-info {
        padding: clamp(0.75rem, 2vw, 1rem) !important;
        margin-bottom: clamp(0.75rem, 2vw, 1rem) !important;
    }
    
    .search-indicator {
        margin-bottom: clamp(0.75rem, 2vw, 1rem) !important;
    }
    
    .search-indicator strong {
        font-size: clamp(0.875rem, 2vw, 1rem) !important;
    }
    
    /* Сообщение "Ничего не найдено" */
    .cards-list__content .alert-info {
        padding: clamp(1.5rem, 4vw, 2rem) !important;
        text-align: center !important;
    }
    
    .cards-list__content .alert-info p {
        font-size: clamp(1rem, 2.5vw, 1.1rem) !important;
        margin: 0 !important;
    }
}

.invalid {
    border-color: red;
}
.file-upload {
    position: relative;
    display: inline-block;
}

.file-upload-label {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.housing-list {
    list-style-type: none;
    padding: 0;
}

.housing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
}

.housing-item button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.housing-item button:hover {
    background-color: #0056b3;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
/*start booking calendar*/
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 350px;
    max-width: 90vw;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nav-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 15px;
    border-radius: 4px;
    color: #1976d2;
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    font-weight: bold;
}

.weekday {
    padding: 5px;
    text-align: center;
    font-size: 0.8rem;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day-container {
    position: relative;
    aspect-ratio: 1;
}

.day-half {
    position: absolute;
    width: 50%;
    height: 100%;
}

.left-free {
    left: 0;
    background: #e8f5e9;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.right-free {
    right: 0;
    background: #e8f5e9;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.left-checkout {
    left: 0;
    background: #ffcdd2;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.right-checkin {
    right: 0;
    background: #ffcdd2;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.day-full {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.booked {
    background: #ffcdd2;
}

.free {
    background: #e8f5e9;
}

.day-selector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    font-size: 0.9rem;
}

.day-selector:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.day-selector.selected {
    background: rgba(25, 118, 210, 0.3);
    color: #1976d2;
    font-weight: bold;
}

.day-selector:disabled {
    cursor: not-allowed;
    color: #999;
}

.selection-info {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.selected-dates p {
    margin: 5px 0;
}

.popup-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #1976d2;
    color: white;
    border: none;
}

.btn-primary:disabled {
    background-color: #90caf9;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: white;
    color: #1976d2;
    border: 1px solid #1976d2;
}

/* Специфичные стили для партнерских страниц */
.form-actions .btn-secondary {
    background-color: #f8f9fa !important;
    color: #212529 !important;
    border: 1px solid #e0e0e0 !important;
}

.form-actions .btn-secondary:hover {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #212529 !important;
    text-decoration: none !important;
}

.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 0.5rem !important;
}

/* Стили для страниц профиля партнера теперь в partner-profile-pages.css */

.text-danger {
    color: #dc3545;
    font-size: 0.8rem;
}
/*end booking calendar*/

/*начало компонент выбора кол-ва гостей при бронировании*/
.guest-selector {
    position: relative;
    max-width: 300px;
}

.guest-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
}

.guest-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.guest-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.counter {
    display: flex;
    align-items: center;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ced4da;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.counter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.counter-value {
    margin: 0 10px;
    min-width: 20px;
    text-align: center;
}

.children-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.children-section h6 {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

.child-selector {
    position: relative;
    margin-bottom: 10px;
}

.child-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
}

.remove-child-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 1.5em;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
}

.remove-child-btn:hover {
    color: #ff4444;
    background: #f8f9fa;
}

.dropdown-actions {
    margin-top: 15px;
    text-align: right;
}

/* Для красивого отображения стрелки селектора */
.child-selector select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 1em;
}
/*завершение компонент выбора кол-а гостей при бронировании*/

/*фуутер*/
.layout-container {
    display: flex;
}

.sidebar {
    width: 250px; /* Фиксированная ширина сайдбара */
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
}

.site-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-top: auto;
}

.content {
    padding-bottom: 2rem;
    overflow-x: hidden;
}
/*конец футеру*/

/*левое меню*/
.sidebar {
    width: 250px;
    background-color: #ffffff; /* Чистый белый фон */
    border-right: 1px solid #eaeaea; /* Светлая граница */
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    padding: 1.5rem 0;
    box-shadow: 1px 0 3px rgba(0,0,0,0.03);
}

.sidebar .nav-link {
    color: #4a5568; /* Приятный серо-синий цвет текста */
    padding: 0.8rem 1.5rem;
    margin: 0.15rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease-out;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: #f7faff; /* Очень светлый голубой при наведении */
    color: #3182ce; /* Голубой цвет текста */
    transform: translateX(2px);
}

.sidebar .nav-link.active {
    background-color: #ebf5ff; /* Светло-голубой фон для активного элемента */
    color: #3182ce;
    font-weight: 600;
    border-left: none;
    box-shadow: inset 3px 0 0 #3182ce; /* Голубая полоса слева */
}

.sidebar .bi {
    margin-right: 0.8rem;
    font-size: 1.1rem;
    color: #3182ce; /* Голубой цвет иконок */
    transition: color 0.2s ease;
}

.sidebar .nav-item {
    margin-bottom: 0.3rem;
}

/* Иконки при наведении */
.sidebar .nav-link:hover .bi {
    color: #4299e1; /* Более яркий голубой */
}

/* Активные иконки */
.sidebar .nav-link.active .bi {
    color: #3182ce;
}
/*конец левого меню*/

/*анимация удаления контакта отеля*/
.fade-out {
    transition: opacity 0.3s;
}

.fade-out.deleting {
    opacity: 0;
}
/*конец анимации*/

.slider__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 15px;
    /*margin-bottom: 60px;*/
}

.slider__dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #D9D9D9;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    outline: none;
    padding: 0;
}

.slider__dot--active {
    background: #186FE4;
}

/* Infinite Scroll Styles */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(24, 111, 228, 0.1);
    border-top-color: #186FE4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-indicator p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.load-more-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.load-more-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    background: #186FE4;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 111, 228, 0.2);
}

.load-more-btn:hover {
    background: #1557b0;
    box-shadow: 0 4px 12px rgba(24, 111, 228, 0.3);
    transform: translateY(-2px);
}

.load-more-btn:active {
    transform: translateY(0);
}

.end-message {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 16px;
}

.end-message p {
    margin: 0;
}

/* Lazy Loading Images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Placeholder для изображений */
.lazy-image:not(.loaded) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Virtualization Styles */
.hotel-card-placeholder {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    margin: 10px;
}

.hotel-card-placeholder::before {
    content: "📋 Placeholder";
    opacity: 0.5;
}

/* Performance optimizations */
.hotel-card {
    will-change: transform;
    transform: translateZ(0); /* Force GPU acceleration */
}

.cards-list__content {
    contain: layout style paint; /* CSS containment for better performance */
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px) scale(1.05);
}

.scroll-to-top-btn:active {
    transform: translateY(0) scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn svg {
    transition: transform 0.2s ease;
}

.scroll-to-top-btn:hover svg {
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scroll-to-top-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
    
    .scroll-to-top-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Варианты выделения текста минимальной цены (для выбора) */
.hotel-min-price.subtle-highlight {
  background: var(--color-secondary, #f5f7fa);
  border-radius: 0.5rem;
  padding: 0.75rem 1.2rem;
  font-size: 1.05rem;
  color: var(--color-text, #222);
  display: inline-block;
  box-shadow: 0 1px 4px rgba(100,120,140,0.04);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.hotel-min-price.subtle-highlight::before {
  content: '💰';
  margin-right: 0.5rem;
  vertical-align: middle;
  font-size: 1.1em;
  opacity: 0.75;
}

.hotel-min-price.subtle-border {
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: 0.5rem;
  padding: 0.65rem 1.05rem;
  font-size: 1.08rem;
  color: var(--color-text, #333);
  display: inline-block;
  background: #fff;
  margin-bottom: 1.2rem;
}

.hotel-min-price.subtle-bar {
  border-left: 4px solid var(--color-primary, #c6defd);
  padding: 0.5rem 1.1rem;
  background: #fafcff;
  font-size: 1.05rem;
  color: var(--color-text, #202124);
  display: inline-block;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.price-value-selected {
  color: var(--color-primary, #84acec);
  font-weight: 600;
}

/* Комфорт на территории — кастомные чекбоксы и сетка */
.hotel-comfort-section .comfort-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  column-gap: 40px;
  row-gap: 14px;
  align-items: start;
}

@media (max-width: 1200px) {
  .hotel-comfort-section .comfort-items {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    column-gap: 30px;
  }
}

@media (max-width: 768px) {
  .hotel-comfort-section .comfort-items {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
    column-gap: 20px;
  }
}

.hotel-comfort-section .form-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.hotel-comfort-section .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid #cbd5e1; /* светло-серый */
  border-radius: 4px;
  background: #ffffff;
  display: inline-block;
  position: relative;
  flex: 0 0 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

/* Убираем синий фон/контур Bootstrap при checked/focus */
.hotel-comfort-section .form-check-input:checked,
.hotel-comfort-section .form-check-input:focus {
  background-color: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Сохраняем читаемость при disabled */
.hotel-comfort-section .form-check-input:disabled {
  opacity: 1;
  cursor: default;
}

/* Отрисовка галочки */
.hotel-comfort-section .form-check-input:checked::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 10px;
  height: 6px;
  border: 2px solid #111827; /* тёмный графит */
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg);
}

/* Тёмная рамка при отмеченном состоянии */
.hotel-comfort-section .form-check-input:checked {
  border-color: #111827;
}

.hotel-comfort-section .form-check-label {
  font-size: 14px;
  line-height: 1.4;
  color: #2b2f36;
}

/* Универсальный разделитель секций */
.section-divider {
  width: 100%;
  height: 0;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
  margin: 12px 0 24px;
}

/* КРИТИЧЕСКИ ВАЖНО: Стили для валидации на странице ContactUs */
/* Переопределяем глобальные стили из app.css с максимальной специфичностью */
section.contact .contact-form__field-footer .validation-message,
section.contact .contact-form__field-footer .contact-form__validation,
section.contact .contact-form__field-footer .validation-message.contact-form__validation,
section.contact .contact-form__field-footer .contact-form__validation.validation-message {
    margin: 0 !important;
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    font-family: var(--font-family-primary) !important;
    line-height: 1.4 !important;
    flex: 1;
    display: block;
}

/* Стили для вложенных элементов внутри ValidationMessage */
section.contact .contact-form__field-footer .validation-message *,
section.contact .contact-form__field-footer .contact-form__validation *,
section.contact .contact-form__field-footer .validation-message.contact-form__validation * {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    font-family: var(--font-family-primary) !important;
    line-height: 1.4 !important;
}

/* Стили для валидации на странице Reservation/Pay */
/* Blazor ValidationMessage рендерит текст в дочерний span, поэтому нужны селекторы для всех элементов */
/* Используем максимальную специфичность для переопределения глобальных стилей из app.css */
.hotel-details-container .validation-message-custom,
.hotel-details-container .validation-message-custom span,
.hotel-details-container .validation-message-custom div,
.hotel-details-container .validation-message-custom::before,
.hotel-details-container .validation-message-custom::after,
.hotel-details-container .guest-info .validation-message-custom,
.hotel-details-container .guest-info .validation-message-custom span,
.hotel-details-container .guest-info .validation-message-custom div,
.hotel-details-container .details-section .validation-message-custom,
.hotel-details-container .details-section .validation-message-custom span,
.hotel-details-container .details-section .validation-message-custom div,
.hotel-details-container .mb-3 .validation-message-custom,
.hotel-details-container .mb-3 .validation-message-custom span,
.hotel-details-container .mb-3 .validation-message-custom div,
.hotel-details-container .guest-info .mb-3 .validation-message-custom,
.hotel-details-container .guest-info .mb-3 .validation-message-custom span,
.hotel-details-container .guest-info .mb-3 .validation-message-custom div,
.hotel-details-container .details-section .mb-3 .validation-message-custom,
.hotel-details-container .details-section .mb-3 .validation-message-custom span,
.hotel-details-container .details-section .mb-3 .validation-message-custom div {
    margin: 0.25rem 0 0 0 !important;
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    font-family: var(--font-family-primary) !important;
    line-height: 1.4 !important;
    display: block !important;
}

/* Стили для всех вложенных элементов внутри ValidationMessage на странице Reservation/Pay */
.hotel-details-container .validation-message-custom *,
.hotel-details-container .validation-message-custom *::before,
.hotel-details-container .validation-message-custom *::after,
.hotel-details-container .guest-info .validation-message-custom *,
.hotel-details-container .details-section .validation-message-custom *,
.hotel-details-container .mb-3 .validation-message-custom *,
.hotel-details-container .guest-info .mb-3 .validation-message-custom *,
.hotel-details-container .details-section .mb-3 .validation-message-custom * {
    color: #dc2626 !important;
    font-size: 0.75rem !important;
    font-family: var(--font-family-primary) !important;
    line-height: 1.4 !important;
}

/* Переопределение глобального стиля из app.css для validation-message-custom */
.hotel-details-container .validation-message-custom.validation-message {
    color: #dc2626 !important;
}

/* ============================================
   ГЛОБАЛЬНЫЕ СТИЛИ ДЛЯ ХЛЕБНЫХ КРОШЕК
   Применяются ко всем страницам (кроме страницы поиска, где есть специфичные стили)
   ============================================ */

/* Базовые стили для контейнера хлебных крошек */
.breadcrumb-container {
    max-width: var(--container-max-width, 1920px);
    margin: 0 auto;
    background-color: var(--color-white, #ffffff);
}

/* Уменьшенное расстояние для десктопа (как на странице поиска) */
@media (min-width: 769px) {
    .breadcrumb-container {
        padding: clamp(0.375rem, 0.875vw, 0.5rem) 0 0; /* Уменьшенное расстояние для десктопа: 6-8px */
    }
}

/* Исходные значения для мобильного вида */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: clamp(0.75rem, 2vw, 1rem) 0 0; /* Исходные значения для мобильных: 12-16px */
    }
}

/* Исключения для страницы поиска (использует специфичный класс .breadcrumb-container-search) */
/* Стили определены в search-styles.css, глобальные стили не применяются */

/* Исключения для страниц с документами (имеют свои стили с margin-bottom) */
.document-container .breadcrumb-container {
    /* Стили определены в соответствующих .razor.css файлах */
    /* padding переопределяется в Details.razor.css, PrivacyPolicy.razor.css и т.д. */
}

/* Исключения для страниц Hotel/Housing Details (имеют свои стили с margin-bottom) */
.hotel-details-container .breadcrumb-container,
.details-container .breadcrumb-container {
    /* Стили определены в соответствующих .razor.css файлах */
    /* padding переопределяется в Details.razor.css */
}

/* Исключения для страниц AboutUs и ContactUs (имеют свои стили) */
.about .breadcrumb-container,
.contact .breadcrumb-container {
    /* Стили определены в AboutUs.razor.css и ContactUs.razor.css */
    /* Глобальные стили переопределяются специфичными селекторами */
}

