/* =============================================================
   WTC Site Style – Single Master Stylesheet
   Base: Bootstrap 5
   Scope: Global (no ident switching, no inline overrides)
   ============================================================= */
   
/* -------------------------
   Core tokens and base
   ------------------------- */
:root {
    /* Brand palette */
    --brand-primary: #007aff;
    --brand-secondary: #8e8e93;
    --brand-accent: #007aff;
    --brand-text: #1d1d1f;
    --brand-background: #ffffff;

    /* Design colors */
    --wtc-gray: #8e8e93;
    --wtc-light-gray: #f2f2f7;
    --wtc-dark: #1d1d1f;
    --wtc-white: #ffffff;
    --wtc-shadow: rgba(0, 0, 0, 0.1);

    /* Global radii */
    --radius-apple: 24px; /* panels/cards */
    --radius-apple-control: 24px; /* inputs/buttons/menus */

    /* Results cards variables */
    --rc-title-lh: 1.25;
    --rc-title-lines-sm: 2;
    --rc-title-lines-lg: 3;
    --rc-badge-lh: 1.25;
    --rc-badge-lines: 2;
}

/* Typography and rendering */
html,
body {
    background-color: var(--brand-background);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        "Noto Sans",
        "Liberation Sans",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.wtc-display {
    font-weight: 700;
    letter-spacing: -0.02em;
}
.wtc-body {
    font-weight: 400;
    line-height: 1.6;
}
.wtc-subhead {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Links: default + hover + focus-visible */
a {
    color: var(--brand-primary);
    text-decoration: none;
    transition:
        color 160ms ease,
        text-underline-offset 160ms ease;
}
a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    border-radius: 6px;
}

/* Bootstrap overrides (colors) */
.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-primary:hover {
    background-color: color-mix(in srgb, var(--brand-primary) 80%, black 20%);
    border-color: color-mix(in srgb, var(--brand-primary) 80%, black 20%);
}
.btn-outline-primary {
    border-color: #000;
    color: #000;
}
.btn-outline-secondary {
    border-color: #999 !important;
    color: #515151 !important;
    background-color: transparent !important;
}
.btn-outline-secondary.active,
.btn-outline-secondary:active,
.btn-outline-secondary:focus {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
    color: #eae9e9 !important;
}
.text-primary {
    color: var(--brand-primary) !important;
}
.active > .page-link,
.active > .nav-link {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}
/* Navbar links should remain black */
.nav .nav-link,
.navbar .nav-link {
    color: #1d1d1f !important;
}
.nav .nav-link:hover,
.nav .nav-link:focus,
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #1d1d1f !important;
}

/* Range slider thumbs */
input[type="range"]::-webkit-slider-thumb {
    background: var(--brand-primary) !important;
}
input[type="range"]::-moz-range-thumb {
    background: var(--brand-primary) !important;
}
input[type="range"]::-ms-thumb {
    background: var(--brand-primary) !important;
}

/* -------------------------
   Layout containers
   ------------------------- */
.container {
    max-width: 1600px;
}
.content {
    max-width: 1300px !important;
    margin-inline: auto;
}
.content-grid {
    margin-inline: auto;
    max-width: none;
}
@media (min-width: 576px) {
    .content-grid {
        max-width: 1250px;
    }
}
.wtc-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}
.wtc-grid {
    display: grid;
    gap: 2rem;
}
.wtc-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
@media (min-width: 769px) and (max-width: 1024px) {
    .wtc-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1025px) {
    .wtc-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}
.mb-5 {
    margin-bottom: 6rem !important;
}

/* -------------------------
   Sections & hero
   ------------------------- */
