@font-face {
font-family: "RobotoRegular";  
/*src: url("/public/frontend/Roboto-Regular.ttf") format("truetype"); */
src: url("/public/frontend/Montserrat-VariableFont_wght.ttf") format("truetype");
font-style: normal; 
font-weight: normal;
 }
 
/* --- ОБЩИЙ БЛОК: Планшеты и Смартфоны (до 1024px) --- */
@media screen and (max-width: 1024px) {
    /* 1. Сброс табличной структуры */
    .samo_container, #search_tour, .bottom-menu, 
    #search_tour table, #search_tour tbody, #search_tour tr,
    .panel, .panel tbody, .panel tr {
       /* display: block !important; */
        width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
    }

    .std.container {
        width: auto !important;
        margin: auto;
    }

    /* 2. Контейнеры ячеек и полей */
    #search_tour td {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 5px 0 15px 0 !important;
        box-sizing: border-box !important;
        border: none !important;
    }

    /* Каждое поле (заголовок + инпут) - 2 в ряд */
    #search_tour td > div, 
    #search_tour td > span {
        width: 48% !important; 
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 10px !important;
    }

    /* 3. Унифицированные стили элементов управления */
    .samo_container select, 
    .samo_container .textinput, 
    .samo_container input.frm-input,
    .samo_container .chosen-container,
    #search_tour td input.textinput, 
    #search_tour td select {
        width: 100% !important;
        height: 45px !important;
        margin: 5px 0 10px 0 !important;
        display: block !important;
        padding: 5px 10px !important;
        font-size: 16px !important;
        border: 1px solid #ccc !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    /* 4. Фиксы иконок и заголовков */
    .samo_container .textinput + img,
    .samo_container input + img {
        margin-left: -35px !important;
        position: relative !important;
        z-index: 10 !important;
        cursor: pointer !important;
        vertical-align: middle !important;
    }

    #search_tour td img[src*="calendar"] {
        position: absolute !important;
        right: 10px !important;
        margin-top: 32px !important;
        width: 20px !important;
    }

    #search_tour b, #search_tour font {
        font-size: 13px !important;
        display: block !important;
        margin-bottom: 2px !important;
    }

    /* 5. Списки (Город, Категория, Отель) */
    .samo_container .checklistbox {
        height: 180px !important;
        width: 100% !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        overflow-y: auto !important;
    }

    .samo_container .checklistbox div, 
    .samo_container .checklistbox label {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 10px !important;
        border-bottom: 1px solid #f0f0f0 !important;
        white-space: normal !important;
    }

    .samo_container .checklistbox input[type="checkbox"] {
        flex: 0 0 22px !important;
        width: 22px !important;
        height: 22px !important;
        margin: 0 12px 0 0 !important;
        -webkit-appearance: checkbox !important;
    }

    .samo_container .checklistbox img {
        flex-shrink: 0 !important;
        margin-right: 8px !important;
    }
}

/* --- ТОЛЬКО ПЛАНШЕТЫ (769px - 1024px) --- */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    #search_tour td.tour_left {
        width: 50% !important;
        display: inline-block !important;
        vertical-align: top;
    }
    .resultset table.res td {
        padding: 5px 2px !important;
        font-size: 12px !important;
    }
}

