/* Popovers de huéspedes y calendario (estilo VDV) */
.c-search-popover {
  position: fixed;
  z-index: 1200;
  min-width: 280px;
  max-width: 360px;
  max-height: min(72dvh, 520px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  border: 1px solid #ddd;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  overflow: hidden;
}

.c-search-popover.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-search-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.c-search-popover__close {
  border: none;
  background: none;
  color: #666;
  font-size: 18px;
  padding: 4px;
  cursor: pointer;
}

.c-search-popover__body {
  padding: 12px 16px 16px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}

.c-guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.c-guest-row:last-child {
  border-bottom: none;
}

.c-guest-row__label strong {
  display: block;
  font-size: 14px;
  color: #222;
}

.c-guest-row__label small {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}

.c-guest-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.c-guest-counter button {
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.c-guest-counter button:disabled {
  opacity: 0.35;
  cursor: default;
}

.c-guest-counter span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.c-guest-room {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.c-guest-room__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 4px;
}

.c-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.c-guest-actions .c-button--link {
  border: none;
  background: rgba(45, 138, 184, 0.08);
  color: var(--checkit-sky-deep, #2d8ab8);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.c-guest-actions .c-button--link:hover {
  background: rgba(45, 138, 184, 0.14);
  color: #1f6f96;
}

.c-child-ages {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e6e6e6;
}

.c-child-age-select {
  min-width: 110px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: #222;
  background: #fff;
}

.c-guest-row--child-age {
  align-items: center;
}

.c-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.c-calendar-nav button {
  border: none;
  background: #f5f5f5;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
}

.c-calendar-nav strong {
  font-size: 14px;
  text-transform: capitalize;
}

.c-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 12px;
}

.c-calendar-grid__head {
  color: #888;
  font-weight: 600;
  padding: 4px 0;
}

.c-calendar-day {
  border: none;
  background: transparent;
  padding: 8px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
}

.c-calendar-day:hover:not(:disabled) {
  background: #f0f0f0;
}

.c-calendar-day.is-selected {
  background: var(--s-color-brand-primary);
  color: #fff;
}

.c-calendar-day.is-today {
  border: 1px solid #999;
}

.c-calendar-day:disabled {
  color: #ccc;
  cursor: default;
}

.c-time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.c-time-grid button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 8px 4px;
  font-size: 12px;
  cursor: pointer;
  color: #333;
}

.c-time-grid button:hover,
.c-time-grid button.is-selected {
  background: var(--s-color-brand-primary);
  border-color: var(--s-color-brand-primary);
  color: #fff;
}

.c-search-field .js-date-picker {
  cursor: pointer;
}

.c-travel-compiler {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(6, 42, 74, 0.12);
  box-shadow: 0 8px 24px rgba(6, 42, 74, 0.08);
}

.c-travel-compiler__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: #0f172a;
}

.c-travel-compiler__head i {
  color: var(--s-color-brand-primary, #e85d04);
  font-size: 1.2rem;
  margin-top: 2px;
}

.c-travel-compiler__head strong {
  display: block;
  font-size: 0.98rem;
}

.c-travel-compiler__head span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.86rem;
}

.c-travel-compiler__list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

.c-travel-compiler__item {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.c-travel-compiler__item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.c-travel-compiler__item-head strong {
  flex: 1;
  font-size: 0.92rem;
  color: #0f172a;
}

.c-travel-compiler__item p {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.c-travel-compiler__details {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.c-travel-compiler__details li {
  margin: 0;
  color: #475569;
  font-size: 0.84rem;
  line-height: 1.45;
}

.c-travel-compiler__details li::before {
  content: '·';
  margin-right: 6px;
  color: var(--s-color-brand-primary, #e85d04);
  font-weight: 700;
}

.c-travel-compiler__item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--s-color-brand-primary, #e85d04);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.c-travel-compiler__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.c-travel-compiler__remove:hover {
  color: #c2410c;
}

.c-travel-compiler__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.c-search-panel__catalog-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-right: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--s-color-brand-primary, #e85d04);
  text-decoration: none;
}

.c-search-panel__catalog-link:hover {
  text-decoration: underline;
}

.c-search-panel__row--circuitos .c-search-submit-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.c-travel-compiler-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 1400;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(6, 42, 74, 0.96);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.c-travel-compiler-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.c-fast-track-reserve {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 93, 4, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(232, 93, 4, 0.35);
}

.c-fast-track-reserve__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.c-fast-track-reserve__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.2);
  color: #ffd6a8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.c-fast-track-reserve__exit {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}

.c-fast-track-reserve__exit:hover {
  color: #fff;
}

.c-fast-track-reserve__summary {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.45;
}

.c-fast-track-reserve__contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.c-fast-track-reserve__contact label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.72);
}