.wtc-hero {
    background: #fff;
    padding: 40px 0;
}
.wtc-hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--wtc-dark);
    margin-bottom: 1rem;
}
.wtc-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--wtc-gray);
    margin-bottom: 2rem;
}
.wtc-hero--cars2 {
    background: linear-gradient(135deg, #182236 0%, #1f2b42 50%, #172338 100%);
    color: #e2e8f0;
}
.wtc-hero--cars2.wtc-hero-fx::before {
    top: -30%;
    right: -15%;
    width: 1100px;
    height: 1100px;
    background: radial-gradient(
        50% 50% at 50% 50%,
        rgba(59, 130, 246, 0.55) 0%,
        transparent 72%
    );
    opacity: 0.35;
    filter: blur(12px);
}
.wtc-hero--cars2 .wtc-hero-title {
    background: linear-gradient(120deg, #f8fafc 0%, #cfe0ff 45%, #9cc1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.wtc-hero--cars2 .wtc-subhead {
    color: #fff;
}
.wtc-hero--cars2 .wtc-eyebrow {
    color: rgba(226, 232, 240, 0.92);
    background: rgba(148, 163, 184, 0.16);
    border-color: transparent;
    box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.1);
}
.wtc-hero--cars2 .wtc-text-dark {
    color: rgba(226, 232, 240, 0.88) !important;
}
.wtc-hero--cars2 .wtc-search-form {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}
.wtc-hero--cars2 .wtc-image-pop {
    width: 100%;
    max-width: 420px;
    clip-path: none;
}
@media (max-width: 991.98px) {
    .wtc-hero--cars2 {
        padding-top: 64px;
    }
    .wtc-hero--cars2 .wtc-image-pop {
        max-width: none;
    }
}
@media (min-width: 992px) {
    .wtc-hero--cars2 .wtc-image-pop {
        max-width: 520px;
    }
}
.wtc-hero-fx {
    position: relative;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--brand-primary) 6%, white 94%) 0%,
        white 60%
    );
    overflow: hidden;
}
.wtc-hero--cars2.wtc-hero-fx {
    background: linear-gradient(135deg, #182236 0%, #1f2b42 50%, #172338 100%);
}
.wtc-hero-fx::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(
        50% 50% at 50% 50%,
        color-mix(in srgb, var(--brand-primary) 14%, transparent) 0%,
        transparent 70%
    );
    opacity: 0.35;
    filter: blur(8px);
    pointer-events: none;
}
.wtc-hero-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-apple);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    backdrop-filter: saturate(120%) blur(6px);
}
@media (min-width: 992px) {
    .wtc-hero-card {
        padding: 3rem;
    }
}

.wtc-section {
    padding: 80px 0;
}
.wtc-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--wtc-dark);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.wtc-value-section {
    background: var(--wtc-white);
    padding: 4rem 0;
    margin: 4rem 0;
}
.wtc-value-section .lead {
    color: var(--wtc-gray);
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* Feature blocks */
.wtc-feature {
    position: relative;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-apple);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    overflow: hidden;
}
@media (min-width: 992px) {
    .wtc-feature {
        padding: 3rem;
    }
}
.wtc-feature::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(
        60% 60% at 50% 50%,
        color-mix(in srgb, var(--brand-primary) 18%, transparent) 0%,
        transparent 70%
    );
    opacity: 0.35;
    filter: blur(10px);
    z-index: 0;
}
.wtc-spotlight-left::before {
    left: -12%;
    top: -15%;
}
.wtc-spotlight-right::before {
    right: -12%;
    top: -15%;
}
.wtc-feature > * {
    position: relative;
    z-index: 1;
}
.wtc-feature.bg-light {
    background: #f8f9fa !important;
}
.wtc-feature-body {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.wtc-feature-img-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
@media (min-width: 992px) {
    .wtc-feature-img-wrap {
        min-height: 320px;
    }
}
.wtc-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.wtc-cta-link::after {
    content: "›";
    font-size: 1.1em;
    line-height: 1;
    transform: translateY(-1px);
}
.wtc-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--wtc-dark) 50%, white 50%);
    background: color-mix(in srgb, var(--brand-primary) 6%, white 94%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 6px 10px;
    border-radius: 999px;
}
.wtc-feature-title {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--wtc-dark);
}
.wtc-image-pop {
    transition: none;
}
/* Disable image zoom/raise on hover */
.wtc-feature:hover .wtc-image-pop {
    transform: none !important;
    box-shadow: none !important;
}
.wtc-image {
    border-radius: var(--radius-apple-control);
    box-shadow: 0 4px 20px var(--wtc-shadow);
}

/* -------------------------
   Cards, buttons, forms
   ------------------------- */
.wtc-card {
    background: var(--wtc-white);
    border-radius: var(--radius-apple) !important;
    border: none;
    box-shadow: 0 4px 20px var(--wtc-shadow);
    overflow: hidden;
}
.card,
.results-card,
.wtc-search-form {
    border-radius: var(--radius-apple) !important;
    border: none;
    box-shadow: 0 4px 20px var(--wtc-shadow);
}
/* Disable panel/card lift on hover: keep base shadow unchanged */
.wtc-card:hover,
.card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px var(--wtc-shadow) !important;
}
.btn,
.btn-lg,
.btn-sm {
    border-radius: var(--radius-apple-control) !important;
}
.rounded,
.rounded-1,
.rounded-2,
.rounded-3,
.rounded-4 {
    border-radius: var(--radius-apple) !important;
}
.form-control,
.form-select,
.input-group .form-control,
.form-check-input {
    border-radius: var(--radius-apple-control) !important;
}
.form-control,
.form-select {
    border: 2px solid rgba(0, 0, 0, 0.1);
}
.form-control::placeholder {
    color: #9a9a9a;
}
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
a:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2) !important;
    border-color: rgba(0, 122, 255, 0.6) !important;
}

