/* The tour filters' additions (adc-api#3429), drawn by tourSearch.js: each multi-select filter's
   chosen names and clear button, the Tour Class checkbox list, and the How we rate tours box.
   Linked from the search box (templates/deals_search_box.php) and the tour search page
   (Tour_search.php), the two places the filters appear. */

/* A filter's field names its choices ("Tour Operators (Collette + 2 more)"); a name too long for
   the field ends in an ellipsis, and the field's tooltip and its Edit box list every one. */
#filters_container_sticky .dropdown-toggle .d-flex {
  min-width: 0;
  overflow: hidden;
}

#filters_container_sticky .dropdown-toggle .filterCount {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The clear button sits on the field, left of its Edit or caret, outside the field's own button. */
#filters_container_sticky .dropdown.has-filter-clear {
  position: relative;
}

/* The names stop short of the clear button, which sits just left of Edit (12 to 36px from the
   field's right edge) or, on Tour Class's field, of its caret. */
#filters_container_sticky .dropdown.has-filter-clear:has(.filter-clear:not([hidden])) .dropdown-toggle .d-flex {
  margin-right: 34px;
}

#filters_container_sticky .filter-clear {
  position: absolute;
  top: 50%;
  right: 42px;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #e3e8ec;
  color: #1f2d3a;
  font: bold 15px/22px Arial, sans-serif;
  text-align: center;
  cursor: pointer;
}

#filters_container_sticky .filter-clear:hover,
#filters_container_sticky .filter-clear:focus-visible {
  background: #c3ccd4;
}

#filters_container_sticky .filter-clear:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 1px;
}

#filters_container_sticky #tour-quality-filter-dropdown .filter-clear {
  right: 28px;
}

.tc-filter {
  min-width: 0;
  margin: 0;
  padding: 2px 0 0;
  border: 0;
}

/* The dropdown's own button already says Tour Class, so the legend is for screen readers only. */
.tc-filter-legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.tc-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: start;
  padding: 7px 2px;
  border-top: 1px solid #e3e8ec;
}

.tc-option:first-of-type {
  border-top: 0;
}

.tc-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #004a83;
  cursor: pointer;
}

/* The search box's stylesheets set labels white or dark, bold and floated (search-box.css sets
   #main_search_box.sbx label bold), so color and weight win here. */
.tc-option label {
  display: block;
  float: none;
  min-width: 0;
  margin: 0;
  color: #1f2d3a !important;
  font-size: 14px;
  font-weight: normal !important;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.tc-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.tc-option-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 14px;
}

.tc-option-range,
.tc-option-count {
  color: #4d5d6b;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tc-option-count {
  white-space: nowrap;
}

.tc-option-meaning {
  display: block;
  margin-top: 2px;
  color: #4d5d6b;
  font-size: 12px;
  line-height: 1.35;
}

.tc-option.is-off {
  opacity: 0.55;
}

.tc-option.is-off input,
.tc-option.is-off label {
  cursor: not-allowed;
}

.tc-filter-how {
  margin: 6px 0 0;
  font-size: 13px;
}

/* Touch screens: taller rows, so each is easy to tap. */
@media (pointer: coarse) {
  .tc-option {
    min-height: 44px;
    padding: 9px 2px;
  }
}

/* How we rate tours */
.tc-how-box {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0 22px 18px;
  overflow-y: auto;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #1f2d3a;
  box-shadow: 0 20px 50px rgb(0 0 0 / 30%);
  font: 15px/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif;
  text-align: left;
}

.tc-how-box::backdrop {
  background: rgb(10 30 50 / 45%);
}

.tc-how-head {
  display: flex;
  position: sticky;
  top: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -22px 4px;
  padding: 14px 10px 10px 22px;
  border-bottom: 1px solid #e3e8ec;
  background: #fff;
}

.tc-how-head h2 {
  margin: 0;
  color: #004a83;
  font-size: 20px;
  line-height: 1.25;
}

.tc-how-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #004a83;
  font: 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.tc-how-box p {
  margin: 10px 0;
}

.tc-how-basis {
  margin: 4px 0 10px;
  padding-left: 20px;
  list-style: disc;
}

.tc-how-basis li {
  display: list-item;
  margin: 2px 0;
}

