/* =========================================================
   Жассо Тур — тема для модуля САМО-тур «Поиск тура»
   Подключать ПОСЛЕ стандартных стилей САМО.
   Фирменный зелёный взят из логотипа: #249B67
   ========================================================= */

/* Шрифт Manrope лежит на своём сервере в /jasso/fonts/ (без Google Fonts).
   Если онлайн установлен не в корень домена — поправьте путь /jasso/fonts/. */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/jasso/fonts/manrope-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/jasso/fonts/manrope-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/jasso/fonts/manrope-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/jasso/fonts/manrope-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/jasso/fonts/manrope-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/jasso/fonts/manrope-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/jasso/fonts/manrope-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/jasso/fonts/manrope-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/jasso/fonts/manrope-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('/jasso/fonts/manrope-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --j-green: #249B67;
  --j-green-dark: #1B7A51;
  --j-green-soft: #E8F5EE;
  --j-sand: #FFF8EC;
  --j-ink: #1F2A2E;
  --j-muted: #6B7A80;
  --j-line: #E3E8EA;
  --j-radius: 14px;
}

/* ---------- Общее ---------- */
body,
.samo_container,
.samo_container input,
.samo_container select,
.samo_container button,
.chosen-container,
.nav {
  font-family: 'Manrope', Arial, sans-serif !important;
  color: var(--j-ink);
}
body, .samo_container { background: #fff !important; }

/* ---------- Шапка ---------- */
#header { background: #fff; box-shadow: 0 1px 0 var(--j-line); }
#header .high-menu { padding: 10px 0 6px; }
#header img.logo { height: 56px; width: auto; }
.bottom-menu { background: #fff !important; border-top: 1px solid var(--j-line); }
.nav a, .nav a:visited { color: var(--j-ink) !important; font-weight: 600; }
.nav > ul > li > a:hover,
.nav > ul > li.selected > a { color: var(--j-green) !important; }
.nav ul ul { border-radius: 10px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.nav ul ul li, .nav ul ul a { background: #fff !important; }
.nav ul ul a:hover { background: var(--j-green-soft) !important; }
.nav .sign-in a {
  background: var(--j-green) !important; color: #fff !important;
  border-radius: 999px; padding: 6px 16px !important;
}

/* Скрываем плашку «устаревший браузер» */
.outdated-browser-alert-block { display: none !important; }

/* ---------- Карточки формы ---------- */
.samo_container .panel,
.samo_container table.panel {
  background: #fff !important;
  border: 1px solid var(--j-line) !important;
  border-radius: var(--j-radius) !important;
  box-shadow: 0 4px 18px rgba(31, 42, 46, .05) !important;
}
.samo_container .searchmodes a,
.samo_container .searchmodes div,
.samo_container .searchmodes li {
  background: transparent !important; border: 0 !important;
  font-size: 22px !important; font-weight: 800 !important; color: var(--j-ink) !important;
}

/* Подписи полей */
.samo_container td,
.samo_container label { font-size: 14px; }
.samo_container .panel td.left,
.samo_container .panel td.right { color: var(--j-muted); }

/* ---------- Поля ввода и выпадающие списки ---------- */
.samo_container input.frm-input,
.samo_container select,
.chosen-container-single .chosen-single {
  background: #fff !important; background-image: none !important;
  border: 1px solid #D5DDE0 !important; border-radius: 10px !important;
  box-shadow: none !important; height: 34px !important; line-height: 32px !important;
  padding: 0 10px !important;
}
.samo_container select { padding: 0 4px !important; min-width: 60px; }
.chosen-container-single .chosen-single div { top: 4px; }
.samo_container input.frm-input:focus,
.samo_container select:focus,
.chosen-container-active .chosen-single {
  border-color: var(--j-green) !important;
  box-shadow: 0 0 0 3px rgba(36,155,103,.15) !important; outline: none;
}
.chosen-drop { border-radius: 0 0 10px 10px; border-color: var(--j-green) !important; }
.chosen-results li.highlighted { background: var(--j-green) !important; background-image: none !important; }

/* Списки отелей / городов / питания */
.samo_container .hotels_container .checklistbox,
.samo_container .hotels_container div[class*="list"] {
  border: 1px solid var(--j-line) !important; border-radius: 10px !important; background: #fff !important;
}
.samo_container .hotels_container label:hover { color: var(--j-green-dark); }

/* Чекбоксы */
.samo_container input[type="checkbox"] { accent-color: var(--j-green); width: 16px; height: 16px; }

/* ---------- Кнопка «Искать» ---------- */
.samo_container button.load {
  background: var(--j-green) !important; background-image: none !important;
  border: 0 !important; border-radius: 999px !important;
  color: #fff !important; font-weight: 700 !important; font-size: 16px !important;
  padding: 12px 36px !important; height: auto !important;
  box-shadow: 0 6px 16px rgba(36,155,103,.3) !important;
  transition: transform .15s, background .15s;
}
.samo_container button.load:hover { background: var(--j-green-dark) !important; transform: translateY(-1px); }

/* ---------- Таблица результатов ---------- */
.samo_container table.res th,
.samo_container th {
  background: var(--j-green) !important; color: #fff !important;
  font-weight: 600; border-color: var(--j-green-dark) !important;
}
.samo_container table.res tr:nth-child(even) td { background: #FAFCFB; }
.samo_container table.res tr:hover td { background: var(--j-green-soft) !important; }
.samo_container .price, .samo_container td.price { font-weight: 800; color: var(--j-ink); }
.samo_container .hotelInfo, .samo_container span.best_price_img { background: var(--j-sand) !important; }

/* Календарь */
.Zebra_DatePicker { border-radius: 12px !important; border-color: var(--j-line) !important; overflow: hidden; }
.Zebra_DatePicker td.dp_selected,
.Zebra_DatePicker td.dp_hover { background: var(--j-green) !important; color: #fff !important; }

/* Футер */
.samosoft, .samosoft a { color: var(--j-muted) !important; font-size: 12px; }

/* Вложенные блоки — без второй рамки и без обрезки */
.samo_container .panel .panel,
.samo_container .panel table.panel {
  border: 0 !important; box-shadow: none !important; overflow: visible !important; height: auto !important;
}
.samo_container .searchmodes, .samo_container .searchmodes * { box-shadow: none !important; }
/* Скругление таблиц-панелей */
.samo_container table.panel { border-collapse: separate !important; border-spacing: 0; }
/* Блок фильтров-чекбоксов — без рамки и с автоматической высотой */
.samo_container .filters-panel .checklistbox { height: auto !important; border: 0 !important; overflow: visible !important; }
/* Узкие выпадающие списки (валюта, взрослые, дети) */
.chosen-container-single .chosen-single { padding: 0 6px 0 10px !important; }
.chosen-container-single .chosen-single span { margin-right: 18px !important; text-overflow: clip; }
/* ================= Таблица результатов ================= */
#search_tour table.res { border-collapse: separate !important; border-spacing: 0 !important; }
#search_tour table.res td {
  padding: 11px 6px !important; vertical-align: middle !important;
  border-bottom: 1px solid #DCE3E6 !important; line-height: 1.35;
}
#search_tour table.res tr:nth-child(even) td { background: #fff !important; }
#search_tour table.res tr:nth-child(odd) td  { background: #F4F8F6 !important; }
#search_tour table.res tr:hover td { background: var(--j-green-soft) !important; }

/* Дата и время — мельче и серее, чтобы не спорили с отелем */
#search_tour td.sortie, #search_tour td.tour { font-size: 13px; color: var(--j-muted); }
#search_tour td.sortie .helpalt { color: var(--j-ink); font-weight: 600; }

/* Отель — главный акцент строки */
#search_tour td.link-hotel { font-weight: 700; font-size: 14px; color: var(--j-ink); }
#search_tour td.link-hotel a { color: var(--j-green-dark) !important; }

/* Номер / размещение — второстепенно */
#search_tour td.link-hotel ~ td span:not([class]),
#search_tour td.link-hotel ~ td span[class=""] { font-size: 13px; color: #4A585D; }

/* Цена — одинаковая ширина, по центру, ровные цифры */
#search_tour td.td_price { text-align: center !important; white-space: nowrap; }
#search_tour td.td_price .price_button {
  display: inline-block !important; box-sizing: border-box;
  min-width: 118px; padding: 8px 10px !important; margin: 0 !important;
  text-align: center !important;
  background: var(--j-green) !important; background-image: none !important;
  border: 0 !important; border-radius: 10px !important;
  color: #fff !important; font-weight: 800 !important; font-size: 15px !important;
  font-variant-numeric: tabular-nums; letter-spacing: .2px; cursor: pointer;
}
#search_tour td.td_price .price_button:hover { background: var(--j-green-dark) !important; }
#search_tour td.link-hotel { min-width: 190px; }
#search_tour td.link-hotel + td + td + td { min-width: 210px; }
#search_tour table.res th { text-align: left; padding: 10px 8px !important; }

/* ================= Форма поиска: воздух и группы ================= */
#search_tour .std.container { padding-bottom: 10px; }

/* Расстояние между карточками */
#search_tour table.direction.panel { margin-bottom: 28px !important; }
#search_tour table.user_info { margin-bottom: 18px !important; border-collapse: separate; }
#search_tour table.user_info td.empty { width: 24px !important; }

/* Заголовки групп */
#search_tour table.direction > tbody > tr > td::before,
#search_tour table.user_info td.col::before {
  display: block; margin: 0 0 10px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--j-green-dark);
}
#search_tour table.direction > tbody > tr > td:first-child::before { content: "Направление"; margin-top: 6px; }
#search_tour table.direction > tbody > tr > td:last-child::before  { content: "\00a0"; margin-top: 6px; }
#search_tour table.user_info td.col:first-child::before { content: "Даты и ночи"; }
#search_tour table.user_info td.col:last-child::before  { content: "Туристы и бюджет"; }

/* Внутренние отступы карточек */
#search_tour table.direction.panel > tbody > tr > td { padding: 12px 16px !important; }
#search_tour table.user_info table.panel td { padding: 7px 8px !important; }
#search_tour table.user_info table.panel { padding: 8px 6px; }

/* Подписи полей — спокойнее, чтобы не сливались со значениями */
#search_tour .panel td.left, #search_tour .panel td.right,
#search_tour .panel td { color: var(--j-muted); font-size: 13px; }
#search_tour .panel td .chosen-single span,
#search_tour .panel input.frm-input { color: var(--j-ink); font-size: 14px; font-weight: 600; }

/* Блок «город / категория / гостиница / питание» — четыре отдельные колонки */
#search_tour table.hotels_container > tbody > tr.HOTELSCONTAINER > td { padding: 16px 10px 10px !important; }
#search_tour table.hotels_container div.header {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--j-green-dark); padding-bottom: 8px; height: auto !important;
}
#search_tour table.hotels_container div.header label { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--j-muted); }
#search_tour .checklistbox label { display: block; padding: 5px 4px; border-radius: 6px; line-height: 1.3; }
#search_tour .checklistbox label:hover { background: var(--j-green-soft); }
#search_tour .checklistbox.TOWNS, #search_tour .checklistbox.STARS,
#search_tour .checklistbox.HOTELS, #search_tour .checklistbox.MEALS { padding: 6px !important; }

/* Галочки-фильтры — отдельной светлой полосой */
#search_tour tr.filters-panel > td { padding: 6px 10px !important; }
#search_tour tr.filters-panel .checklistbox {
  background: var(--j-green-soft) !important; border-radius: 12px !important; padding: 10px 14px !important;
}
#search_tour tr.filters-panel label { padding: 3px 0; color: var(--j-ink); }

