/* ========================================================================
   Аква — формы
   Используется на всех страницах. Модалки + inline формы + бронирование.
   ======================================================================== */

/* ---------- Базовая форма ---------- */
.aq-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.aq-form__title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 400;
  margin: 0 0 4px;
  color: var(--black);
  line-height: 1.1;
}
.aq-form__sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--gold-dark);
  margin: 0 0 12px;
  line-height: 1.5;
}
.aq-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.aq-form__row > .aq-form__field { min-width: 0; }
@media (max-width: 720px) {
  .aq-form__row { grid-template-columns: minmax(0, 1fr); }
}
.aq-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.aq-form__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
}
.aq-form__field input[type="text"],
.aq-form__field input[type="tel"],
.aq-form__field input[type="email"],
.aq-form__field input[type="date"],
.aq-form__field input[type="datetime-local"],
.aq-form__field input[type="number"],
.aq-form__field select,
.aq-form__field textarea {
  font: inherit;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--black);
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(154,144,136,0.35);
  border-radius: 2px;
  padding: 12px 14px;
  transition: border-color .25s var(--ease-premium, ease), box-shadow .25s var(--ease-premium, ease);
  width: 100%;
  box-sizing: border-box;
}
/* Кастомный select — стрелка-ромб в стиле бренда */
.aq-form__field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23AF8C62' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1L6 6L11 1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
  cursor: pointer;
}
.aq-form__field input:focus,
.aq-form__field select:focus,
.aq-form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(206,184,136,0.2);
}
.aq-form__field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}
.aq-form__field input::placeholder,
.aq-form__field textarea::placeholder {
  color: rgba(122,114,104,0.5);
}

/* date / datetime — убираем синюю подсветку, золотим
   ВАЖНО: на iOS Safari нативный input[type=date] имеет встроенный intrinsic
   width/height (placeholder + иконка). -webkit-appearance:none снимает
   нативный стиль и заставляет рендериться как обычный текстовый input. */
.aq-form__field input[type="date"],
.aq-form__field input[type="datetime-local"],
.aq-booking__field input[type="date"] {
  color-scheme: light;
  caret-color: var(--gold-dark);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.aq-form__field input[type="date"]::-webkit-datetime-edit-year-field,
.aq-form__field input[type="date"]::-webkit-datetime-edit-month-field,
.aq-form__field input[type="date"]::-webkit-datetime-edit-day-field,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.aq-booking__field input[type="date"]::-webkit-datetime-edit-year-field,
.aq-booking__field input[type="date"]::-webkit-datetime-edit-month-field,
.aq-booking__field input[type="date"]::-webkit-datetime-edit-day-field {
  color: inherit;
  background: transparent;
  padding: 0 1px;
  border-radius: 1px;
}
.aq-form__field input[type="date"]::-webkit-datetime-edit-year-field:focus,
.aq-form__field input[type="date"]::-webkit-datetime-edit-month-field:focus,
.aq-form__field input[type="date"]::-webkit-datetime-edit-day-field:focus,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-year-field:focus,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-month-field:focus,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-day-field:focus,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-hour-field:focus,
.aq-form__field input[type="datetime-local"]::-webkit-datetime-edit-minute-field:focus,
.aq-booking__field input[type="date"]::-webkit-datetime-edit-year-field:focus,
.aq-booking__field input[type="date"]::-webkit-datetime-edit-month-field:focus,
.aq-booking__field input[type="date"]::-webkit-datetime-edit-day-field:focus {
  background: rgba(206,184,136,0.28);
  color: var(--black);
  outline: none;
}
.aq-form__field input[type="date"]::-webkit-calendar-picker-indicator,
.aq-form__field input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.aq-booking__field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.45) sepia(0.5) saturate(0.6) hue-rotate(15deg);
  cursor: pointer;
}

.aq-form__consent {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray-dark);
  line-height: 1.4;
  cursor: pointer;
  padding: 4px 0;
}
.aq-form__consent a { color: var(--gold-dark); text-decoration: underline; }