/* --- ТОЛЬКО СМАРТФОНЫ (до 768px) --- */
@media screen and (max-width: 768px) {
    /* 1. Общие настройки элементов */
    #search_tour td > div, 
    #search_tour td > span {
        width: 100% !important;
    }

    #search_tour td {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        width: 100% !important;
        padding: 0px 10px 0px !important;
        box-sizing: border-box !important;
    }

    /* 2. Сетка Вылет / Ночи */
    #search_tour tr.paramsFrom, 
    #search_tour tr.paramsTill {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        padding: 5px 10px !important;
        border-bottom: 1px solid #eee !important;
    }

    #search_tour td.description, 
    #search_tour td.description2 {
        display: block !important;
        width: 0% !important; 
        font-weight: bold !important;
        padding: 5px 0 5px 20px !important;
        font-size: 14px !important;
        text-align: left !important;
    }

    #search_tour td.calendar { width: 50% !important; margin-top: 2em !important; }
    #search_tour td.nights   { width: 30% !important; margin-top: 2em !important; }

    /* 3. Панель Туристы / Цена (Flex + Order) */

    /* Заставляем ячейки из разных строк видеть друг друга */
	.panel tr {
    display: contents !important;
}
.panel tbody {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.panel td {
    display: block !important; /* Внутри флекс-контейнера tbody это сделает их гибкими блоками */
    float: none !important;
}

/* --- НОВЫЙ ЛОГИЧЕСКИЙ ПОРЯДОК --- */

/* 1. Взрослые (В самом верху) */
.panel tr:first-child td.description3 { order: 1; width: 70% !important; }
.panel tr:first-child td.tourists     { order: 2; width: 30% !important; }

/* 2. Валюта и цена (Ниже взрослых) */
.panel td.description4 { order: 3; width: 70% !important; }
.panel td.cost         { order: 4; width: 30% !important; }

/* 3. Блок ОТ и ДО (В один ряд под валютой) */
.panel tr:first-child td.from  { order: 5; width: 15% !important; }
.panel tr:first-child td.count { order: 6; width: 35% !important; }
.panel tr:last-child td.from   { order: 7; width: 15% !important; }
.panel tr:last-child td.count  { order: 8; width: 35% !important; }

/* 4. Дети и их возрасты (В самый низ) */
.panel tr:last-child td.description3 { order: 9; width: 70% !important; }
.panel tr:last-child td.tourists     { order: 10; width: 30% !important; }
.panel td.child_ages_container       { order: 11; width: 100% !important; }

/* Контейнер, в котором сидят селекты */
#search_tour td .child_ages {
    display: flex !important;
    flex-direction: row !important; /* Возвращаем в ряд */
    flex-wrap: nowrap !important;   /* Запрещаем перенос */
    width: 100% !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

/* Настраиваем селекты, чтобы они делили пространство */
#search_tour td .child_ages select.age {
    flex: 1 !important;             /* Распределяем поровну (33% если их три) */
    width: auto !important;         /* Сбрасываем ширину 100% */
    min-width: 0 !important;        /* Позволяем сжиматься */
    display: block !important;
}

/*** БЛОК ОТЕЛИ И ФИЛЬТРЫ (ФИНАЛ) ***/
/* --- БЛОК ОТЕЛИ И ФИЛЬТРЫ (ИТОГОВАЯ ЧИСТКА) --- */

/* 1. Общая структура: выстраиваем ячейки вертикально */
#search_tour table.hotels_container.panel,
#search_tour table.hotels_container.panel tbody,
#search_tour table.hotels_container.panel tr,
#search_tour td[class*="control_"],
#search_tour td.filters-panel,
#search_tour td.footer {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
}

/* 2. Хедеры (Город, Категория, Отель и т.д.) */
#search_tour td[class*="control_"] .header {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px !important;
    height: auto !important;
    min-height: 40px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Элементы внутри хедера (текст и чекбоксы "Любая/Выбранные") */
#search_tour .header .left {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
}

#search_tour .header .right, 
#search_tour .header .left label {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* Поле поиска: всегда под заголовком хедера */
#search_tour .hotelsearch {
    flex: 0 0 100% !important;
    width: 100% !important;
    display: block !important;
    margin: 10px 0 5px 0 !important;
    height: 40px !important;
    order: 10 !important;
}

/* 3. Списки (Checklistbox) */
#search_tour .checklistbox {
    width: 100% !important;
    display: block !important;
    position: relative !important;
    background: #ffffff !important;
    border: 1px solid #ccc !important;
    border-radius: 0 0 5px 5px !important;
    padding: 5px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Отдельный отступ для списка отелей */
#search_tour .checklistbox.HOTELS {
    margin-top: 5px !important;
}

/* Строки списка (Label) */
#search_tour .checklistbox label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important; /* Удобный размер для тапа */
    padding: 5px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #eee !important;
    background: #fdfdfd !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    color: #333 !important;
    white-space: normal !important;
}

/* Удаляем вложенный мусорный лейбл */
#search_tour .checklistbox label label {
    display: none !important;
}

/* Чекбоксы в списках */
#search_tour .checklistbox input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    margin: 0 12px 0 0 !important;
    flex-shrink: 0 !important;
}