/* Низ формы: кнопка отдельно */
#search_tour td.footer { padding: 14px 10px 16px !important; }
#search_tour .information-ear { border-top: 1px solid var(--j-line) !important; padding-top: 6px; color: var(--j-muted); }
#search_tour .information-ear hr { display: none; }
#search_tour table.hotels_container tr.filters-panel.no-ufilter .checklistbox {
  height: auto !important; overflow: hidden !important; display: flow-root;
}
#search_tour table.hotels_container tr.filters-panel.no-ufilter .checklistbox label { padding: 4px 0; }
#search_tour .checklistbox.HOTELS label, #search_tour .checklistbox.TOWNS label,
#search_tour .checklistbox.STARS label, #search_tour .checklistbox.MEALS label { padding: 3px 4px; }

/* Город / Категория / Гостиница / Питание — отдельные карточки с промежутками */
#search_tour table.hotels_container.panel { border-collapse: separate !important; border-spacing: 16px 0 !important; padding: 8px 0 0; }
#search_tour table.hotels_container > tbody > tr.HOTELSCONTAINER > td {
  background: #F4F8F6 !important; border-radius: 12px; padding: 14px 14px 14px !important;
}
#search_tour table.hotels_container > tbody > tr > td:not([class*="control_"]) { padding-left: 0 !important; padding-right: 0 !important; }
#search_tour table.hotels_container div.header { padding-bottom: 10px; margin-bottom: 4px; }
#search_tour table.hotels_container div.header label { font-size: 13px; }
#search_tour table.hotels_container .checklistbox.TOWNS,
#search_tour table.hotels_container .checklistbox.STARS,
#search_tour table.hotels_container .checklistbox.HOTELS,
#search_tour table.hotels_container .checklistbox.MEALS {
  width: 100% !important; float: none !important; display: block !important; clear: both; box-sizing: border-box; background: #fff !important; border-color: #E1E8E5 !important;
}
#search_tour tr.filters-panel > td { padding-top: 16px !important; }
#search_tour table.hotels_container div.header input[type="text"] {
  border: 1px solid #D5DDE0 !important; border-radius: 8px !important; background: #fff !important; height: 26px; padding: 0 8px;
}
#search_tour table.hotels_container .checklistbox label { padding: 2px 4px !important; }
#search_tour table.hotels_container div.header input.hotelsearch, #search_tour .hotelsearch input { border-color: #D5DDE0 !important; box-shadow: none !important; }

