/* YourTourKey archive: Filter chips, dialog, rail and sticky header.
 * Desktop, tablet and mobile rules stay with this component.
 * Moved from ytk-archive.css without changing declarations.
 */

/* Category and departure-port filters: scoped to collection archives. */
.ytk-collection-filters[hidden],
.ytk-collection-filters [hidden],
.ytk-archive-products-wrap .products > li[hidden] { display: none; }

.ytk-collection-filters { color: #1a2b49; margin: 0 0 18px; }

.ytk-filter-bar { position: relative; display: flex; align-items: center; min-width: 0; letter-spacing: -.02em; }

.ytk-filter-dock.is-pinned {
  position: fixed;
  top: var(--ytk-filter-dock-top, 0px);
  left: 0;
  right: 0;
  z-index: 99989;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  background: #fff;
  box-shadow: 0 3px 6px -2px rgba(26,43,73,.28);
}

.ytk-filter-dock.is-pinned .ytk-filter-bar {
  width: calc(100% - var(--ytk-layout-cut));
  max-width: var(--ytk-layout-max);
}

.ytk-neo-header.ytk-archive-filter-attached { box-shadow: none; }

.ytk-filter-leading { position: absolute; left: 0; top: 0; z-index: 2; display: flex; background: #fff; }

.ytk-collection-filters button { font-family: inherit; letter-spacing: inherit; text-transform: none; cursor: pointer; }

.ytk-filter-open,
.ytk-filter-chip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; min-height: 38px; padding: 8px 15px; border: 0; border-radius: 999px; background: #ebeef1; color: #1a2b49; font-family: inherit; font-size: 15px; line-height: 1.3; font-weight: 500; letter-spacing: -.3px; white-space: nowrap; cursor: pointer; }

.ytk-filter-open { border-radius: 8px; }

.ytk-filter-open > .ytk-icon { font-size: 20px; }

.ytk-filter-open:hover,
.ytk-filter-chip:hover { background: #e0e5ec; }

.ytk-filter-open.is-selected,
.ytk-filter-chip.is-selected { background: #1a2b49; color: #fff; }

.ytk-filter-open.is-selected:hover,
.ytk-filter-chip.is-selected:hover { background: #263f68; }

.ytk-filter-count { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 23px; border-radius: 50%; background: #fff; color: #1a2b49; font-size: 12px; }

.ytk-filter-chips-shell { position: relative; flex: 1; min-width: 0; overflow: hidden; }

.ytk-filter-chips-shell::before,
.ytk-filter-chips-shell::after { content: ''; position: absolute; top: 0; bottom: 0; width: 66px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .15s; }

.ytk-filter-chips-shell::before { left: 0; background: linear-gradient(to right, #fff 38px, rgba(255,255,255,0)); }

.ytk-filter-chips-shell::after { right: 0; background: linear-gradient(to left, #fff 38px, rgba(255,255,255,0)); }

.ytk-filter-bar.has-previous .ytk-filter-chips-shell::before,
.ytk-filter-bar.has-next .ytk-filter-chips-shell::after { opacity: 1; }

.ytk-filter-chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }

.ytk-filter-chips::before { content: ''; flex: 0 0 var(--ytk-filter-leading-width, 97px); }

.ytk-filter-chips::after { content: ''; flex: 0 0 38px; }

.ytk-filter-chips::-webkit-scrollbar { display: none; }

.ytk-filter-previous,
.ytk-filter-next { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: #ebeef1; color: #1a2b49; }

.ytk-filter-next { position: absolute; right: 0; top: 0; z-index: 2; }

.ytk-filter-previous:hover,
.ytk-filter-next:hover { background: #e0e5ec; }

.ytk-filter-chip .ytk-filter-chip-close { display: none; font-size: 17px; }

.ytk-filter-chip.is-selected .ytk-filter-chip-close { display: inline-block; }

.ytk-filter-results { display: none; }

.ytk-filter-dialog { width: min(640px, calc(100vw - 32px)); max-width: none; max-height: min(860px, calc(100dvh - 40px)); padding: 0; border: 1px solid #dce0e6; border-radius: 16px; background: #fff; color: #1a2b49; box-shadow: 0 12px 48px rgba(26,43,73,.2); font-family: var(--ytk-font-family); }

.ytk-filter-dialog::backdrop { background: rgba(0,0,0,.48); }

.ytk-filter-dialog[open] { display: flex; flex-direction: column; }

.ytk-filter-dialog-head { position: relative; display: flex; justify-content: center; align-items: center; flex-shrink: 0; min-height: 64px; margin: 0 24px; border-bottom: 1px solid #dce0e6; }

.ytk-filter-dialog-head h2 { margin: 0; color: #1a2b49; font-size: 18px; line-height: 1.3; font-weight: 650; letter-spacing: inherit; }

.ytk-filter-close { position: absolute; left: -8px; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: #1a2b49; background: transparent; }

.ytk-filter-close:hover { background: #eef0f3; }

.ytk-filter-dialog-body { overflow-y: auto; padding: 18px 24px 8px; min-height: 0; }

.ytk-filter-group { margin: 0 0 24px; }

.ytk-filter-group summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650; line-height: 1.4; }

.ytk-filter-group summary::-webkit-details-marker { display: none; }

.ytk-filter-group[open] summary > .ytk-icon { transform: rotate(180deg); }

.ytk-filter-options { display: grid; gap: 12px; padding: 18px 8px 0; }

.ytk-filter-options label { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 1.4; font-weight: 400; cursor: pointer; }

.ytk-filter-options input { appearance: none; flex: 0 0 22px; width: 22px; height: 22px; margin: 0; border: 2px solid #8790a2; border-radius: 4px; background: #fff; cursor: pointer; }

.ytk-filter-options input:checked { border-color: #1a2b49; background: #1a2b49; }

.ytk-filter-options input:checked::after { content: ''; display: block; width: 6px; height: 11px; margin: 1px 0 0 6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.ytk-filter-dialog-foot { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-shrink: 0; padding: 18px 24px 24px; background: #fff; }

.ytk-filter-clear { border: 0; padding: 6px 0; background: transparent; color: #1a2b49; font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.ytk-filter-apply { border: 0; border-radius: 999px; padding: 13px 24px; background: #1a2b49; color: #fff; font-size: 14px; line-height: 1.4; font-weight: 650; }

.ytk-filter-apply:hover { background: #263f68; }

.ytk-collection-filters button:focus-visible,
.ytk-filter-options input:focus-visible,
.ytk-filter-group summary:focus-visible { outline: 2px solid #0071eb; outline-offset: 3px; }

.ytk-filter-no-results { padding: 24px 0; margin: 0; font-size: 15px; line-height: 1.5; }

.ytk-filter-modal-open { overflow: hidden; }

@media (max-width: 760px) {
    .ytk-collection-filters { margin-bottom: 12px; }

    .ytk-filter-dock.is-pinned {
        z-index: 99991;
        min-height: var(--ytk-filter-dock-height, 68px);
        border-bottom: 1px solid rgba(26,43,73,.08);
      }

    .ytk-neo-header.ytk-archive-header-replaced { visibility: hidden; pointer-events: none; }

    .ytk-collection-filters .ytk-filter-open { width: 38px; height: 38px; padding: 0; }

    .ytk-filter-open-label { display: none; }

    .ytk-filter-next { display: none; }

    .ytk-filter-chips::before { flex-basis: var(--ytk-filter-leading-width, 38px); }

    .ytk-filter-chips::after { flex-basis: 0; }

    .ytk-filter-chips-shell::after { width: 28px; background: linear-gradient(to left, #fff, rgba(255,255,255,0)); }

    .ytk-filter-open.is-selected { width: auto; padding: 0 9px; }

    .ytk-filter-chip { min-height: 38px; padding: 8px 14px; font-size: 14px; }

    .ytk-filter-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 24px); border-radius: 14px; }

    .ytk-filter-dialog-head { margin: 0 20px; min-height: 60px; }

    .ytk-filter-dialog-body { padding: 18px 20px 8px; }

    .ytk-filter-dialog-foot { gap: 12px; justify-content: space-between; padding: 16px 20px 20px; }

    .ytk-filter-apply { padding: 12px 18px; }

    .ytk-filter-clear { font-size: 13px; }
}
