/*
 * Pricing page filter sidebar — "Stay route" skin.
 * Every filter group is a stop on one dashed route line. A stop lights up
 * (filled node + glow) the moment that filter is in use, and options are
 * simple pills that fill with the theme colour when chosen.
 * Drawn only from --color-primary / --color-accent so it follows each template.
 */

html body:not(#rf) .rate-filter-panel {
    --rf-p: var(--color-primary, #06386D);
    --rf-p-deep: var(--color-primary-hover, #031F46);
    --rf-a: var(--color-accent, #E4A81C);
    --rf-line: color-mix(in srgb, var(--rf-p) 14%, #fff);
    position: relative;
    padding: 22px 20px 24px !important;
    border: 1px solid color-mix(in srgb, var(--rf-p) 12%, transparent) !important;
    border-radius: 26px !important;
    background: #fff !important;
    box-shadow: 0 22px 44px color-mix(in srgb, var(--rf-p) 10%, transparent) !important;
    transform: none !important;
}
html body:not(#rf) .rate-filter-panel::before,
html body:not(#rf) .rate-filter-panel::after { display: none !important; }

/* ---- Header ---- */
html body:not(#rf) .rate-filter-panel > .flex.items-start {
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 0 !important;
}
html body:not(#rf) .rate-filter-panel > .flex.items-start p {
    color: var(--rf-a) !important;
    font-weight: 800;
    letter-spacing: .24em;
}
html body:not(#rf) .rate-filter-panel > .flex.items-start h2 {
    color: var(--rf-p-deep);
    font-size: 26px;
    line-height: 1.05;
    letter-spacing: -.01em;
}
html body:not(#rf) .rate-filter-panel > .flex.items-start > span {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rf-p), var(--rf-p-deep)) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--rf-p) 30%, transparent) !important;
}

/* ---- The route ---- */
html body:not(#rf) .rate-filter-panel > .space-y-5 {
    position: relative;
    display: grid;
    gap: 24px;
    margin-top: 6px !important;
    padding-left: 36px;
    counter-reset: rf-stop;
}
html body:not(#rf) .rate-filter-panel > .space-y-5 > * { margin: 0 !important; }
html body:not(#rf) .rate-filter-panel > .space-y-5::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--rf-p) 28%, transparent) 0 6px, transparent 6px 11px);
}

html body:not(#rf) .rate-filter-field {
    position: relative;
    counter-increment: rf-stop;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
html body:not(#rf) .rate-filter-field::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 1px;
    z-index: 1;
    display: block;
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--rf-p) 32%, #fff);
    border-radius: 50%;
    background: #fff;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
html body:not(#rf) .rate-filter-field:has(.rate-choice-input:checked:not([value=""]))::before {
    border-color: var(--rf-p);
    background: var(--rf-p);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--rf-p) 16%, transparent);
    transform: scale(1.1);
}

html body:not(#rf) .rate-filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 11px !important;
    color: var(--rf-p-deep) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
}
html body:not(#rf) .rate-filter-title::before,
html body:not(#rf) .rate-filter-title::after { display: none !important; }
html body:not(#rf) .rate-filter-title > span[data-rate-filter-summary]:not([hidden]) {
    padding: 3px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rf-a) 22%, #fff);
    color: var(--rf-p-deep);
    font-size: 9px;
    letter-spacing: .04em;
    text-transform: none;
}

/* ---- Option groups become wrapping pill rows ---- */
html body:not(#rf) :is(.rate-guest-rail, .rate-room-stamps, .rate-bed-grid) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px !important;
}
html body:not(#rf) .rate-discount-grid { display: grid !important; gap: 7px !important; }
html body:not(#rf) .rate-facility-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 7px !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 10px !important;
    padding: 0 !important;
}
html body:not(#rf) .rate-facility-option { display: contents; }

/* ---- The pills ---- */
html body:not(#rf) .rate-filter-panel .rate-choice {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    min-height: 0 !important;
    width: auto !important;
    padding: 8px 13px !important;
    border: 1px solid var(--rf-line) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--rf-p-deep) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-align: left;
    box-shadow: none !important;
    transform: none !important;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
html body:not(#rf) .rate-filter-panel .rate-choice:hover {
    border-color: var(--rf-p) !important;
    background: color-mix(in srgb, var(--rf-p) 6%, #fff) !important;
    transform: translateY(-1px) !important;
}
html body:not(#rf) .rate-filter-panel .rate-choice::before {
    content: '';
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin: 0;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--rf-p) 22%, #fff);
    box-shadow: none;
    transition: background .2s ease, box-shadow .2s ease;
}
html body:not(#rf) .rate-filter-panel .rate-choice::after { display: none !important; }
html body:not(#rf) .rate-filter-panel .rate-choice-input:checked + .rate-choice {
    border-color: var(--rf-p) !important;
    background: var(--rf-p) !important;
    color: #fff !important;
    box-shadow: 0 8px 16px color-mix(in srgb, var(--rf-p) 28%, transparent) !important;
}
html body:not(#rf) .rate-filter-panel .rate-choice-input:checked + .rate-choice::before {
    background: var(--rf-a);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rf-a) 35%, transparent);
}
html body:not(#rf) .rate-filter-panel .rate-choice-input:focus-visible + .rate-choice {
    outline: 3px solid color-mix(in srgb, var(--rf-p) 30%, transparent);
    outline-offset: 2px;
}
html body:not(#rf) .rate-filter-panel .rate-choice small { color: inherit !important; opacity: .7; }
html body:not(#rf) .rate-filter-panel .rate-choice strong { color: inherit !important; }

/* Guests: round number buttons */
html body:not(#rf) .rate-filter-panel .rate-guest-choice {
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px !important;
}
html body:not(#rf) .rate-filter-panel .rate-guest-choice::before { display: none; }

/* Bed type keeps its tiny icon, drops the dot */
html body:not(#rf) .rate-filter-panel .rate-bed-choice::before { display: none; }
html body:not(#rf) .rate-filter-panel .rate-bed-choice svg { width: 14px; height: 14px; flex: 0 0 14px; }

/* Discount range: slim rows with a mini meter */
html body:not(#rf) .rate-filter-panel .rate-discount-choice {
    justify-content: flex-start;
    width: 100% !important;
    padding: 8px 12px 8px 8px !important;
    border-radius: 16px !important;
}
html body:not(#rf) .rate-filter-panel .rate-discount-choice::before { display: none; }
html body:not(#rf) .rate-filter-panel .rate-discount-meter {
    display: block !important;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--rf-p) 10%, #fff);
    box-shadow: none;
}
html body:not(#rf) .rate-filter-panel .rate-discount-meter-fill { background: var(--rf-p); }
html body:not(#rf) .rate-filter-panel .rate-choice-input:checked + .rate-discount-choice .rate-discount-meter { background: rgba(255, 255, 255, .22); }
html body:not(#rf) .rate-filter-panel .rate-choice-input:checked + .rate-discount-choice .rate-discount-meter-fill { background: var(--rf-a); }
html body:not(#rf) .rate-filter-panel .rate-discount-choice strong { font-size: 12px; }

/* Advance offer: a clean switch row */
html body:not(#rf) .rate-filter-panel .rate-offer-ticket {
    justify-content: space-between;
    width: 100% !important;
    padding: 11px 14px !important;
    border-radius: 18px !important;
}
html body:not(#rf) .rate-filter-panel .rate-offer-ticket::before { display: none; }
html body:not(#rf) .rate-filter-panel .rate-offer-ticket strong { display: block; font-size: 12px; }
html body:not(#rf) .rate-filter-panel .rate-offer-ticket small { display: block; margin-top: 2px; font-size: 9px; }
html body:not(#rf) .rate-filter-panel .rate-ticket-switch {
    position: relative;
    flex: 0 0 38px;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rf-p) 18%, #fff);
    box-shadow: none;
    transition: background .25s ease;
}
html body:not(#rf) .rate-filter-panel .rate-ticket-switch::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
    transition: transform .25s cubic-bezier(.3, 1.4, .5, 1);
}
html body:not(#rf) .rate-filter-panel .rate-choice-input:checked + .rate-offer-ticket .rate-ticket-switch { background: var(--rf-a); }
html body:not(#rf) .rate-filter-panel .rate-choice-input:checked + .rate-offer-ticket .rate-ticket-switch::after { transform: translateX(16px); }

/* Facility search */
html body:not(#rf) .rate-filter-panel .rate-facility-search {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--rf-line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--rf-p) 4%, #fff);
    color: var(--rf-p-deep);
    font-size: 12px;
    box-shadow: none;
}
html body:not(#rf) .rate-filter-panel .rate-facility-search::placeholder { color: color-mix(in srgb, var(--rf-p) 45%, #fff); }
html body:not(#rf) .rate-filter-panel .rate-facility-search:focus {
    border-color: var(--rf-p);
    outline: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--rf-p) 14%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    html body:not(#rf) .rate-filter-field::before,
    html body:not(#rf) .rate-filter-panel .rate-choice,
    html body:not(#rf) .rate-ticket-switch,
    html body:not(#rf) .rate-ticket-switch::after { transition: none; }
}

/* ---- View more / View less for long option lists ---- */
html body:not(#rf) .rate-filter-panel .rf-extra-hidden,
html body:not(#rf) .rate-filter-panel .rate-choice.rf-extra-hidden { display: none !important; }
html body:not(#rf) .rf-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    padding: 6px 12px 6px 10px;
    border: 1px dashed color-mix(in srgb, var(--rf-p) 40%, #fff);
    border-radius: 999px;
    background: transparent;
    color: var(--rf-p);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
html body:not(#rf) .rf-more:hover,
html body:not(#rf) .rf-more:focus-visible {
    border-color: var(--rf-p);
    background: color-mix(in srgb, var(--rf-p) 7%, #fff);
    outline: none;
}
html body:not(#rf) .rf-more svg { width: 12px; height: 12px; transition: transform .25s ease; }
html body:not(#rf) .rf-more[aria-expanded='true'] svg { transform: rotate(180deg); }
html body:not(#rf) .rf-more b {
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    border-radius: 999px;
    background: var(--rf-p);
    color: #fff;
    font-size: 9px;
}
html body:not(#rf) .rf-more[aria-expanded='true'] b { display: none; }

/* No shadows anywhere in the sidebar: flat panel, flat pills, flat switch. */
html body:not(#rf) .rate-filter-shell,
html body:not(#rf) .rate-filter-panel,
html body:not(#rf) .rate-filter-panel *,
html body:not(#rf) .rate-filter-panel *::before,
html body:not(#rf) .rate-filter-panel *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}
html body:not(#rf) .rate-filter-panel { border: 1px solid color-mix(in srgb, var(--rf-p) 16%, #fff) !important; }
