/* ===== 360 spin + interior pano viewers (car detail hero) ===== */

.car-spin-viewer,
.car-pano-viewer {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-subtle);
}

.car-spin-viewer[hidden],
.car-pano-viewer[hidden] {
    display: none !important;
}

.car-spin-viewer {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.car-spin-viewer:focus {
    outline: none;
}

.car-spin-viewer.car-spin-viewer--dragging {
    cursor: grabbing;
}

.car-spin-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    pointer-events: none;
}

.car-spin-affordance {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: none;
    border: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.car-spin-affordance-arrows {
    font-size: 15px;
    line-height: 1;
}

.car-spin-affordance--fade {
    opacity: 0;
}

.car-spin-progress {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: rgba(20, 36, 54, 0.15);
    z-index: 2;
    transition: opacity 0.3s ease;
}

.car-spin-progress-bar {
    height: 100%;
    width: 0;
    background: var(--navy);
    transition: width 0.2s ease;
}

.car-spin-progress--done {
    opacity: 0;
}

/* Hide the photo arrows/counter overlay while a 360 viewer is active */
.car-gallery-hero--alt-media .car-gallery-arrow,
.car-gallery-hero--alt-media .car-gallery-badge {
    display: none;
}

.car-media-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* Photos / 360 / interior: text tabs with an underline, not pills. */
.car-media-switch-btn {
    padding: 6px 2px 5px;
    margin: 0 8px;
    border-radius: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.car-media-switch-btn:hover {
    color: var(--navy);
}

.car-media-switch-btn.active {
    background: none;
    border-bottom-color: var(--navy);
    color: var(--navy);
}

/* Pannellum chrome tweaks inside the pano viewer */
.car-pano-viewer .pnlm-about-msg {
    display: none !important;
}


/* ============================================================
   Landing v2 ("search stage") — bare search hero, story flow.
   Namespaced lps- ; replaces the old lp- landing sections.
   ============================================================ */

.lps-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 36px;
}

/* --- full-stage hero ------------------------------------- */
.lps-stage {
    text-align: center;
    position: relative;
    padding: 72px 0 64px;
}

.lps-eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

.lps-headline {
    font-size: clamp(42px, 6.2vw, 72px);
    font-weight: 600;
    line-height: 1.05;
    margin: 22px auto 0;
    max-width: 16ch;
    text-wrap: balance;
}

.lps-headline-line {
    display: block;
    overflow: hidden;
}

.lps-headline-line > span {
    display: block;
    transform: translateY(112%);
    animation: lps-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lps-headline-line:nth-child(2) > span {
    animation-delay: 0.13s;
}

.lps-headline-accent {
    color: var(--navy);
    position: relative;
}

.lps-headline-accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 3px;
    background: var(--wood-trim);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: lps-draw 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

@keyframes lps-rise {
    to { transform: none; }
}

@keyframes lps-draw {
    to { transform: scaleX(1); }
}

.lps-fade {
    opacity: 0;
    animation: lps-fade-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.lps-fade-1 { animation-delay: 0.05s; }
.lps-fade-2 { animation-delay: 0.55s; }

@keyframes lps-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* --- bare search line ------------------------------------ */
.lps-search {
    max-width: 760px;
    margin: 54px auto 0;
    width: 100%;
    text-align: left;
}

.lps-search-main {
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 16px;
    position: relative;
}

.lps-search-main::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: 100%;
    background: var(--wood-trim);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.lps-search-main:focus-within::after {
    transform: scaleX(1);
}

.lps-search-main svg {
    color: var(--text-faint);
    flex: none;
}

.lps-search-input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    font: inherit;
    color: var(--text);
    font-size: clamp(17px, 2.2vw, 22px);
    min-width: 0;
}

.lps-search-input::placeholder {
    color: var(--text-faint);
}

.lps-search-go {
    flex: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
}

.lps-search-arr {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lps-search-go:hover .lps-search-arr,
.lps-search-go:focus-visible .lps-search-arr {
    transform: translateX(5px);
}

.lps-search-go:focus-visible {
    outline: 1px solid var(--navy);
    outline-offset: 4px;
}

.lps-search-sub {
    display: flex;
    align-items: baseline;
    gap: 30px;
    margin-top: 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.lps-mini {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.lps-mini-label {
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.lps-mini input,
.lps-mini select {
    background: transparent;
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid var(--border-medium);
    border-radius: 0;
    outline: none;
    font: inherit;
    font-size: 13.5px;
    color: var(--text);
    padding: 2px 0 3px;
    width: 72px;
    transition: border-color 0.3s;
    box-shadow: none;
}

.lps-mini select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    padding-right: 16px;
    background-image: var(--select-chevron);
    background-repeat: no-repeat;
    background-position: right 2px center;
}

.lps-mini input:focus,
.lps-mini select:focus {
    border-color: var(--navy);
    box-shadow: none;
}

.lps-mini input::placeholder {
    color: var(--text-faint);
}

.lps-search-count {
    margin-left: auto;
    color: var(--navy);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.lps-pulse {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #a68968;
    margin-right: 8px;
    animation: lps-pulse 2.2s ease infinite;
    vertical-align: 1px;
}

@keyframes lps-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(166, 137, 104, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(166, 137, 104, 0); }
}

/* --- shared section bits --------------------------------- */
.lps-kicker {
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #a68968;
    font-weight: 600;
}

.lps-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.lps-reveal.lps-in {
    opacity: 1;
    transform: none;
}

/* --- ask-anything dialogue ------------------------------- */
.lps-dialogue {
    border-top: 1px solid var(--border-light);
    padding: 72px 0;
}

.lps-dialogue-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.lps-q {
    font-size: clamp(24px, 3.6vw, 38px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--navy);
    text-wrap: balance;
    margin-top: 16px;
}

.lps-q::before {
    content: "\201C\00A0";
    color: #a68968;
}

.lps-q::after {
    content: "\00A0\201D";
    color: #a68968;
}

.lps-a {
    color: var(--text-muted);
    font-size: 16.5px;
    line-height: 1.75;
    max-width: 58ch;
}

.lps-a b {
    color: var(--text);
    font-weight: 600;
}

.lps-dialogue-note {
    margin-top: 24px;
    font-size: 12.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* --- data prose ------------------------------------------ */
.lps-data {
    border-top: 1px solid var(--border-light);
    padding: 84px 0;
}

.lps-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.lps-data-lede {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

.lps-data-accent {
    color: var(--navy);
    border-bottom: 3px solid #a68968;
}

.lps-data-cols {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.8;
}

.lps-data-cols p + p {
    margin-top: 18px;
}

.lps-data-cols b {
    color: var(--navy);
    font-weight: 600;
}

/* --- the lot (further down the page) --------------------- */
.lps-lot {
    border-top: 1px solid var(--border-light);
    padding: 84px 0 96px;
    background: rgba(255, 255, 255, 0.4);
}

.lps-lot-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}

.lps-lot-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 600;
    margin-top: 10px;
}

.lps-lot-link {
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid transparent;
    transition: border-color 0.25s;
}

.lps-lot-link:hover {
    border-color: #a68968;
}

.lps-lot-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lps-car {
    text-decoration: none;
    color: inherit;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    border: none;
}

/* Photo + type, no card (owner rule 2026-09-30: no boxes). */
.lps-car:hover .lps-car-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.lps-car-img {
    height: 150px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-subtle);
}

.lps-car-body {
    padding: 12px 0 0;
}

.lps-car-title {
    font-size: 14.5px;
    font-weight: 600;
}

.lps-car-meta {
    color: var(--text-muted);
    font-size: 12.5px;
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
}

.lps-car-price {
    color: var(--navy);
    font-weight: 600;
    font-size: 15.5px;
    margin-top: 8px;
    font-variant-numeric: tabular-nums;
}

/* --- navy close band fused with footer ------------------- */
.lps-closefoot {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: #fffcf8;
    position: relative;
    margin-top: auto;
}

.lps-closefoot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--wood-trim);
}

.lps-closefoot-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding: 64px 0 0;
}

.lps-closefoot-title {
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 600;
    line-height: 1.1;
}

.lps-closefoot-sub {
    color: rgba(255, 252, 248, 0.65);
    margin-top: 10px;
    font-size: 15px;
}

.lps-closefoot-sub b {
    color: #fffcf8;
    font-variant-numeric: tabular-nums;
}

.lps-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.lps-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 30px;
    border-radius: var(--main-radius);
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, color 0.2s;
}