/* 4. Группировка (Страны/Города/Районы) - ВОЗВРАЩАЕМ ДЕРЕВО */
#search_tour .checklistbox div {
    display: block !important; /* Возвращаем блочную структуру для вложенности */
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Заголовок группы (например, Страна или Город) */
#search_tour .groupname {
    display: flex !important;
    width: 100% !important;
    min-height: 44px !important;
    align-items: center !important;
    background: #f0f0f0 !important;
    padding: 5px 10px !important;
    font-weight: bold !important;
    border-bottom: 1px solid #ccc !important;
}

/* Контейнер для вложенных элементов (районов/городов) */
#search_tour .groupboxChildren {
    display: block !important; /* Важно: элементы внутри должны идти друг под другом */
    padding-left: 20px !important; /* Визуальный отступ для дерева */
    border-left: 1px dashed #ccc !important; /* Пунктирная линия для наглядности связи */
    margin-left: 10px !important;
}

/* Элементы внутри районов */
#search_tour .groupboxChildren label {
    width: calc(100% - 10px) !important;
}

/* Фикс для иконок категорий (Чекбокс -> Иконка -> Текст) */
#search_tour .checklistbox .c-icon {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding-left: 35px !important; 
    background-position: 5px center !important;
    background-repeat: no-repeat !important;
}

#search_tour .checklistbox .c-icon input[type="checkbox"] {
    order: -1 !important;
}

/* 5. Футер и Кнопка */
#search_tour td.footer {
    padding: 20px 10px !important;
    align-items: center !important;
}

#search_tour td.footer button.load {
    width: 100% !important;
    height: 50px !important;
    margin: 10px 0 !important;
}

#search_tour .filters-panel.no-ufilter .checklistbox {
    height: auto !important;
}

/* 1. Нейтрализуем 48% и принудительно скрываем по умолчанию */
#search_tour td div.price-legend-container {
    width: 100% !important; /* Перебивает 48% */
    margin: 0 !important;
    display: none !important; /* Прячем по умолчанию */
}

/* 2. Показываем на всю ширину только когда система дает команду (inline style) */
#search_tour td div.price-legend-container[style*="display: block"],
#search_tour td div.price-legend-container[style*="display: inline"] {
    display: block !important; /* Перебивает flex и none */
    width: 100% !important;
}

/* 3. Исправляем таблицу внутри легенды, чтобы она не наследовала стили строк */
#search_tour .price_legend,
#search_tour .price_legend tr,
#search_tour .price_legend td {
    display: flex !important;
    flex-direction: row !important; /* Возвращаем горизонталь для иконок */
    width: 100% !important;
    margin: 0 !important;
}

#search_tour .price_legend td {
    padding: 8px 0 !important;
    border: none !important;
    align-items: center !important;
}

/* 4. Кнопка "Пояснение" - тоже вырываем из 48% */
#search_tour td div.information-ear {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 10px 0 !important;
}

/*ПРИМЕЧАНИЕ*/
/* 1. Находим ячейку и ее прямой дочерний div */
#search_tour td.note_container,
#search_tour td.note_container > div {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100vw !important; /* Ограничиваем шириной вьюпорта */
    box-sizing: border-box !important;
    overflow-wrap: break-word !important; /* Ломаем длинные слова */
}

/* 2. Уничтожаем min-width у ЛЮБОГО элемента внутри этой ячейки */
#search_tour td.note_container * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important; /* Запрещаем тексту вытягиваться в линию */
}

/* 3. Убираем лишние отступы &nbsp; которые могут раздувать блок */
#search_tour td.note_container p {
    word-break: break-word !important;
    margin: 5px 0 !important;
}
/********************************/
/* 1. Общие настройки контейнеров */
#search_tour td[class*="control_"],
#search_tour td.control_meal {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 10px !important;
    margin-bottom: 12px !important;
}

#search_tour .control_meal > div, 
#search_tour .control_meal > .header {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
}

/* 2. Стилизация заголовка (Кнопки) */
#search_tour .header {
    background: #ffffff !important;
    border: 1px solid #d1d1d1 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

/* Эффект при открытии */
#search_tour .header.is-open {
    border-color: #007bff !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    background: #fdfdfd !important;
}

/* 3. Текст и стрелочка */
#search_tour .header .left {
    font-weight: 600 !important;
    color: #222 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    flex-grow: 1 !important;
}