.tc-how-levels {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.tc-how-levels li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.tc-how-range {
  color: #4d5d6b;
  font-size: 13px;
}

@media (width <= 480px) {
  .tc-how-box {
    padding: 0 16px 16px;
  }

  .tc-how-head {
    margin: 0 -16px 4px;
    padding-left: 16px;
  }

  .tc-how-levels li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.tc-how-box :focus-visible,
.tc-option input:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 2px;
}

/* The card's rules apply only inside .tsx-card, so they cannot override the older form's rules above,
   which stylelint's ordering check compares them with. */
/* stylelint-disable no-descending-specificity */

/* ------------------------------------------------------------------------------------------------
   The card form (tsx-card): the redesigned tour search box and tour search sidebar. One card of rows,
   each with its icon, its label and, below, its value (Any, or what is chosen); a chosen row tinted.
   When and How long open in place with live counts (tourSearch.js refreshOptionCounts). Everything
   here is scoped to .tsx-card, so the older form, still served where its copy is not yet updated,
   keeps its own look.
   ------------------------------------------------------------------------------------------------ */

/* The count heads the card: room above and below it, the number given its weight. The search
   box's stylesheet sets this line's margins with a stronger selector, so this one names the box. */
#main_search_box #filters_container_sticky.tsx-card .total_tour_counts,
#filters_container_sticky.tsx-card .total_tour_counts {
  margin: 18px 2px 14px;
  color: #5b6b78;
  font-size: 15px;
  font-weight: normal;
  line-height: 22px;
  text-align: left;
}

#filters_container_sticky.tsx-card .total_tour_counts strong {
  margin-right: 2px;
  color: #004a83;
  font-size: 18px;
}

#filters_container_sticky.tsx-card .tsx-rows,
#filters_container_sticky.tsx-card .tsx-more,
#filters_container_sticky.tsx-card #tour_advance_search_content:not(.hide) {
  border: 1px solid #dfe8f1;
  border-radius: 12px;
  background-color: #fff;
}

#filters_container_sticky.tsx-card .tsx-more,
#filters_container_sticky.tsx-card #tour_advance_search_content:not(.hide) {
  margin-top: 12px;
}

#filters_container_sticky.tsx-card .tsx-more-title {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  color: #004a83;
  font-size: 14px;
  font-weight: bold;
}

/* The rows touch, so an open panel's tint meets the next row's line; the box gives each field 7px
   below it otherwise, which showed as a white strip under an open panel. */
#main_search_box #filters_container_sticky.tsx-card .filter,
#filters_container_sticky.tsx-card .tsx-rows .form-inline,
#filters_container_sticky.tsx-card .tsx-rows .filter,
#filters_container_sticky.tsx-card .tsx-more .filter,
#filters_container_sticky.tsx-card #tour_advance_search_content .form-inline {
  margin: 0;
  padding: 0;
}

#filters_container_sticky.tsx-card .tsx-rows > .form-inline + .form-inline,
#filters_container_sticky.tsx-card .tsx-rows > .filter + .filter,
#filters_container_sticky.tsx-card .tsx-more .filter + .filter,
#filters_container_sticky.tsx-card #tour_advance_search_content .form-inline + .form-inline {
  border-top: 1px solid #edf2f7;
}

#filters_container_sticky.tsx-card .dropdown .dropdown-toggle.btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  height: auto;
  margin: 0;

  /* The p-6px utility on some fields is !important; every row keeps the same inset. */
  padding: 12px 14px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #1f2a37;
  font-size: 0;
  text-align: left;
  white-space: normal;
}

#filters_container_sticky.tsx-card .dropdown .dropdown-toggle.btn:hover,
#filters_container_sticky.tsx-card .dropdown .dropdown-toggle.btn:focus-visible {
  background-color: #f6faff;
}

#filters_container_sticky.tsx-card .dropdown .dropdown-toggle.btn:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: -3px;
}

#filters_container_sticky.tsx-card .dropdown.is-chosen .dropdown-toggle.btn,
#filters_container_sticky.tsx-card .dropdown.open .dropdown-toggle.btn {
  background-color: #f6faff;
}

/* The row's icon, in a tinted square; navy with a white icon once the row has a choice. */
#filters_container_sticky.tsx-card .tsx-rows .dropdown-toggle::before {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #eef4fa;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
  content: "";
}

#filters_container_sticky.tsx-card .tsx-rows .dropdown.is-chosen .dropdown-toggle::before {
  background-color: #004a83;
}

#filters_container_sticky.tsx-card #departure-date-filter-dropdown .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 9h18M8 3v4M16 3v4M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #trip-length-filter-dropdown .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #destination-filter-dropdown .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #tour-styles-filter-dropdown .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M15.5 8.5l-2 5-5 2 2-5zM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #tour-operators-filter-dropdown .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 21V4h11l-2 4 2 4H5%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #departure-date-filter-dropdown.is-chosen .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 9h18M8 3v4M16 3v4M5 5h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #trip-length-filter-dropdown.is-chosen .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #destination-filter-dropdown.is-chosen .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #tour-styles-filter-dropdown.is-chosen .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M15.5 8.5l-2 5-5 2 2-5zM21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0z%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card #tour-operators-filter-dropdown.is-chosen .dropdown-toggle::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M5 21V4h11l-2 4 2 4H5%27/%3E%3C/svg%3E");
}

#filters_container_sticky.tsx-card .dropdown-toggle .d-flex,
#filters_container_sticky.tsx-card .dropdown-toggle .two-line-label {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