.c-fast-track-reserve__contact input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 10px 11px;
  font: inherit;
}

.c-fast-track-reserve__contact input:focus {
  outline: none;
  border-color: rgba(232, 93, 4, 0.65);
  box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.2);
}

.c-fast-track-reserve__hint {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

.c-fast-track-reserve__hint i {
  color: #25d366;
}

.search-form-vdv.is-fast-track .c-search-submit-wrap .c-button--brand {
  animation: c-fast-track-pulse 2.4s ease-in-out infinite;
}

@keyframes c-fast-track-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(232, 93, 4, 0); }
}

@media (max-width: 900px) {
  .c-fast-track-reserve__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .c-fast-track-reserve__contact {
    grid-template-columns: 1fr;
  }
}

.c-travel-compiler-modal__lead {
  margin: 0;
  color: #475569;
  line-height: 1.5;
  font-size: 0.9rem;
}

.c-travel-compiler-modal__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.c-travel-compiler-modal__label i {
  width: 1rem;
  color: var(--s-color-brand-primary, #e85d04);
  text-align: center;
}

.c-travel-compiler-modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.c-travel-compiler-modal__grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #334155;
}

.c-travel-compiler-modal__full {
  grid-column: 1 / -1;
}

.c-travel-compiler-modal__grid input,
.c-travel-compiler-modal__grid select,
.c-travel-compiler-modal__grid textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}

.c-travel-compiler-modal__notes-field textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.45;
}

.c-travel-compiler-modal__legal {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}

.c-travel-compiler-modal__legal i {
  margin-top: 1px;
  color: #94a3b8;
}

.c-travel-compiler-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.c-travel-compiler-modal__ref {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #0f172a;
  font-weight: 600;
}

@media (max-width: 640px) {
  .c-travel-compiler-modal__grid {
    grid-template-columns: 1fr;
  }
}

.c-search-panel__toolbar--multi {
  align-items: flex-start;
  gap: 12px;
}

.c-search-multi-dest__hint {
  margin: 0;
  flex: 1 1 240px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.c-search-multi-dest {
  display: grid;
  gap: 12px;
  margin: 0 0 14px;
}

.c-search-multi-dest__segment {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.c-search-multi-dest__segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.c-search-multi-dest__segment-head strong {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.c-search-multi-dest__remove {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.c-search-multi-dest__remove:hover {
  background: rgba(239, 68, 68, 0.35);
}

.c-search-multi-dest__segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.c-search-multi-dest__optional {
  font-weight: 400;
  opacity: 0.75;
}

.c-search-multi-dest__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-search-multi-dest__add:hover {
  opacity: 0.85;
}

.search-form-vdv.is-multi-dest-mode .c-search-panel__row > div:not(:has(.c-search-field__trigger)):not(.c-search-submit-wrap) {
  display: none;
}

.search-form-vdv.is-multi-dest-mode .c-search-panel__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 720px) {
  .search-form-vdv.is-multi-dest-mode .c-search-panel__row {
    grid-template-columns: 1fr;
  }
}

.c-search-custom-value {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font: inherit;
}

.c-search-custom-value::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.c-search-custom-value:focus {
  outline: none;
  border-color: rgba(0, 119, 200, 0.75);
  box-shadow: 0 0 0 2px rgba(0, 119, 200, 0.22);
}

.c-search-custom-value[hidden] {
  display: none;
}

/* ── Transportes: solo vuelo (sin alojamiento) ── */
.search-form-vdv--flight-only.is-flight-oneway [data-flight-field="return"] {
  display: none;
}

.search-form-vdv--flight-only.is-flight-multi-mode [data-flight-single-row] {
  display: none;
}

.search-form-vdv--flight-only:not(.is-flight-multi-mode) [data-flight-multi-row] {
  display: none;
}

.c-search-panel__swap-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
}

.c-search-swap-locations {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.c-search-swap-locations:hover {
  border-color: rgba(0, 119, 200, 0.65);
  background: rgba(0, 119, 200, 0.18);
}

.c-flight-multi-dest__hint {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.c-flight-multi-dest__segment {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.c-flight-multi-dest__segment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.c-flight-multi-dest__segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.c-flight-multi-dest__remove {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.c-flight-multi-dest__add {
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.c-search-panel__row--flight-multi-footer {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .c-search-panel__swap-wrap {
    display: none;
  }
}