/* Добавляем стрелочку через CSS */
#search_tour .header .left::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #007bff;
    border-bottom: 2px solid #007bff;
    transform: rotate(-45deg); /* Смотрит вправо */
    margin-right: 12px;
    transition: transform 0.3s ease;
}

/* Поворот стрелочки вниз при открытии */
#search_tour .header.is-open .left::before {
    transform: rotate(45deg);
    margin-top: -4px;
}

/* 4. Правая часть (галочка "Любое") */
#search_tour .header .right {
    font-size: 12px !important;
    color: #888 !important;
    padding-left: 10px;
}

#search_tour .header .right input {
    margin-right: 5px !important;
    vertical-align: middle !important;
}

/* 5. Выпадающий список */
#search_tour .checklistbox {
    display: none;
    width: 100% !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid #007bff !important;
    border-top: none !important; /* Убираем верхнюю границу для склейки */
    border-radius: 0 0 8px 8px !important;
    margin-top: -8px !important; /* Нахлест на хедер */
    padding: 10px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
    box-sizing: border-box !important;
    z-index: 99 !important;
    position: relative !important;
}

/*************************/
    /* 4. Результаты поиска и Кнопки */
	#search_tour table.res {
		min-width: 97%;
	}
    .resultset table.res thead { display: none !important; }

    .resultset table.res tbody tr {
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 15px !important;
        padding: 12px !important;
        border: 1px solid #ccc !important;
        border-radius: 8px !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    }

    .resultset table.res td {
        display: block !important;
        width: 100% !important;
        padding: 4px 0 !important;
        border: none !important;
    }

    .td_price {
        margin-top: 10px !important;
        padding: 12px !important;
        border: 2px solid #ed1c24 !important;
        border-radius: 6px !important;
        text-align: center !important;
        background: rgba(255,255,255,0.4) !important;
    }

    .td_price .price {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #ed1c24 !important;
    }

    .search_button {
        width: 100% !important;
        height: 55px !important;
        background: #ed1c24 !important;
        color: #fff !important;
        font-weight: bold !important;
        border-radius: 6px !important;
        margin: 15px 0 !important;
    }

    .Zebra_DatePicker_Icon {
        right: 8px !important;
        left: auto !important;
    }
}



body {
	background-color:#E8EFFF;
	background-image: url("/rf-uploads/cloudsrf.png");
	background-position: center top;
	background-repeat: no-repeat;
	/*background-attachment: fixed;*/
}

.eraser {
	background-color:#E8EFFF;
}

.samo_container {
    background: none; 
}

.samo_container .searchmodes .searchmode_selected {
    margin: 0;
    padding: 10px 10px;
    font-size: 14px;
    font-weight: bold;
}
.bottom-menu {
    background-color: #ffffff !important;
    width: var(--main-container-width);
    margin: auto;
    border-radius: 8px;
	margin-top: 10px;
}

.panel {
/*	background-color:#fff0f0 !important;*/
}
.subpanel {
/*	background-color:#fff0f0 !important;*/
}

#search_tour .direction .direction_left  {
    font-weight: bold;
	text-transform: uppercase;
}

.tour_left, .description, .description2, .nights, .description3, .description4, .currency_label, .from { /*ФОрма поиска лейблы у фильтров*/
	font-weight:bold;
	text-transform: capitalize;
}

.header { /*Форма поиска лейблы для чеклистов */
	font-weight:bold;
	text-transform: capitalize;
}

.samo_container .checklistbox {
    overflow: auto;
    border-top: 1px solid #C0C0C0;
    border-left: 1px solid #C0C0C0;
    border-right: 1px solid #C0C0C0;
    border-bottom: 1px solid #C0C0C0;
    background-color: #F5F5F5;
    padding: 5px;
    height: 11em;
    overflow-y: scroll;
    overflow-x: hidden;
    text-align: left;
    margin: auto;
    -webkit-touch-callout: none;
}

.samo_container .searchmodes .searchmode_button {
	color: #747474;
    display: block;
    padding: 10px 10px;
    height: auto;
    background-color: var(--inactive-button-bgcolor);
    font-size: 14px;
    text-decoration: none;
    border: 0;
    border-radius: inherit;
    box-shadow: inset 0 -4px 10px -4px #ccc;
}

