/* Canonical catalog controls shared by tour, VIP and golf pages. */
.catalog-heading {
  display: grid;
  gap: 3px;
}

.catalog-heading h2 {
  margin: 0;
  color: #172126;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.catalog-heading p {
  margin: 0;
  color: #657277;
  font-size: .82rem;
  font-weight: 600;
}

.catalog-heading p strong {
  color: #172126;
  font-size: inherit;
  font-weight: 800;
}

/* A catalog heading inside a toolbar must not inherit section-heading spacing. */
.travel-results__bar .catalog-heading {
  margin-bottom: 0;
}

.catalog-sort {
  display: flex;
  padding: 0;
  align-items: center;
  gap: 4px;
  background: transparent;
}

.catalog-sort .catalog-sort__button {
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: #758186;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none !important;
}

.catalog-sort .catalog-sort__button.is-active {
  color: #17252a;
}

.catalog-filter-all {
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f5f6f5;
  color: #657277;
  font-size: .78rem;
  font-weight: 750;
  cursor: pointer;
}

.catalog-filter-all.is-active {
  background: var(--color-primary-dark);
  color: #fff;
}

.travel-theme-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.travel-theme-chips label {
  min-height: auto;
  padding: 0;
  cursor: pointer;
}

.travel-theme-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.travel-theme-chips span {
  display: inline-flex;
  min-height: 38px;
  padding: 0 15px;
  align-items: center;
  border-radius: 999px;
  background: #f4f5f4;
  color: #354348;
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background-color .18s ease, color .18s ease;
}

.travel-theme-chips input:checked + span {
  background: var(--color-primary-dark);
  color: #fff;
}

.travel-theme-chips input:focus-visible + span {
  outline: 3px solid rgba(8, 126, 139, .2);
  outline-offset: 2px;
}

.travel-theme-options input[type="radio"] {
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .travel-catalog-section.section,
  .golf-catalog-section.section {
    padding-top: 128px;
  }

  .travel-catalog,
  .golf-catalog-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px auto;
    align-items: stretch;
    column-gap: 24px;
    row-gap: 32px;
  }

  .travel-results,
  .golf-results {
    display: contents;
  }

  .travel-results__bar {
    position: static;
    order: 1;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: auto;
    min-height: 64px;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .travel-results__bar .catalog-toolbar__lead {
    display: block;
  }

  .travel-results__bar .catalog-heading p {
    white-space: nowrap;
  }

  .catalog-filter-panel,
  .vip-page .catalog-filter-panel {
    position: static;
    z-index: auto;
    order: 2;
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: 100%;
    min-height: 64px;
    max-height: none;
    margin: 0 !important;
    padding: 0;
    align-items: center;
    gap: 16px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .catalog-filter-panel::before {
    display: none;
    content: none;
  }

  .catalog-filter-panel > div:first-child,
  .catalog-filter-panel .travel-filter__heading,
  .catalog-filter-panel + .travel-filter-toggle,
  .travel-filter-toggle,
  .golf-filter-toggle,
  .vip-filter-note {
    display: none !important;
  }

  .catalog-filter-panel form {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .travel-filter-group,
  .golf-filter-group {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .travel-filter-group summary,
  .golf-filter-group summary,
  .travel-filter-group[open] summary,
  .golf-filter-group[open] summary {
    display: flex;
    min-height: 38px;
    margin: 0;
    padding: 0 15px;
    align-items: center;
    gap: 9px;
    border: 0;
    border-radius: 999px;
    background: #f4f5f4;
    color: #354348;
    font-size: .78rem;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
    box-shadow: none;
  }

  .travel-filter-group summary::-webkit-details-marker,
  .golf-filter-group summary::-webkit-details-marker,
  .travel-filter-group summary svg {
    display: none;
  }

  .travel-filter-group summary::after,
  .golf-filter-group summary::after {
    width: 6px;
    height: 6px;
    margin: -3px 1px 0 3px;
    content: "";
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform .18s ease;
  }

  .travel-filter-group[open] summary::after,
  .golf-filter-group[open] summary::after {
    margin-top: 3px;
    transform: rotate(225deg);
  }

  .travel-filter-group > div,
  .golf-filter-group .filter-options {
    position: absolute;
    z-index: 50;
    top: calc(100% + 9px);
    left: 0;
    display: grid;
    width: max-content;
    min-width: 210px;
    gap: 7px;
    padding: 14px;
    border: 1px solid #e0e8e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(18,44,50,.14);
  }

  .travel-package-grid,
  .golf-package-grid {
    order: 3;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 52px 20px;
    margin: 0 !important;
    padding: 0;
    align-self: stretch;
  }

  .travel-item-card .card__body {
    padding-right: 16px !important;
    padding-left: 16px !important;
  }

  .travel-item-card .card__title {
    font-size: 1.05rem;
    line-height: 1.42;
  }

  .travel-item-card .card__desc {
    font-size: .79rem;
  }

  .travel-item-card .card__price strong {
    font-size: 1.13rem;
  }

  .travel-item-card .card__meta-row {
    margin-right: -16px !important;
    margin-left: -16px !important;
    padding-right: 16px !important;
    padding-left: 16px !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .golf-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
}

@media (max-width: 767px) {
  .golf-package-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1023px) {
  .catalog-heading h2 { font-size: 1.06rem; }
  .catalog-heading p { font-size: .72rem; }
  .travel-theme-chips {
    flex-wrap: wrap;
  }

}

/* Golf desktop toolbar: filters, result count and sorting share one baseline. */
@media (min-width: 1024px) {
  .golf-catalog-shell {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 24px;
    row-gap: 28px;
  }

  .golf-catalog-shell .golf-filter-panel {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    min-height: 44px;
    margin: 0 !important;
    gap: 12px;
  }

  .golf-catalog-shell .travel-results__bar {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-height: 44px;
    justify-content: flex-end;
    gap: 22px;
  }

  .golf-catalog-shell .travel-results__bar .catalog-toolbar__lead,
  .golf-catalog-shell .catalog-heading {
    display: flex;
    align-items: center;
  }

  .golf-catalog-shell .catalog-heading p {
    margin: 0;
    line-height: 1;
  }

  .golf-catalog-shell .sorting-options {
    display: flex;
    align-items: center;
  }

  .golf-catalog-shell .golf-package-grid {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (min-width: 1024px) {
  .catalog-filter-panel .travel-filter-group.has-selection summary,
  .catalog-filter-panel .golf-filter-group.has-selection summary,
  .catalog-filter-panel .travel-filter-group.has-selection[open] summary,
  .catalog-filter-panel .golf-filter-group.has-selection[open] summary {
    background: #eef7f6;
    color: var(--color-primary-dark);
    box-shadow: inset 0 0 0 1px #b9d8d5;
  }

  .catalog-filter-panel .travel-filter-group.has-selection summary:hover,
  .catalog-filter-panel .golf-filter-group.has-selection summary:hover,
  .catalog-filter-panel .travel-filter-group.has-selection[open] summary,
  .catalog-filter-panel .golf-filter-group.has-selection[open] summary {
    background: #e7f3f2;
    box-shadow: inset 0 0 0 1px #97c6c3;
  }

  .catalog-filter-panel .filter-option:has(input:checked) {
    border-radius: 8px;
    background: #f2f8f7;
    color: var(--color-primary-dark);
  }
}