#filters_container_sticky.tsx-card .dropdown-toggle .filter_loader {
  float: none;
  color: #5b6b78;
  font-size: 12px;
  font-weight: normal;
  line-height: 16px;
}

#filters_container_sticky.tsx-card .dropdown-toggle .filterCount {
  max-width: 100%;
  color: #8a99a6;
  font-size: 16px;
  font-weight: normal;
  line-height: 21px;
}

#filters_container_sticky.tsx-card .dropdown.is-chosen .dropdown-toggle .filterCount {
  color: #004a83;
  font-weight: bold;
}

/* One chevron for every row: down where the row opens in place, across where it opens a list. */
#filters_container_sticky.tsx-card .dropdown-toggle .caret {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238a99a6%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E") center / 16px no-repeat;
}

#filters_container_sticky.tsx-card .dropdown.open .dropdown-toggle .caret {
  transform: rotate(180deg);
}

#filters_container_sticky.tsx-card .dropdown-toggle.btn-flex::after {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238a99a6%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M9 6l6 6-6 6%27/%3E%3C/svg%3E") center / 16px no-repeat;
  content: "";
}

#filters_container_sticky.tsx-card .dropdown.has-filter-clear:has(.filter-clear:not([hidden])) .dropdown-toggle .d-flex {
  margin-right: 30px;
}

#filters_container_sticky.tsx-card .filter-clear {
  right: 40px;
  background: #eef3f8;
  color: #5b6b78;
  font-size: 13px;
}

/* When and How long open in place, under their row, instead of as a menu over the form. */
#filters_container_sticky.tsx-card .dropdown-menu {
  position: static;
  float: none;
  width: 100%;
  margin: 0;
  padding: 0 14px 14px;
  border: 0;
  border-radius: 0;
  background-color: #f6faff;
  box-shadow: none;
}

#filters_container_sticky.tsx-card .tsx-panel-note {
  margin: 0 0 10px;
  color: #5b6b78;
  font-size: 12px;
}

#filters_container_sticky.tsx-card .tsx-months {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

#filters_container_sticky.tsx-card .tsx-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 4px 0 3px;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  background-color: #fff;
  color: #1f2a37;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

#filters_container_sticky.tsx-card .tsx-month:hover,
#filters_container_sticky.tsx-card .tsx-month:focus-visible {
  border-color: #004a83;
}

#filters_container_sticky.tsx-card .tsx-month.is-on {
  border-color: #004a83;
  background-color: #004a83;
  box-shadow: 0 4px 10px rgb(0 74 131 / 30%);
  color: #fff;
}

#filters_container_sticky.tsx-card .tsx-month.is-none:not(.is-on) {
  color: #8a99a6;
}

#filters_container_sticky.tsx-card .tsx-month-name {
  font-size: 12px;
  font-weight: bold;
  line-height: 15px;
}

#filters_container_sticky.tsx-card .tsx-month-year {
  font-size: 10px;
  opacity: 0.8;
}

#filters_container_sticky.tsx-card .tsx-month-bar {
  display: flex;
  align-items: flex-end;
  height: 12px;
  margin: 2px 0;
}

#filters_container_sticky.tsx-card .tsx-month-bar i {
  display: block;
  width: 14px;
  height: 0;
  border-radius: 2px 2px 0 0;
  background-color: #6f9cc4;
}

#filters_container_sticky.tsx-card .tsx-month.is-on .tsx-month-bar i {
  background-color: #fff;
}

#filters_container_sticky.tsx-card .tsx-month-n {
  min-height: 13px;
  font-size: 10px;
  white-space: nowrap;
}

#filters_container_sticky.tsx-card .tsx-any-month {
  padding: 0;
  border: 0;
  background: none;
  color: #004a83;
  font-size: 14px;
  cursor: pointer;
}

/* The month selects stay in the form for the search to read; the tiles set them. */
#filters_container_sticky.tsx-card .departuredate-select,
#filters_container_sticky.tsx-card .trip-length-slider {
  display: none;
}

#filters_container_sticky.tsx-card .tsx-lengths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

/* A tile a length, as When's month tiles: the length, and under it how many tours. */
#filters_container_sticky.tsx-card .tsx-length {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 4px;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  background-color: #fff;
  color: #1f2a37;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

#filters_container_sticky.tsx-card .tsx-length:hover,
#filters_container_sticky.tsx-card .tsx-length:focus-visible {
  border-color: #004a83;
}

#filters_container_sticky.tsx-card .tsx-length-name {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
}

#filters_container_sticky.tsx-card .tsx-length-n {
  color: #5b6b78;
  font-size: 12px;
  white-space: nowrap;
}

#filters_container_sticky.tsx-card .tsx-length.is-on {
  border-color: #004a83;
  background-color: #004a83;
  box-shadow: 0 4px 10px rgb(0 74 131 / 30%);
  color: #fff;
}