/* ---------- Единый фирменный чекбокс ---------- */
.aq-form__consent input[type="checkbox"],
.aq-form__check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 15px;
  height: 15px;
  min-width: 15px;
  border: 1px solid rgba(175,140,98,0.55);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  border-radius: 1px;
  transition: background .2s ease, border-color .2s ease;
  margin: 0;
}
.aq-form__consent input[type="checkbox"]:hover,
.aq-form__check input[type="checkbox"]:hover {
  border-color: var(--gold-dark);
}
.aq-form__consent input[type="checkbox"]:checked,
.aq-form__check input[type="checkbox"]:checked {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}
.aq-form__consent input[type="checkbox"]:checked::after,
.aq-form__check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 0px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.aq-form__submit {
  position: relative;
  margin-top: 8px;
  align-self: flex-start;
}
.aq-form__submit .aq-form__btn-loader { display: none; opacity: 0.6; }
.aq-form.is-loading .aq-form__btn-label { opacity: 0; }
.aq-form.is-loading .aq-form__btn-loader { display: inline; position: absolute; left: 50%; transform: translateX(-50%); }
.aq-form.is-loading button { pointer-events: none; }

/* Кнопка disabled пока не подтверждено согласие */
.aq-form__submit:disabled,
.aq-form__submit[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
}

/* ---------- Чекбоксы (доп. услуги) ---------- */
.aq-form__checks {
  border: 1px solid rgba(154,144,136,0.3);
  border-radius: 2px;
  padding: 12px 14px 10px;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}
.aq-form__checks legend {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 0 6px;
  font-weight: 400;
}
.aq-form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--gray-dark);
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aq-form__check span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.aq-form__check:hover { color: var(--black); }

@media (max-width: 540px) {
  .aq-form__checks { grid-template-columns: 1fr; }
}

/* ---------- Counter (+/− гостей) ---------- */
.aq-counter {
  display: flex;
  align-items: stretch;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(154,144,136,0.35);
  border-radius: 2px;
  overflow: hidden;
}
.aq-counter__btn {
  width: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--gold-dark);
  font-family: var(--font-heading);
  transition: background .25s var(--ease-premium, ease);
}
.aq-counter__btn:hover { background: rgba(206,184,136,0.18); color: var(--black); }
.aq-counter__btn:disabled { color: rgba(154,144,136,0.4); cursor: not-allowed; }
.aq-counter__value {
  flex: 1;
  text-align: center;
  border: 0 !important;
  background: transparent !important;
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  padding: 12px 0 !important;
  pointer-events: none;
}