#search_tour .control_townto {
    text-align: center;
    width: 20%;
    max-width: calc(var(--main-container-width) * 0.2);
    vertical-align: top;
    padding-left: 15px !important;
}
	
#search_tour .control_meal {
    max-width: calc(var(--main-container-width) * 0.2);
    vertical-align: top;
    padding-right: 15px !important;
}

#search_tour .hotels_container td {
    padding: 5px;
    text-align: center;
    padding-top: 10px;
}

#search_tour {
	background:none;
}

.chosen-container-single .chosen-single {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0 0 0 8px;
    height: 23px;
    border: 1px solid #E1E1E1;
    border-radius: 5px;
    background-color: #F5F5F5;
    background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #F5F5F5), color-stop(50%, #F5F5F5), color-stop(52%, #F5F5F5), color-stop(100%, #F5F5F5));
    background: -webkit-linear-gradient(top, #F5F5F5 20%, #F5F5F5 50%, #F5F5F5 52%, #F5F5F5 100%);
    background: -moz-linear-gradient(top, #F5F5F5 20%, #F5F5F5 50%, #F5F5F5 52%, #F5F5F5 100%);
    background: -o-linear-gradient(top, #F5F5F5 20%, #F5F5F5 50%, #F5F5F5 52%, #F5F5F5 100%);
    background: linear-gradient(top, #F5F5F5 20%, #F5F5F5 50%, #F5F5F5 52%, #F5F5F5 100%);
    background-clip: padding-box;
    box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
    color: #444;
    text-decoration: none;
    white-space: nowrap;
    line-height: 24px;
}

.samo_container select, .samo_container textarea, .samo_container .textinput, .samo_container input.frm-value, .samo_container input.frm-input {
    background-color: #F5F5F5;
    border: 1px solid #E1E1E1;
 /*   border-radius: 5px;
    padding: 1px 2px;
    font-size: 13px;
    height: 22px;
    line-height: 18px;
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -webkit-transition: background-color 1200ms linear;
    -moz-transition: background-color 1200ms linear;
    -o-transition: background-color 1200ms linear;
    -ms-transition: background-color 1200ms linear;
    transition: background-color 1200ms linear;*/
}

/* ------------- SLIDER -------------------*/
.itc-slider-wrapper {
    overflow: hidden;
    background-color: #eee;
    border-radius: 8px;
}

	.itc-slider-items {
      counter-reset: slide;
    }

    .itc-slider-item {
      flex: 0 0 100%;
      max-width: 100%;
      counter-increment: slide;
      height: 250px;
      position: relative;
    }

    .itc-slider-item::before {
      content: counter(slide) /*"/5"*/;
      position: absolute;
      top: 10px;
      right: 20px;
      color: #fff;
      font-style: italic;
      font-size: 10px;
      font-weight: bold;
      display: block;
    }

    .itc-slider-item:nth-child(1) {
      background-color: #f44336;
    }

    .itc-slider-item:nth-child(2) {
      background-color: #9c27b0;
    }

    .itc-slider-item:nth-child(3) {
      background-color: #3f51b5;
    }

    .itc-slider-item:nth-child(4) {
      background-color: #03a9f4;
    }

    .itc-slider-item:nth-child(5) {
      background-color: #4caf50;
    }
/* /////////  SLIDER -----------------------*/
#header {
    font-family: var(--main-font-family);
    font-size: 13px;
    margin-bottom: 25px;
    text-align: right;
}


#header .menu ul li:hover, #header .menu a:hover {
    background-color: var(--item-active-background);
	border-radius: 8px 0px;
}

#header .menu li:hover ul {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--item-active-background);
    margin: 0;
    padding: 10px 20px;
    width: 100%;
    min-width: var(--common-dropdown-menu-width);
    z-index: 9999;
	border-radius:0px 0px 8px 8px;
}

#header .high-menu {
    margin: auto;
    width: var(--main-container-width);
    height: 72px;
    display: grid;
    grid-template-columns: 15% 65% 20%;
    grid-template-rows: 1fr;
    grid-template-areas: "logo currency note";
	margin-top:15px;
}

