/**
 * Anex Tour — прототип пошуку (референс-дизайн, desktop)
 * Тексти UA · id полів як у hotel-catalog.php
 */

:root {
  --anex-red: #f31624;
  --anex-red-hover: #de0f1c;
  --anex-text: #1a2233;
  --anex-label: #8b95a8;
  --anex-line: #e8ecf2;
  --anex-panel-active: #1a5dc8;
  --anex-range: #c8e6c9;
  --anex-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bar-radius: 14px;
  --bar-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--anex-font);
  color: var(--anex-text);
}

/* Hero як на сайті */
.proto-hero {
  min-height: 100vh;
  padding: 40px 0 80px;
  background:
    linear-gradient(180deg, rgba(0, 30, 80, 0.35) 0%, rgba(0, 48, 135, 0.5) 100%),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1600&q=80") center / cover no-repeat;
}

.proto-page {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.proto-note {
  margin: 0 0 24px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.proto-note code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
}

/* ——— Без білої картки навколо ——— */
.hero-search-card--catalog {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.hero-catalog-form,
#popular-search-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.anex-catalog-search-widget.anex-search-v2 .hero-catalog-form,
.anex-catalog-search-widget.anex-search-v2 #popular-search-form {
  max-width: 100%;
}

/* ——— Таби (pill, референс) ——— */
.anex-search-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 210;
}

.anex-search-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: #fff;
  color: var(--anex-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.anex-tab-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.anex-search-mode-btn:hover {
  border-color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.anex-search-mode-btn.is-active {
  border: 2px solid var(--anex-red);
  color: var(--anex-red);
  padding: 9px 17px;
}

.anex-search-mode-btn.is-active .anex-tab-icon {
  color: var(--anex-red);
}

/* ——— Головна панель пошуку ——— */
.anex-search-bar {
  display: flex;
  align-items: stretch;
  min-height: var(--bar-height);
  background: #fff;
  border-radius: var(--bar-radius);
  box-shadow: 0 12px 40px rgba(7, 19, 42, 0.18);
  overflow: hidden;
}

.anex-search-segment {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--anex-line);
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease;
}

.anex-search-segment:hover,
.anex-search-segment.is-open {
  background: #f8fafc;
}

.anex-search-segment--chevron {
  padding-right: 36px;
}

.anex-segment-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--anex-label);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.anex-segment-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--anex-text);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.anex-segment-value.is-placeholder {
  font-weight: 600;
  color: #9aa3b5;
}

.anex-segment-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: #9aa3b5;
  pointer-events: none;
}

.anex-search-segment.is-open .anex-segment-chevron {
  transform: translateY(-50%) rotate(180deg);
}

/* Поле з вводом (країна / курорт / готель) */
.anex-search-segment--editable {
  cursor: text;
  padding-top: 10px;
  padding-bottom: 10px;
}

.anex-search-segment--editable.is-open,
.anex-search-segment--editable:focus-within {
  background: #f8fafc;
}

.anex-segment-input {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--anex-text);
  outline: none;
}

.anex-segment-input::placeholder {
  color: #9aa3b5;
  font-weight: 600;
}

/* Пікер напрямку: 2 колонки + пошук */
.anex-panel--destination {
  padding: 0;
  overflow: hidden;
}

.anex-dest-picker {
  display: block;
}

.anex-dest-browse {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  min-height: 300px;
  max-height: min(400px, 58vh);
}

.anex-dest-col--countries {
  border-right: 1px solid var(--anex-line);
  overflow: auto;
  background: #fafbfd;
}

.anex-dest-col--regions {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.anex-dest-countries {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}

.anex-dest-country {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--anex-text);
  text-align: left;
  cursor: pointer;
}

.anex-dest-country:hover,
.anex-dest-country:focus-visible {
  background: #eef2f8;
  outline: none;
}

.anex-dest-country.is-active {
  background: #e8eef8;
}

.anex-dest-country-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.anex-dest-country-name {
  flex: 1;
  min-width: 0;
}

.anex-dest-country-chevron {
  color: #9aa3b5;
  font-size: 16px;
  font-weight: 700;
}

.anex-dest-regions {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 0 4px;
}

.anex-dest-regions-empty {
  margin: 0;
  padding: 20px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--anex-label);
  line-height: 1.45;
}

.anex-dest-regions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.anex-dest-region-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--anex-text);
  text-align: left;
  cursor: pointer;
}

.anex-dest-region-row:hover,
.anex-dest-region-row:focus-visible {
  background: #f3f6fb;
  outline: none;
}

.anex-dest-region-row--child {
  padding-left: 28px;
  font-weight: 600;
}