/* Radii utilities: subtler rounded corners derived from tokens */
/* Use on panels or any element when you want half the default radius */
.wtc-rounded-subtle {
    border-radius: calc(var(--radius-apple) / 2) !important;
}

/* Card images: top-only rounded; square bottom */
.card img,
.card .result-card-image,
.results-card .result-card-image,
.card .ratio > img,
.card .rounded {
    border-radius: var(--radius-apple-control) var(--radius-apple-control) 0 0 !important;
}

/* Dropdowns and overlays */
.dropdown-menu {
    background: var(--wtc-white);
    border-radius: var(--radius-apple);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0.25rem;
    min-width: 220px;
}
.dropdown-item {
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    color: var(--wtc-dark);
    font-size: 1rem;
    transition:
        background 0.18s,
        color 0.18s;
}
.dropdown-item:hover,
.dropdown-item:focus {
    background: #fafafa;
    color: #1d1d1f !important;
    box-shadow: 0 2px 10px rgba(0, 122, 255, 0.06);
    outline: none;
}
.navbar .dropdown-menu .dropdown-item {
    color: #1d1d1f !important;
}
.modal-content,
.offcanvas,
.toast,
.alert {
    border-radius: var(--radius-apple) !important;
}

/* Prevent dropdown FOUC during show/hide */
.dropdown-menu:not(.show) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Navbar condensed spacing (was inline) */
@media (min-width: 992px) {
    .nav.nav-condensed {
        gap: 0.5rem;
    }
    .nav.nav-condensed .nav-link {
        padding: 0.25rem 0.65rem;
        font-size: 0.95rem;
    }
    .nav.nav-condensed .dropdown-toggle::after {
        margin-left: 0.25rem;
    }
    .navbar-brand img {
        max-height: 44px;
        height: auto;
    }
}
/* Layering for desktop dropdown wrapper */
.top-menu-layer {
    z-index: 1051;
}

/* Logo cloud grayscale utility */
.greyscale-logo {
    filter: grayscale(100%);
}

/* Content grid hover effects */
.card-title a:hover {
    text-decoration: underline !important;
}
/* Disable image zoom hover globally */
.zoom-img {
    transition: none;
}
.zoom-img:hover {
    transform: none !important;
}
.wtc-tooltip-dotted {
    border-bottom: 1px dotted currentColor;
    cursor: help;
}
.wtc-spacer-300 {
    height: 300px;
}
.wtc-dropdown-wide {
    min-width: 900px;
}
.wtc-dropdown-medium {
    width: 300px;
}
.wtc-dropdown-scroll {
    width: 750px;
    max-height: 500px;
    overflow-y: auto;
}
.wtc-hero-img-40 {
    max-width: 40%;
}
.wtc-hero-img-50 {
    max-width: 50%;
}
.wtc-hero-img-70 {
    max-width: 70%;
}
.wtc-hero-gradient {
    background: linear-gradient(to right, #ffffff, rgba(47, 85, 210, 0.158));
}

/* VAT toggle pill */
#modeToggle.wtc-toggle-pill {
    border-radius: var(--radius-apple-control) !important;
    height: 32px !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    background: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}
#modeToggle .wtc-toggle-btn {
    height: 28px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
    border-radius: calc(var(--radius-apple-control) - 6px) !important;
    color: #09263a;
    display: flex;
    align-items: center;
    justify-content: center;
}
#modeToggle .wtc-toggle-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-radius: calc(var(--radius-apple-control) - 8px) !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

/* -------------------------
   Results cards (merged from results-cards.css)
   ------------------------- */