#filters_container_sticky.tsx-card .tsx-length.is-on .tsx-length-n {
  color: #cfe2f3;
}

#filters_container_sticky.tsx-card .tsx-length.is-none:not(.is-on) {
  border-style: dashed;
  color: #8a99a6;
}

#filters_container_sticky.tsx-card .tsx-length.is-none:not(.is-on) .tsx-length-n {
  color: #8a99a6;
}

/* Any exact length or range, under the tiles: From, to, To, and Apply on one line. */
#filters_container_sticky.tsx-card .tsx-length-custom {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e3ebf3;
}

#filters_container_sticky.tsx-card .tsx-length-custom-label {
  display: block;
  margin-bottom: 6px;
  color: #1f2a37;
  font-size: 13px;
  font-weight: bold;
}

#filters_container_sticky.tsx-card .tsx-length-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5b6b78;
  font-size: 13px;
}

#filters_container_sticky.tsx-card .tsx-length-inputs input {
  box-sizing: border-box;
  width: 0;
  min-width: 0;
  height: 40px;
  flex: 1 1 0;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #fff;
  color: #1f2a37;
  font-size: 16px;
}

#filters_container_sticky.tsx-card .tsx-length-inputs input:focus {
  border-color: #004a83;
  outline: 0;
}

#filters_container_sticky.tsx-card .tsx-length-inputs input:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 1px;
}

#filters_container_sticky.tsx-card .tsx-length-apply {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background-color: #004a83;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
}

#filters_container_sticky.tsx-card .tsx-length-apply:hover,
#filters_container_sticky.tsx-card .tsx-length-apply:focus-visible {
  background-color: #00335c;
}

#filters_container_sticky.tsx-card .tsx-length-hint {
  margin: 6px 0 0;
  color: #5b6b78;
  font-size: 12px;
  line-height: 1.4;
}

/* In a narrow side box, two across, so "12 – 15 days" fits its tile. */
#filters_container_sticky.tsx-card #trip-length-filter-dropdown .dropdown-menu {
  container-type: inline-size;
}

@container (width < 320px) {
  #filters_container_sticky.tsx-card .tsx-lengths {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Choosing a length applies it (tourSearch.js), so How long has no Apply or Cancel. */
#filters_container_sticky.tsx-card #trip-length-filter-dropdown .filter-border-top {
  display: none;
}

#filters_container_sticky.tsx-card .tsx-n {
  color: #5b6b78;
  font-size: 11px;
  font-weight: normal;
}

/* Where's list: a destination with no tours under the other choices is greyed, not hidden. */
.fancybox_content .checkbox.tsx-none label {
  color: #8a99a6;
}

.fancybox_content .tsx-n {
  margin-left: 4px;
  color: #5b6b78;
  font-size: 12px;
}

/* Stops in: the place box as a row, its label above it like the others. */
#filters_container_sticky.tsx-card .tsx-rows .search--box {
  position: relative;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 60px;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 2px;
  padding: 10px 14px 10px 62px;
}

#filters_container_sticky.tsx-card .tsx-rows .search--box::before {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fa url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21zM12 7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z%27/%3E%3C/svg%3E") center / 18px no-repeat;
  content: "";
}

/* Once a place is chosen, the row is marked as the others are: tinted, its icon navy. */
#filters_container_sticky.tsx-card .tsx-rows .search--box:has(.select2-selection__choice) {
  background-color: #f6faff;
}

#filters_container_sticky.tsx-card .tsx-rows .search--box:has(.select2-selection__choice)::before {
  background: #004a83 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21zM12 7a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5z%27/%3E%3C/svg%3E") center / 18px no-repeat;
}

#filters_container_sticky.tsx-card .tsx-row-label {
  color: #5b6b78;
  font-size: 12px;
  line-height: 16px;
}

#filters_container_sticky.tsx-card .select2-container--default .select2-selection--multiple {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#filters_container_sticky.tsx-card .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0;
}

#filters_container_sticky.tsx-card .select2-container--default .select2-search--inline .select2-search__field {
  /* An older rule sets margin-left: 11px !important on every input in a select2 box, and the search
     box's stylesheet pads it; the row's own inset is the only one. */
  margin: 0 !important;
  padding: 0 !important;
  color: #1f2a37;
  font-size: 16px;
}

#filters_container_sticky.tsx-card .select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: #8a99a6;
}

#filters_container_sticky.tsx-card .select2-container--default .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 6px 2px 0;
  padding: 4px 8px 4px 12px;
  border: 1px solid #004a83;
  border-radius: 16px;
  background-color: #f2f7fc;
  color: #004a83;
  font-weight: bold;
}

/* select2 places a chip's remove absolutely, over the end of the name; here it follows the name. */
#filters_container_sticky.tsx-card .select2-container--default .select2-selection__choice__remove {
  position: static;
  order: 2;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #5b6b78;
  font-size: 15px;
  line-height: 1;
}

