/* Shared FareHarbor tour finder */
#fh-tours {
  --tour-blue: #176a9b;
  --tour-blue-dark: #104f76;
  --tour-ink: #1d2b36;
  --tour-muted: #5d6b76;
  --tour-line: #d8e1e7;
  --tour-surface: #f5f9fb;
  scroll-margin-top: 145px;
  margin-top: 24px;
  padding: clamp(18px, 2.6vw, 34px);
  border: 1px solid #d9e5eb;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 144, 191, .12), transparent 34%),
    linear-gradient(145deg, #fbfdfe 0%, #f2f7fa 100%);
  box-shadow: 0 16px 42px rgba(26, 73, 97, .09);
}

#fh-tours *,
#fh-tours *::before,
#fh-tours *::after {
  box-sizing: border-box;
}

#fh-tours .tour-finder-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

#fh-tours .tour-finder-kicker {
  margin: 0 0 3px;
  color: var(--tour-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}

#fh-tours #tour-finder-title {
  margin: 0;
  color: var(--tour-ink);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.15;
}

#fh-tours .tour-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #b8cad4;
  border-radius: 999px;
  background: #fff;
  color: var(--tour-blue-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#fh-tours .tour-reset-button:hover:not(:disabled) {
  border-color: var(--tour-blue);
  box-shadow: 0 5px 14px rgba(16, 79, 118, .12);
  transform: translateY(-1px);
}

#fh-tours .tour-reset-button:disabled {
  opacity: .45;
  cursor: default;
}

#fh-tours .filters.tour-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .8fr);
  gap: 14px;
  margin: 0;
  text-align: left;
}

#fh-tours .filters.tour-filter-grid--blended {
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, .8fr));
}

#fh-tours .tour-filter-control {
  min-width: 0;
}

#fh-tours .hg-filter-label,
#fh-tours .tour-price-filter legend,
#fh-tours .tour-category-filter legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #314351;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

#fh-tours .hg-filter-label i {
  width: 18px;
  color: var(--tour-blue);
  font-size: 17px;
  text-align: center;
}

#fh-tours input[type="search"],
#fh-tours select {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 42px 0 14px;
  border: 1px solid #b9cbd5;
  border-radius: 11px;
  background-color: #fff;
  color: var(--tour-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 2px 6px rgba(24, 62, 82, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}

#fh-tours input[type="search"] {
  padding-right: 14px;
  font-weight: 500;
}

#fh-tours input[type="search"]::placeholder {
  color: #74828b;
  opacity: 1;
}

#fh-tours input[type="search"]:hover,
#fh-tours select:hover {
  border-color: #819daa;
}

#fh-tours input[type="search"]:focus,
#fh-tours select:focus {
  border-color: var(--tour-blue);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(23, 106, 155, .14);
}

#fh-tours .tour-price-filter,
#fh-tours .tour-category-filter {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

#fh-tours .tours-price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin: 0;
}

#fh-tours .tours-price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #c7d5dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #465864;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#fh-tours .tours-price-chip:hover {
  border-color: #7195a7;
  color: var(--tour-blue-dark);
  box-shadow: 0 4px 12px rgba(23, 106, 155, .1);
  transform: translateY(-1px);
}

#fh-tours .tours-price-chip.active {
  border-color: var(--tour-blue-dark);
  background: var(--tour-blue-dark);
  color: #fff;
  box-shadow: 0 5px 14px rgba(16, 79, 118, .2);
}

#fh-tours .tour-category-filter {
  padding-top: 20px;
  border-top: 1px solid var(--tour-line);
}

#fh-tours .tour-category-list {
  display: grid;
  grid-template-columns: repeat(10, minmax(82px, 1fr));
  gap: 8px;
}

#fh-tours .icon-filter {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 76px;
  margin: 0;
  padding: 9px 6px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #3e515e !important;
  font: inherit;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease, transform .2s ease;
}

#fh-tours .icon-filter i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 50%;
  background: #e4f0f5;
  color: var(--tour-blue) !important;
  font-size: 20px;
  transition: background-color .2s ease, color .2s ease;
}

#fh-tours .icon-filter span {
  max-width: 100%;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

#fh-tours .icon-filter:hover {
  border-color: #c3d6df;
  background: rgba(255, 255, 255, .74);
  color: var(--tour-blue-dark) !important;
  transform: translateY(-1px);
}

#fh-tours .icon-filter.active {
  border-color: #a7c7d7;
  background: #fff;
  color: var(--tour-blue-dark) !important;
  box-shadow: 0 5px 14px rgba(24, 73, 97, .1);
}

#fh-tours .icon-filter.active i {
  background: var(--tour-blue);
  color: #fff !important;
}

#fh-tours .tour-finder-status,
#fh-tours .tour-finder-error,
#fh-tours .tour-results-count {
  text-align: center;
}

