/**
 * CarOutlet Luxury destination page (/luxury/) styling.
 *
 * Shares .col-card / .col-card-* with the homepage block partial so both
 * surfaces render vehicles identically. All rules scoped under .col-luxury-page
 * to isolate from the rest of the CarOutlet site (the Cwicly theme + the
 * vehicle-list-llm block ship unscoped .vehicle-card rules we must not inherit).
 */

.col-luxury-page {
    background: #0a0a0a;
    color: #f5f1ea;
    /* Site body font — Readex Pro is loaded globally by the Cwicly theme */
    font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 60vh;
    padding-top: 0;
}

/* ---------- Hero ---------- */

.col-luxury-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(520px, 75vh, 760px);
    /* Floating site header is absolute ~104px tall; reserve clearance so the
       hero text never gets crowded behind the logo/nav. */
    padding-top: 120px;
    display: flex;
    align-items: center;
    background: #0a0a0a;
}

.col-luxury-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.col-luxury-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* "center top" keeps heads in frame on wide / short viewports where the
       image would otherwise be cropped vertically from both edges. */
    object-position: center top;
    /* Slightly darken/desaturate the photo so overlay + text read clean */
    filter: saturate(0.9) brightness(0.9);
}

.col-luxury-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Dark only on the left half — right side of the photo stays fully clear. */
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.85) 30%,
        rgba(10, 10, 10, 0.3) 50%,
        rgba(10, 10, 10, 0) 62%,
        rgba(10, 10, 10, 0) 100%
    );
}

.col-luxury-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: left;
}

.col-luxury-hero__eyebrow {
    font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 12px;
    color: #c9a86a;
    margin: 0 0 16px;
}

.col-luxury-hero__title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.08;
    color: #f5f1ea;
    margin: 0 0 20px;
    letter-spacing: 0.01em;
    max-width: 14ch;
    text-wrap: balance;
}

.col-luxury-hero__lead {
    font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(245, 241, 234, 0.85);
    margin: 0 0 24px;
    max-width: 46ch;
}

.col-luxury-hero__meta {
    font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #c9a86a;
    margin: 0 0 28px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.col-luxury-hero__ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------- Preview disclaimer banner ---------- */

.col-luxury-preview-banner {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    padding: 14px 24px;
    margin: 0;
    background: #c9a86a;
    color: #0a0a0a;
    font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid rgba(10, 10, 10, 0.15);
    border-bottom: 1px solid rgba(10, 10, 10, 0.15);
}

.col-luxury-preview-banner strong {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 11px;
}

/* ---------- Listing ---------- */

.col-luxury-listing {
    padding: 48px 24px 64px;
}

.col-luxury-listing__inner {
    max-width: 1280px;
    margin: 0 auto;
}

.col-luxury-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.col-luxury-empty {
    text-align: center;
    color: rgba(245, 241, 234, 0.6);
    padding: 60px 20px;
    font-style: italic;
    font-size: 16px;
}

/* ---------- Pagination ---------- */

.col-luxury-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.col-luxury-pagination a,
.col-luxury-pagination span {
    display: inline-block;
    padding: 10px 16px;
    color: rgba(245, 241, 234, 0.7);
    text-decoration: none;
    border: 1px solid rgba(245, 241, 234, 0.15);
    font-size: 14px;
    transition: all 0.2s ease;
}

.col-luxury-pagination a:hover {
    color: #c9a86a;
    border-color: #c9a86a;
}

.col-luxury-pagination .current {
    color: #0a0a0a;
    background: #c9a86a;
    border-color: #c9a86a;
}

.col-luxury-pagination .dots {
    border-color: transparent;
}

/* ---------- CTA strip ---------- */

.col-luxury-cta {
    padding: 72px 24px;
    background: linear-gradient(180deg, #0a0a0a 0%, #141414 100%);
    border-top: 1px solid rgba(201, 168, 106, 0.2);
    text-align: center;
}

.col-luxury-cta__inner {
    max-width: 720px;
    margin: 0 auto;
}

.col-luxury-cta__title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
    color: #f5f1ea;
    margin: 0 0 12px;
}

.col-luxury-cta__lead {
    font-size: 16px;
    color: rgba(245, 241, 234, 0.7);
    margin: 0 0 32px;
}

.col-luxury-cta__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Buttons (shared between hero + CTA strip) ---------- */

.col-luxury-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: "Readex Pro", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}