#filters_container_sticky.tsx-card .select2-container--default .select2-selection__choice__remove:hover {
  background: none;
  color: #004a83;
}

/* More filters: the card's last row, like the rows above it, and what it holds at rest or how many
   of its filters are in use; its filters open under it. Under them, Guaranteed with its count and
   why it may not narrow the search. */
#filters_container_sticky.tsx-card .tsx-rows:has(+ #tour_advance_search_btn) {
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

#filters_container_sticky.tsx-card #tour_advance_search_btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;

  /* The older form's More filters link has margins marked !important (deals_search_box_tour.css). */
  margin: 0 !important;
  padding: 12px 14px;
  border: 1px solid #dfe8f1;
  border-top-color: #edf2f7;
  border-radius: 0 0 12px 12px;
  background-color: #fff;
  text-align: left;
  cursor: pointer;
}

#filters_container_sticky.tsx-card #tour_advance_search_btn::before {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef4fa url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23004a83%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M4 7h10M18 7h2M4 17h4M12 17h8%27/%3E%3Ccircle cx=%2716%27 cy=%277%27 r=%272%27/%3E%3Ccircle cx=%2710%27 cy=%2717%27 r=%272%27/%3E%3C/svg%3E") center / 18px no-repeat;
  content: "";
}

#filters_container_sticky.tsx-card #tour_advance_search_btn.is-chosen::before {
  background: #004a83 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23ffffff%27 stroke-width=%272%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M4 7h10M18 7h2M4 17h4M12 17h8%27/%3E%3Ccircle cx=%2716%27 cy=%277%27 r=%272%27/%3E%3Ccircle cx=%2710%27 cy=%2717%27 r=%272%27/%3E%3C/svg%3E") center / 18px no-repeat;
}

#filters_container_sticky.tsx-card #tour_advance_search_btn::after {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%238a99a6%27 stroke-width=%272%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E") center / 16px no-repeat;
  content: "";
}

/* ...and a red underline on hover; the row's tint marks hover instead. */
#filters_container_sticky.tsx-card #tour_advance_search_btn span:hover {
  text-decoration-line: none;
}

#filters_container_sticky.tsx-card #tour_advance_search_btn[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

#filters_container_sticky.tsx-card #tour_advance_search_btn:hover,
#filters_container_sticky.tsx-card #tour_advance_search_btn.is-chosen,
#filters_container_sticky.tsx-card #tour_advance_search_btn[aria-expanded="true"] {
  background-color: #f6faff;
}

#main_search_box.sbx #filters_container_sticky.tsx-card #tour_advance_search_btn:focus-visible,
#filters_container_sticky.tsx-card #tour_advance_search_btn:focus-visible {
  outline-offset: -2px;
}

/* Open, the row's filters continue the card under it. */
#filters_container_sticky.tsx-card #tour_advance_search_btn[aria-expanded="true"] {
  border-radius: 0;
}

#filters_container_sticky.tsx-card #tour_advance_search_btn + #tour_advance_search_content:not(.hide) {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

#filters_container_sticky.tsx-card .tsx-more-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#filters_container_sticky.tsx-card .tsx-more-label {
  color: #5b6b78;
  font-size: 12px;
  line-height: 16px;
}

#filters_container_sticky.tsx-card .tsx-more-value {
  overflow: hidden;
  color: #8a99a6;
  font-size: 16px;
  line-height: 21px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#filters_container_sticky.tsx-card #tour_advance_search_btn.is-chosen .tsx-more-value {
  color: #004a83;
  font-weight: bold;
}

#filters_container_sticky.tsx-card #guranteedFilter {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 4px 8px;
  padding: 12px 14px;
  text-align: left;
}

#filters_container_sticky.tsx-card #guranteedFilter .checkbox-container {
  margin: 0;
  text-align: left;
}

#filters_container_sticky.tsx-card .tsx-guar-count {
  flex-basis: 100%;
  text-align: left;
  color: #5b6b78;
  font-size: 12px;
}

#filters_container_sticky.tsx-card .tsx-guar-note {
  flex-basis: 100%;
  margin: 6px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background-color: #fff8ec;
  color: #6b4a12;
  font-size: 13px;
  line-height: 1.45;
}

#filters_container_sticky.tsx-card #guranteedFilter.tsx-none label {
  color: #8a99a6;
}

#main_search_box #filters_container_sticky.tsx-card .btn-search-tours,
#filters_container_sticky.tsx-card .btn-search-tours {
  width: 100%;
  height: 50px;
  margin: 16px 0 0;
  border: 0;
  border-radius: 12px;
  background-color: #e8283f;
  box-shadow: 0 3px 10px rgb(232 40 63 / 25%);
  color: #fff;
  font-size: 17px;
  font-weight: bold;
}

/* The city and tour name boxes under More filters, inset as the other rows are. */
#filters_container_sticky.tsx-card .tsx-more .search--box,
#filters_container_sticky.tsx-card #tour_advance_search_content .search--box {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
}