.aq-form__feedback {
  font-size: 13px;
  line-height: 1.55;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 2px;
  display: none;
}
.aq-form.is-success .aq-form__feedback {
  display: block;
  background: rgba(13,93,63,0.08);
  border-left: 3px solid #0D5D3F;
  color: #0D5D3F;
}
.aq-form.is-error .aq-form__feedback {
  display: block;
  background: rgba(139,24,24,0.08);
  border-left: 3px solid #8B1818;
  color: #8B1818;
}
.aq-form.is-success > *:not(.aq-form__feedback):not(.aq-form__title):not(.aq-form__sub) {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Модалка ---------- */
.aq-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19,30,41,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s var(--ease-premium, cubic-bezier(.22,.8,.2,1));
}
.aq-modal.is-open {
  display: flex;
  opacity: 1;
}
.aq-modal__panel {
  background: var(--cream, #fafaf9);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px 40px 36px;
  position: relative;
  border-radius: 2px;
  box-shadow: 0 30px 100px -30px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform .45s var(--ease-premium, cubic-bezier(.22,.8,.2,1));
}
.aq-modal.is-open .aq-modal__panel { transform: translateY(0) scale(1); }
.aq-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(154,144,136,0.35);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all .3s var(--ease-premium, ease);
}
.aq-modal__close:hover {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
@media (max-width: 720px) {
  .aq-modal { padding: 0; align-items: stretch; }
  .aq-modal__panel {
    max-width: 100%;
    /* 100dvh учитывает URL-бар Safari — иначе низ обрезается */
    max-height: 100dvh;
    max-height: 100svh; /* fallback для старых iOS */
    height: 100dvh;
    height: 100svh;
    border-radius: 0;
    /* env(safe-area-inset-*) учитывает iOS notch / home-indicator —
       иначе крестик прячется под камерой, а submit под нижней полосой */
    padding: max(60px, calc(env(safe-area-inset-top) + 28px)) 22px max(28px, calc(env(safe-area-inset-bottom) + 16px));
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  /* В модалках с длинным списком (брони, номера) внутренний скролл
     не нужен — пусть скроллится сама панель. */
  .aq-modal__panel .aq-room-results {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0;
  }
  .aq-modal__close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    width: 38px;
    height: 38px;
  }
}

/* ---------- TravelLine-заглушка (горизонтальный бар) ---------- */
.aq-booking--bar {
  display: flex;
  align-items: stretch;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(206,184,136,0.45);
  border-radius: 2px;
  box-shadow: 0 20px 60px -25px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.aq-booking__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.aq-booking__field--guests { flex: 1.6; }
.aq-booking__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
}
.aq-booking__field input[type="date"] {
  font: inherit;
  font-size: 16px;
  font-family: var(--font-heading);
  color: var(--black);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(154,144,136,0.3);
  padding: 6px 0 4px;
  transition: border-color .25s ease;
  width: 100%;
}
.aq-booking__field input[type="date"]:focus {
  outline: none;
  border-bottom-color: var(--gold-dark);
}
.aq-booking__sep {
  align-self: center;
  color: var(--gold-dark);
  font-size: 16px;
  font-family: var(--font-heading);
  padding: 0 4px 0 0;
  margin-top: 14px; /* выравниваем с инпутами */
}
.aq-booking__guests {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}
.aq-booking__guests-label {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.05em;
  margin-right: 4px;
}

/* Mini-counter для бара */
.aq-counter--mini {
  width: auto;
}
.aq-counter--mini .aq-counter__btn {
  width: 28px;
  height: 28px;
  font-size: 16px;
}
.aq-counter--mini .aq-counter__value {
  font-size: 14px !important;
  padding: 4px 0 !important;
  width: 28px;
}

/* На тёмном (hero) — стеклянная подложка */
.aq-form.is-dark .aq-booking--bar {
  background: rgba(19,30,41,0.55);
  border-color: rgba(206,184,136,0.5);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}
.aq-form.is-dark .aq-booking__label { color: rgba(255,255,255,0.7); }
.aq-form.is-dark .aq-booking__field input[type="date"] {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.25);
}
.aq-form.is-dark .aq-booking__field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7); }
.aq-form.is-dark .aq-booking__field input[type="date"]:focus { border-bottom-color: var(--gold); }
.aq-form.is-dark .aq-counter--mini { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.aq-form.is-dark .aq-counter--mini .aq-counter__btn { color: var(--gold); }
.aq-form.is-dark .aq-counter--mini .aq-counter__value { color: var(--white); }
.aq-form.is-dark .aq-booking__guests-label { color: rgba(255,255,255,0.55); }
.aq-form.is-dark .aq-booking__sep { color: var(--gold); }
.aq-form.is-dark .aq-form__consent { color: rgba(255,255,255,0.7); }
.aq-form.is-dark .aq-form__consent a { color: var(--gold); }

/* В контексте booking-формы — кнопка/согласие/feedback под баром */
.aq-form--booking { gap: 16px; }
.aq-form--booking .aq-form__submit { align-self: center; padding: 16px 36px; }
.aq-form--booking .aq-form__consent { justify-content: center; }
.aq-form--booking .aq-form__feedback { text-align: center; }

@media (max-width: 860px) {
  .aq-booking--bar { flex-direction: column; gap: 12px; padding: 18px; }
  .aq-booking__sep { display: none; }
  .aq-booking__field input[type="date"] { padding-bottom: 6px; }
}

/* ---------- Booking-полоса под hero на главной ---------- */
.aq-booking-strip {
  background: var(--cream);
  padding: 36px 0 40px;
  position: relative;
  margin-top: -1px;
}
.aq-booking-strip .container { max-width: 980px; }
.aq-booking-strip__label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  text-align: center;
  margin: 0 0 18px;
  font-weight: 400;
}

