/*
 * SkyPath visual layer for Index.pe · Tour Departures.
 * Core owns data, markup and Elementor controls; the child theme owns styling.
 * No global palette is declared here: inherit the Elementor V4 --idx-* tokens.
 * Optional widget overrides are locally scoped to each .idx-departures.
 */
.idx-departures {
  --idx-departures-accent: var(--idx-departures-primary, var(--idx-primary, var(--e-global-color-primary, #005189)));
  color: var(--idx-departures-text, #28383d);
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  min-width: 0;
}
.idx-departures *, .idx-departures *::before, .idx-departures *::after { box-sizing: border-box; }
.idx-departures__filters {
  display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-bottom: 22px;
}
.idx-departures__filter {
  display: flex; flex-direction: column; gap: 7px; flex: 1 1 220px; max-width: 380px;
  color: var(--idx-departures-text, #28383d);
  font-family: var(--idx-font-body, "Manrope", sans-serif); font-size: 13px; font-weight: 600;
}
.idx-departures__filter-label { display: block; }
.idx-departures__input, .idx-departures__select {
  appearance: auto; width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--idx-departures-border, #dce3e4); border-radius: 11px;
  background: var(--idx-departures-surface, #fff);
  color: var(--idx-departures-text, #28383d);
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  font-size: 14px; font-weight: 400; line-height: 1.35;
  outline-offset: 3px;
}
.idx-departures__input:focus-visible,
.idx-departures__select:focus-visible,
.idx-departures__table-card:focus-visible,
.idx-departures a:focus-visible {
  outline: 2px solid var(--idx-departures-accent); outline-offset: 3px;
}
.idx-departures__group + .idx-departures__group { margin-top: 30px; }
.idx-departures__group-heading {
  font-family: var(--idx-font-heading, "Manrope", sans-serif);
  font-size: 19px; line-height: 1.3; font-weight: 650;
  margin: 0 0 13px; color: var(--idx-departures-accent);
}
.idx-departures__group-heading a { color: inherit; text-decoration: none; }
.idx-departures__group-heading a:hover { text-decoration: underline; text-underline-offset: 4px; }
.idx-departures__table-card {
  width: 100%; max-width: 100%; overflow-x: auto;
  overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--idx-departures-border, #dce3e4);
  border-radius: 14px; background: var(--idx-departures-surface, #fff);
}
.idx-departures__table {
  width: 100%; min-width: var(--idx-departures-table-min-width, 650px);
  border-collapse: separate; border-spacing: 0; text-align: left;
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  line-height: 1.45; margin: 0; background: transparent;
}
.idx-departures__table th, .idx-departures__table td {
  padding: 16px 18px; text-align: left; vertical-align: middle; border: 0; white-space: nowrap;
}
.idx-departures__table th {
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  font-size: 12px; font-weight: 700; letter-spacing: .025em;
  background: transparent; color: var(--idx-departures-text, #28383d);
}
.idx-departures__table thead {
  background: color-mix(in srgb, var(--idx-departures-accent) 7%, var(--idx-departures-surface, #fff));
}
.idx-departures__table tbody tr { border: 0; }
.idx-departures__table tbody td {
  border-bottom: 1px solid var(--idx-departures-border, #dce3e4);
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  font-size: 14px; color: var(--idx-departures-text, #28383d);
}
.idx-departures__table tbody tr:last-child td { border-bottom: 0; }
.idx-departures__table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--idx-departures-accent) 3%, var(--idx-departures-surface, #fff));
}
.idx-departures__table tbody tr:hover {
  background: color-mix(in srgb, var(--idx-departures-accent) 8%, var(--idx-departures-surface, #fff));
}
.idx-departures__table .idx-departures__name { min-width: 210px; white-space: normal; }
.idx-departures__tour-link {
  color: var(--idx-departures-accent); font-weight: 650; text-decoration: none;
}
.idx-departures__tour-link:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Availability is semantic (never derived from the brand primary color). */
.idx-departures__status {
  display: inline-flex; align-items: center; padding: 5px 9px;
  border-radius: 999px; background: #e5f2e9; color: #245339;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.idx-departures__status--few_spots { background: #fbefcf; color: #75500d; }
.idx-departures__status--sold_out, .idx-departures__status--closed {
  background: #f9e4e4; color: #883030;
}
.idx-departures__price { font-weight: 650; }
.idx-departures__action {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 12px; min-height: 40px; border-radius: 9px;
  background: var(--idx-departures-accent);
  color: var(--idx-departures-action-text, #fff) !important;
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  font-size: 13px; font-weight: 650; line-height: 1.2;
  text-decoration: none !important; white-space: nowrap;
  transition: background-color .18s ease, transform .18s ease;
}
.idx-departures__action:hover {
  background: color-mix(in srgb, var(--idx-departures-accent) 78%, #000);
  color: var(--idx-departures-action-text, #fff) !important; transform: translateY(-1px);
}
.idx-departures__empty {
  padding: 28px 20px; text-align: center;
  border: 1px dashed var(--idx-departures-border, #dce3e4);
  border-radius: 14px; color: var(--idx-departures-text, #28383d); margin: 0;
}
.idx-departures__scroll-hint {
  display: none; color: var(--idx-departures-text, #28383d);
  opacity: .75; font-size: 11px; margin: 8px 2px 0; text-align: right;
}
/* Prevent silently presenting only a capped subset as the full schedule. */
.idx-departures__limit-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--idx-departures-border, #dce3e4);
  border-radius: 9px;
  background: color-mix(in srgb, var(--idx-departures-primary, var(--idx-primary, #005189)) 5%, white);
  color: var(--idx-departures-text, #28383d);
  font-family: var(--idx-font-body, "Manrope", sans-serif);
  font-size: 12px;
}
.idx-departures__count {
  margin: 12px 0 0; color: var(--idx-departures-text, #28383d);
  opacity: .75; font-size: 12px; text-align: right;
}
.idx-departures [hidden] { display: none !important; }
@media (max-width: 767px) {
  .idx-departures__scroll-hint { display: block; }
  .idx-departures__filters { gap: 12px; margin-bottom: 16px; }
  .idx-departures__filter { flex-basis: 100%; max-width: none; }
  .idx-departures__group + .idx-departures__group { margin-top: 24px; }
  .idx-departures__group-heading { font-size: 17px; }
  .idx-departures__table th, .idx-departures__table td { padding: 13px 14px; }
  .idx-departures__table { min-width: var(--idx-departures-table-min-width, 600px); }
}
@media (prefers-reduced-motion: reduce) {
  .idx-departures__action { transition: none; }
  .idx-departures__action:hover { transform: none; }
}