/* Иконка календаря — по центру поля, у правого края */
#search_tour .Zebra_DatePicker_Icon_Wrapper { position: relative !important; display: inline-block !important; }
#search_tour button.Zebra_DatePicker_Icon.Zebra_DatePicker_Icon_Inside {
  top: 50% !important; left: auto !important; right: 10px !important;
  transform: translateY(-50%); margin: 0 !important;
}
#search_tour input.frm-input.date { padding-right: 34px !important; box-sizing: border-box; width: 130px !important; }

/* Корзина перед ценой */
#search_tour td.td_price .price_button::before {
  content: "\f07a"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
  font-weight: 900; font-size: 13px; margin-right: 8px; display: inline-block; vertical-align: 0;
}
#search_tour td.td_price .price_button { min-width: 140px; }

/* ================= Остальные вкладки ================= */
/* Вкладки-переключатели (Остановки продаж / Места на рейсах, Новый пользователь / Новое агентство) */
.samo_container .searchmodes { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.samo_container .searchmodes .searchmode_not_selected,
.samo_container .searchmodes .searchmode_not_selected a {
  font-size: 15px !important; font-weight: 600 !important; color: var(--j-muted) !important; text-decoration: none;
}
.samo_container .searchmodes .searchmode_not_selected {
  background: #F1F4F3 !important; border-radius: 999px !important; padding: 8px 16px !important;
}
.samo_container .searchmodes .searchmode_not_selected:hover,
.samo_container .searchmodes .searchmode_not_selected:hover a { background: var(--j-green-soft) !important; color: var(--j-green-dark) !important; }
.samo_container .searchmodes .searchmode_selected { padding: 0 8px 0 0 !important; }

/* Заголовки разделов в анкетах */
.legend-tag, span.legend { color: var(--j-green-dark) !important; font-weight: 700 !important; font-family: 'Manrope', Arial, sans-serif !important; }
fieldset.panel { border-radius: var(--j-radius) !important; }

/* Все кнопки системы — фирменные */
.samo_container button.button, .samo_container input.button_registration,
.samo_container input[type="submit"], .samo_container input[type="button"],
#loginbox button, .samo_container .captcha-update {
  background: var(--j-green) !important; background-image: none !important; border: 0 !important;
  border-radius: 999px !important; color: #fff !important; font-weight: 700 !important;
  font-family: 'Manrope', Arial, sans-serif !important; cursor: pointer;
}
.samo_container .captcha-update { border-radius: 10px !important; }
.samo_container button.button:hover, .samo_container input.button_registration:hover,
#loginbox button:hover { background: var(--j-green-dark) !important; }

