/* Страница /booking-several-excursions — пакет экскурсий */

/* Баннер уже с текстом: не кроем плашкой «Пакет экскурсий», сохраняем правую часть */
.page-booking-several .box-menu-excursion-hero-img {
  object-position: 72% 45%;
}

.page-booking-several img.box-menu-excursion-hero-img {
  animation: none;
}

.page-booking-several .name-of-excursion {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  background: none;
}

.page-booking-several .grid-excursion {
  grid-template-columns: minmax(0, 1fr);
}

.booking-several-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 16px;
  /* Сетка строк экскурсий: дата | название | кол-во | сумма | удалить */
  --booking-several-cols: minmax(100px, 0.75fr) minmax(140px, 1.2fr) minmax(90px, 0.55fr) minmax(110px, 0.7fr) 36px;
  --booking-several-gap: 12px 14px;
}

.booking-several-form .itour-form-row__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-several-guest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
}

.booking-several-row {
  display: grid;
  grid-template-columns: var(--booking-several-cols);
  gap: var(--booking-several-gap);
  align-items: start;
}

.booking-several-row__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 37px;
}

.booking-several-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--amber, #b45309);
  cursor: pointer;
  line-height: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.booking-several-remove:hover,
.booking-several-remove:focus {
  opacity: 0.8;
  outline: none;
}

.booking-several-remove[hidden] {
  display: none !important;
}

.booking-several-remove svg {
  display: block;
}

/* Валюта + экскурсии: ближе друг к другу, чем обычный gap формы */
.booking-several-excursions-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.itour-form-row--currency .itour-form-row__fields {
  gap: 0;
}

.booking-several-currency {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  align-items: flex-end;
}

.booking-several-currency .itour-price-footnote--toggle-label {
  font-size: 12px;
  line-height: 1.2;
}

.booking-several-currency .itour-currency-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px 12px;
  margin: 0 0 0 auto;
  width: auto;
}

.itour-bordered-form .booking-several-sum {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  min-height: 37px;
  cursor: default;
  user-select: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  color: #666;
}

.itour-bordered-form .booking-several-sum.has-amount {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
}

.itour-bordered-form .booking-several-sum [data-package-sum-value],
.itour-bordered-form .booking-several-sum .itour-currency-symbol {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.booking-several-excursions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.booking-several-row .form-field.is-pax-locked {
  opacity: 0.55;
  pointer-events: none;
}

.booking-several-row .form-field.is-pax-locked .form-input:disabled {
  opacity: 1;
}

.booking-several-add {
  align-self: flex-start;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--cadet-blue, #49939c);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.booking-several-add:hover {
  color: var(--color, #0f3038);
}

.booking-several-add:focus {
  outline: none;
}

.booking-several-add:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--cadet-blue, #49939c) 55%, transparent);
  outline-offset: 2px;
}

.booking-several-add:disabled {
  color: #999;
  cursor: not-allowed;
  transition: none;
}

.booking-several-schedule .itour-how-order-hint {
  margin-bottom: 10px;
}

/* Чекбокс под текстом подсказки (сдвиг под иконку-пузырь: 20px + gap 8px) */
.booking-several-schedule .itour-form-row {
  align-items: center;
}

.booking-several-help__option {
  align-items: flex-start;
  margin-left: 28px;
  padding: 0;
  border-bottom: 0;
  user-select: none;
}

.booking-several-help__option label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #333333;
  white-space: normal;
  overflow-wrap: anywhere;
}

.booking-several-stay.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

/* Панель уже затемняет — не удваивать opacity от :disabled */
.booking-several-stay.is-disabled .form-input:disabled {
  opacity: 1;
}

.booking-several-contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px 20px;
  align-items: stretch;
}

.booking-several-contacts__phone {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.booking-several-contacts__email {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

/* Баты напротив телефона, рубли напротив email */
.booking-several-payment {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-rows: subgrid;
  min-width: 0;
  gap: 16px;
}

.booking-several-payment .itour-payment__option {
  min-height: 37px;
  box-sizing: border-box;
}

.booking-several-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.booking-several-form .itour-order-submit {
  width: auto;
  max-width: none;
  margin-top: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* Подсказки экскурсий (свой список, без hotel-autocomplete-dropdown) */
.excursion-autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 2px 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 10060;
  display: none;
}

.excursion-autocomplete-dropdown.is-visible {
  display: block;
}

.excursion-autocomplete-dropdown .itour-search-suggest__item {
  border-bottom: 1px solid #eee;
  padding: 8px 12px;
}

.excursion-autocomplete-dropdown .itour-search-suggest__item:last-child {
  border-bottom: none;
}

.excursion-autocomplete-dropdown .itour-search-suggest__item:hover,
.excursion-autocomplete-dropdown .itour-search-suggest__item.is-active {
  background: #f5f8f8;
}

@media (max-width: 991px) {
  .itour-form-row--currency .itour-form-row__label {
    display: none;
  }

  .booking-several-row {
    grid-template-columns: minmax(0, 1fr) 36px;
  }

  .booking-several-row > .form-field {
    grid-column: 1;
  }

  .booking-several-row__actions {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-items: flex-start;
    padding-top: 6px;
  }

  .booking-several-contacts-grid {
    grid-template-columns: 1fr;
  }

  .booking-several-contacts__phone,
  .booking-several-contacts__email,
  .booking-several-payment {
    grid-column: 1;
    grid-row: auto;
  }

  .booking-several-payment {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .booking-several-actions {
    justify-content: stretch;
  }

  .booking-several-form .itour-order-submit {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .booking-several-guest-grid {
    grid-template-columns: 1fr;
  }
}