.result-card-title {
    line-height: var(--rc-title-lh);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--rc-title-lines-sm);
    overflow: hidden;
}
@media (min-width: 992px) {
    .result-card-title {
        -webkit-line-clamp: var(--rc-title-lines-lg);
    }
}
.result-card-badges {
    line-height: var(--rc-badge-lh);
    max-height: calc(var(--rc-badge-lines) * 1em * var(--rc-badge-lh));
    overflow: hidden;
}
/* Prices: larger, prominent */
.result-card-price h4 {
    font-size: 1.6rem;
    font-weight: 700;
}
@media (min-width: 992px) {
    .result-card-price h4 {
        font-size: 1.8rem;
    }
}
/* Original (strikeout) price slightly larger for readability */
.result-card-price s {
    font-size: 1.1rem;
}
@media (min-width: 992px) {
    .result-card-price s {
        font-size: 1.2rem;
    }
}
/* Ensure result card images have consistent height and do not crop */
.results-card .result-card-image {
    width: 100%;
    height: auto;
    display: block;
}

/* -------------------------
   Value bar (merged from valuebar.css)
   ------------------------- */
.clickable-icon {
    cursor: pointer;
}
.vmf-stage-0 {
    background-color: #ff0000;
}
.vmf-stage-10 {
    background-color: #cc0000;
}
.vmf-stage-20 {
    background-color: #cc3300;
}
.vmf-stage-30 {
    background-color: #ff6600;
}
.vmf-stage-40 {
    background-color: #ff9933;
}
.vmf-stage-50 {
    background-color: #f1c101;
}
.vmf-stage-60 {
    background-color: #0055ff;
}
.vmf-stage-70 {
    background-color: #3267cc;
}
.vmf-stage-80 {
    background-color: #00a600;
}
.vmf-stage-90 {
    background-color: #00d800;
}
.progress {
    position: relative;
    background-color: #6c757d !important;
    border-radius: var(--radius-apple-control) !important;
    overflow: hidden;
}
.vmf-label {
    line-height: 1.1;
}
.vmf-title {
    white-space: nowrap;
    min-width: 0;
    align-items: baseline !important;
}
.vmf-wrap {
    margin-top: 0.5rem;
}
.valuebar-container .valuebar-placeholder {
    display: none;
}
.valuebar-container.valuebar-unavailable .vmf-wrap {
    display: none;
}
.valuebar-container.valuebar-unavailable .valuebar-placeholder {
    display: block;
}
.vmf-chip-disabled {
    background-color: #adb5bd;
    color: #fff;
}
.vmf-chip {
    display: inline-block;
    vertical-align: baseline;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 11px;
    color: #fff;
    line-height: 1.1;
}
.vmf-score-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    white-space: nowrap;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    font-size: clamp(11px, 2.5vw, 13px);
}
.label-short,
.label-xs {
    display: none;
}
@media (max-width: 420px) {
    .label-full {
        display: none;
    }
    .label-short {
        display: inline;
    }
}
@media (max-width: 340px) {
    .label-short {
        display: none;
    }
    .label-xs {
        display: inline;
    }
}

/* -------------------------
   Utilities
   ------------------------- */
.wtc-text-secondary {
    color: var(--wtc-gray);
}
.wtc-text-dark {
    color: var(--wtc-dark);
}
.wtc-text-grant {
    color: #34c759 !important;
}
.wtc-animate {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.border-secondary {
    border-color: #bbbbbb !important;
}
b,
strong {
    color: rgb(100, 100, 100) !important;
}
.equal-height-img {
    height: 200px;
    object-fit: cover;
}

/* Badges and Pills */
.badge {
    border-radius: 999px;
    font-weight: 600;
}
.badge-grant {
    background-color: #34c759 !important;
    color: #fff !important;
    border: none;
}
.bg-fuel {
    background-color: rgb(96, 129, 162) !important;
    color: #fff !important;
}
.bg-bodystyle {
    background-color: rgb(139, 139, 139) !important;
    color: #fff !important;
}
.bg-general {
    background-color: rgb(241, 241, 241) !important;
    border: 1px solid rgba(0, 0, 0, 0.38) !important;
    color: #171717 !important;
}
.wtc_pill,
.wtc-pill {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1d1d1f;
    border-radius: var(--radius-apple-control);
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
}

/* Responsive hero typography */
@media (max-width: 768px) {
    .wtc-container {
        padding: 0 1rem;
    }
    .wtc-grid {
        gap: 1.5rem;
    }
    .wtc-grid-2,
    .wtc-grid-3 {
        grid-template-columns: 1fr;
    }
    .wtc-hero-title {
        font-size: 2.5rem;
    }
    .wtc-hero-subtitle {
        font-size: 1.25rem;
    }
    /* Hero image mobile max width */
    .col-lg-5 img {
        max-width: 250px !important;
    }
}

/* -------------------------
   Builder page (flat header + readable text)
   ------------------------- */
.builder-page {
    background: #f8f9fa;
    min-height: 100vh;
}
.builder-page .container h1,
.builder-page .container h4 {
    color: var(--wtc-dark);
    text-shadow: none;
}
.builder-page .container h1 {
    font-weight: 700;
    letter-spacing: -0.02em;
}
.builder-page .container h4 {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Footer logo responsiveness */
@media (max-width: 767.98px) {
    .footer-logo {
        max-width: 50% !important;
    }
}

/* Value modal decorative divider */
.value-modal-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0)
    );
}
.value-modal-close {
    z-index: 1060;
}