#header .currency-header .currency {
    background-color: #ffffff;
    border-radius: 8px;
    margin-left: auto;
    /* margin-right: auto; */
	text-align:left;
}

#header .note-header {
    grid-area: currency;
	font-weight:bold;
}

#header .currency-header {
    grid-area: note;
}

.currency-header th {
	font-weight:normal;
}

/**popup***/
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: #ffffff21;
    padding: 12px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.popup-content h2 {
    margin-top: 0;
    color: #333;
}

.popup-content p {
    margin-bottom: 20px;
    color: #555;
}

.popup-content button {
    background-color: #ff0052;
    color: white;
    border: none;
    padding: 10px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: -3em;
    font-size: 16px;
    position: absolute; /*позволяет отделить от самого окна*/
}

.popup-content button:hover {
    background-color: #0056b3;
}
/**popup**/


/****отвечает за перекрас календаря по скрипту js из header.tpl****/
/* --- СТИЛИ ДЛЯ ПЕРЕКРАШИВАНИЯ ДАТ (СОХРАНЯЕМ ИСХОДНУЮ ЛОГИКУ) --- */

/* Переопределение стилей для всех серых дат в календаре */
td.dp_highlight.requestplace.confirmed-available-by-js {
    background-color: #28a745 !important; /* Насыщенный зеленый */
    color: white !important; 
}

/* Переопределение стилей для серых выходных */
td.dp_weekend.dp_highlight.requestplace.confirmed-available-by-js {
    background-color: #1e7e34 !important; /* Темный зеленый */
    color: white !important;
}

/* --- СТИЛИ ДЛЯ МАСКИРОВКИ ТЕКСТА ЛЕГЕНДЫ --- */

/* 1. Перекрашивание квадратика легенды в зеленый */
div.dp_legend span.dp_highlight.requestplace.confirmed-available-by-js {
    background-color: #28a745 !important; 
}

/* 2. Скрываем оригинальный текст (например, "по запросу") */
.dp_legend .dp_caption.confirmed-available-by-js {
    visibility: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    position: relative; 
    padding: 0 !important; 
}

/* 3. Вставляем новый текст "в наличии" через псевдоэлемент ::after */
.dp_legend .dp_caption.confirmed-available-by-js::after {
    content: "в наличии"; /* <-- НОВЫЙ ТЕКСТ */
    
    /* Делаем новый текст видимым */
    visibility: visible !important;
    font-size: 11px !important; /* Верните нужный размер */
    line-height: initial !important; 
    
    /* Позиционируем его вместо старого текста */
    position: absolute;
    top: -1em;
    left: 0;
    white-space: nowrap; 
}
/******/

.samo_container .gds, .samo_container .even .gds, .samo_container .odd .gds {
    background-color: #b5ed27 !important;
}


:root {
    --main-panel-bgcolor: #ffffff; /*основная панель*/
    --table-header-bgcolor: #ED1C24; /*шапка результатов поиска*/
    --main-button-bgcolor: #ED1C24; /*кнопка Искать*/
    --main-button-color: #ffffff; /*текст кнопки Искать*/
    --inactive-button-bgcolor: #D5D5D5;
    --hover-button-bgcolor: #e94b4b; /*подсветка кнопки Искать*/
    --delete-button-bgcolor: #f98195;
    --form-legend-bgcolor: #e3e7ea;
    --form-legend-color: #366383;
    --link-active-color: #191919; /*все ссылки в частности Меню*/
    --link-hover-color: #e74141; /*наведение на ссылку*/
    --row-border-color: #385469; /*цвет рамки между строк чередования в поиске*/
    --row-even-bgcolor: #F6F9FB; /*цвет чередования в поиске Нечетный*/
    --row-odd-bgcolor: #e3e7ea; /*цвет чередования в поиске Четный*/
    --main-font-family: RobotoRegular, "sans serif"; /*шрифт для всего*/
    --menu-bgcolor: whitesmoke; /*фон меню*/
    --common-dropdown-menu-width: 220px;
    --lang-menu-width: 90px;
    --profile-menu-width: 300px;
    --item-active-background: #ffffff; /*цвет фона активного элемента меню*/
    --item-active-color: black; /*цвет текущего выбранного/загруженного элемента меню*/
    --info-bgcolor: #ffe8749e; /*фон уведомлялок и инфобаблов*/
}