#filters_container_sticky.tsx-card .tsx-more .select2-container--default .select2-selection--single,
#filters_container_sticky.tsx-card #tour_advance_search_content .select2-container--default .select2-selection--single {
  border: 0;
  background: transparent;
}

#filters_container_sticky.tsx-card .tsx-more .select2-selection__rendered,
#filters_container_sticky.tsx-card #tour_advance_search_content .select2-selection__rendered {
  padding: 0;
  font-size: 16px;
}

/* An open panel's Apply and Cancel sit in its own flow, below its choices. The older form gives
   the bar a fixed 30px height and a rule above, so its 43px content ran over the next row. */
#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top {
  float: none;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  height: auto;
  margin: 12px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* A panel's footer is one row, as on the leading travel sites: its reset (Any month) as quiet text
   on the left, Apply on the right. Closing the panel (its row, or Esc) is the cancel, so the older
   form's Cancel link is not shown. */
#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top:has(> .close-dropdown) {
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid #e3ebf3;
}

#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top > .close-dropdown {
  display: none;
}

#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top > .tsx-any-month {
  margin-right: auto;
  white-space: nowrap;
}

#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top .btn-primary {
  margin: 0 !important;
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background-color: #004a83;
  font-size: 14px;
  font-weight: bold;
}

#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top .btn-primary:hover,
#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top .btn-primary:focus-visible {
  background-color: #00335c;
  box-shadow: 0 2px 8px rgb(0 51 92 / 30%);
}

#filters_container_sticky.tsx-card .dropdown-menu .filter-border-top .btn-primary:active {
  background-color: #002847;
  box-shadow: none;
}

#filters_container_sticky.tsx-card .dropdown-menu .close-dropdown {
  color: #004a83;
  font-size: 14px;
  cursor: pointer;
}

#filters_container_sticky.tsx-card .dropdown-menu .close-dropdown:hover {
  color: #00335c;
  text-decoration: underline;
}

/* Focus: the search box's 3px yellow ring is for the keyboard, but browsers also give it to a text
   box being typed in. In the card a slim navy ring marks keyboard focus, and a row whose text box is
   in use is tinted instead. */
#main_search_box.sbx #filters_container_sticky.tsx-card :focus-visible,
#filters_container_sticky.tsx-card :focus-visible {
  outline: 2px solid #004a83;
  outline-offset: 2px;
}

/* A row spans the card, so its ring is drawn inside it; outside, the card would clip its sides. */
#main_search_box.sbx #filters_container_sticky.tsx-card .dropdown-toggle:focus-visible,
#filters_container_sticky.tsx-card .dropdown-toggle:focus-visible {
  outline-offset: -2px;
}

/* Bootstrap focuses a row as it opens it; the open row's tint already marks it. */
#main_search_box.sbx #filters_container_sticky.tsx-card .dropdown.open .dropdown-toggle:focus-visible,
#filters_container_sticky.tsx-card .dropdown.open .dropdown-toggle:focus-visible {
  outline: 0;
}

#main_search_box.sbx #filters_container_sticky.tsx-card .select2-search__field:focus-visible,
#filters_container_sticky.tsx-card .select2-search__field:focus-visible,
#filters_container_sticky.tsx-card .select2-selection:focus-visible {
  outline: 0;
}

#filters_container_sticky.tsx-card .search--box:focus-within {
  background-color: #f6faff;
  box-shadow: inset 3px 0 0 #004a83;
}

/* When: compact tiles, the next twelve months first and later ones on request. */
#filters_container_sticky.tsx-card .tsx-months:not(.is-all) .tsx-month:nth-child(n+13) {
  display: none;
}

#filters_container_sticky.tsx-card .tsx-month-links {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

#filters_container_sticky.tsx-card .tsx-later-months {
  padding: 0;
  border: 0;
  background: none;
  color: #004a83;
  font-size: 14px;
  cursor: pointer;
}

/* Any month, Show later months and Cancel are the panel's quiet actions, styled alike: plain navy
   text, underlined on hover, beside its one filled button. */
#filters_container_sticky.tsx-card .tsx-any-month:hover,
#filters_container_sticky.tsx-card .tsx-later-months:hover {
  color: #00335c;
  text-decoration: underline;
}

/* stylelint-enable no-descending-specificity */

/*
 * A filter's window (tourSearch.js createFancybox: Where, Tour style, Tour operator, Special
 * interests, Activity level): its title, a search box for a long list, the chosen as chips, the
 * choices, and Clear and Apply, in the search card's type and colors.
 */
/* stylelint-disable no-descending-specificity */

/* deals_search_box_tour.css sizes it with !important at each width; it stays inside the screen. */
.fancybox-type-tour {
  max-width: min(680px, calc(100vw - 24px)) !important;
}

.fancybox-type-tour .fancybox-skin {
  border-radius: 14px;
  background: #fff;
}