.lps-btn-light {
    background: #fffcf8;
    color: var(--navy);
}

.lps-btn-light:hover,
.lps-btn-light:focus-visible {
    outline: none;
}

.lps-btn-ghost {
    color: #fffcf8;
    border-color: rgba(255, 252, 248, 0.3);
}

.lps-btn-ghost:hover,
.lps-btn-ghost:focus-visible {
    border-color: #a68968;
    outline: none;
}

.lps-foot-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 54px;
    padding: 22px 0 34px;
    border-top: 1px solid rgba(255, 252, 248, 0.14);
    font-size: 13px;
    color: rgba(255, 252, 248, 0.5);
    gap: 14px;
    flex-wrap: wrap;
}

.lps-foot-links a {
    color: rgba(255, 252, 248, 0.7);
    text-decoration: none;
    margin-left: 22px;
    transition: color 0.2s;
}

.lps-foot-links a:hover {
    color: #fffcf8;
}

/* --- responsive ------------------------------------------ */
@media (max-width: 880px) {
    .lps-lot-row {
        grid-template-columns: 1fr 1fr;
    }

    .lps-data-grid,
    .lps-dialogue-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 560px) {
    .lps-container {
        padding: 0 20px;
    }

    .lps-lot-row {
        grid-template-columns: 1fr;
    }

    .lps-search-sub {
        gap: 18px;
    }

    .lps-search-count {
        margin-left: 0;
    }

    .lps-cta-row {
        width: 100%;
    }

    .lps-cta-row .lps-btn {
        flex: 1;
        justify-content: center;
    }
}

/* M8 (visual review 2026-09-28): at 390px the search controls were 20-31px
   tall and the 13.5px mini controls triggered iOS focus zoom. 44px targets,
   16px text, same hairline look. */
@media (max-width: 640px) {
    .lps-search-input {
        min-height: 44px;
        font-size: 17px;
    }

    .lps-search-go {
        min-height: 44px;
        padding: 10px 4px;
    }

    .lps-mini {
        align-items: center;
    }

    .lps-mini input,
    .lps-mini select {
        min-height: 44px;
        padding: 10px 0;
        font-size: 16px;
    }

    .lps-mini input {
        width: 88px;
    }

    .lps-mini select {
        padding-right: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lps-fade {
        animation: none;
        opacity: 1;
    }

    .lps-headline-line > span {
        animation: none;
        transform: none;
    }

    .lps-headline-accent::after {
        animation: none;
        transform: none;
    }

    .lps-pulse {
        animation: none;
    }

    .lps-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}


