/* MT Booking · formulario de cotización */
html.mt-booking-quote-open,
body.mt-booking-quote-open { overflow: hidden; overscroll-behavior: none; }

.mt-booking-quote-dialog,
.mt-booking-quote-dialog * { box-sizing: border-box; }

.mt-booking-quote-dialog {
  width: min(680px, calc(100vw - 28px));
  height: min(760px, calc(100dvh - 28px));
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #26364f;
  font-family: inherit;
  box-shadow: 0 26px 80px rgba(15, 31, 58, .28);
}

.mt-booking-quote-dialog[open] { display: flex; flex-direction: column; }
.mt-booking-quote-dialog::backdrop { background: rgba(15, 31, 58, .64); }

.mt-booking-quote-dialog__header {
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  justify-content: space-between;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e7edf5;
  background: #fff;
}

.mt-booking-quote-dialog__header > div { min-width: 0; }
.mt-booking-quote-dialog__eyebrow {
  margin: 0 0 5px;
  color: #e57933;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.mt-booking-quote-dialog__title {
  margin: 0;
  color: #12275a;
  font-size: clamp(24px, 4vw, 29px);
  font-weight: 700;
  line-height: 1.12;
}

.mt-booking-quote-dialog__header p:not(.mt-booking-quote-dialog__eyebrow) {
  max-width: 535px;
  margin: 8px 0 0;
  color: #55657b;
  font-size: 15px;
  line-height: 1.45;
}