/* Блок с капчей */
.samo_container .captcha-self { border-radius: 8px; }
.samo_container div:has(> img.captcha-self), .samo_container div:has(> .captcha-self) {
  background: var(--j-green-soft) !important;
}
.samo_container form div:has(.captcha-input) { background: var(--j-green-soft) !important; border-radius: 14px; padding: 12px !important; }

/* Окно входа */
#loginbox, #loginbox input, #loginbox label, #loginbox a, #loginbox button, #loginbox .legend, .logon-wrapper .header { font-family: 'Manrope', Arial, sans-serif !important; }
#loginbox .legend, #loginbox span.legend { color: var(--j-ink) !important; font-size: 22px !important; font-weight: 800 !important; }
#loginbox a { color: var(--j-green-dark) !important; }
#loginbox input[type="text"], #loginbox input[type="password"] {
  border: 1px solid #D5DDE0 !important; border-radius: 10px !important; outline: none !important;
}
#loginbox input[type="text"]:focus, #loginbox input[type="password"]:focus {
  border-color: var(--j-green) !important; box-shadow: 0 0 0 3px rgba(36,155,103,.15) !important;
}

/* Вкладки — компактные и на одной линии */
.samo_container .searchmodes { align-items: center !important; }
.samo_container .searchmodes .searchmode { height: auto !important; line-height: 1.3 !important; float: none !important; }
.samo_container .searchmodes .searchmode_not_selected { padding: 0 !important; background: transparent !important; }
.samo_container .searchmodes .searchmode_not_selected a {
  display: inline-block; padding: 7px 16px !important; border-radius: 999px; background: #F1F4F3 !important;
}
.samo_container .searchmodes .searchmode_not_selected:hover { background: transparent !important; }
.samo_container .searchmodes .searchmode_not_selected a:hover { background: var(--j-green-soft) !important; }
/* Кнопка регистрации — текст не зажат */
.samo_container input.button_registration { width: auto !important; padding: 10px 22px !important; height: auto !important; }
.samo_container input.button_registration { width: 100% !important; padding: 10px 6px !important; font-size: 13px !important; box-sizing: border-box; }

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (телефоны до 760px)
   Работает при наличии в шапке строки
   <meta name="viewport" content="width=device-width, initial-scale=1">
   ========================================================= */