/* ---------- Booking-секция на /otel/ ---------- */
.aq-booking-section {
  background: var(--cream);
  padding: 60px 0 40px;
  margin-top: -1px;
}
.aq-booking-section .container { max-width: 980px; }

/* ===========================================================
   Inline-фильтр на /otel/ — спокойный, премиум-минималистичный
   =========================================================== */
.aq-booking-filter-section {
  background: var(--cream);
  padding: 70px 0 40px;
  margin-top: -1px;
}

/* Бар: CSS Grid — явные колонки, никаких пересечений */
.aq-booking-filter .aq-booking--bar {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)    /* заезд */
    auto              /* стрелка */
    minmax(0, 1fr)    /* выезд */
    auto              /* гости */
    auto;             /* кнопка */
  align-items: end;
  gap: 40px 44px;
  padding: 36px 44px;
  background: #fff;
  border: 1px solid rgba(206,184,136,0.28);
  border-radius: 2px;
  box-shadow: 0 6px 28px -16px rgba(19,30,41,0.18);
}
.aq-booking-filter .aq-booking__field { min-width: 0; }

/* Подпись над полем */
.aq-booking-filter .aq-booking__label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 400;
  margin-bottom: 14px;
  display: block;
}

/* Поля дат — крупный Cormorant, тонкая нижняя линия */
.aq-booking-filter .aq-booking__field input[type="date"] {
  font-size: 22px;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 6px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(154,144,136,0.22);
  background: transparent;
  color: var(--black);
  width: 100%;
  transition: border-color .3s ease;
}
.aq-booking-filter .aq-booking__field input[type="date"]:focus {
  outline: none;
  border-bottom-color: var(--gold-dark);
}

/* Стрелка между датами — тонкая, не давит */
.aq-booking-filter .aq-booking__sep {
  margin: 0 0 16px;
  font-size: 16px;
  color: var(--gold-dark);
  opacity: 0.55;
  padding: 0;
  align-self: end;
}