.col-luxury-btn--primary {
    background: #c9a86a;
    color: #0a0a0a;
    border-color: #c9a86a;
}

.col-luxury-btn--primary:hover,
.col-luxury-btn--primary:focus-visible {
    background: #d9ba7d;
    border-color: #d9ba7d;
    color: #0a0a0a;
    outline: none;
}

.col-luxury-btn--ghost {
    background: transparent;
    color: #f5f1ea;
    border-color: rgba(245, 241, 234, 0.35);
}

.col-luxury-btn--ghost:hover,
.col-luxury-btn--ghost:focus-visible {
    color: #c9a86a;
    border-color: #c9a86a;
    outline: none;
}

/* ---------- Card (shared with homepage block) ---------- */

.col-card {
    background: #141414;
    border: 1px solid rgba(245, 241, 234, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.col-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 168, 106, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.col-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.col-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.col-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.95);
}

.col-card:hover .col-card-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.col-card-pin {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 10, 10, 0.85);
    color: #f5f1ea;
    padding: 6px 12px;
    font-family: "Readex Pro", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(245, 241, 234, 0.25);
    backdrop-filter: blur(4px);
}

.col-card-content {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.col-card-brand {
    font-family: "Readex Pro", sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #c9a86a;
    margin-bottom: 4px;
}

.col-card-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    line-height: 1.2;
    margin: 0 0 18px;
    color: #f5f1ea;
    font-weight: 400;
}

.col-card-prices {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(245, 241, 234, 0.08);
}

.col-card-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.col-card-price__value {
    font-family: Georgia, "Times New Roman", serif;
    color: #f5f1ea;
}

.col-card-price__label {
    font-family: "Readex Pro", sans-serif;
    font-size: 10px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(245, 241, 234, 0.55);
}

/* Financing price — prominent (the one CarOutlet is selling on) */
.col-card-price--financing .col-card-price__value {
    font-size: 22px;
    color: #f5f1ea;
}

/* Cash price — subtler, gold accent */
.col-card-price--cash .col-card-price__value {
    font-size: 16px;
    color: #c9a86a;
}

.col-card-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.col-card-spec {
    font-family: "Readex Pro", sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(245, 241, 234, 0.65);
    letter-spacing: 0.04em;
    position: relative;
}

.col-card-spec + .col-card-spec::before {
    content: "·";
    position: absolute;
    left: -9px;
    color: rgba(245, 241, 234, 0.25);
}

.col-card-cta {
    font-family: "Readex Pro", sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: #c9a86a;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(245, 241, 234, 0.08);
    transition: color 0.2s ease, border-color 0.3s ease;
    display: inline-block;
}

.col-card:hover .col-card-cta {
    border-top-color: rgba(201, 168, 106, 0.5);
    color: #d9ba7d;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .col-luxury-hero {
        min-height: clamp(480px, 70vh, 620px);
        padding-top: 120px;
    }
    .col-luxury-hero__inner {
        padding: 40px 20px 56px;
    }
    .col-luxury-hero__overlay {
        /* On narrow screens, fade vertically (dark bottom) instead of horizontally
           so text still reads no matter where the photo subject sits. */
        background:
            linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0.88) 100%);
    }
    .col-luxury-listing {
        padding: 32px 20px 48px;
    }
    .col-luxury-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
    .col-luxury-cta {
        padding: 56px 20px;
    }
    .col-luxury-cta__buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .col-luxury-hero__ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .col-luxury-btn {
        justify-content: center;
    }
}
