.car-detail-page {
            background:
                radial-gradient(circle at 88% 4%, rgba(120, 191, 158, .16), transparent 30%),
                linear-gradient(180deg, var(--white), #f5f5ef 44%, var(--white));
        }

        .detail-section {
            padding: 78px 0;
        }

        .detail-section.compact {
            padding-top: 0;
            padding-bottom: 24px;
        }

        .detail-section.detail-section-report {
            padding: 42px 0;
        }

        .detail-section.detail-section-info {
            padding: 42px 0 14px;
        }

        .detail-section.detail-section-info + .detail-section.detail-section-report {
            padding-top: 18px;
        }

        .detail-card {
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--white);
            box-shadow: 0 16px 44px rgba(1, 38, 25, .08);
        }

        .detail-hero {
            display: grid;
            grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
            gap: 24px;
            align-items: start;
            padding-top: 58px;
        }

        .gallery-card {
            padding: 14px;
        }

        .main-photo {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16 / 9;
            border-radius: 8px;
            background: var(--cream);
            box-shadow: 0 18px 46px rgba(1, 38, 25, .12);
        }

        .main-photo::after {
            content: "";
            position: absolute;
            inset: auto 0 0;
            height: 38%;
            background: linear-gradient(180deg, transparent, rgba(1, 38, 25, .58));
            pointer-events: none;
        }

        .main-photo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
            transition: opacity .25s ease, transform .4s ease;
        }

        .main-photo:hover img {
            transform: scale(1.045);
        }

        .main-photo.is-changing img {
            opacity: .35;
        }

        .gallery-meta {
            position: absolute;
            left: 14px;
            bottom: 14px;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--cream);
            font-size: 13px;
            font-weight: 800;
        }

        .gallery-count {
            padding: 8px 11px;
            border: 1px solid rgba(232, 229, 222, .26);
            border-radius: 999px;
            background: rgba(1, 38, 25, .72);
            backdrop-filter: blur(10px);
        }

        .fullscreen-btn,
        .favorite-btn {
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(232, 229, 222, .6);
            border-radius: 8px;
            color: var(--green-950);
            background: rgba(251, 250, 246, .92);
            cursor: pointer;
            transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
        }

        .fullscreen-btn {
            position: absolute;
            z-index: 3;
            right: 14px;
            top: 14px;
        }

        .fullscreen-btn:hover,
        .favorite-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 30px rgba(1, 38, 25, .14);
        }

        .gallery-nav {
            position: absolute;
            inset: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 14px;
            pointer-events: none;
        }

        .gallery-arrow {
            display: grid;
            place-items: center;
            width: 46px;
            height: 46px;
            border: 1px solid rgba(232, 229, 222, .38);
            border-radius: 50%;
            color: var(--green-950);
            background: rgba(251, 250, 246, .92);
            box-shadow: 0 14px 34px rgba(1, 38, 25, .18);
            cursor: pointer;
            pointer-events: auto;
            transition: transform .2s ease, background .2s ease;
        }

        .gallery-arrow:hover {
            transform: translateY(-2px) scale(1.04);
            background: var(--mint);
        }

        .thumb-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 12px;
        }

        .thumb {
            overflow: hidden;
            aspect-ratio: 16 / 10;
            padding: 0;
            border: 2px solid transparent;
            border-radius: 8px;
            background: var(--cream);
            cursor: pointer;
            opacity: .78;
            transition: transform .2s ease, border-color .2s ease, opacity .2s ease, box-shadow .2s ease;
        }

        .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumb:hover,
        .thumb.is-active {
            border-color: var(--mint);
            opacity: 1;
            transform: translateY(-2px);
            box-shadow: 0 12px 26px rgba(1, 38, 25, .12);
        }

        .summary-card {
            padding: 26px;
            position: sticky;
            top: 92px;
        }

        .badge-row {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 18px;
        }

        .detail-badge {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 8px 11px;
            border: 1px solid rgba(120, 191, 158, .36);
            border-radius: 999px;
            color: var(--green-950);
            background: rgba(120, 191, 158, .2);
            font-size: 12px;
            font-weight: 800;
        }

        .detail-badge::before {
            content: "";
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--mint);
        }

        .detail-badge.status-published {
            border-color: rgba(120, 191, 158, .52);
            background: rgba(120, 191, 158, .2);
        }

        .detail-badge.status-sold {
            border-color: rgba(177, 61, 61, .26);
            color: #7d2929;
            background: rgba(250, 225, 223, .92);
        }

        .detail-badge.status-sold::before {
            background: #b53c3c;
        }

        .detail-badge.status-reserved {
            border-color: rgba(217, 164, 65, .34);
            color: #6f4a08;
            background: rgba(253, 238, 199, .92);
        }

        .detail-badge.status-reserved::before {
            background: var(--gold);
        }

        .summary-card h1 {
            color: var(--green-950);
            font-size: clamp(32px, 4.5vw, 52px);
            line-height: 1.02;
        }

        .detail-price {
            margin-top: 18px;
            color: var(--green-950);
            font-size: 34px;
            font-weight: 800;
        }

        .quick-specs {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
            margin-top: 24px;
        }

        .quick-spec {
            display: flex;
            gap: 10px;
            align-items: center;
            min-height: 64px;
            padding: 12px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(232, 229, 222, .34);
        }

        .quick-spec svg,
        .equipment-item svg,
        .inspection-row svg,
        .seller-line svg,
        .share-btn svg {
            flex: 0 0 18px;
            width: 18px;
            height: 18px;
            color: var(--green-600);
        }

        .quick-spec span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
        }

        .quick-spec strong {
            display: block;
            margin-top: 2px;
            color: var(--green-950);
            font-size: 14px;
            font-weight: 800;
        }

        .summary-actions {
            display: grid;
            grid-template-columns: 1fr 1fr auto;
            gap: 10px;
            margin-top: 24px;
        }

        .section-headline {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 18px;
            margin-bottom: 22px;
        }

        .section-headline h2 {
            color: var(--green-950);
            font-size: clamp(28px, 4vw, 44px);
        }

        .section-headline p {
            max-width: 620px;
            color: var(--muted);
            line-height: 1.7;
        }

        .details-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--line);
        }

        .detail-cell {
            min-height: 78px;
            padding: 16px;
            background: var(--white);
        }

        .detail-cell span {
            display: block;
            color: var(--muted);
            font-size: 13px;
            font-weight: 700;
        }

        .detail-cell strong {
            display: block;
            margin-top: 6px;
            color: var(--green-950);
            font-weight: 800;
        }

        .description-card {
            padding: 28px;
        }

        .description-card p {
            color: var(--muted);
            font-size: 17px;
            line-height: 1.85;
        }

        .equipment-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
        }

        .equipment-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--white);
            color: var(--green-950);
            font-weight: 800;
            box-shadow: 0 10px 28px rgba(1, 38, 25, .05);
        }

        .inspection-layout {
            display: grid;
            grid-template-columns: .78fr 1.22fr;
            gap: 18px;
        }

        .inspection-score {
            padding: 26px;
        }

        .score-ring {
            display: grid;
            place-items: center;
            width: 148px;
            height: 148px;
            margin: 22px auto;
            border-radius: 50%;
            color: var(--green-950);
            background:
                radial-gradient(circle at center, var(--white) 54%, transparent 55%),
                conic-gradient(var(--mint) 0 95%, rgba(232, 229, 222, .72) 95% 100%);
            font-size: 34px;
            font-weight: 800;
        }

        .progress-track {
            overflow: hidden;
            height: 12px;
            border-radius: 999px;
            background: rgba(232, 229, 222, .9);
        }

        .progress-bar {
            width: 95%;
            height: 100%;
            border-radius: inherit;
            background: var(--mint);
        }

        .inspection-meta {
            display: grid;
            gap: 10px;
            margin-top: 18px;
            color: var(--muted);
            font-weight: 700;
        }

        .inspection-list {
            display: grid;
            gap: 10px;
            padding: 18px;
        }

        .inspection-row {
            display: grid;
            grid-template-columns: 24px 1fr auto;
            align-items: center;
            gap: 12px;
            padding: 13px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(232, 229, 222, .22);
        }

        .inspection-row strong {
            color: var(--green-950);
        }

        .status {
            padding: 7px 10px;
            border-radius: 999px;
            color: var(--green-950);
            background: rgba(120, 191, 158, .24);
            font-size: 12px;
            font-weight: 800;
        }

        .status.watch {
            background: rgba(217, 164, 65, .22);
        }

        .location-contact-grid {
            display: grid;
            grid-template-columns: 1.1fr .9fr;
            gap: 18px;
        }

        .location-card,
        .seller-card {
            padding: 24px;
        }

        .map-placeholder {
            display: grid;
            place-items: center;
            min-height: 320px;
            margin-top: 18px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--green-950);
            background:
                linear-gradient(rgba(1, 38, 25, .07) 1px, transparent 1px),
                linear-gradient(90deg, rgba(1, 38, 25, .07) 1px, transparent 1px),
                radial-gradient(circle at center, rgba(120, 191, 158, .28), rgba(232, 229, 222, .7));
            background-size: 28px 28px, 28px 28px, auto;
            font-weight: 800;
        }

        .seller-lines {
            display: grid;
            gap: 12px;
            margin: 22px 0;
        }

        .seller-line {
            display: flex;
            gap: 10px;
            color: var(--muted);
            font-weight: 700;
        }

        .seller-actions {
            display: grid;
            gap: 10px;
        }

        .similar-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
        }

        .similar-card {
            overflow: hidden;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--white);
            box-shadow: 0 14px 42px rgba(1, 38, 25, .07);
            transition: transform .22s ease, box-shadow .22s ease;
        }

        .similar-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 24px 60px rgba(1, 38, 25, .13);
        }

        .similar-card img {
            width: 100%;
            aspect-ratio: 16 / 10;
            object-fit: cover;
        }

        .similar-card-body {
            padding: 16px;
        }

        .similar-card h3 {
            color: var(--green-950);
            font-size: 18px;
        }

        .similar-card p {
            margin-top: 8px;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.6;
        }

        .similar-card .btn {
            width: 100%;
            margin-top: 14px;
        }

        .share-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
            padding: 22px;
        }

        .share-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .share-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-height: 42px;
            padding: 0 14px;
            border: 1px solid var(--line);
            border-radius: 8px;
            color: var(--green-950);
            background: rgba(232, 229, 222, .42);
            font-weight: 800;
            transition: transform .2s ease, background .2s ease;
        }

        .share-btn:hover {
            transform: translateY(-2px);
            background: var(--mint);
        }

        @media (max-width: 1040px) {
            .detail-hero,
            .inspection-layout,
            .location-contact-grid {
                grid-template-columns: 1fr;
            }

            .summary-card {
                position: static;
            }

            .details-grid,
            .equipment-grid,
            .similar-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 680px) {
            .detail-section {
                padding: 56px 0;
            }

            .detail-section.compact {
                padding-bottom: 18px;
            }

            .detail-section.detail-section-report {
                padding: 32px 0;
            }

            .detail-section.detail-section-info {
                padding: 32px 0 10px;
            }

            .detail-section.detail-section-info + .detail-section.detail-section-report {
                padding-top: 16px;
            }

            .detail-hero {
                padding-top: 36px;
            }

            .quick-specs,
            .details-grid,
            .equipment-grid,
            .similar-grid {
                grid-template-columns: 1fr;
            }

            .main-photo {
                aspect-ratio: 4 / 3;
            }

            .gallery-nav {
                padding: 0 10px;
            }

            .gallery-arrow,
            .fullscreen-btn {
                width: 40px;
                height: 40px;
            }

            .thumb-grid {
                display: flex;
                overflow-x: auto;
                gap: 10px;
                padding-bottom: 4px;
                scroll-snap-type: x mandatory;
            }

            .thumb {
                flex: 0 0 34%;
                scroll-snap-align: start;
            }

            .summary-actions,
            .share-card {
                grid-template-columns: 1fr;
                display: grid;
            }

            .summary-actions .btn,
            .summary-actions .favorite-btn,
            .seller-actions .btn {
                width: 100%;
            }

            .favorite-btn {
                width: 100%;
            }

            .inspection-row {
                grid-template-columns: 24px 1fr;
            }

            .inspection-row .status {
                grid-column: 2;
                width: fit-content;
            }
        }

        .car-info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1px;
            padding: 1px;
            border: 1px solid var(--line);
            border-radius: 8px;
            background: var(--line);
            box-shadow: 0 10px 24px rgba(1, 38, 25, .04);
        }

        .car-info-item {
            min-width: 0;
            min-height: 0;
            padding: 10px 12px;
            border: 0;
            border-radius: 0;
            background: var(--white);
            transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
        }

        .car-info-item:hover {
            background: rgba(120, 191, 158, .1);
            transform: none;
            box-shadow: none;
        }

        .car-info-item span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            font-weight: 750;
        }

        .car-info-item strong {
            display: block;
            margin-top: 3px;
            overflow-wrap: anywhere;
            color: var(--green-950);
            font-size: 14px;
            font-weight: 850;
        }

        .main-photo { cursor: zoom-in; }

        .gallery-lightbox-open { overflow: hidden; }

        .gallery-lightbox {
            position: fixed;
            z-index: 200;
            inset: 0;
            display: grid;
            place-items: center;
            padding: 28px;
            background: rgba(1, 23, 16, .76);
            backdrop-filter: blur(10px);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity .28s ease, visibility .28s ease;
        }

        .gallery-lightbox.is-open {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .gallery-lightbox-backdrop { position: absolute; inset: 0; border: 0; background: transparent; cursor: default; }

        .gallery-lightbox-card {
            position: relative;
            z-index: 1;
            width: min(100%, 1080px);
            padding: 12px;
            border: 1px solid rgba(245, 242, 235, .18);
            border-radius: 16px;
            background: rgba(4, 34, 24, .88);
            box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
            transform: translateY(16px) scale(.98);
            transition: transform .34s cubic-bezier(.22, 1, .36, 1);
        }

        .gallery-lightbox.is-open .gallery-lightbox-card { transform: none; }
        .gallery-lightbox figure { margin: 0; overflow: hidden; border-radius: 10px; background: #031b12; }
        .gallery-lightbox figure img { display: block; width: 100%; max-height: min(74vh, 760px); object-fit: contain; }
        .gallery-lightbox figcaption { padding: 12px 8px 2px; color: rgba(245, 242, 235, .8); font-size: 13px; font-weight: 700; text-align: center; }

        .gallery-lightbox-close,
        .gallery-lightbox-arrow {
            position: absolute;
            z-index: 2;
            display: grid;
            place-items: center;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(245, 242, 235, .24);
            border-radius: 50%;
            background: rgba(3, 36, 24, .78);
            color: var(--white);
            cursor: pointer;
            transition: transform .2s ease, background .2s ease;
        }

        .gallery-lightbox-close { top: 22px; right: 22px; }
        .gallery-lightbox-arrow { top: 50%; transform: translateY(-50%); }
        .gallery-lightbox-arrow--previous { left: 22px; }
        .gallery-lightbox-arrow--next { right: 22px; }
        .gallery-lightbox-close:hover { transform: rotate(90deg); }
        .gallery-lightbox-arrow:hover { background: var(--mint); color: var(--green-950); }

        @media (max-width: 640px) {
            .gallery-lightbox { padding: 16px; }
            .gallery-lightbox-card { padding: 8px; border-radius: 12px; }
            .gallery-lightbox figure img { max-height: 72vh; }
            .gallery-lightbox-close { top: 16px; right: 16px; }
            .gallery-lightbox-arrow { width: 38px; height: 38px; }
            .gallery-lightbox-arrow--previous { left: 14px; }
            .gallery-lightbox-arrow--next { right: 14px; }
        }

        @media (min-width: 1041px) {
            .detail-hero { align-items: stretch; }

            .gallery-card {
                display: flex;
                height: 100%;
                min-height: 0;
                flex-direction: column;
                overflow: hidden;
            }

            .main-photo {
                height: 0;
                min-height: 0;
                flex: 1 1 0;
                aspect-ratio: auto;
            }

            .thumb-grid {
                display: grid;
                grid-auto-columns: minmax(112px, 1fr);
                grid-auto-flow: column;
                grid-template-columns: none;
                flex: 0 0 82px;
                overflow-x: auto;
                padding-bottom: 3px;
                scrollbar-width: thin;
                scroll-snap-type: x proximity;
            }

            .thumb { scroll-snap-align: start; }

            .main-photo img {
                display: block;
                max-width: 100%;
                max-height: 100%;
            }
        }