.tsx-pick {
  color: #1f2a37;
  font-family: Arial, Helvetica, sans-serif;
}

.tsx-pick-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 12px;
  background: #fff;
}

.tsx-pick .tsx-pick-title {
  margin: 0 0 12px;
  color: #004a83;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.2;
}

.tsx-pick .tsx-pick-search {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px 0 40px;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%235b6b78%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%3E%3Ccircle%20cx=%2711%27%20cy=%2711%27%20r=%277%27/%3E%3Cpath%20d=%27M20%2020l-4-4%27/%3E%3C/svg%3E") 12px center / 18px no-repeat;
  color: #1f2a37;
  font-size: 16px;
}

.tsx-pick .tsx-pick-search:focus {
  border-color: #004a83;
  outline: 0;
}

.tsx-pick .tsx-pick-search:focus-visible {
  outline: 3px solid #f4b400;
  outline-offset: 1px;
}

.tsx-pick-chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tsx-pick-chosen:empty {
  display: none;
}

.tsx-pick .tsx-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px 5px 12px;
  border: 0;
  border-radius: 999px;
  background: #004a83;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.tsx-pick .tsx-chip::after {
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
  content: "\00d7";
}

.tsx-pick .tsx-chip:hover,
.tsx-pick .tsx-chip:focus-visible {
  background: #00335c;
}

.tsx-pick .tsx-chip-more {
  align-self: center;
  color: #5b6b78;
  font-size: 13px;
  font-weight: bold;
}

.tsx-pick-none {
  margin: 8px 0;
  color: #5b6b78;
  font-size: 14px;
}

/* Destination's tree: a place's group opens from the arrow beside its parent, indented under it,
   its countries after its own places under a small heading. */
.tsx-pick .tsx-tree-heading {
  margin: 10px 0 2px;
  color: #5b6b78;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tsx-pick .tsx-tree-children > .tsx-tree-heading:first-child {
  margin-top: 4px;
}

.tsx-pick .tsx-tree.is-searching .tsx-tree-heading {
  display: none;
}

.sbx-sheet .tsx-pick .tsx-tree-heading {
  padding: 0 16px;
}

.tsx-pick .tsx-tree-item {
  break-inside: avoid;
}

.tsx-pick .tsx-tree-children {
  margin-left: 9px;
  padding-left: 18px;
  border-left: 1px solid #e3ebf3;
}

.tsx-pick .tsx-tree-toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23004a83%27%20stroke-width=%272.2%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M6%209l6%206%206-6%27/%3E%3C/svg%3E") center / 16px no-repeat;
  cursor: pointer;
  transition: transform 0.15s;
}

.tsx-pick .tsx-tree-toggle[aria-expanded="true"] {
  transform: rotate(180deg);
}

.tsx-pick .tsx-tree-toggle:hover {
  background-color: #eef4fa;
}

.tsx-pick .tsx-tree-toggle:focus-visible {
  outline: 3px solid #f4b400;
}

/* Clear on the left, quiet; Apply on the right, the card's navy. */
.tsx-pick .tsx-pick-foot {
  display: flex;
  align-items: center;
  justify-content: space-between !important;
  gap: 12px;
  margin-top: 8px;
  padding: 12px 0 0;
  border-top: 1px solid #e3ebf3;
  background: #fff;
}