#fh-tours .tour-finder-status,
#fh-tours .tour-finder-error {
  margin: 18px 0 0;
  font-size: 15px;
  font-weight: 700;
}

#fh-tours .tour-finder-error {
  color: #a82b37;
}

#fh-tours .tour-results-count {
  margin: 26px 0 15px;
  color: var(--tour-ink);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.25;
}

#fh-tours .tour-viator-matches[hidden] {
  display: none !important;
}

#fh-tours .tour-viator-matches {
  scroll-margin-top: 145px;
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid #b9d6d2;
  border-top: 5px solid #0c746d;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 78, 77, .1);
}

#fh-tours .tour-viator-matches-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

#fh-tours .tour-viator-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 3px;
  color: #0c746d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

#fh-tours #tourViatorMatchesTitle {
  margin: 0;
  color: var(--tour-ink);
  font-size: 20px;
  line-height: 1.25;
}

#fh-tours .tour-viator-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bed0d7;
  border-radius: 50%;
  background: #f6fafb;
  color: #40545f;
  font-size: 18px;
  cursor: pointer;
}

#fh-tours .tour-viator-close:hover {
  border-color: #6d929f;
  background: #eaf3f5;
  color: var(--tour-ink);
}

#fh-tours .tour-viator-matches .vt-widget {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

#fh-tours .tour-viator-matches .vt-header {
  margin-bottom: 13px;
}

#fh-tours .tour-viator-matches .vt-heading {
  font-size: 19px !important;
}

#fh-tours .tour-viator-matches .vt-subhead {
  font-size: 13px !important;
}

#fh-tours .tour-viator-matches .vt-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

#fh-tours .tours-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 0;
}

#fh-tours .tour-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d6e0e5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(24, 59, 77, .09);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

#fh-tours .tour-card:hover {
  border-color: #b8cdd8;
  box-shadow: 0 13px 28px rgba(24, 59, 77, .14);
  transform: translateY(-3px);
}

#fh-tours .tour-card-media {
  display: block;
  overflow: hidden;
  background: #dce7ec;
}

#fh-tours .tour-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

#fh-tours .tour-card:hover img {
  transform: scale(1.025);
}

#fh-tours .tour-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

#fh-tours .tour-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

#fh-tours .tour-card-title {
  display: block;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 !important;
  color: var(--tour-ink) !important;
  font-size: 17px !important;
  font-weight: 850;
  line-height: 1.3;
  text-decoration: none;
}

#fh-tours .tour-card-title i {
  color: var(--tour-blue);
}

#fh-tours .tour-card-price {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: 999px;
  background: #f5f7f8;
  color: #2a2a2a;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.1;
}

#fh-tours .tour-card-price-dollars {
  letter-spacing: -1px;
}

#fh-tours .tour-card-price-label {
  color: #69767e;
  font-size: 11px;
  font-weight: 600;
}

#fh-tours .tour-card-price[data-tier="1"] .tour-card-price-dollars { color: #1d8668; }
#fh-tours .tour-card-price[data-tier="2"] .tour-card-price-dollars { color: #2876aa; }
#fh-tours .tour-card-price[data-tier="3"] .tour-card-price-dollars { color: #b56b09; }
#fh-tours .tour-card-price[data-tier="4"] .tour-card-price-dollars { color: #b22431; }

#fh-tours .tour-card-price--live {
  border-color: rgba(12, 116, 109, .2);
  background: #eef8f6;
}

#fh-tours .tour-card-price--live .tour-card-price-dollars {
  color: #0c746d;
  letter-spacing: 0;
}

#fh-tours .tour-card-details {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

#fh-tours .tour-card .tour-card-detail {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 !important;
  color: var(--tour-muted);
  font-size: 14px;
  line-height: 1.35;
}

#fh-tours .tour-card-detail > i {
  flex: 0 0 16px;
  margin-top: 2px;
  color: #71838d;
  text-align: center;
}

#fh-tours .tour-card-detail strong {
  color: #435560;
}

#fh-tours .operator-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #6b5a3e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: #c5bcae;
  text-decoration-style: dashed;
  text-underline-offset: 3px;
}

#fh-tours .operator-link:hover {
  color: var(--tour-blue-dark);
  text-decoration-color: var(--tour-blue);
}

#fh-tours .operator-link .fa-star {
  color: #c99627;
  font-size: 11px;
}

#fh-tours .tour-card-actions {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

#fh-tours .tour-card-viator,
#fh-tours .tour-card-live-link,
#fh-tours .tour-card-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease, transform .2s ease;
}

#fh-tours .tour-card-viator {
  border: 1px solid #0c746d;
  background: linear-gradient(135deg, #16867d 0%, #0b6863 100%);
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(12, 116, 109, .21);
}