@media (max-width: 760px) {
  html, body { overflow-x: hidden; }
  body { font-size: 15px; }
  .samo_container, .samo_container .std.container, #search_tour, #search_tour .std.container,
  #header, #header .high-menu, .bottom-menu {
    width: auto !important; min-width: 0 !important; max-width: 100% !important; box-sizing: border-box;
  }
  .samo_container .std.container, #search_tour .std.container { padding: 0 12px !important; margin: 0 !important; }
  #header .high-menu { padding: 8px 12px 4px; }
  #header img.logo { height: 44px; }

  /* Все таблицы формы — в колонку */
  #search_tour table.direction, #search_tour table.user_info, #search_tour table.hotels_container,
  #search_tour table.direction > tbody, #search_tour table.user_info > tbody, #search_tour table.hotels_container > tbody,
  #search_tour table.direction > tbody > tr, #search_tour table.user_info > tbody > tr,
  #search_tour table.hotels_container > tbody > tr,
  #search_tour table.direction > tbody > tr > td, #search_tour table.user_info > tbody > tr > td,
  #search_tour table.hotels_container > tbody > tr > td {
    display: block !important; width: 100% !important; box-sizing: border-box;
  }
  #search_tour table.hotels_container.panel { border-spacing: 0 !important; padding: 10px !important; }
  #search_tour table.user_info td.empty { display: none !important; }
  #search_tour table.user_info td.col { margin-bottom: 14px; }
  #search_tour table.direction > tbody > tr > td:last-child::before { display: none; }
  #search_tour table.direction.panel { margin-bottom: 16px !important; }

  /* Строки «подпись — поле» парами */
  #search_tour table.width100p, #search_tour table.width100p > tbody,
  #search_tour table.user_info table.panel, #search_tour table.user_info table.panel > tbody { display: block; width: 100% !important; }
  #search_tour table.width100p > tbody > tr,
  #search_tour table.user_info table.panel > tbody > tr {
    display: grid !important; grid-template-columns: 34% 66%; align-items: center; row-gap: 8px;
  }
  #search_tour table.width100p td, #search_tour table.user_info table.panel td {
    display: block !important; width: auto !important; padding: 4px 4px !important; text-align: left !important;
  }
  #search_tour table.width100p td:empty { display: none !important; }
  #search_tour table.direction.panel > tbody > tr > td { padding: 6px 12px !important; }
  #search_tour .panel select, #search_tour .panel input.frm-input,
  #search_tour .chosen-container { width: 100% !important; max-width: 100% !important; font-size: 16px !important; }
  #search_tour input.frm-input.date { width: 100% !important; }

  /* Город / категория / гостиница / питание — друг под другом */
  #search_tour table.hotels_container > tbody > tr.HOTELSCONTAINER > td { margin-bottom: 10px; }
  #search_tour .checklistbox.TOWNS, #search_tour .checklistbox.MEALS { height: 64px !important; }
  #search_tour .checklistbox.STARS { height: 64px !important; }
  #search_tour .checklistbox.HOTELS { height: 220px !important; }
  #search_tour td.control_hotels div.header input[type="text"] { width: 100% !important; margin: 6px 0; display: block; }
  #search_tour table.hotels_container div.header { white-space: normal; }
  #search_tour .checklistbox label { padding: 6px 4px !important; font-size: 15px; }
  #search_tour tr.filters-panel.no-ufilter .checklistbox label { min-width: 100% !important; float: none !important; display: block; }

  /* Кнопка «Искать» на всю ширину */
  #search_tour td.footer { display: flex !important; flex-direction: column-reverse; gap: 10px; }
  #search_tour button.load { width: 100% !important; float: none !important; padding: 14px !important; font-size: 17px !important; }

  /* ===== Результаты — карточками ===== */
  #search_tour .resultset { padding: 0 12px; box-sizing: border-box; }
  #search_tour table.res, #search_tour table.res > tbody, #search_tour table.res > thead {
    display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; overflow: visible !important;
  }
  /* строка заголовков: :has() — для новых браузеров, .j-head ставит скрипт — для старых */
  #search_tour table.res tr:has(> th), #search_tour table.res tr.j-head { display: none !important; }
  #search_tour table.res tr.price_info {
    display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; width: 100% !important; box-sizing: border-box;
    background: #fff !important; border: 1px solid var(--j-line); border-radius: 16px;
    padding: 14px; margin: 0 0 12px; box-shadow: 0 2px 10px rgba(0,0,0,.04);
  }
  #search_tour table.res tr.price_info > td {
    display: block !important; border: 0 !important; padding: 0 !important; background: transparent !important;
    min-width: 0 !important; width: auto !important; text-align: left !important;
    white-space: normal !important; overflow-wrap: anywhere;
  }
  #search_tour td.td_price .price_button { width: 100% !important; min-width: 0 !important; padding: 13px !important; font-size: 17px !important; }

  /* --- A. Основная раскладка: по названиям столбцов (классы j-c-* ставит /jasso/jasso-samo.js).
         Не зависит от порядка и количества столбцов. --- */
  #search_tour table.res.j-mapped tr.price_info > td { display: none !important; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-hotel { display: block !important; grid-column: 1 / -1; grid-row: 1; font-size: 16px; margin-bottom: 6px; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-date { display: block !important; grid-column: 1; grid-row: 2; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-nights { display: block !important; grid-column: 2; grid-row: 2; font-weight: 700; font-size: 15px; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-meal { display: block !important; grid-column: 3; grid-row: 2; font-weight: 700; font-size: 15px; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-room { display: block !important; grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-seats { display: block !important; grid-column: 1; grid-row: 4; margin-top: 6px; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-transport { display: block !important; grid-column: 2 / -1; grid-row: 4; margin-top: 6px; text-align: right !important; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-price { display: block !important; grid-column: 1 / -1; grid-row: 5; margin-top: 10px; }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-nights::before { content: "ночей"; display: block; font-size: 12px; font-weight: 400; color: var(--j-muted); }
  #search_tour table.res.j-mapped tr.price_info > td.j-c-meal::before { content: "питание"; display: block; font-size: 12px; font-weight: 400; color: var(--j-muted); }

  /* --- B. Запасная раскладка: по номерам столбцов (если скрипт не подключён
         или не распознал шапку). Рассчитана на нынешний набор столбцов САМО. --- */
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(1),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(3),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(9),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(10),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(12),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(13),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(14) { display: none !important; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td.link-hotel { grid-column: 1 / -1; grid-row: 1; font-size: 16px; margin-bottom: 6px; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td.sortie { grid-column: 1; grid-row: 2; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(4) { grid-column: 2; grid-row: 2; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(7) { grid-column: 3; grid-row: 2; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(4)::before { content: "ночей"; display: block; font-size: 12px; color: var(--j-muted); }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(7)::before { content: "питание"; display: block; font-size: 12px; color: var(--j-muted); }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(4),
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(7) { font-weight: 700; font-size: 15px; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(8) { grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td:nth-child(6) { grid-column: 1; grid-row: 4; margin-top: 6px; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td.transport { grid-column: 2 / -1; grid-row: 4; margin-top: 6px; text-align: right !important; }
  #search_tour table.res:not(.j-mapped) tr.price_info > td.td_price { grid-column: 1 / -1; grid-row: 5; margin-top: 10px; }

  /* ===== Остальные страницы ===== */
  .samo_container table.panel, .samo_container fieldset.panel { width: 100% !important; box-sizing: border-box; }
  .samo_container .searchmodes { flex-wrap: wrap; }
  .samo_container .searchmodes .searchmode_selected { font-size: 20px !important; }
  #loginbox { width: 100% !important; max-width: 360px; box-sizing: border-box; }
}

@media (max-width: 760px) {
  #search_tour table.hotels_container > tbody > tr.HOTELSCONTAINER > td[class^="control_"],
  #search_tour td.control_townto, #search_tour td.control_stars, #search_tour td.control_hotels, #search_tour td.control_meal {
    width: 100% !important; max-width: none !important; min-width: 0 !important; float: none !important;
  }
  #search_tour table.hotels_container div.header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
  #search_tour table.hotels_container div.header label { float: none !important; margin: 0 !important; }
  #search_tour table.user_info input.frm-input, #search_tour table.user_info select { width: 100% !important; }
}
@media (max-width: 760px) {
  /* Мобильное меню САМО */
  .mobile-menu-container { padding: 0 6px 0 14px; box-sizing: border-box; }
  .mobile-menu-container img.logo { height: 44px !important; width: auto; margin-top: 6px; }
  .menu-open-button { transform: scale(.42); transform-origin: right center; }
  .menu-open-button .hamburger { border-radius: 8px; background: var(--j-ink) !important; }
  .mobile-menu-container, .mobile-menu-container a, .mobile-menu-container li { font-family: 'Manrope', Arial, sans-serif !important; }
  .mobile-menu-container a { color: var(--j-ink) !important; font-weight: 600; }
  .mobile-menu-container .login-action, .mobile-menu-container .sign-in a {
    background: var(--j-green) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important; padding: 8px 18px !important;
  }
  #search_tour .panel select { box-sizing: border-box; }
}
@media (max-width: 760px) {
  #header .logo, .mobile-menu-container .logo { padding-left: 12px; }
  #search_tour .panel select { max-width: calc(100% - 6px) !important; }
}
/* Остальные страницы: формы в одну колонку */
@media (max-width: 760px) {
  .samo_container:not(.search_tour) .std.container, .samo_container:not(.search_tour) > div { width: auto !important; min-width: 0 !important; padding-left: 12px !important; padding-right: 12px !important; box-sizing: border-box; }
  .samo_container:not(.search_tour) .panel table, .samo_container:not(.search_tour) table.panel,
  .samo_container:not(.search_tour) .panel tbody, .samo_container:not(.search_tour) table.panel > tbody,
  .samo_container:not(.search_tour) .panel tr, .samo_container:not(.search_tour) table.panel > tbody > tr,
  .samo_container:not(.search_tour) .panel td, .samo_container:not(.search_tour) table.panel > tbody > tr > td,
  .samo_container:not(.search_tour) fieldset.panel, .samo_container:not(.search_tour) fieldset.panel > div {
    display: block !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important;
    box-sizing: border-box; text-align: left !important; float: none !important;
  }
  .samo_container:not(.search_tour) .panel td { padding: 3px 10px !important; }
  .samo_container:not(.search_tour) .panel td:empty { display: none !important; }
  .samo_container:not(.search_tour) .panel input[type="text"], .samo_container:not(.search_tour) .panel input[type="email"],
  .samo_container:not(.search_tour) .panel input[type="password"], .samo_container:not(.search_tour) .panel select,
  .samo_container:not(.search_tour) .panel textarea, .samo_container:not(.search_tour) .chosen-container {
    width: 100% !important; max-width: 100% !important; box-sizing: border-box; font-size: 16px !important;
  }
  .samo_container:not(.search_tour) button.load, .samo_container:not(.search_tour) input.button_registration { width: 100% !important; float: none !important; margin: 12px 0 !important; padding: 14px !important; }
  .samo_container:not(.search_tour) label, .samo_container:not(.search_tour) .panel td { white-space: normal !important; }
  .samo_container .searchmodes .searchmode_selected { font-size: 19px !important; }
}
@media (max-width: 760px) {
  .samo_container .container, .samo_container .controls { width: auto !important; max-width: 100% !important; box-sizing: border-box; }
}

/* v2.1: на телефоне САМО кладёт системный select поверх списка — делаем его прозрачным (иначе двойные поля);
   строка «детей/возраст»: возрасты во всю ширину сразу под ней, цена «до» ниже */
@media (max-width: 760px) {
  #search_tour select.custom-chosen-hidden-select { opacity: 0 !important; }
  #search_tour table.user_info table.panel td.child_ages_container { grid-column: 1 / -1; order: 5; padding: 2px 4px 6px !important; }
  #search_tour table.user_info table.panel tr:has(td.child_ages_container) td.from,
  #search_tour table.user_info table.panel tr:has(td.child_ages_container) td.count { order: 6; }
  #search_tour table.user_info .child_ages { display: flex !important; gap: 8px; width: 100% !important; }
  #search_tour table.user_info .child_ages select.age { flex: 1 1 0 !important; min-width: 0 !important; max-width: none !important; width: auto !important; }
}
/* v3: ??????? ???? ???????? (????? ?????? ????) ?? ???????? ????? */
@media (max-width: 760px) {
  #search_tour table.user_info .child_ages select.age:not([style*="visible"]) { display: none !important; }
  #search_tour table.user_info table.panel td.child_ages_container:not(:has(select.age[style*="visible"])) { display: none !important; }
}

/* v4: ???????? ? ??????? ?? ???????? ????? ???????: ????????, ?????/??????? (+????????), ???? (??????), ???? ??, ???? ?? */
@media (max-width: 760px) {
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody { display: grid !important; grid-template-columns: 34% 66%; align-items: center; row-gap: 8px; width: 100% !important; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr { display: contents !important; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(1) > td.description3 { order: 1; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(1) > td.tourists { order: 2; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(2) > td.description3 { order: 3; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(2) > td.tourists { order: 4; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(2) > td.child_ages_container { order: 5; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(1) > td.description4 { order: 6; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(1) > td.cost { order: 7; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(1) > td.from { order: 8; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(1) > td.count { order: 9; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(2) > td.from { order: 10; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel > tbody > tr:nth-child(2) > td.count { order: 11; }
  #search_tour table.user_info > tbody > tr > td.col:last-child table.panel td.from::before { content: "\0446\0435\043D\0430\00A0"; }
}
