/* Cargar después de styles.css y css_v3.css. */
#top-search .column1 .uk-card-body:has(.tw-quote) {
  padding: 14px;
  background: #fff;
  border-radius: 28px;
  border: 1px solid #e2eaf1;
  box-shadow: 0 16px 44px #102b4a26;
  overflow: visible;
}
#top-search:has(.tw-quote),
#top-search .column1:has(.tw-quote) {
  overflow: visible;
}
#searchForm.tw-quote {
  margin: 0;
  display: block;
  color: #213d65;
  font-family: inherit;
}
.tw-quote * {
  box-sizing: border-box;
}
.tw-quote [hidden] {
  display: none !important;
}
.tw-quote-bar {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 1.12fr 1fr 1.25fr auto;
  align-items: stretch;
  gap: 0;
  background: #f3f6f9;
  border-radius: 20px;
  padding: 6px;
}
.tw-quote-field {
  min-width: 0;
  padding: 13px 14px;
  position: relative;
  border-right: 1px solid #dbe3eb;
}
.tw-quote-field > label,
.tw-quote-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #213d65;
  margin: 0 0 7px;
}
#searchForm.tw-quote .uk-input,
#searchForm.tw-quote .uk-select,
#searchForm.tw-quote #destiny {
  width: 100%;
  min-width: 0;
  height: 32px !important;
  padding: 0 24px 0 0 !important;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  color: #466079;
  font-size: 11px;
  line-height: 32px;
  font-family: inherit;
  text-overflow: ellipsis;
}
#searchForm.tw-quote input::placeholder {
  color: #65798c;
  opacity: 1;
}
.tw-quote-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.tw-quote-summary {
  display: block;
  min-height: 32px;
  line-height: 32px;
  font-size: 11px;
  color: #466079;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}
.tw-quote-toggle:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 51px;
  width: 6px;
  height: 6px;
  border-right: 2px solid #0077be;
  border-bottom: 2px solid #0077be;
  transform: rotate(45deg);
}
.tw-quote-field:focus-within {
  background: #fff;
  border-radius: 14px;
}
.tw-quote :focus-visible {
  outline: 2px solid #0077be !important;
  outline-offset: 4px;
}
#searchForm.tw-quote .tw-quote-submit {
  align-self: center;
  min-height: 62px;
  min-width: 124px;
  margin: 0 0 0 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 16px;
  background: #0077be;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px #0077be26;
}
.tw-quote-submit:hover {
  background: #005f9b !important;
}
.tw-quote-footer {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
  font-size: 13px;
  line-height: 1.5;
}
.tw-quote-footer a {
  color: #466079;
}
.tw-quote-footer strong {
  color: #0077be;
}
.tw-quote-panel {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  max-width: calc(100vw - 32px);
  padding: 22px;
  border: 1px solid #dce5ed;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 50px #132f5030;
  max-height: 70vh;
  overflow: auto;
}
.tw-quote-panel > label {
  font-weight: 600;
  font-size: 14px;
}
#searchForm.tw-quote .tw-quote-panel .uk-select {
  height: 44px !important;
  margin: 8px 0 0;
  padding: 0 12px !important;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  background-color: #f8fafc;
  font-size: 16px;
}
.tw-quote-panel h3 {
  margin: 20px 0 8px;
  color: #213d65;
  font-size: 19px;
  font-weight: 700;
}
.tw-quote-hint {
  margin: 0 0 14px;
  color: #65798c;
  font-size: 13px;
  line-height: 1.5;
}
.tw-age-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
}
.tw-age-row label {
  font-size: 14px;
  font-weight: 600;
  color: #466079;
}
#searchForm.tw-quote .tw-age-row input {
  height: 44px !important;
  flex: 0 0 78px;
  width: 78px;
  border: 1px solid #c9d7e3;
  border-radius: 10px;
  padding: 0 10px !important;
  text-align: center;
  background: #f8fafc;
  font-size: 16px;
}
.tw-quote-apply {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #213d65;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px;
  margin-top: 18px;
  cursor: pointer;
  min-height: 44px;
}
.tw-quote-error {
  font-size: 13px;
  color: #b52626;
  margin: 12px 0;
}
.tw-quote-legacy {
  display: none !important;
}
@media (min-width: 1200px) {
  #top-search:has(.tw-quote) > .uk-container {
    max-width: 1440px;
  }
}
@media (max-width: 1199px) {
  .tw-quote-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .tw-quote-field {
    border: 0;
  }
  .tw-quote-submit {
    width: calc(100% - 10px);
  }
  .tw-quote-panel {
    left: auto;
    right: 0;
    transform: none;
  }
}
@media (max-width: 767px) {
  #top-search .column1 .uk-card-body:has(.tw-quote) {
    padding: 12px;
    border-radius: 20px;
  }
  .tw-quote-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: transparent;
    gap: 10px;
    padding: 0;
  }
  .tw-quote-field {
    padding: 13px 12px;
    background: #f3f6f9;
    border: 1px solid #e2eaf1;
    border-radius: 14px;
  }
  .tw-quote-field > label,
  .tw-quote-label {
    font-size: 13px;
  }
  #searchForm.tw-quote .uk-input,
  #searchForm.tw-quote .uk-select,
  #searchForm.tw-quote #destiny,
  .tw-quote-summary {
    font-size: 16px;
  }
  .tw-quote-panel {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: none;
    margin-top: 14px;
    box-shadow: none;
    padding: 16px;
    max-height: none;
  }
  .tw-quote-passengers:has(.tw-quote-panel:not([hidden])) {
    grid-column: 1/-1;
  }
  .tw-quote-footer {
    justify-content: center;
    text-align: center;
    padding: 14px 0 0;
  }
  #searchForm.tw-quote .tw-quote-submit {
    width: 100%;
    margin: 0;
    min-height: 62px;
  }
}
@media (max-width: 479px) {
  .tw-quote-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .tw-quote-field {
    padding: 12px 14px;
  }
  .tw-quote-field > label,
  .tw-quote-label {
    font-size: 14px;
  }
  .tw-quote-summary {
    min-height: 28px;
    line-height: 28px;
  }
  .tw-quote-toggle:after {
    top: 48px;
  }
  .tw-quote-footer {
    font-size: 12px;
  }
}
/* Calendario existente: permite dos meses en escritorio y una columna en móvil. */
@media (max-width: 767px) {
  body:has(.tw-quote) .daterangepicker {
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
  }
  body:has(.tw-quote) .daterangepicker .drp-calendar {
    float: none;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  body:has(.tw-quote) .daterangepicker .drp-calendar.left,
  body:has(.tw-quote) .daterangepicker .drp-calendar.right {
    padding: 8px;
  }
  body:has(.tw-quote) .daterangepicker .drp-buttons {
    white-space: normal;
  }
  body:has(.tw-quote) .flatpickr-calendar {
    max-width: calc(100vw - 16px);
  }
}