.anex-dest-region-head {
  display: flex;
  align-items: stretch;
}

.anex-dest-region-head .anex-dest-region-row {
  flex: 1;
  min-width: 0;
}

.anex-dest-region-toggle {
  flex: 0 0 40px;
  border: 0;
  border-left: 1px solid #edf1f8;
  background: transparent;
  color: #6b7792;
  font-size: 14px;
  cursor: pointer;
}

.anex-dest-region-toggle:hover {
  background: #f3f6fb;
}

.anex-dest-region-children {
  display: none;
  border-top: 1px solid #f0f3f8;
}

.anex-dest-region-group.is-open .anex-dest-region-children {
  display: block;
}

.anex-dest-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 2px solid #d2d8e4;
  border-radius: 6px;
  background: #fff;
  position: relative;
}

.anex-dest-check.is-on {
  border-color: var(--anex-red);
  background: var(--anex-red);
}

.anex-dest-check.is-on::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.anex-dest-apply {
  flex-shrink: 0;
  margin: 0;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--anex-line);
  background: var(--anex-red);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.anex-dest-apply:hover {
  background: var(--anex-red-hover);
}

.anex-dest-apply--desktop {
  display: block;
}

/* Режим пошуку (≥3 символів) */
.anex-dest-search-list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: min(360px, 55vh);
  overflow: auto;
}

.anex-dest-empty {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--anex-label);
  line-height: 1.45;
}

.anex-dest-item {
  width: 100%;
  border: 0;
  background: #fff;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf1f8;
  color: var(--anex-text);
}

.anex-dest-item:hover,
.anex-dest-item:focus-visible {
  background: #f3f6fb;
  outline: none;
}

.anex-dest-item--hotel {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
}

.anex-dest-icon {
  width: 20px;
  height: 20px;
  color: #6b7792;
}

.anex-dest-body {
  min-width: 0;
}

.anex-dest-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.anex-dest-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--anex-label);
  white-space: nowrap;
}

.anex-dest-sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--anex-label);
}

.anex-dest-flag {
  font-size: 20px;
}

/* Пляжні тури: без «Звідки» (4 поля + кнопка) */
.anex-search-bar.is-mode-sea .anex-search-segment--excursion-only {
  display: none !important;
}

.anex-search-bar.is-mode-sea .anex-search-segment--country { flex: 1.45; }
.anex-search-bar.is-mode-sea .anex-search-segment--dates { flex: 1; }
.anex-search-bar.is-mode-sea .anex-search-segment--nights { flex: 0.85; }
.anex-search-bar.is-mode-sea .anex-search-segment--guests { flex: 0.8; }

/* Екскурсійні: з вильотом з України */
.anex-search-bar.is-mode-excursion .anex-search-segment--excursion-only {
  display: flex;
}

.anex-search-bar.is-mode-excursion .anex-search-segment--excursion-only { flex: 1; }
.anex-search-bar.is-mode-excursion .anex-search-segment--country { flex: 1.25; }
.anex-search-bar.is-mode-excursion .anex-search-segment--dates { flex: 0.95; }
.anex-search-bar.is-mode-excursion .anex-search-segment--nights { flex: 0.8; }
.anex-search-bar.is-mode-excursion .anex-search-segment--guests { flex: 0.75; }

.ps-submit {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  margin: 0;
  padding: 0 28px;
  border: 0;
  border-radius: 0 var(--bar-radius) var(--bar-radius) 0;
  background: var(--anex-red);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.18s ease, filter 0.18s ease;
}

.ps-submit:hover {
  background: var(--anex-red-hover);
  filter: brightness(1.03);
}

/* Приховані поля */
.ps-hidden-fields {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ——— Dropdown / panels ——— */
.anex-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;
}

.anex-panel-backdrop[hidden] {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.anex-panel[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.anex-panel {
  position: fixed;
  z-index: 200;
  max-height: min(420px, 70vh);
  overflow: auto;
  padding: 8px 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.2);
  border: 1px solid var(--anex-line);
}

.anex-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.anex-panel-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--anex-text);
  text-align: left;
  cursor: pointer;
}

.anex-panel-list button:hover {
  background: #f3f6fb;
}

.anex-panel-list button.is-active {
  background: var(--anex-panel-active);
  color: #fff;
}

.anex-flag {
  font-size: 20px;
  line-height: 1;
}

.anex-panel-hint,
.anex-panel-title,
.anex-panel-sub {
  margin: 0;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--anex-label);
}

.anex-panel-title {
  font-weight: 700;
  color: var(--anex-text);
}

/* Два календарі (дати виїзду) */
.anex-panel--dates {
  width: min(640px, calc(100vw - 32px));
  padding: 16px 12px 18px;
}

