/* ==========================================================================
   AURELIA AUTOMOTIVE - UI COMPONENTS & PAGE SPECIFICS
   ========================================================================== */

/* ==========================================================================
   1. HERO SECTION & 3D CANVAS STAGE
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 70% 30%, rgba(20, 25, 40, 0.4) 0%, var(--bg-primary) 70%);
}

.hero-3d-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

#hero-3d-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 3rem 0;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Three.js Fallback Styling */
.fallback-active .hero-fallback-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.hero-fallback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-primary) 20%, rgba(6,6,8,0.4) 60%, transparent 100%);
}

/* ==========================================================================
   2. VEHICLE CARD COMPONENT (3D TILT READY)
   ========================================================================== */

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vehicle-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.vehicle-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px var(--accent-glow);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #000;
}

.card-vehicle-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.vehicle-card:hover .card-vehicle-img {
    transform: scale(1.08);
}

.card-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--surface) 0%, transparent 100%);
}

.card-top-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.badge {
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.badge-brand {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.favorite-btn-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
}

.favorite-btn-toggle:hover, .favorite-btn-toggle.active {
    color: var(--accent);
    background: rgba(0,0,0,0.9);
}

.card-bottom-specs {
    position: absolute;
    bottom: 0.8rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 2;
}

.card-bottom-specs span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    margin-bottom: 1.2rem;
}

.card-year {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.card-title {
    font-size: 1.3rem;
    margin-top: 0.2rem;
    color: var(--text-primary);
}

.card-price-row {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.price-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 0.6rem;
}

.card-explore-btn {
    flex-grow: 1;
}

.compare-btn-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.compare-btn-toggle:hover, .compare-btn-toggle.active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   3. INVENTORY FILTER CONTROLS BAR
   ========================================================================== */

.filter-control-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    margin-bottom: 2.5rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1.2rem;
    align-items: end;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-wrapper .form-control {
    padding-left: 2.8rem;
}

.range-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.range-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.range-input {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.active-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.filter-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.8rem;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--accent);
}

.filter-tag-pill button {
    font-size: 1.1rem;
    line-height: 1;
    color: var(--accent);
}

.inventory-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.empty-inventory-state {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
}

.empty-icon {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* ==========================================================================
   4. VEHICLE DETAILS & 360 TURNTABLE
   ========================================================================== */

.vehicle-hero-banner {
    position: relative;
    min-height: 75vh;
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: 4rem;
    display: flex;
    align-items: flex-end;
}

.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6,6,8,0.4) 0%, rgba(6,6,8,0.95) 100%);
}

.vehicle-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.brand-badge-pill {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.vehicle-detail-title {
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    margin-bottom: 0.75rem;
}

.vehicle-detail-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.vehicle-hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-stat-card {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.vehicle-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
}

.price-subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.price-main {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    display: block;
}

.cta-btn-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 360 Turntable Container */
.turntable-360-container {
    position: relative;
    width: 100%;
    height: 520px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.turntable-360-container:active {
    cursor: grabbing;
}

.turntable-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.turntable-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
}

.turntable-prompt {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

/* Specs Matrix Tables */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.specs-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.specs-card h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.9rem;
}

.specs-table td:first-child {
    color: var(--text-secondary);
    width: 45%;
}

.specs-table td:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.features-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

.features-checklist li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-checklist svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* ==========================================================================
   5. COMPARISON MATRIX TABLE
   ========================================================================== */

.compare-header-row {
    display: grid;
    grid-template-columns: 1.2fr 3fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.compare-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.compare-card-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    position: relative;
}

.remove-compare-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.4rem;
    color: var(--text-muted);
    z-index: 2;
}

.remove-compare-btn:hover {
    color: #ff4d4d;
}

.compare-car-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
}

.compare-brand-tag {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 700;
}

.compare-card-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
}

.compare-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: block;
    margin-bottom: 0.8rem;
}

.compare-matrix-table-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.compare-matrix-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-matrix-table th, .compare-matrix-table td {
    padding: 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    text-align: left;
}

.compare-matrix-table th {
    background: var(--bg-secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--accent);
}

.compare-matrix-table .spec-label {
    font-weight: 700;
    color: var(--text-secondary);
    width: 25%;
    background: rgba(0,0,0,0.2);
}

.compare-matrix-table .metric-val {
    font-weight: 700;
    color: #fff;
}

.compare-matrix-table .highlight-val {
    color: var(--accent);
    font-weight: 700;
}

/* ==========================================================================
   6. BRAND LOGOS & SERVICES GRID
   ========================================================================== */

.brands-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.brand-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: var(--surface-light);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.brand-card:hover .brand-name {
    color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--border-accent);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   7. CONTACT PAGE BESPOKE COMPONENTS
   ========================================================================== */

.contact-hero-banner {
    position: relative;
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 4rem;
    background: radial-gradient(circle at 80% 20%, rgba(230, 28, 36, 0.15) 0%, var(--bg-obsidian) 70%);
    border-bottom: 1px solid var(--border);
}

.contact-layout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.contact-card-glass {
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: border-color 0.3s ease;
}

.contact-card-glass:hover {
    border-color: var(--border-accent);
}

.subject-pills-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.subject-pill {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.subject-pill:hover, .subject-pill.active {
    background: rgba(230, 28, 36, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Showroom Location Cards */
.location-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.location-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.location-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.location-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.location-city {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.location-badge {
    padding: 0.25rem 0.6rem;
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.4);
    color: #4caf50;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.location-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.location-details-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.location-details-list svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

/* Showroom Visual Map Mockup */
.map-visual-card {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.map-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(5,6,8,0.2) 0%, rgba(5,6,8,0.85) 100%);
}

.map-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* FAQ Accordion Styling */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.8rem;
    transition: border-color 0.3s ease;
}

.faq-card:hover {
    border-color: var(--border-accent);
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.faq-question svg {
    color: var(--accent);
    flex-shrink: 0;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}


/* Card: vehicle name (from image filename), trim line and UK number plate */
.card-trim {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-plate {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.15rem 0.55rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #111;
    background: #f5d90a;
    border: 1px solid #b8a200;
    border-radius: 4px;
}

/* Card: V5C key facts (engine size, gearbox, mileage, road tax) */
.card-key-facts {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0.9rem 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem 1rem;
}

.card-key-facts li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.card-key-facts span {
    font-size: 0.65rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.card-key-facts strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* Detail gallery: divider between the exterior set and the interior/detail set */
.gallery-subheading {
    margin: 3rem 0 1.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    color: var(--text-secondary);
}

/* Card: "24 photos" pill over the thumbnail */
.card-photo-count {
    position: absolute;
    right: 0.75rem;
    bottom: 3.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.62);
    backdrop-filter: blur(4px);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    pointer-events: none;
}