/* Гости — один counter, прижат к низу как даты */
.aq-booking-filter .aq-booking__field--guests {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Counter — тонкая рамка, воздух внутри */
.aq-booking-filter .aq-counter--mini {
  display: inline-flex;
  align-items: stretch;
  background: transparent;
  border: 1px solid rgba(154,144,136,0.28);
  border-radius: 2px;
  overflow: hidden;
}
.aq-booking-filter .aq-counter--mini .aq-counter__btn {
  width: 40px;
  height: 44px;
  font-size: 18px;
  color: var(--gray-dark);
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-weight: 300;
  transition: color .25s ease, background .25s ease;
  cursor: pointer;
}
.aq-booking-filter .aq-counter--mini .aq-counter__btn:hover {
  color: var(--gold-dark);
  background: rgba(206,184,136,0.08);
}
.aq-booking-filter .aq-counter--mini .aq-counter__value {
  width: 40px !important;
  padding: 0 !important;
  font-size: 18px !important;
  font-family: var(--font-heading) !important;
  color: var(--black) !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  align-self: center;
}

/* Кнопка — outline-стиль золотом */
.aq-booking-filter .aq-booking__field--btn {
  align-self: end;
  padding-bottom: 0;
}
.aq-booking-filter .aq-booking-filter__submit {
  display: inline-block;
  padding: 16px 38px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-body);
  background: transparent;
  border: 1px solid var(--gold-dark);
  color: var(--gold-dark);
  cursor: pointer;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.aq-booking-filter .aq-booking-filter__submit:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ====== Адаптивы для bookin filter (inline на /otel/) ====== */

/* По умолчанию (desktop): aq-mobile-only скрыт */
.aq-mobile-only { display: none; }

/* Wrapper Гости+Дети: на ПК прозрачен для grid (содержимое поднимается напрямую),
   на mobile превращается в flex-ряд (full-width, justify-between). */
.aq-booking__guests-row { display: contents; }

@media (max-width: 1100px) {
  .aq-booking-filter .aq-booking--bar {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 28px 28px;
  }
  .aq-booking-filter .aq-booking__sep { display: none; }
  .aq-booking-filter .aq-booking__field--guests,
  .aq-booking-filter .aq-booking__field--btn { grid-column: 1 / -1; }
  .aq-booking-filter .aq-booking__field input[type="date"] { font-size: 19px; }
}

@media (max-width: 720px) {
  /* Mobile-only элементы показаны */
  .aq-mobile-only { display: block; }
  /* Для booking-полей сохраняем flex (как остальные fields) */
  .aq-booking__field.aq-mobile-only { display: flex; flex-direction: column; }

  /* Inline-фильтр — 1 колонка, Гости/Дети внутри одного ряда */
  .aq-booking-filter-section { padding: 40px 0 24px; }
  .aq-booking-filter .aq-booking--bar {
    grid-template-columns: 1fr;
    padding: 24px 22px;
    gap: 22px;
  }
  .aq-booking-filter .aq-booking-filter__submit {
    width: 100%;
    padding: 18px 24px;
    font-size: 12px;
  }

  /* Wrapper становится видимым flex-рядом */
  .aq-booking__guests-row {
    display: flex !important;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
  }

  /* Гости и Дети — компактные counter'ы (~130px) прижаты к краям бара,
     между ними пустое пространство. Label сверху каждого. */
  .aq-booking__guests-row > .aq-booking__field { flex: 0 0 auto; width: 130px; }
  .aq-booking-filter .aq-counter--mini,
  .aq-booking--in-modal .aq-counter--mini {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box;
    align-items: stretch;
  }
  .aq-booking-filter .aq-counter--mini .aq-counter__btn,
  .aq-booking--in-modal .aq-counter--mini .aq-counter__btn {
    flex: 0 0 40px;
    height: 44px;
    font-size: 18px;
    box-sizing: border-box;
  }
  .aq-booking-filter .aq-counter--mini .aq-counter__value,
  .aq-booking--in-modal .aq-counter--mini .aq-counter__value {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0;
    font-size: 18px !important;
    box-sizing: border-box;
    text-align: center;
  }

  /* Booking flow в модалке — тот же 1-колоночный стек */
  .aq-booking--in-modal {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }
  .aq-booking--in-modal .aq-booking__sep { display: none; }
  .aq-booking-flow__cta .btn { width: 100%; }
}
.aq-booking-filter__feedback {
  font-size: 12px;
  color: var(--gold-dark);
  text-align: center;
  margin: 16px 0 0;
  min-height: 1.5em;
  letter-spacing: 0.04em;
}
.aq-booking-filter__feedback.is-active::before {
  content: '✓ ';
  font-weight: bold;
}

/* Когда даты применены — у room-card золотая полоска сверху и метка «свободно» */
.room-card.is-bookable {
  position: relative;
  outline: 1px solid rgba(206,184,136,0.5);
  outline-offset: -1px;
}
.room-card.is-bookable::before {
  content: 'Свободно';
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(13,93,63,0.92);
  color: #fff;
  padding: 4px 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* Пересчитанная цена за весь срок */
.room-card__price-total {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.room-card__price-sub {
  display: block;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-family: var(--font-body);
}
.room-card.is-bookable .room-card__price {
  /* визуально подчёркиваем что цена итоговая */
}

/* ---------- Широкая модалка для booking ---------- */
.aq-modal__panel--wide {
  max-width: 760px;
}

/* ---------- Booking Flow (3 шага) ---------- */
.aq-booking-flow__step {
  display: none;
  animation: aqFadeIn .35s cubic-bezier(.22,.8,.2,1);
}
.aq-booking-flow[data-step="search"]  > [data-step-name="search"],
.aq-booking-flow[data-step="results"] > [data-step-name="results"],
.aq-booking-flow[data-step="confirm"] > [data-step-name="confirm"] {
  display: block;
}
@keyframes aqFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.aq-booking--in-modal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 32px;
  padding: 26px 28px;
  background: rgba(250,244,236,0.55);
  border: 1px solid rgba(206,184,136,0.3);
  box-shadow: none;
  border-radius: 2px;
  margin: 18px 0 8px;
}
.aq-booking--in-modal .aq-booking__field { min-width: 0; }
.aq-booking--in-modal .aq-booking__field--guests {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.aq-booking--in-modal .aq-booking__sep { margin: 0 0 16px; align-self: end; }

.aq-booking--in-modal .aq-counter--mini {
  border: 1px solid rgba(154,144,136,0.28);
  background: #fff;
  border-radius: 2px;
}
.aq-booking--in-modal .aq-counter--mini .aq-counter__btn { width: 36px; height: 42px; color: var(--gray-dark); font-size: 18px; }
.aq-booking--in-modal .aq-counter--mini .aq-counter__btn:hover { color: var(--gold-dark); background: rgba(206,184,136,0.08); }
.aq-booking--in-modal .aq-counter--mini .aq-counter__value {
  width: 36px !important;
  padding: 0 !important;
  font-size: 17px !important;
  font-family: var(--font-heading) !important;
  color: var(--black) !important;
}

.aq-booking-flow__cta {
  margin: 18px 0 8px;
  text-align: center;
}
.aq-booking-flow__hint {
  font-size: 11px;
  color: var(--gray);
  text-align: center;
  margin: 8px 0 0;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.aq-booking-flow__back {
  background: transparent;
  border: 0;
  color: var(--gold-dark);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 0 12px;
  margin: -16px 0 0;
  font-family: inherit;
  transition: color .25s ease;
}
.aq-booking-flow__back:hover { color: var(--gold); }

.aq-booking-flow__summary,
.aq-booking-flow__chosen {
  font-size: 13px;
  color: var(--gray-dark);
  margin: 4px 0 18px;
  line-height: 1.5;
}
.aq-booking-flow__summary strong,
.aq-booking-flow__chosen strong {
  color: var(--black);
  font-weight: 500;
}

/* ---------- Результаты: карточки номеров ---------- */
.aq-room-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}
.aq-room-result {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(206,184,136,0.25);
  padding: 14px;
  border-radius: 2px;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.aq-room-result:hover {
  border-color: rgba(206,184,136,0.55);
  box-shadow: 0 10px 30px -15px rgba(0,0,0,0.15);
}
.aq-room-result__image {
  height: 110px;
  border-radius: 2px;
  background-color: #ddd;
}
.aq-room-result__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.aq-room-result__tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 4px;
}
.aq-room-result__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--black);
  line-height: 1.15;
}
.aq-room-result__meta {
  font-size: 12px;
  color: var(--gray);
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.aq-room-result__text {
  font-size: 12.5px;
  color: var(--gray-dark);
  line-height: 1.45;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.aq-room-result__footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.aq-room-result__pricing {
  display: flex;
  flex-direction: column;
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
}
.aq-room-result__per-night {
  font-size: 12px;
  color: var(--gray);
}
.aq-room-result__total {
  font-size: 1.1rem;
  color: var(--gold-dark);
  margin-top: 2px;
}
.aq-room-result__total:empty { display: none; }

.aq-booking-flow__empty {
  text-align: center;
  color: var(--gray);
  padding: 30px 20px;
  font-size: 14px;
}

@media (max-width: 540px) {
  .aq-room-result { grid-template-columns: 1fr; }
  .aq-room-result__image { height: 140px; }
  .aq-room-result__footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- Inline-форма на тёмной секции (navy) ---------- */
.section--navy .aq-form__title,
.section--navy .aq-form__sub { color: var(--white); }
.section--navy .aq-form__sub { color: var(--gold); }
.section--navy .aq-form__label { color: rgba(255,255,255,0.6); }
.section--navy .aq-form__consent { color: rgba(255,255,255,0.7); }
.section--navy .aq-form__consent a { color: var(--gold); }
.section--navy .aq-form__field input,
.section--navy .aq-form__field select,
.section--navy .aq-form__field textarea {
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.1);
}

/* ---------- Триггеры ---------- */
.aq-trigger {
  cursor: pointer;
}

/* ---------- Newsletter в футере ---------- */
.footer__newsletter {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 32px 0;
}
/* Inline-форма: email + кнопка в одну линию */
.footer__newsletter .aq-form {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  gap: 8px 12px;
  align-items: stretch;
}
.footer__newsletter .aq-form__field {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  gap: 0;
}
.footer__newsletter .aq-form__label { display: none; }
.footer__newsletter .aq-form__field input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 14px 16px;
  height: 100%;
}
.footer__newsletter .aq-form__field input::placeholder { color: rgba(255,255,255,0.4); }
.footer__newsletter .aq-form__field input:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
}
.footer__newsletter .aq-form__submit,
.footer__newsletter .aq-form__submit .aq-form__btn-label {
  color: var(--gold) !important;
}
.footer__newsletter .aq-form__submit {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  padding: 14px 32px;
  white-space: nowrap;
  background: transparent !important;
  border: 1px solid var(--gold) !important;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  transition: background .35s ease, color .35s ease, transform .35s ease;
}
.footer__newsletter .aq-form__submit:hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
}
.footer__newsletter .aq-form__submit:hover,
.footer__newsletter .aq-form__submit:hover .aq-form__btn-label {
  color: #131E29 !important;
}
.footer__newsletter .aq-form__submit:disabled,
.footer__newsletter .aq-form__submit[disabled] {
  background: transparent !important;
  border-color: rgba(206,184,136,0.25) !important;
  transform: none;
}
.footer__newsletter .aq-form__submit:disabled,
.footer__newsletter .aq-form__submit[disabled] .aq-form__btn-label {
  color: rgba(206,184,136,0.35) !important;
}
.footer__newsletter .aq-form__consent {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  margin: 0;
  padding: 0;
}
.footer__newsletter .aq-form__consent a { color: var(--gold); }
.footer__newsletter .aq-form__feedback {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 740px) {
  .footer__newsletter { grid-template-columns: 1fr; gap: 20px; }
  .footer__newsletter .aq-form { grid-template-columns: 1fr; }
  .footer__newsletter .aq-form__submit { grid-column: 1; grid-row: 2; width: 100%; }
  .footer__newsletter .aq-form__consent { grid-row: 3; }
  .footer__newsletter .aq-form__feedback { grid-row: 4; }
}