.anex-cal {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: start;
  gap: 4px;
}

.anex-cal-arrow {
  margin-top: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9aa3b5;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.anex-cal-arrow:hover {
  background: #eef2f8;
  color: var(--anex-text);
}

.anex-cal-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
}

.anex-cal-month-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--anex-text);
  text-align: center;
}

.anex-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.anex-cal-weekdays span {
  font-size: 10px;
  font-weight: 700;
  color: var(--anex-label);
  text-align: center;
  padding: 4px 0;
}

.anex-cal-weekdays span.is-weekend {
  color: #e85d5d;
}

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

.anex-cal-day {
  aspect-ratio: 1;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--anex-text);
  cursor: pointer;
}

.anex-cal-day:hover:not(:disabled) {
  background: #eef2f8;
}

.anex-cal-day:disabled {
  color: #d0d5df;
  cursor: default;
}

.anex-cal-day.is-other-month {
  visibility: hidden;
  pointer-events: none;
}

.anex-cal-day.in-range {
  border-radius: 0;
  background: var(--anex-range);
}

.anex-cal-day.range-start,
.anex-cal-day.range-end {
  border-radius: 50%;
  background: var(--anex-panel-active);
  color: #fff;
}

.anex-cal-day.in-range:not(.range-start):not(.range-end) {
  border-radius: 0;
}

/* Сітка ночей (референс) */
.anex-panel--nights {
  width: 320px;
  padding-bottom: 12px;
}

.anex-nights-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 4px 14px 12px;
}

.anex-nights-grid button {
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--anex-text);
  cursor: pointer;
}

.anex-nights-grid button:hover {
  background: #eef2f8;
}

.anex-nights-grid button.in-range {
  background: var(--anex-range);
}

.anex-nights-grid button.is-selected {
  background: var(--anex-panel-active);
  color: #fff;
}

/* Учасники — stepper */
.anex-panel--guests {
  width: 300px;
  padding: 12px 16px;
}

.anex-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.anex-stepper-row + .anex-stepper-row {
  border-top: 1px solid var(--anex-line);
}

.anex-stepper-row strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.anex-stepper-row span {
  font-size: 12px;
  color: var(--anex-label);
}

.anex-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.anex-stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #eef1f6;
  font-size: 18px;
  font-weight: 700;
  color: var(--anex-text);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.anex-stepper span {
  pointer-events: none;
}

.anex-stepper button:hover {
  background: #dde3ed;
}

.anex-stepper span {
  min-width: 28px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--anex-text);
}

/* Кнопка «Шукати» під карткою (mobile) */
.ps-submit--mobile {
  display: none;
}

.anex-search-segment--country-btn {
  display: none;
}

.anex-search-segment--country-edit {
  display: flex;
}