#fh-tours .tour-card-live-link {
  border: 1px solid #0c746d;
  background: linear-gradient(135deg, #16867d 0%, #0b6863 100%);
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(12, 116, 109, .21);
}

#fh-tours .tour-card-viator:hover {
  color: #fff !important;
  filter: brightness(1.07);
  box-shadow: 0 8px 18px rgba(12, 116, 109, .28);
  transform: translateY(-1px);
}

#fh-tours .tour-card-live-link:hover {
  color: #fff !important;
  filter: brightness(1.07);
  box-shadow: 0 8px 18px rgba(12, 116, 109, .28);
  transform: translateY(-1px);
}

#fh-tours .tour-card-direct {
  min-height: 46px;
  border: 1px solid #a9bdc8;
  background: #fff;
  color: var(--tour-blue-dark) !important;
  box-shadow: none;
}

#fh-tours .tour-card-direct:hover {
  border-color: var(--tour-blue);
  background: #edf6fa;
  color: var(--tour-blue-dark) !important;
  transform: translateY(-1px);
}

#fh-tours .tour-card-viator span,
#fh-tours .tour-card-viator i,
#fh-tours .tour-card-live-link span,
#fh-tours .tour-card-live-link i,
#fh-tours .tour-card-direct span,
#fh-tours .tour-card-direct i {
  flex: 0 0 auto;
}

#fh-tours .tour-finder-featured-viator {
  display: contents;
}

#fh-tours .tour-finder-featured-viator > .vt-loading,
#fh-tours .tour-finder-featured-viator > .vt-empty,
#fh-tours .tour-finder-featured-viator > .vt-error {
  grid-column: 1 / -1;
}

#fh-tours .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
}

#fh-tours .pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #afc5d0;
  border-radius: 10px;
  background: #fff;
  color: var(--tour-blue-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

#fh-tours .pagination button:hover:not(:disabled),
#fh-tours .pagination button.active {
  border-color: var(--tour-blue);
  background: var(--tour-blue);
  color: #fff;
}

#fh-tours .pagination button:disabled {
  opacity: .42;
  cursor: default;
}

#fh-tours .pagination-ellipsis {
  margin: 0 2px;
  color: #60717c;
}

#fh-tours button:focus-visible,
#fh-tours a:focus-visible,
#fh-tours input:focus-visible,
#fh-tours select:focus-visible {
  outline: 3px solid #f3a328;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  #fh-tours .filters.tour-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #fh-tours .tour-filter-control:last-child {
    grid-column: 1 / -1;
  }

  #fh-tours .tour-filter-grid--blended .tour-filter-control:last-child {
    grid-column: auto;
  }

  #fh-tours .tour-category-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  #fh-tours .tours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  #fh-tours {
    scroll-margin-top: 105px;
    margin-top: 18px;
    padding: 18px 12px;
    border-radius: 16px;
  }

  #fh-tours .tour-finder-heading {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 18px;
  }

  #fh-tours .tour-reset-button {
    min-width: 44px;
    padding: 10px 12px;
  }

  #fh-tours .tour-reset-button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  #fh-tours .filters.tour-filter-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  #fh-tours .tour-filter-control:last-child {
    grid-column: auto;
  }

  #fh-tours .tour-price-filter,
  #fh-tours .tour-category-filter {
    margin-top: 20px;
  }

  #fh-tours .tours-price-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #fh-tours .tours-price-chip {
    width: 100%;
    padding-inline: 8px;
    font-size: 13px;
  }

  #fh-tours .tours-price-chip:first-child {
    grid-column: 1 / -1;
  }

  #fh-tours .tour-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #fh-tours .icon-filter {
    min-height: 72px;
    padding-inline: 4px;
  }

  #fh-tours .icon-filter span {
    font-size: 11px;
  }

  #fh-tours .tour-results-count {
    margin-top: 22px;
    font-size: 19px;
  }

  #fh-tours .tour-viator-matches {
    scroll-margin-top: 105px;
    padding: 14px 12px;
  }

  #fh-tours .tour-viator-matches .vt-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #fh-tours .tours-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  #fh-tours .tour-card-body {
    padding: 15px;
  }

  #fh-tours .tour-card-heading {
    flex-wrap: wrap;
  }

  #fh-tours .tour-card-title {
    flex-basis: 100%;
  }

  #fh-tours .tour-card-price {
    margin-left: 0;
  }

  #fh-tours .tour-card-operator > span {
    min-width: 0;
  }

  #fh-tours .tour-card-operator strong {
    display: block;
    margin-bottom: 2px;
  }

  #fh-tours .operator-link {
    max-width: 100%;
    white-space: nowrap;
  }

  #fh-tours .pagination {
    gap: 6px;
  }

  #fh-tours .pagination button {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #fh-tours *,
  #fh-tours *::before,
  #fh-tours *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