.mt-booking-quote-dialog__close {
  display: inline-grid;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f1f5fa;
  color: #1f3d67 !important;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.mt-booking-quote-dialog__close:hover,
.mt-booking-quote-dialog__close:focus-visible { background: #e3edfb; color: #1f3d67 !important; }

.mt-booking-quote-form {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 14px;
  align-content: start;
  padding: 20px 20px 24px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #aebed2 transparent;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.mt-booking-quote-form::-webkit-scrollbar { width: 10px; }
.mt-booking-quote-form::-webkit-scrollbar-track { margin: 10px 0; background: transparent; }
.mt-booking-quote-form::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #aebed2; background-clip: padding-box; }

.mt-booking-quote-form label,
.mt-booking-quote-form fieldset { display: grid; min-width: 0; gap: 6px; margin: 0; }

.mt-booking-quote-form label > span,
.mt-booking-quote-form legend {
  color: #233c67;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.mt-booking-quote-form input:not([type="checkbox"]),
.mt-booking-quote-form select,
.mt-booking-quote-form textarea {
  display: block;
  width: 100% !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid #cbd7e6 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: #1f2e46 !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}

.mt-booking-quote-form textarea { min-height: 78px; resize: vertical; }
.mt-booking-quote-form input::placeholder,
.mt-booking-quote-form textarea::placeholder { color: #8390a2; opacity: 1; }

.mt-booking-quote-form input:not([type="checkbox"]):hover,
.mt-booking-quote-form select:hover,
.mt-booking-quote-form textarea:hover { border-color: #9bb3d2 !important; }

.mt-booking-quote-form input:not([type="checkbox"]):focus,
.mt-booking-quote-form select:focus,
.mt-booking-quote-form textarea:focus {
  border-color: #2c73ee !important;
  outline: 3px solid rgba(44, 115, 238, .15) !important;
  outline-offset: 0;
}

.mt-booking-quote-form input[type="number"] { appearance: textfield; }
.mt-booking-quote-form input[type="number"]::-webkit-inner-spin-button,
.mt-booking-quote-form input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; }
.mt-booking-quote-form small { color: #66768b; font-size: 12px; line-height: 1.35; }

.mt-booking-quote-form .iti {
  display: block;
  width: 100%;
  --iti-border-color: #cbd7e6;
  --iti-hover-color: rgba(44, 115, 238, .07);
  --iti-country-selector-bg: #fff;
}

.mt-booking-quote-form .iti input.iti__tel-input {
  display: block;
  width: 100% !important;
  min-height: 42px;
  padding-top: 9px !important;
  padding-right: 11px !important;
  padding-bottom: 9px !important;
  padding-left: var(--mt-booking-phone-padding-left, 80px) !important;
  border-color: #cbd7e6 !important;
  color: #1f2e46 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

.mt-booking-quote-form .iti__selected-country {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  color: #1f2e46 !important;
  box-shadow: none !important;
}

.mt-booking-quote-form .iti__selected-country-primary { align-items: center; gap: 0; padding: 0 8px 0 10px; }
.mt-booking-quote-form .iti__selected-dial-code { margin-left: 6px; font-size: 13px !important; line-height: 1; }
.mt-booking-quote-form .iti__country-selector {
  z-index: 10020;
  width: min(300px, calc(100vw - 64px)) !important;
  min-width: 0;
  max-width: calc(100vw - 64px);
  overflow: hidden;
  border-color: #d9e1eb;
  border-radius: 8px;
  color: #1f2e46;
  box-shadow: 0 10px 28px rgba(31, 55, 95, .16);
}

/* La lista abierta forma parte del flujo del formulario y se desplaza con él. */
.mt-booking-quote-form .iti:has(.iti__selected-country[aria-expanded="true"]) {
  display: flex;
  flex-direction: column;
}
.mt-booking-quote-form .iti:has(.iti__selected-country[aria-expanded="true"]) .iti__country-container {
  display: contents;
}
.mt-booking-quote-form .iti:has(.iti__selected-country[aria-expanded="true"]) .iti__selected-country {
  position: absolute;
  top: 1px;
  bottom: auto !important;
  left: 1px;
  z-index: 1;
  height: 40px;
}
.mt-booking-quote-form .iti:has(.iti__selected-country[aria-expanded="true"]) input.iti__tel-input { order: 1; }
.mt-booking-quote-form .iti:has(.iti__selected-country[aria-expanded="true"]) .iti__country-selector {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  order: 2;
  width: 100% !important;
  max-width: 100%;
  margin-top: 4px;
  scroll-margin-bottom: 16px;
}

.mt-booking-quote-form .iti input.iti__search-input {
  min-height: 34px !important;
  padding: 6px 36px !important;
  border: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  background: #fff !important;
  font-size: 15px !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.mt-booking-quote-form .iti__country-list { max-height: 176px !important; overflow-x: hidden !important; }
.mt-booking-quote-form .iti__country { min-height: 32px; padding: 6px 10px !important; font-size: 13px; line-height: 1.2; white-space: normal !important; }

.mt-booking-quote-form__grid { display: grid; min-width: 0; gap: 14px; }
.mt-booking-quote-form__grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mt-booking-quote-form__grid--two > label { align-content: start; }
.mt-booking-quote-form fieldset { padding: 0; border: 0; }
.mt-booking-quote-form legend { margin-bottom: 3px; padding: 0; }

.mt-booking-quote-form .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mt-booking-quote-form .mt-booking-quote-form__tour-picker {
  gap: 8px;
  padding: 11px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: #f9fbfe;
}

/* Keep the accessible legend inside the grid, rather than across the fieldset border. */
.mt-booking-quote-form .mt-booking-quote-form__tour-picker legend {
  float: left;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}
.mt-booking-quote-form .mt-booking-quote-form__tour-search { display: block; }
.mt-booking-quote-form .mt-booking-quote-form__tour-search input { min-height: 40px; }

.mt-booking-quote-form__tour-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 172px;
  padding: 3px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #b6c3d4 transparent;
  scrollbar-gutter: stable;
}

.mt-booking-quote-form__tour-list::-webkit-scrollbar { width: 9px; }
.mt-booking-quote-form__tour-list::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: #b6c3d4; background-clip: padding-box; }
.mt-booking-quote-form__tour-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  min-height: 35px;
  gap: 7px !important;
  padding: 7px 8px !important;
  border: 1px solid #e0e8f2;
  border-radius: 7px;
  background: #fff;
  color: #354862;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
}

.mt-booking-quote-form__tour-option:has(input:checked) { border-color: var(--accent, #3b72ff); background: #edf3ff; color: #23469e; }
.mt-booking-quote-form [data-mt-quote-selection-count] { color: #23469e; }
.mt-booking-quote-form__tour-option:hover { border-color: #a9c1df; background: #f4f8ff; }
.mt-booking-quote-form__tour-option[hidden] { display: none !important; }
.mt-booking-quote-form__tour-option input[type="checkbox"] {
  width: 16px !important;
  min-width: 16px;
  height: 16px !important;
  min-height: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #2c73ee;
}

.mt-booking-quote-form__tour-empty {
  grid-column: 1 / -1;
  margin: 4px 0;
  color: #65758b;
  font-size: 13px;
  text-align: center;
}

.mt-booking-quote-form__tour-empty[hidden] { display: none; }

.mt-booking-quote-form .mt-booking-quote-form__contact {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid #e7edf5;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}


.mt-booking-quote-form .mt-booking-quote-form__contact legend { float: left; width: 100%; min-width: 0; margin: 0; padding: 0; color: #12275a; font-size: 17px; font-weight: 700; line-height: 1.25; }
.mt-booking-quote-form__help { margin: 0; color: #65758b; font-size: 12px; line-height: 1.4; }

.mt-booking-quote-form__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.mt-booking-quote-form__button {
  min-height: 43px;
  padding: 10px 15px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mt-booking-quote-form__button--primary { background: #2c73ee; color: #fff !important; }
.mt-booking-quote-form__button--primary:hover,
.mt-booking-quote-form__button--primary:focus-visible { background: #1f62ce; color: #fff !important; }
.mt-booking-quote-form__button--secondary { background: #e7f7ed; color: #176b43 !important; }
.mt-booking-quote-form__button--secondary:hover,
.mt-booking-quote-form__button--secondary:focus-visible { background: #d8f0e2; color: #176b43 !important; }
.mt-booking-quote-form__button:focus-visible { outline: 3px solid rgba(44, 115, 238, .25); outline-offset: 2px; }
.mt-booking-quote-form__button:disabled { opacity: .65; cursor: wait; }
.mt-booking-quote-form__button[data-mt-quote-complete] { cursor: default; }

.mt-booking-quote-form__status { min-height: 20px; margin: -4px 0 0; font-size: 13px; line-height: 1.4; }
.mt-booking-quote-form__status.is-error { color: #b42318; }
.mt-booking-quote-form__status.is-success { color: #176b43; }
.mt-booking-quote-form__whatsapp-link { color: #176b43; font-weight: 700; text-decoration: underline; }
.mt-booking-quote-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mt-booking-quote-form__child-ages[hidden] { display: none !important; }

/* Mismo calendario y jerarquía visual del formulario de reservas. */
.mt-booking-quote-form .flatpickr-wrapper { display: block; position: relative; width: 100%; }
.mt-booking-quote-form .flatpickr-calendar.static {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #cbd7e6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(31, 55, 95, .16);
}

.mt-booking-quote-form .flatpickr-months,
.mt-booking-quote-form .flatpickr-innerContainer,
.mt-booking-quote-form .flatpickr-rContainer,
.mt-booking-quote-form .flatpickr-days,
.mt-booking-quote-form .dayContainer { width: 100%; min-width: 0; max-width: none; }
.mt-booking-quote-form .flatpickr-months .flatpickr-month { height: 34px; }
.mt-booking-quote-form .flatpickr-current-month { display: flex; align-items: center; justify-content: center; gap: 4px; height: 34px; padding-top: 2px; }
.mt-booking-quote-form .flatpickr-current-month select,
.mt-booking-quote-form .flatpickr-current-month input.cur-year {
  display: inline-block;
  width: auto !important;
  min-height: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.mt-booking-quote-form .flatpickr-weekdays,
.mt-booking-quote-form .flatpickr-weekdaycontainer { width: 100%; }
.mt-booking-quote-form span.flatpickr-weekday { color: #34445b; font-size: 13px; font-weight: 500; }
.mt-booking-quote-form .dayContainer { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; }
.mt-booking-quote-form .flatpickr-day {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: 36px;
  min-width: 36px;
  max-width: 36px;
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  font-size: 13px;
  line-height: 36px;
}
.mt-booking-quote-form .flatpickr-day:hover,
.mt-booking-quote-form .flatpickr-day:focus { border-color: #3b71fe; background: #edf2ff; }
.mt-booking-quote-form .flatpickr-day.today { border-color: rgba(59, 113, 254, .28); background: rgba(59, 113, 254, .08); color: #245bd8; }
.mt-booking-quote-form .flatpickr-day.selected,
.mt-booking-quote-form .flatpickr-day.startRange,
.mt-booking-quote-form .flatpickr-day.endRange { border-color: #3b71fe; background: #3b71fe; color: #fff; }

@media (max-width: 600px) {
  .mt-booking-quote-dialog {
    width: calc(100vw - 20px);
    height: calc(100dvh - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }
  .mt-booking-quote-dialog__header { gap: 12px; padding: 20px 18px 16px; }
  .mt-booking-quote-dialog__header p:not(.mt-booking-quote-dialog__eyebrow) { font-size: 14px; }
  .mt-booking-quote-form { gap: 13px; padding: 18px 14px 20px 18px; }
  .mt-booking-quote-form__grid--two { grid-template-columns: 1fr; }
  .mt-booking-quote-form__actions { display: grid; }
  .mt-booking-quote-form__button { width: 100%; }
  .mt-booking-quote-form__tour-list { grid-template-columns: 1fr; max-height: 164px; }
  .mt-booking-quote-form .flatpickr-calendar.static { width: min(100%, 330px); }
  .mt-booking-quote-form .flatpickr-day { width: 34px; min-width: 34px; max-width: 34px; height: 34px; min-height: 34px; max-height: 34px; line-height: 34px; }
}

/* Optional per-excursion preferences; the default form remains compact. */
.mt-booking-quote-form__customize[hidden],.mt-booking-quote-form__custom-tour [hidden]{display:none!important}
.mt-booking-quote-form__customize{border-top:1px solid #e7edf5;padding-top:12px}
.mt-booking-quote-form__customize>summary{color:var(--accent,#3b72ff);font-size:14px;line-height:1.5;cursor:pointer}
.mt-booking-quote-form__customize>summary>span{color:#65758b;font-size:12px}
.mt-booking-quote-form__customize>summary:hover{text-decoration:underline}
.mt-booking-quote-form__customize>p{font-size:13px;line-height:1.5;margin:8px 0 12px;color:#65758b}
.mt-booking-quote-form .mt-booking-quote-form__custom-tour{display:grid;min-width:0;border:1px solid #e0e8f2;border-radius:10px;padding:12px;margin-top:10px;gap:10px;background:#fff}
.mt-booking-quote-form__custom-tour>h3{min-width:0;max-width:100%;margin:0;color:#233c67;font-size:14px;font-weight:700;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
.mt-booking-quote-form__custom-fields{display:grid;min-width:0;grid-template-columns:minmax(0,50%) repeat(2,minmax(0,1fr));gap:10px}
.mt-booking-quote-form .mt-booking-quote-form__custom-tour .flatpickr-calendar.static{width:min(330px,calc(100vw - 80px));max-width:none;max-height:min(330px,calc(100dvh - 260px));overflow-y:auto}
.mt-booking-quote-form .mt-booking-quote-form__custom-tour .flatpickr-day{width:100%;min-width:0;max-width:36px}
.mt-booking-quote-form__custom-ages{grid-column:1/-1}
@media(max-width:480px){.mt-booking-quote-form__custom-fields{gap:8px}}
@media(max-width:360px){.mt-booking-quote-form__custom-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.mt-booking-quote-form__custom-fields>label:first-child{grid-column:1/-1}}

/* Option combinations remain compact and use the existing field styling. */
.mt-booking-quote-form__option-list{display:grid;gap:10px;min-width:0}
.mt-booking-quote-form__option-fields{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:end;gap:10px;min-width:0}
.mt-booking-quote-form__option-fields.has-remove{grid-template-columns:minmax(0,2fr) minmax(0,1fr) 32px}
.mt-booking-quote-form__option-fields>label{min-width:0}
.mt-booking-quote-form__option-fields select{min-width:0;text-overflow:ellipsis}
.mt-booking-quote-form .mt-booking-quote-form__add-option{justify-self:start;background:none;border:0;padding:0;color:var(--accent,#3b72ff);font-size:13px;font-weight:400;line-height:1.5;text-align:left;box-shadow:none;cursor:pointer}
.mt-booking-quote-form .mt-booking-quote-form__add-option:hover:not(:disabled){text-decoration:underline}
.mt-booking-quote-form .mt-booking-quote-form__add-option:disabled{opacity:.55;cursor:default}
.mt-booking-quote-form .mt-booking-quote-form__remove-option{height:42px;min-width:32px;background:transparent;border:0;padding:0;color:#65758b;font-size:24px;line-height:1;box-shadow:none;cursor:pointer}
.mt-booking-quote-form .mt-booking-quote-form__remove-option:hover{color:#233c67}
.mt-booking-quote-form__option-list [hidden],.mt-booking-quote-form__custom-tour>[hidden]{display:none!important}
.mt-booking-quote-form__custom-tour>small{font-size:12px;line-height:1.5;color:#65758b}
@media(max-width:480px){.mt-booking-quote-form__option-fields{grid-template-columns:minmax(0,1fr) 90px;gap:8px}.mt-booking-quote-form__option-fields.has-remove{grid-template-columns:minmax(0,1fr) 75px 28px}}
@media(max-width:360px){.mt-booking-quote-form__option-fields,.mt-booking-quote-form__option-fields.has-remove{grid-template-columns:minmax(0,1fr) 32px}.mt-booking-quote-form__option-fields>label:first-child{grid-column:1/-1}.mt-booking-quote-form__option-fields>label:nth-child(2){grid-column:1}}

/* Option-based experiences use their booking choices, without duplicate passengers. */
.mt-booking-quote-form__custom-fields--options{grid-template-columns:minmax(0,1fr)}
.mt-booking-quote-form select:not(.flatpickr-monthDropdown-months){
  appearance:none;-webkit-appearance:none;padding-right:40px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23344d70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:16px;
}