.tsx-pick .tsx-pick-clear {
  padding: 8px 0;
  border: 0;
  background: none;
  color: #004a83;
  font-size: 15px;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

.tsx-pick .tsx-pick-foot .apply-filter-btn {
  margin: 0 !important;
  padding: 11px 28px;
  border: 0;
  border-radius: 8px;
  background: #004a83;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
}

.tsx-pick .tsx-pick-foot .apply-filter-btn:hover,
.tsx-pick .tsx-pick-foot .apply-filter-btn:focus-visible {
  background: #00335c;
}

/* The rows in the window on larger screens (phones show the choices in the search sheet, styled by
   search-box.css): the box beside its name, the count at the right, two columns. The list scrolls
   inside the window, under the title and search and above Clear and Apply. */
.fancybox-type-tour .tsx-pick .tsx-pick-list {
  container-type: inline-size;
  max-height: min(58vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.fancybox-type-tour .tsx-pick .col-fancybox {
  columns: 2;
  column-gap: 28px;
  line-height: 1.3;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox {
  display: flex;
  box-sizing: border-box;
  align-items: center;
  gap: 10px;
  width: auto;
  min-height: 36px;
  margin: 0;
  break-inside: avoid;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox input[type="checkbox"] {
  position: static;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #004a83;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox label {
  display: flex;
  flex: 1 1 auto;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #1f2a37;
  font-size: 15px;
  font-weight: normal;
  cursor: pointer;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox:has(> .my_qtip) label {
  flex: 0 1 auto;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox > .my_qtip {
  margin-left: -4px;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox label::before,
.fancybox-type-tour .tsx-pick .col-fancybox .checkbox label::after {
  display: none;
}

.fancybox-type-tour .tsx-pick .col-fancybox .checkbox .tsx-n {
  margin-left: auto;
  color: #5b6b78;
  font-size: 13px;
}

/* In the tree, a row with no group keeps the arrow's room, so every count lines up. */
.fancybox-type-tour .tsx-pick .tsx-tree-item > .checkbox:not(:has(.tsx-tree-toggle)) {
  padding-right: 42px;
}

/* A top-level place in the tree gets a little more weight than the places under it. */
.fancybox-type-tour .tsx-pick .tsx-tree > .tsx-tree-item > .checkbox label {
  font-weight: bold;
}

/* Where's tree reads down one column at every width: in two, opening a place's group made one
   column far taller than the other and left an empty half. Its window is narrower to match. */
.fancybox-type-tour:has(.tsx-tree) {
  max-width: min(560px, calc(100vw - 24px)) !important;
}

.fancybox-type-tour .tsx-pick .col-fancybox:has(> .tsx-tree) {
  columns: 1;
}

/* One column when the window, not just the screen, is too narrow for two to read well. */
@container (width < 620px) {
  .fancybox-type-tour .tsx-pick .col-fancybox {
    columns: 1;
  }
}

/* Narrower than the window, it spans the screen with 12px each side (fancybox centers it by its
   own width, which the max-width above has since cut). */
@media (width <= 704px) {
  .fancybox-type-tour {
    left: 12px !important;
  }

  /* fancybox's close sits half outside the corner, which the screen's edge would cut. */
  .fancybox-type-tour .fancybox-close {
    top: 6px;
    right: 6px;
  }
}

/* The phone sheet: its rows are search-box.css's, and the list fills the sheet as before. */
.sbx-sheet .tsx-pick-list {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.sbx-sheet .tsx-pick-head {
  padding: 12px 16px;
}

.sbx-sheet .tsx-pick .tsx-pick-foot {
  padding: 12px 16px;
}
/* stylelint-enable no-descending-specificity */

/*
 * The search box's search fields' lists (tsx-list: Flight + Hotel's cities and hotels, and the tour
 * form's Visits, Tour name, Starting city and Ending city), all in one look: wide enough that a
 * city stays on one line, a search box when the field has none of its own, the card's navy for the
 * one pointed at, and a soft shadow. (The rules the linter compares these with style the fields'
 * own inline search, not these lists.)
 */
/* stylelint-disable no-descending-specificity */
.tsx-list .select2-dropdown {
  box-sizing: border-box;
  min-width: min(340px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgb(0 40 80 / 18%);
}

.tsx-list .select2-search--dropdown {
  padding: 10px;
}

.tsx-list .select2-search--dropdown .select2-search__field {
  box-sizing: border-box;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #c9d8e6;
  border-radius: 6px;
  color: #1f2a37;
  font-size: 16px;
}

.tsx-list .select2-search--dropdown .select2-search__field:focus {
  border-color: #004a83;
  outline: 0;
}

.tsx-list .select2-results > .select2-results__options {
  max-height: 300px;
  overflow-x: hidden;
}

.tsx-list .select2-results__option {
  padding: 9px 14px;
  color: #1f2a37;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.3;
}

.tsx-list .select2-results__option--highlighted,
.tsx-list .select2-results__option--highlighted[aria-selected],
.tsx-list .select2-results__option.select2-results__option--highlighted {
  background: #004a83 !important;
  color: #fff !important;
}

.tsx-list .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted),
.tsx-list .select2-results__option--selected:not(.select2-results__option--highlighted) {
  background: #eef4fa;
  color: #004a83;
  font-weight: bold;
}

.tsx-list .select2-results__message {
  color: #5b6b78;
}
/* stylelint-enable no-descending-specificity */

/* Price range's "Include tours with customized pricing?": the box, the question and its (i) on one
   line, the (i) right after the words, as a checkbox and its label read everywhere else. */
#filters_container_sticky.tsx-card #price-ranges-filter-dropdown .customize_price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
}

#filters_container_sticky.tsx-card #price-ranges-filter-dropdown .customize_price input[type="checkbox"] {
  position: static;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #004a83;
}

#filters_container_sticky.tsx-card #price-ranges-filter-dropdown .customize_price label {
  flex: 0 1 auto;
  margin: 0;
  padding: 0;
  color: #1f2a37;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.3;
  cursor: pointer;
}

#filters_container_sticky.tsx-card #price-ranges-filter-dropdown .customize_price label::before,
#filters_container_sticky.tsx-card #price-ranges-filter-dropdown .customize_price label::after {
  display: none;
}

#filters_container_sticky.tsx-card #price-ranges-filter-dropdown .customize_price .my_qtip_icon {
  flex: 0 0 auto;
  margin: 0;
}