/* Image carousel controls + fades */
.transition-image {
    transition: opacity 0.3s ease-in-out;
    opacity: 1;
}
.hidden-image {
    opacity: 0;
}
.carousel-nav-arrow {
    opacity: 0.7;
}
.carousel-nav-arrow:hover {
    opacity: 0.9;
}
#vehicleGalleryCarousel .carousel-item {
    transition: transform 3.6s ease-in-out, opacity 3.6s ease-in-out;
}

/* ---------------------------------
   Filmstrip (infinite slow scroller)
   --------------------------------- */
.wtc-filmstrip {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.wtc-filmstrip-track {
    display: flex;
    align-items: center;
    gap: var(--filmstrip-gap, 0);
    width: max-content;
    animation: wtc-filmstrip-scroll-right var(--filmstrip-duration, 20s) linear
        infinite;
}
.wtc-filmstrip .filmstrip-item {
    flex: 0 0 auto;
}
.wtc-filmstrip img {
    display: block;
    height: var(--filmstrip-height, 180px);
    width: auto;
    object-fit: contain;
}

/* Size and spacing modifiers for specific sections */
.wtc-filmstrip--spaced .wtc-filmstrip-track {
    --filmstrip-gap: 24px;
}
.wtc-filmstrip--large img {
    --filmstrip-height: 50px;
}
.wtc-filmstrip--slow .wtc-filmstrip-track {
    --filmstrip-duration: 150s;
}

@keyframes wtc-filmstrip-scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

@media (min-width: 992px) {
    .wtc-filmstrip img {
        height: var(--filmstrip-height-lg, 220px);
    }
    .wtc-filmstrip--large img {
        --filmstrip-height-lg: calc(var(--filmstrip-height) * (440 / 60));
    }
}

@media (prefers-reduced-motion: reduce) {
    .wtc-filmstrip-track {
        animation: none;
    }
}

/* Range slider rail (SearchForm old UI) */
.form-range::-webkit-slider-runnable-track {
    background: #ccc;
}

/* -------------------------
   Results Filters (merged from results-filters.css)
   ------------------------- */
/* IonRangeSlider theme tweaks */
.irs--round .irs-bar,
.irs--round .irs-from,
.irs--round .irs-to {
    background: var(--bs-primary);
}
.irs--round .irs-handle {
    border: 1px solid var(--bs-primary);
}
.irs--round .irs-single {
    background: var(--bs-primary);
    color: #fff;
}

/* Tabs transitions */
.tab-pane {
    transition:
        opacity 0.2s ease-in-out,
        transform 0.2s ease-in-out;
}
.tab-pane:not(.show) {
    transform: translateY(10px);
}
.tab-pane.show {
    transform: translateY(0);
}

/* iOS-style small switch */
.ios-switch .ios-switch-input {
    width: 38px;
    height: 22px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    transform: scale(0.9);
    transform-origin: right center;
    cursor: pointer;
}
.ios-switch .ios-switch-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Loading overlay */
#mainContent {
    position: static;
}
.results-loading-overlay {
    position: fixed;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 150ms ease,
        visibility 150ms linear;
}
.results-loading-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.results-loading-locked {
    overflow: hidden;
}
.results-loading-overlay .loading-inner {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    color: #0d6efd;
    font-weight: 600;
}

/* Sticky filter container */
@supports (position: sticky) {
    @media (min-width: 992px) {
        #searchFormContainer {
            transition: box-shadow 150ms ease;
            position: sticky;
            top: var(--filter-sticky-offset, 16px);
        }
    }
}

/* Mobile modal adjustments */
.mobile-filter-modal-body {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.mobile-filter-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1056;
}
.mobile-filter-cta.is-visible {
    display: block;
}
@media (max-width: 991.98px) {
    #searchModal .modal-header {
        display: none;
    }
    #searchModal .modal-body {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}