/* ========================================================================
   MOBILE OVERRIDE — booking-бар в модалке "Подобрать номер"
   ВАЖНО: блок должен быть последним в файле, чтобы перекрыть desktop-правила
   .aq-booking--in-modal, объявленные ниже @media (max-width:720px) выше.
   ======================================================================== */
@media (max-width: 720px) {
  /* Модалка: 1 колонка, всё стекается вертикально */
  .aq-booking--in-modal {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 22px 20px !important;
    margin: 14px 0 8px !important;
  }
  .aq-booking--in-modal .aq-booking__sep { display: none !important; }

  /* Wrapper Гости+Дети — flex-ряд во всю ширину, прижаты к краям */
  .aq-booking--in-modal .aq-booking__guests-row,
  .aq-booking-filter .aq-booking__guests-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    gap: 14px !important;
    width: 100% !important;
  }
  .aq-booking--in-modal .aq-booking__guests-row > .aq-booking__field,
  .aq-booking-filter .aq-booking__guests-row > .aq-booking__field {
    flex: 1 1 0 !important;
    width: auto !important;
    max-width: 50% !important;
    min-width: 0 !important;
  }
  .aq-booking--in-modal .aq-booking__field--guests {
    align-items: stretch !important;
  }

  /* Counter в модалке/фильтре — растягиваем во всю ширину поля */
  .aq-booking--in-modal .aq-counter--mini,
  .aq-booking-filter .aq-counter--mini {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
    align-items: stretch !important;
  }
  .aq-booking--in-modal .aq-counter--mini .aq-counter__btn,
  .aq-booking-filter .aq-counter--mini .aq-counter__btn {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 44px !important;
    font-size: 18px !important;
    box-sizing: border-box !important;
  }
  .aq-booking--in-modal .aq-counter--mini .aq-counter__value,
  .aq-booking-filter .aq-counter--mini .aq-counter__value {
    flex: 1 1 0 !important;
    width: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
    font-size: 17px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* CTA "Найти номер" — full width */
  .aq-booking-flow__cta { margin-top: 8px; }
  .aq-booking-flow__cta .btn,
  .aq-booking-flow__cta button { width: 100%; }

  /* Inline-фильтр на /otel/ — тот же mobile-стек */
  .aq-booking-filter .aq-booking--bar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 24px 22px !important;
    gap: 22px !important;
  }
  .aq-booking-filter .aq-booking__sep { display: none !important; }
  .aq-booking-filter .aq-booking-filter__submit {
    width: 100% !important;
    padding: 18px 24px !important;
    font-size: 12px !important;
  }
}