/* ——— Mobile (референс) ——— */
@media (max-width: 768px) {
  .proto-hero {
    padding: 20px 0 48px;
  }

  .proto-page {
    padding: 0 16px;
  }

  .proto-note {
    font-size: 11px;
    margin-bottom: 16px;
  }

  .hero-catalog-form {
    gap: 12px;
  }

  .anex-search-mode-switch {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 2px;
  }

  .anex-search-mode-switch::-webkit-scrollbar {
    display: none;
  }

  .anex-search-mode-btn {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 13px;
  }

  .anex-search-mode-btn.is-active {
    padding: 8px 13px;
  }

  .anex-tab-icon {
    width: 16px;
    height: 16px;
  }

  .anex-search-bar {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    border-radius: 12px;
    overflow: visible;
  }

  .anex-search-segment--country-edit {
    display: none !important;
  }

  .anex-search-segment--country-btn {
    display: flex;
  }

  .anex-search-segment {
    flex: none;
    width: 100%;
    min-height: 52px;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--anex-line);
  }

  .anex-search-segment:last-of-type {
    border-bottom: 0;
  }

  .anex-search-segment--chevron {
    padding-right: 40px;
  }

  .anex-segment-chevron {
    right: 16px;
    width: 16px;
    height: 16px;
  }

  .anex-segment-label {
    font-size: 12px;
    font-weight: 600;
    color: #9aa3b5;
  }

  .anex-segment-value {
    font-size: 15px;
  }

  .anex-search-bar .ps-submit {
    display: none;
  }

  .ps-submit--mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    background: var(--anex-red);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(243, 22, 36, 0.28);
  }

  .anex-search-bar.is-mode-excursion .anex-search-segment--excursion-only {
    display: flex;
  }

  /* Sheets */
  body.anex-sheet-open {
    overflow: hidden;
  }

  .anex-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(11, 18, 34, 0.45);
  }

  .anex-panel-backdrop[hidden] {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }

  .anex-panel {
    position: fixed !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    z-index: 1001;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
  }

  .anex-panel[hidden] {
    display: none !important;
  }

  .anex-sheet {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100dvh;
    background: #fff;
  }

  .anex-sheet-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--anex-line);
  }

  .anex-sheet-title {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--anex-text);
    text-align: left;
  }

  .anex-sheet-back,
  .anex-sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--anex-text);
    cursor: pointer;
    flex-shrink: 0;
  }

  .anex-sheet-back[hidden] {
    display: none !important;
  }

  .anex-sheet-back:hover,
  .anex-sheet-close:hover {
    background: #f0f3f8;
  }

  .anex-sheet-search {
    position: relative;
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid var(--anex-line);
  }

  .anex-sheet-search-input {
    width: 100%;
    min-height: 44px;
    padding: 0 44px 0 14px;
    border: 1px solid var(--anex-line);
    border-radius: 10px;
    background: #f4f6f9;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--anex-text);
    -webkit-appearance: none;
    appearance: none;
  }

  .anex-sheet-search-input:focus {
    outline: none;
    border-color: var(--anex-accent);
    background: #fff;
  }

  .anex-sheet-search-icon {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b5;
    pointer-events: none;
  }

  .anex-sheet-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
  }

  .anex-sheet-body--flush {
    padding: 0;
  }

  .anex-sheet-foot {
    flex-shrink: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--anex-line);
    background: #fff;
  }

  .anex-sheet-apply {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--anex-red);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
  }

  .anex-sheet-apply:hover {
    background: var(--anex-red-hover);
  }

  /* Напрямок mobile: одна колонка */
  .anex-panel--destination {
    padding: 0;
  }

  .anex-dest-browse {
    display: block;
    min-height: 0;
    max-height: none;
  }

  .anex-dest-col--countries {
    border-right: 0;
    background: #fff;
  }

  .anex-dest-col--regions {
    display: none;
  }

  .anex-dest-browse.is-regions-step .anex-dest-col--countries {
    display: none;
  }

  .anex-dest-browse.is-regions-step .anex-dest-col--regions {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .anex-dest-country {
    padding: 14px 16px;
    font-size: 15px;
  }

  .anex-dest-country-chevron {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--anex-line);
    border-radius: 6px;
    font-size: 14px;
  }

  .anex-dest-apply--desktop {
    display: none !important;
  }

  .anex-panel--destination .anex-sheet-foot--dest {
    display: none;
  }

  .anex-panel--destination.is-regions-step .anex-sheet-foot--dest {
    display: block;
  }

  .anex-dest-regions {
    padding-bottom: 8px;
  }

  .anex-dest-search-list {
    max-height: none;
  }

  /* Календар: 1 місяць */
  .anex-cal {
    grid-template-columns: 40px 1fr 40px;
    padding: 8px 8px 16px;
  }

  .anex-cal-months {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .anex-cal-month:nth-child(2) {
    display: none;
  }

  .anex-cal-day:disabled {
    text-decoration: line-through;
    color: #d0d5df;
  }

  .anex-panel--dates {
    padding: 0;
  }

  /* Ночі */
  .anex-nights-grid {
    grid-template-columns: repeat(7, 1fr);
    padding: 16px;
    gap: 8px;
  }

  .anex-panel-sub--mobile {
    padding: 0 16px 12px;
    margin: 0;
  }

  .anex-panel--nights .anex-panel-title {
    display: none;
  }

  /* Гості */
  .anex-panel--guests .anex-sheet-body {
    padding: 8px 16px;
  }

  .anex-stepper-row {
    padding: 16px 0;
  }

  .anex-stepper button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .anex-search-mode-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .anex-search-segment {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .anex-panel-list button {
    padding: 14px 16px;
    font-size: 15px;
  }
}

@media (min-width: 769px) {
  .anex-panel-backdrop:not([hidden]) {
    pointer-events: none;
    background: transparent;
  }

  .anex-search-segment--country-btn {
    display: none !important;
  }

  .anex-search-segment--country-edit {
    display: flex;
  }

  .ps-submit--mobile {
    display: none !important;
  }

  .anex-sheet-head,
  .anex-sheet-foot,
  .anex-sheet-search,
  .anex-sheet-back {
    display: none;
  }

  .anex-panel--sheet .anex-sheet {
    display: block;
    height: auto;
  }

  .anex-panel--sheet .anex-sheet-body {
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anex-search-mode-btn,
  .ps-submit,
  .anex-search-segment {
    transition: none;
  }
}