/* ========================================================================
   MOBILE — ВСЕ модалки (callback, banya, restaurant, wellness, event,
   general, booking) в едином чистом стиле.
   ======================================================================== */
@media (max-width: 720px) {
  /* Панель: больше воздуха сверху (под крестик), стабильный паддинг */
  .aq-modal__panel {
    padding: 56px 22px 28px !important;
  }
  /* Заголовок чуть меньше — чтобы влезал в одну строку */
  .aq-modal .aq-form__title {
    font-size: 1.6rem;
    line-height: 1.15;
    margin: 0 0 6px;
  }
  .aq-modal .aq-form__sub {
    font-size: 0.88rem;
    margin: 0 0 14px;
  }

  /* Формы в модалке: всегда одна колонка, единые отступы */
  .aq-modal .aq-form {
    gap: 14px;
  }
  .aq-modal .aq-form__row {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Инпуты — ВСЕ типов одной высоты и ширины.
     Жёстко задаём height чтобы iOS native date не отличался от text. */
  .aq-modal .aq-form__field input[type="text"],
  .aq-modal .aq-form__field input[type="tel"],
  .aq-modal .aq-form__field input[type="email"],
  .aq-modal .aq-form__field input[type="date"],
  .aq-modal .aq-form__field input[type="datetime-local"],
  .aq-modal .aq-form__field input[type="number"],
  .aq-modal .aq-form__field select {
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 0 14px !important;
    height: 48px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    display: block;
    text-align: left;
    text-indent: 0;
    vertical-align: middle;
  }
  .aq-modal .aq-form__field textarea {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 12px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* .aq-form__field — не растягивается шире столбца */
  .aq-modal .aq-form__field {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  /* Чекбоксы (доп. услуги, гости в ресторане) — одна колонка */
  .aq-modal .aq-form__checks {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  /* Согласие 152-ФЗ — мельче и компактно */
  .aq-modal .aq-form__consent {
    font-size: 11px;
    line-height: 1.45;
    margin-top: 4px;
  }

  /* Кнопка отправки — full width, заметная */
  .aq-modal .aq-form__submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 12px;
    letter-spacing: 0.2em;
    margin-top: 4px;
  }

  /* Feedback (успех/ошибка) — отступ сверху */
  .aq-modal .aq-form__feedback {
    margin-top: 8px;
    font-size: 13px;
    text-align: center;
  }
}
