/* Blu9l Inspired Premium Dark Theme */
:root {
    --bg-primary: #050505;
    --bg-secondary: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0A0;
    --accent-color: #e9112d; /* Red */
    --accent-hover: #c40e25;
    --border-color: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(5, 5, 5, 0.8);
    --gray-bg: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Helpers */
.text-accent { color: var(--accent-color); }
.mt-4 { margin-top: 1.5rem; }
.inline-block { display: inline-block; }

/* Top Bar */
.top-bar {
    background-color: #000;
    color: var(--text-secondary);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}
.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.top-bar-left {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
}
.top-bar-left i {
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 36px;
    width: 100%;
    z-index: 100;
    background: transparent;
    padding: 1.5rem 0;
    transition: background 0.3s ease;
}
.navbar.scrolled {
    position: fixed;
    top: 0;
    padding: 0.9rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-img {
    height: 40px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links .lang-selector, .nav-links .search-icon {
    margin-left: 1rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff !important;
    padding: 1rem 2rem;
    border-radius: 2px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Scroll-bound cinematic hero (the Aug 4 demo behaviour).
   A 200vh container pins a 100vh sticky viewport for the first screen of
   scroll. scrub-engine.js maps that scroll distance onto the timeline of
   header-video-scrub.mp4 (an all-intra clip: the truck rolls forward for the
   first 3s, then hard-cuts to the parked-at-storefront shot for the last 2s),
   so scrolling drives the truck and then "turns it into" the storefront. The
   three text slides swap at 1/3 and 2/3 of that scroll. Once the container
   ends, the whole hero scrolls away like any other section. */
.cinematic-hero-container {
    height: 200vh;
    position: relative;
    background-color: #000;
}

.sticky-viewport {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.scrub-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.7;
}

/* Bottom of the pinned frame melts into the page background so the search
   box that overlaps it never sits on a hard video edge. */
.sticky-viewport::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 28vh;
    background: linear-gradient(to bottom, rgba(5,5,5,0) 0%, var(--bg-primary) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Users who opt out of motion (or browsers without sticky) get the clip as a
   plain ambient loop inside a single-screen hero; scrub-engine.js honours the
   same media query. */
@media (prefers-reduced-motion: reduce) {
    .cinematic-hero-container { height: 100vh; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.4) 50%, rgba(5,5,5,0) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    margin-top: 10vh;
    position: relative;
    height: 300px;
}

/* Slide titles scale with the viewport so the three-line headline never wraps awkwardly on tablets. */
.hero-content h1, .hero-content h2.hero-title { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(2rem, 5vw, 3.4rem); }
.hero-content p { max-width: 44rem; }

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
    width: 100%;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) !important;
}

#hero-slide-1 {
    transform: scale(0.98);
}

#hero-slide-2 {
    transform: translateX(-100px);
}

#hero-slide-3 {
    transform: translateY(50px);
}

/* Slide 3 sits on the storefront frame: keep the copy narrow so the RockyCarz sign and the parked truck stay readable. */
#hero-slide-3 .hero-subtitle { max-width: 26rem; }

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-primary);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* --- NEW REDESIGN SECTIONS --- */

/* New Search Section */
.new-search-section {
    padding: 3rem 2rem;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--border-color);
}
.search-box {
    max-width: 1000px;
    margin: -6rem auto 0 auto; /* Pull up over the hero */
    background-color: #111;
    border: 1px solid #222;
    padding: 1.5rem 3rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.search-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.search-input-group label {
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.input-wrapper {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.input-wrapper i {
    color: #555;
    margin-right: 0.5rem;
}
.input-wrapper input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.input-wrapper input::placeholder {
    color: #444;
}
.btn-search-outline {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-search-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* Featured Collection */
.featured-section {
    padding: 5rem 2rem;
    background-color: var(--bg-primary);
}
.featured-header {
    max-width: 1200px;
    margin: 0 auto 3rem auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.featured-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.featured-header p {
    color: #888;
    font-size: 1rem;
}
.view-all-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}
.view-all-link:hover { color: var(--accent-hover); }
.featured-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.car-card {
    background-color: #111;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.3s;
}
.car-card:hover {
    transform: translateY(-5px);
    border-color: #333;
}
.car-card-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.perf-stat {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.6rem;
    color: #ccc;
    font-weight: 700;
    letter-spacing: 1px;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.car-card-content {
    padding: 1.5rem;
}
.car-card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.car-card-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #222;
    padding-bottom: 1rem;
}
.car-price {
    font-weight: 700;
    font-size: 1.1rem;
}
.car-miles {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
}
.btn-card-outline {
    display: block;
    text-align: center;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #444;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 2px;
    transition: all 0.3s;
}
.btn-card-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* The Rocky Standard */
.standard-section {
    padding: 6rem 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.section-center-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
}
.standard-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}
.standard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: transform .3s ease;
}
a.standard-item:hover { transform: translateY(-4px); }
a.standard-item:hover h3 { color: var(--accent-color); }
.icon-circle {
    width: 60px;
    height: 60px;
    background-color: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.icon-circle i { color: var(--accent-color); }
.standard-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.standard-item p {
    color: #888;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Engineering Trust */
.trust-section {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
}
.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.trust-stats h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}
.stat-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-line {
    width: 4px;
    background-color: var(--accent-color);
}
.stat-content h4 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-content p {
    font-size: 0.8rem;
    color: #888;
    font-weight: 700;
    letter-spacing: 1px;
}
.trust-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    filter: grayscale(80%) contrast(1.2);
}

/* Refined Footer */
.refined-footer {
    background-color: #0a0a0a;
    padding: 4rem 2rem;
    border-top: 1px solid #1a1a1a;
}
.footer-container-new {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-brand-img {
    height: 30px;
    object-fit: contain;
    margin-bottom: 1rem;
    align-self: flex-start;
}
.footer-col p {
    color: #666;
    font-size: 0.8rem;
}
.footer-col a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent-color); }

/* Responsive Updates */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }
    .nav-container {
        position: relative;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background: rgba(5, 5, 5, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links .lang-selector, .nav-links .search-icon {
        margin-left: 0;
    }
    .top-bar {
        font-size: 0.7rem;
    }
    .top-bar-left {
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        text-align: center;
    }
    .top-bar-container {
        padding: 0 1rem;
        justify-content: center;
    }
    .search-box { flex-direction: column; gap: 1.5rem; align-items: stretch; margin-top: -3rem;}
    .btn-search-outline { align-self: flex-start; }
    .featured-grid { grid-template-columns: 1fr; }
    .standard-grid { grid-template-columns: 1fr; gap: 2rem; }
    .trust-container { grid-template-columns: 1fr; }
    .footer-container-new { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-brand-img { align-self: center; }
}

/* ==========================================================================
   INVENTORY PAGE STYLES (MATCHING INDEX.HTML DARK OBSIDIAN THEME)
   ========================================================================== */

/* Navigation Solid Header Override */
.navbar-solid {
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 4px;
}

/* Inventory Hero Banner */
.inventory-hero {
    position: relative;
    background-image: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.95) 100%), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    padding: 5rem 2rem 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.inventory-hero-overlay {
    max-width: 1300px;
    margin: 0 auto;
}
.inventory-hero-content {
    max-width: 750px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(233, 17, 45, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(233, 17, 45, 0.4);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.inventory-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.inventory-hero p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Main Inventory Section Wrapper */
.inventory-main-wrapper {
    background-color: var(--bg-primary);
    padding: 2rem 1.5rem 5rem 1.5rem;
}
.inventory-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Warranty Quick Filter Pills Bar */
.warranty-pills-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow-x: auto;
}
.pills-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.pills-scroll {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.pill-btn {
    background: #1a1a1a;
    color: #ccc;
    border: 1px solid #333;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
}
.pill-btn i {
    color: #777;
    transition: color 0.25s;
}
.pill-btn:hover {
    background: #252525;
    color: #fff;
    border-color: #555;
}
.pill-btn:hover i {
    color: var(--accent-color);
}
.pill-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(233, 17, 45, 0.4);
}
.pill-btn.active i {
    color: #fff;
}

/* Two-Column Inventory Layout */
.inventory-layout {
    display: grid;
    grid-template-columns: 310px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Styling */
.inventory-sidebar {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}
.inventory-sidebar::-webkit-scrollbar {
    width: 6px;
}
.inventory-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}
.sidebar-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sidebar-header h3 i {
    color: var(--accent-color);
}
.btn-reset-link {
    background: transparent;
    border: none;
    color: #888;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.btn-reset-link:hover {
    color: var(--accent-color);
}

/* Filter Groups */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.filter-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.filter-group label i {
    color: var(--accent-color);
    font-size: 0.75rem;
}
.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.val-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-color);
}
.sidebar-input-wrapper {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
}
.sidebar-input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.85rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.sidebar-input-wrapper input::placeholder {
    color: #666;
}
.sidebar-select {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.65rem 0.8rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border-color 0.2s;
}
.sidebar-select:focus, .sidebar-input-wrapper:focus-within {
    border-color: var(--accent-color);
}
.sidebar-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Sidebar Dual Inputs */
.dual-input-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}
.dual-input-row span {
    color: #666;
    font-size: 0.75rem;
}

/* Range Slider */
.sidebar-range {
    width: 100%;
    accent-color: var(--accent-color);
    margin-top: 0.3rem;
    cursor: pointer;
}
.range-min-max {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.2rem;
}

/* Body Style Pills */
.body-style-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.body-pill {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #aaa;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}
.body-pill:hover {
    border-color: #555;
    color: #fff;
}
.body-pill.active {
    background: rgba(233, 17, 45, 0.2);
    border-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
}

/* Color Swatches */
.color-swatches {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0.2rem;
}
.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}
.color-swatch:hover {
    transform: scale(1.15);
}
.color-swatch.active {
    box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--accent-color);
}

/* Sidebar Apply Button */
.btn-sidebar-apply {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.btn-sidebar-apply:hover {
    background: var(--accent-hover);
}

/* Inventory Content Area */
.inventory-content-area {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Controls Bar (Header of Listing) */
.inventory-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 6px;
}
.results-count-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#results-count {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.active-filter-tag {
    background: rgba(255,255,255,0.08);
    color: #ccc;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    border: 1px solid #333;
}
.sort-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sort-control label {
    font-size: 0.8rem;
    color: #aaa;
    font-weight: 600;
}
.sort-select {
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}
.sort-select:focus {
    border-color: var(--accent-color);
}

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

/* Enhanced Car Cards */
.inventory-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
    position: relative;
}
.inventory-card:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 17, 45, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}
.card-media-wrapper {
    position: relative;
    height: 220px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}
.card-media-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.2) 50%, rgba(0,0,0,0) 100%);
}
.card-top-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.badge-tag {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
}
.badge-tag.tag-special {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.badge-warranty {
    background: rgba(233, 17, 45, 0.85);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-price-overlay {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}
.card-price-main {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}
.card-price-strike {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: line-through;
}

/* Card Body Content */
.card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}
.card-title-row {
    margin-bottom: 0.75rem;
}
.card-title-row h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}
.card-stock-no {
    font-size: 0.7rem;
    color: #777;
    font-weight: 600;
    margin-top: 0.2rem;
}

/* Card Details Specs Grid */
.card-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    background: #161616;
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid #222;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #ccc;
}
.spec-item i {
    color: var(--accent-color);
    width: 14px;
    text-align: center;
}

/* Card Buttons Row */
.card-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.btn-card-primary {
    background: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 0.65rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.btn-card-primary:hover {
    background: var(--accent-hover);
}
.btn-card-secondary {
    background: transparent;
    border: 1px solid #444;
    color: #fff;
    text-align: center;
    padding: 0.65rem;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-card-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.06);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--bg-secondary);
    border: 1px dashed var(--border-color);
    border-radius: 6px;
}
.empty-state i {
    font-size: 3.5rem;
    color: #444;
    margin-bottom: 1rem;
}
.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: #888;
    font-size: 0.95rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Quick View Detail Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: rgba(0,0,0,0.6);
    border: 1px solid #444;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: all 0.2s;
}
.modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}
.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}
.modal-media img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.modal-specs-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    background: #181818;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    margin-top: 1rem;
}
.modal-spec-row {
    font-size: 0.8rem;
    color: #aaa;
}
.modal-spec-row span {
    display: block;
    color: #fff;
    font-weight: 700;
    margin-top: 0.2rem;
}
.modal-info h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.modal-price-tag {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 1rem;
}
.modal-description {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive Rules for Inventory Page */
@media (max-width: 1200px) {
    .inventory-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .inventory-layout {
        grid-template-columns: 1fr;
    }
    .inventory-sidebar {
        position: static;
        max-height: none;
    }
    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    .inventory-controls-bar {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .warranty-pills-bar {
        display: none;
    }
}

/* ==========================================================================
   SINGLE VEHICLE DETAIL PAGE STYLES
   ========================================================================== */

.vehicle-detail-body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

/* Detail Hero Header Banner */
.detail-hero {
    position: relative;
    background-image: linear-gradient(180deg, rgba(5,5,5,0.75) 0%, rgba(5,5,5,0.95) 100%), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    padding: 4.5rem 2rem 2.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}
.detail-hero-overlay {
    max-width: 1350px;
    margin: 0 auto;
}
.detail-hero-content {
    max-width: 900px;
}
.detail-hero-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.hero-badge.badge-special {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.detail-hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.2;
}
.detail-hero-sub {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 300;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.detail-hero-sub i {
    color: var(--accent-color);
}

/* Sticky Section Jump Navigation Bar */
.detail-jump-bar-wrapper {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}
.detail-jump-bar {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}
.jump-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 1rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}
.jump-link i {
    color: #666;
    transition: color 0.25s;
}
.jump-link:hover {
    color: #fff;
}
.jump-link:hover i {
    color: var(--accent-color);
}
.jump-link.active {
    color: #fff;
    border-bottom-color: var(--accent-color);
    background: rgba(233, 17, 45, 0.08);
}
.jump-link.active i {
    color: var(--accent-color);
}

/* Detail Main Layout Grid */
.detail-main-wrapper {
    padding: 2.5rem 1.5rem 5rem 1.5rem;
    background: var(--bg-primary);
}
.detail-container {
    max-width: 1350px;
    margin: 0 auto;
}
.detail-layout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
    min-width: 0;
}

/* Left Column Section Blocks */
.detail-left-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-width: 0;
}
.gallery-main-viewport, .gallery-main-viewport img { max-width: 100%; }
.detail-section-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    scroll-margin-top: 130px;
}
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title i {
    color: var(--accent-color);
}

/* Photo Gallery */
.gallery-main-viewport {
    position: relative;
    height: 440px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    border: 1px solid #222;
}
.gallery-main-viewport img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}
.gallery-count-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
}
.gallery-thumbnails-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
.thumb-img {
    height: 85px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #222;
    opacity: 0.6;
    transition: all 0.25s ease;
}
.thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumb-img:hover {
    opacity: 0.9;
    border-color: #555;
}
.thumb-img.active {
    opacity: 1;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(233, 17, 45, 0.5);
}
/* vehicle-detail.js renders the strip as <button class="gallery-thumbnail"> elements */
.gallery-thumbnail {
    display: block;
    width: 100%;
    min-width: 0;
    height: 85px;
    padding: 0;
    background: #000;
    border: 2px solid #222;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.25s ease;
}
.gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-thumbnail:hover { opacity: 0.9; border-color: #555; }
.gallery-thumbnail.active { opacity: 1; border-color: var(--accent-color); box-shadow: 0 0 10px rgba(233, 17, 45, 0.5); }
.gallery-thumbnails-strip:empty { display: none; }

/* Price & Overview Card */
.detail-price-banner-card {
    background: linear-gradient(135deg, #161616 0%, #111111 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.price-banner-left h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
}
.overview-trim-text {
    color: #aaa;
    font-size: 0.9rem;
}
.price-banner-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
}
.price-stack {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}
.price-orig {
    font-size: 1.1rem;
    color: #777;
    text-decoration: line-through;
    font-weight: 600;
}
.price-rocky {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
}
.savings-pill {
    background: rgba(233, 17, 45, 0.2);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Key Features Tile Grid */
.key-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
.feature-tile {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-tile:hover {
    transform: translateY(-2px);
    border-color: #444;
}
.tile-icon {
    width: 42px;
    height: 42px;
    background: #222;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.tile-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #777;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.tile-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Installed Equipment Grid */
.equipment-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.equipment-card {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 6px;
    padding: 1.25rem;
}
.equipment-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #282828;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.equipment-card h4 i {
    color: var(--accent-color);
}
.equipment-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.equipment-card li {
    font-size: 0.825rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.equipment-card li i {
    color: var(--accent-color);
    font-size: 0.75rem;
}

/* Narrative Description Styling */
.description-text-content {
    color: #ccc;
    line-height: 1.7;
    font-size: 0.95rem;
}
.description-text-content h4 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}
.description-text-content h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 1.5rem 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.description-text-content ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}
.description-text-content li {
    margin-bottom: 0.4rem;
}
/* Dealer-written descriptions from the rockycarz.com listing use h2/h3/p/strong */
.description-text-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 1.6rem 0 0.6rem;
}
.description-text-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 0.9rem;
    line-height: 1.5;
}
.description-text-content p {
    margin: 0 0 0.9rem;
}
.description-text-content strong {
    color: #fff;
    font-weight: 600;
}

/* Right Sticky Sidebar Hub */
.detail-right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 130px;
}
.sidebar-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Calculator Card */
.card-header-accent {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
}
.card-header-accent h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header-accent h4 i {
    color: var(--accent-color);
}
.calc-subtext {
    font-size: 0.75rem;
    color: #777;
}
.calc-results-banner {
    background: #181818;
    border: 1px solid #282828;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
}
.calc-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
}
.calc-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1.1;
    margin-top: 0.2rem;
}
.calc-amount .per-mo {
    font-size: 1rem;
    color: #aaa;
    font-weight: 600;
}

.calc-inputs-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.calc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.calc-input-group label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.5px;
}
.calc-input-wrapper {
    background: #181818;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.6rem 0.8rem;
    display: flex;
    align-items: center;
}
.currency-prefix, .percent-suffix {
    color: #666;
    font-size: 0.85rem;
    font-weight: 600;
}
.calc-input-wrapper input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.term-btn-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}
.term-btn {
    background: #181818;
    border: 1px solid #333;
    color: #aaa;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 0;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}
.term-btn:hover {
    border-color: #555;
    color: #fff;
}
.term-btn.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.btn-full-width {
    width: 100%;
    display: block;
}
.text-center {
    text-align: center;
}

/* Action Buttons Card */
.action-buttons-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* Inquiry Lead Form Card */
.card-header-simple {
    margin-bottom: 1rem;
}
.card-header-simple h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.card-header-simple h4 i {
    color: var(--accent-color);
}
.card-header-simple p {
    font-size: 0.78rem;
    color: #777;
    margin-top: 0.2rem;
}
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}
.inquiry-form input, .inquiry-form textarea {
    background: #181818;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.65rem 0.8rem;
    color: #fff;
    font-size: 0.825rem;
    outline: none;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    width: 100%;
}
.inquiry-form input:focus, .inquiry-form textarea:focus {
    border-color: var(--accent-color);
}
.inquiry-form input::placeholder, .inquiry-form textarea::placeholder {
    color: #555;
}
.form-feedback-msg {
    font-size: 0.8rem;
    padding: 0.6rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}
.form-feedback-msg.success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

/* Similar Vehicles Section Override */
.similar-vehicles-section {
    border-top: 1px solid var(--border-color);
    scroll-margin-top: 130px;
}

/* Responsive Adjustments for Vehicle Detail Page */
@media (max-width: 1100px) {
    .detail-layout-grid {
        grid-template-columns: 1fr;
    }
    .detail-right-sidebar {
        position: static;
    }
    .key-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-jump-bar-wrapper {
        display: none;
    }
    .detail-price-banner-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .key-features-grid {
        grid-template-columns: 1fr;
    }
    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .gallery-main-viewport {
        height: 280px;
    }
    .gallery-thumbnails-strip {
        grid-template-columns: repeat(5, 1fr);
    }
    .thumb-img, .gallery-thumbnail {
        height: 60px;
    }
    .equipment-categories-grid {
        grid-template-columns: 1fr;
    }
    .detail-hero h1 {
        font-size: 2rem;
    }
    .price-rocky {
        font-size: 1.8rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */
.about-page-body {
    background-color: var(--bg-primary);
    color: var(--text-color);
}

/* About Hero Header Banner */
.about-hero-section {
    position: relative;
    background-image: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.95) 100%), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    padding: 7rem 2rem 5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.about-hero-overlay {
    max-width: 900px;
    margin: 0 auto;
}
.about-badge {
    display: inline-block;
    background: rgba(233, 17, 45, 0.15);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}
.about-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.about-hero-content p {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 300;
    max-width: 650px;
    margin: 0 auto;
}

/* Main Story Section & dark-dealer.png showcase */
.about-story-section {
    padding: 6rem 2rem;
    background-color: #050505;
    border-bottom: 1px solid var(--border-color);
}
.about-story-container {
    max-width: 1200px;
    margin: 0 auto;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.sub-accent-title {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}
.story-content-col h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.story-lead {
    font-size: 1.15rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-weight: 400;
}
.story-content-col p {
    color: #888888;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.98rem;
}
.story-checklist {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.checklist-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}
.check-icon i {
    color: var(--accent-color);
    font-size: 1.4rem;
    margin-top: 0.2rem;
}
.check-text h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.check-text p {
    color: #888888;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Dealer Image Styling (dark-dealer.png) */
.dealer-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111111;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.dark-dealer-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.dealer-image-wrapper:hover .dark-dealer-img {
    transform: scale(1.03);
}
.image-glow-border {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(233, 17, 45, 0.3);
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(233, 17, 45, 0.15);
}
.floating-cert-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(15, 15, 15, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--accent-color);
    padding: 1.2rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.cert-icon i {
    color: var(--accent-color);
    font-size: 2rem;
}
.cert-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
    letter-spacing: 1px;
}
.cert-text span {
    color: #aaaaaa;
    font-size: 0.82rem;
}

/* Brand Pillars Section */
.about-pillars-section {
    padding: 6rem 2rem;
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.pillars-container {
    max-width: 1200px;
    margin: 0 auto;
}
.pillars-header {
    text-align: center;
    margin-bottom: 4rem;
}
.pillars-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.pillars-header p {
    color: #888888;
    font-size: 1.05rem;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.pillar-card {
    background-color: #121212;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem 1.8rem;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(233, 17, 45, 0.15);
}
.pillar-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
}
.pillar-icon {
    width: 50px;
    height: 50px;
    background: rgba(233, 17, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.pillar-icon i {
    color: var(--accent-color);
    font-size: 1.3rem;
}
.pillar-card h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}
.pillar-card p {
    color: #888888;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Stats Banner */
.about-stats-banner {
    padding: 4rem 2rem;
    background-image: linear-gradient(90deg, #050505 0%, #141414 50%, #050505 100%);
    border-bottom: 1px solid var(--border-color);
}
.stats-banner-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-box {
    text-align: center;
    padding: 1rem;
}
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
}
.stat-label {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.stat-divider {
    width: 1px;
    height: 60px;
    background-color: rgba(255,255,255,0.1);
}

/* Team Section */
.about-team-section {
    padding: 6rem 2rem;
    background-color: #050505;
    border-bottom: 1px solid var(--border-color);
}
.team-container {
    max-width: 1200px;
    margin: 0 auto;
}
.team-header {
    text-align: center;
    margin-bottom: 4rem;
}
.team-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}
.team-header p {
    color: #888888;
    font-size: 1.05rem;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}
.team-card {
    background-color: #101010;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.team-card:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-5px);
}
.team-avatar {
    width: 80px;
    height: 80px;
    background-color: #1a1a1a;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.team-avatar i {
    font-size: 2rem;
    color: #ffffff;
}
.team-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.team-role {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}
.team-card p {
    color: #888888;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Location & Showroom Section */
.about-location-section {
    padding: 6rem 2rem;
    background-color: #0a0a0a;
}
.location-container {
    max-width: 1200px;
    margin: 0 auto;
}
.location-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.location-info-col h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.location-info-col p {
    color: #aaaaaa;
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.info-details-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.info-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.info-detail-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 0.3rem;
}
.info-detail-item strong {
    display: block;
    color: #ffffff;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}
.info-detail-item p {
    color: #888888;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}
.location-cta-card {
    background: linear-gradient(145deg, #111111 0%, #050505 100%);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 4px;
    padding: 3rem 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    position: relative;
}
.cta-card-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.cta-card-header h3 {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.cta-card-header p {
    color: #888888;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* About Media Queries */
@media (max-width: 1024px) {
    .story-grid, .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid {
        grid-template-columns: 1fr;
    }
    .stats-banner-container {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }
    .stat-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 2.2rem;
    }
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    .floating-cert-badge {
        position: relative;
        inset: auto;
        margin-top: 1rem;
    }
}
/* =========================================
   CONTACT PAGE STYLES
   ========================================= */

.contact-hero-section {
    height: 40vh;
    min-height: 350px;
    background-image: linear-gradient(to right, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.6) 100%), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}
.contact-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
    padding-top: 80px; /* Offset for nav */
}
.contact-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-main-section {
    padding: 6rem 2rem;
    background-color: var(--bg-primary);
}
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}
.contact-info-col h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.contact-info-col p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}
.contact-info-block {
    margin-bottom: 2.5rem;
}
.contact-info-block h3 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}
.contact-info-item i {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}
.contact-info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.hours-table {
    width: 100%;
    max-width: 300px;
}
.hours-table div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.hours-table div strong {
    font-weight: 700;
}

/* Contact Form */
.contact-form-col {
    background: linear-gradient(145deg, #111111 0%, #050505 100%);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-color);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.contact-form-col .form-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.pref-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}
.pref-group label.group-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 1px;
    min-width: 150px;
}
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}
.custom-checkbox input {
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
}
.form-footer-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 1rem;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}


/* Generic Page Header Banner (used for Terms, etc) */
.page-hero-section {
    background-color: var(--bg-secondary);
    padding: 8rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

/* Terms Page Content */
.terms-page-body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}
.terms-content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.terms-content-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.terms-content-section p, .terms-content-section li {
    color: #888888;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 0.98rem;
}
.terms-content-section a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}
.terms-content-section a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   APPLY ONLINE FORM STYLES
   ========================================================================== */
.apply-section {
    background-color: var(--bg-primary);
    padding: 4rem 2rem 6rem;
}
.apply-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Tabs */
.form-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.form-tab-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}
.form-tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
.form-tab-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(233, 17, 45, 0.4);
}

/* Form Layout */
.form-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.form-panel.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}
.form-section-title:first-child {
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-row.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}
.form-row.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group label .required {
    color: var(--accent-color);
}

.form-control {
    background-color: var(--bg-primary);
    border: 1px solid #333;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}
.form-control::placeholder {
    color: #555;
}

/* Inputs with Icons inside */
.input-with-icon {
    position: relative;
}
.input-with-icon input {
    padding-right: 2.5rem;
}
.input-with-icon i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
}

/* Select Dropdowns */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a0a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

/* Checkboxes */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 16px;
    height: 16px;
    accent-color: var(--accent-color);
}
.checkbox-group span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* File Drop Zone */
.file-drop-zone {
    border: 2px dashed #444;
    background-color: var(--bg-primary);
    border-radius: 6px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}
.file-drop-zone:hover {
    border-color: var(--accent-color);
    background-color: rgba(233, 17, 45, 0.05);
}
.file-drop-zone p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.file-drop-zone .btn-upload {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s;
}
.file-drop-zone .btn-upload:hover {
    background-color: var(--accent-hover);
}
.file-help-text {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Consents Box */
.consents-box {
    background-color: var(--bg-primary);
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}
.consent-fine-print {
    font-size: 0.7rem;
    color: #777;
    line-height: 1.6;
    margin-top: 1rem;
    border-top: 1px solid #333;
    padding-top: 1rem;
}
.consent-fine-print a {
    color: #aaa;
    text-decoration: underline;
}
.consent-fine-print a:hover {
    color: #fff;
}

/* Submit Area */
.submit-area {
    text-align: center;
    margin-top: 3rem;
}
.btn-submit-form {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 1rem 4rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 17, 45, 0.3);
}
.btn-submit-form:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 17, 45, 0.4);
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-row, .form-row.three-col, .form-row.four-col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .apply-container {
        padding: 1.5rem;
    }
    .form-tabs {
        flex-direction: column;
    }
    .form-tab-btn {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   MODAL STYLES (Test Drive)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--accent-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}
.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.modal-vehicle-info {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    border: 1px solid #222;
}
.modal-vehicle-info h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}
.modal-vehicle-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.modal-vehicle-card img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.modal-vehicle-details h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.modal-vehicle-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}
.modal-required-text {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}
.contact-pref-group {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.pref-checkboxes {
    display: flex;
    gap: 1rem;
}
.modal-consents {
    background-color: var(--bg-secondary);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   WIZARD STEPS (Make An Offer / Deposit Modal)
   ========================================================================== */
.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.wizard-step {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wizard-step.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.wizard-step-num {
    background-color: rgba(255, 255, 255, 0.2);
    color: inherit;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
}
.wizard-step.active .wizard-step-num {
    background-color: #fff;
    color: var(--accent-color);
}
.wizard-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.wizard-panel.active {
    display: block;
}
/* DealerCenter handoff states and shared semantic form primitives */
:focus-visible { outline: 2px solid var(--accent-color, #d9b36c); outline-offset: 3px; }
.integration-notice, .form-status { margin: 1rem 0; padding: .9rem 1rem; border: 1px solid rgba(217,179,108,.45); background: rgba(217,179,108,.08); color: var(--text-primary, #fff); }
.form-status[data-state="error"] { border-color: #d66; }
.form-status[data-state="success"] { border-color: #6c6; }
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin: 1rem 0; }
.content-page { min-height: 100vh; background: var(--bg-primary, #0d0d0d); color: var(--text-primary, #fff); }
/* Inner-page hero: the storefront photo stays fixed behind the page (same
   treatment as the home page's Rocky Standard band) and its lower edge fades
   into the page background instead of ending in a hard line. */
.page-hero {
    position: relative;
    padding: 9rem 7vw 7rem;
    background-image: linear-gradient(110deg, rgba(0,0,0,.85), rgba(0,0,0,.45)), url('assets/dealership.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* The fade has to be a child of the hero, not part of the fixed background: a fixed
   background gradient is sized to the viewport, so it never lines up with the hero's edge. */
.page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(5,5,5,0) 0%, var(--bg-primary, #050505) 100%);
    pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
/* iOS Safari ignores fixed backgrounds and paints them stretched; fall back to normal flow on small screens. */
@media (max-width: 900px) { .page-hero, .standard-section { background-attachment: scroll; } }

/* Home: featured cards rendered from the inventory adapter */
.featured-grid a.car-card-image { display: block; }
.featured-grid .car-card h3 { margin-bottom: .25rem; }
.car-card-trim { color: var(--text-secondary); font-size: .85rem; margin: 0 0 .75rem; }

/* Home: ownership support / service scheduling band */
.service-entry-section { padding: 5rem 2rem; background: linear-gradient(120deg, #151515, #090909); border-top: 1px solid var(--border-color); }
.service-entry-section > div { max-width: 1100px; margin: 0 auto; }
.service-entry-section h2 { font-size: 2.25rem; margin: .5rem 0 1rem; }
.service-entry-section p { color: var(--text-secondary); max-width: 40rem; margin-bottom: 1.5rem; }
.service-entry-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.page-hero-content { max-width: 760px; }
.page-hero-content h1, .page-hero-content p { max-width: 100%; overflow-wrap: anywhere; }
.content-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 1.25rem; }
.feature-grid article { padding: 1.5rem; border: 1px solid rgba(255,255,255,.12); }
.feature-grid article p a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
.dealership-details h3 i { color: var(--accent-color); margin-right: .35rem; }
.hours-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; }
.hours-list li span:last-child { white-space: nowrap; color: rgba(255,255,255,.75); }
.service-form fieldset { border: 1px solid rgba(255,255,255,.15); padding: 1.25rem; display: grid; gap: 1rem; }
.service-form legend { padding: 0 .5rem; color: var(--accent-color); font-weight: 700; }
.service-form input, .service-form select, .service-form textarea { width: 100%; padding: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); color: inherit; }
.service-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem 1rem; }
@media (max-width: 600px) { .service-options { grid-template-columns: 1fr; } .service-form fieldset { padding: 1rem; } }
@media (max-width: 600px) { .page-hero-content h1 { font-size: 2.25rem; line-height: 1.08; letter-spacing: -.5px; } .page-hero-content { width: 100%; } }
.lead-form { max-width: 760px; display: grid; gap: 1rem; }
.lead-form label { display: grid; gap: .4rem; }
.lead-form input, .lead-form textarea { width: 100%; padding: .8rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); color: inherit; }
.checkbox-group { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: .6rem !important; }
.checkbox-group input { width: auto; margin-top: .25rem; }
.development-fixture-badge { position: absolute; top: .6rem; left: .6rem; padding: .25rem .45rem; font-size: .65rem; background: #9d7b36; color: #fff; }
.inventory-card-img-wrapper { position: relative; }
.inventory-card-img-wrapper img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.inventory-card-warranty { font-size: .8rem; color: var(--text-secondary, #aaa); }
.inventory-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .9rem; color: var(--text-secondary, #aaa); }
.inventory-card-meta span + span::before { content: '\2022'; margin-right: .5rem; color: var(--accent-color); }
.empty-state[hidden], .integration-notice[hidden], .form-status[hidden], #vehicle-content[hidden], #vehicle-unavailable[hidden] { display: none; }
@media (max-width: 600px) { .page-hero { padding: 7rem 1.25rem 4rem; } .form-row { grid-template-columns: 1fr !important; } .detail-layout-grid { display: block; } .detail-right-sidebar { margin-top: 1.5rem; } }

/* ==========================================================================
   STOREFRONT BACKDROP — every page
   The dealership photo sits fixed behind the whole site at one constant
   darkness, so it is as visible at the bottom of a page as at the top. It is a
   fixed pseudo-element rather than background-attachment: fixed because iOS
   Safari ignores the latter. Sections that used to paint solid black over the
   page go transparent; panels and cards keep a dark, slightly translucent fill.
   ========================================================================== */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(rgba(5, 5, 5, 0.66), rgba(5, 5, 5, 0.66)), url('assets/dealership.jpeg') center 42% / cover no-repeat;
    pointer-events: none;
}
.content-page, .content-section, .inventory-main-wrapper, .inventory-hero, .page-hero, .detail-hero,
.detail-main-wrapper, .vehicle-detail-body, .about-page-body, .terms-page-body, .new-search-section,
.featured-section, .trust-section, .standard-section, .about-pillars-section, .service-entry-section {
    background: transparent;
}
/* Home: the pinned hero stays on black; the search band under it fades from that black into the backdrop. */
.new-search-section { background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(5, 5, 5, 0) 100%); border-bottom: 0; }
.page-hero::after { display: none; }
.page-hero h1, .inventory-hero h1, .detail-hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7); }
.refined-footer { background: rgba(5, 5, 5, 0.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.inventory-controls-bar, .warranty-pills-bar, .search-box, .car-card, .inventory-card, .sidebar-card,
.feature-grid article, .integration-notice, .form-status, .inventory-source-status {
    background-color: rgba(14, 14, 14, 0.9);
}
.detail-price-banner-card { background: rgba(14, 14, 14, 0.9); }
.feature-grid article { border-color: rgba(255, 255, 255, 0.16); }

/* ==========================================================================
   INVENTORY FILTER PANEL — white on black
   The filter sidebar reads as a white card with red accents against the dark
   page, instead of dark-on-dark. The universal `* { color: #fff }` rule is
   neutralised inside the panel first, then the specifics are set.
   ========================================================================== */
.inventory-sidebar {
    background: #ffffff;
    border: 1px solid #ffffff;
    color: #161616;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.inventory-sidebar * { color: inherit; }
.inventory-sidebar::-webkit-scrollbar-thumb { background: #cfcfcf; }
.inventory-sidebar .sidebar-header { border-bottom: 2px solid var(--accent-color); }
.inventory-sidebar .sidebar-header h3 { color: #111; }
.inventory-sidebar .sidebar-header h3 i,
.inventory-sidebar .filter-group label i,
.inventory-sidebar .val-display { color: var(--accent-color); }
.inventory-sidebar .btn-reset-link { color: #6b6b6b; }
.inventory-sidebar .btn-reset-link:hover { color: var(--accent-color); }
.inventory-sidebar .filter-group label { color: #4a4a4a; }
.inventory-sidebar .sidebar-input-wrapper,
.inventory-sidebar .sidebar-select {
    background: #ffffff;
    border: 1px solid #c9c9c9;
    color: #161616;
}
.inventory-sidebar .sidebar-input-wrapper input { color: #161616; }
.inventory-sidebar .sidebar-input-wrapper input::placeholder { color: #8a8a8a; }
.inventory-sidebar .sidebar-select:focus,
.inventory-sidebar .sidebar-input-wrapper:focus-within { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(233, 17, 45, 0.15); }
.inventory-sidebar .sidebar-select option { color: #161616; background: #fff; }
.inventory-sidebar .dual-input-row span,
.inventory-sidebar .range-min-max { color: #7a7a7a; }
.inventory-sidebar .body-pill {
    background: #f3f3f3;
    border: 1px solid #d4d4d4;
    color: #333;
}
.inventory-sidebar .body-pill:hover { border-color: var(--accent-color); color: var(--accent-color); background: #fff; }
.inventory-sidebar .body-pill.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.inventory-sidebar .color-swatch { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.inventory-sidebar .color-swatch.active { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 0 2px #fff, 0 0 0 4px var(--accent-color); }
.inventory-sidebar .btn-sidebar-apply { color: #fff; box-shadow: 0 6px 16px rgba(233, 17, 45, 0.3); }
/* Forms and long-form copy sit in a dark panel so the storefront never competes with text. */
.lead-form, .service-form, .inquiry-form, .legal-copy {
    background: rgba(10, 10, 10, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.75rem;
    border-radius: 6px;
}
.lead-form input, .lead-form textarea, .service-form input, .service-form select, .service-form textarea, .inquiry-form input, .inquiry-form textarea {
    background: #101010;
    border-color: rgba(255, 255, 255, 0.28);
}

/* Content pages: the section itself becomes a soft panel so headings and body copy never sit
   directly on the storefront; cards inside keep their darker fill for a layered look. */
.content-section { background: rgba(5,5,5,.6); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; margin: 2rem auto 3rem; padding: 3rem 2.5rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.content-section > h2 { margin-top: 0; }
@media (max-width: 640px) { .content-section { margin: 1rem 1rem 2rem; padding: 2rem 1.25rem; } }

/* Payment calculator inputs are bare <input>s (no .calc-input-wrapper), so style them directly. */
.calc-inputs-form > label { font-size: .7rem; font-weight: 700; color: #aaa; letter-spacing: .5px; text-transform: uppercase; margin-bottom: -.5rem; }
.calc-inputs-form > input { background: #181818; border: 1px solid #333; border-radius: 4px; padding: .6rem .8rem; color: #fff; font-size: .95rem; font-weight: 700; font-family: 'Inter', sans-serif; width: 100%; box-sizing: border-box; -moz-appearance: textfield; }
.calc-inputs-form > input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(233,17,45,.15); }
.calc-inputs-form > input[readonly] { color: #bbb; }
.calc-inputs-form > input::-webkit-outer-spin-button, .calc-inputs-form > input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* CUSTOMER REVIEWS */
.reviews-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.home-reviews-section { padding: 5rem 2rem; }
.reviews-container { max-width: 1200px; margin: 0 auto; }
.reviews-container .eyebrow { color: var(--accent-color); font-size: .8rem; font-weight: 700; letter-spacing: 2px; margin-bottom: .5rem; }
.reviews-summary { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 1rem 0 1.75rem; }
.reviews-summary strong { font-size: 1.4rem; font-weight: 700; }
.reviews-summary a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }
.reviews-summary a:hover { color: #fff; }
.review-stars { color: #f5b301; font-size: .95rem; letter-spacing: 1px; white-space: nowrap; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.review-card { margin: 0; padding: 1.5rem; background: rgba(14,14,14,.9); border: 1px solid rgba(255,255,255,.12); border-top: 3px solid var(--accent-color); border-radius: 6px; display: flex; flex-direction: column; gap: .75rem; }
.review-card p { font-size: .98rem; line-height: 1.65; color: rgba(255,255,255,.88); flex: 1; }
.review-card p::before { content: "\201C"; color: var(--accent-color); font-family: 'Playfair Display', serif; font-size: 1.6rem; line-height: 0; margin-right: .2rem; vertical-align: -.35rem; }
.review-card footer { display: flex; flex-direction: column; gap: .15rem; }
.review-card footer strong { font-weight: 600; }
.review-card footer span { font-size: .8rem; color: rgba(255,255,255,.55); }
.reviews-more { margin-top: 1.5rem; }
.reviews-more a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.hero-rating a { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(5,5,5,.55); font-size: .9rem; font-weight: 500; }
.hero-rating a i { color: #f5b301; }
.hero-rating a:hover { border-color: var(--accent-color); }
.about-story > p { max-width: 68ch; font-size: 1.08rem; line-height: 1.75; margin-bottom: 1.1rem; }
.about-story .feature-grid { margin-top: 2rem; }
.feature-grid article h3 i { color: var(--accent-color); margin-right: .4rem; }
.feature-grid article p a { color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
.dealership-details .btn-search-outline { margin-left: .75rem; }
@media (max-width: 640px) { .home-reviews-section { padding: 3rem 1rem; } .dealership-details .btn-search-outline { margin: .75rem 0 0; display: inline-block; } }
/* Anchors with no explicit color fall back to the browser's blue; the top bar and hero pill are the two that had none. */
.top-bar-left a { color: inherit; text-decoration: none; }
.top-bar-left a:hover { color: #fff; }
.hero-rating a, .hero-rating a span { color: #fff; text-decoration: none; }
.stat-content p a[data-reviews-link] { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-transform: uppercase; }
.stat-content p a[data-reviews-link]:hover { color: #fff; }
.dealership-details > p { margin-top: 2rem; }

/* Footer credit bar */
.footer-credit { max-width: 1200px; margin: 2.5rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.08); text-align: center; }
.footer-credit p { color: #666; font-size: .8rem; letter-spacing: .3px; }
.footer-credit a { color: #aaa; text-decoration: none; font-weight: 600; transition: color .3s; }
.footer-credit a:hover { color: var(--accent-color); }

/* Uniform review cards: clamp the quote, expand per card, reveal more in batches. */
.review-card .review-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; flex: 0 0 auto; height: calc(1.65em * 6); }
.review-card.is-expanded .review-text { display: block; -webkit-line-clamp: unset; height: auto; }
.review-toggle { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: -.25rem; color: var(--accent-color); font: 600 .85rem 'Inter', sans-serif; cursor: pointer; }
.review-toggle:hover { text-decoration: underline; }
.review-card footer { margin-top: auto; }
.review-card.is-hidden { display: none; }
.reviews-actions { text-align: center; margin-top: 2rem; }
.reviews-more-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .8rem 1.75rem; border-radius: 4px; font: 700 .85rem 'Inter', sans-serif; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: border-color .3s, background .3s; }
.reviews-more-btn:hover { border-color: var(--accent-color); background: rgba(233,17,45,.12); }
.content-section .reviews-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .content-section .reviews-grid { grid-template-columns: 1fr; } }
.review-toggle[hidden] { display: block; visibility: hidden; }

/* Compact inventory sidebar: tighter rhythm, live filters (no Apply button), secondary filters collapsed. */
.inventory-sidebar { padding: 1.1rem 1.15rem 1.15rem; }
.inventory-sidebar .sidebar-header { padding-bottom: .7rem; margin-bottom: .9rem; }
.inventory-sidebar .sidebar-header h3 { font-size: .95rem; }
.inventory-sidebar .sidebar-content { gap: .8rem; }
.inventory-sidebar .filter-group { gap: .3rem; }
.inventory-sidebar .filter-group label { font-size: .68rem; }
.inventory-sidebar .sidebar-input-wrapper { padding: .45rem .7rem; }
.inventory-sidebar .sidebar-select { padding: .45rem .7rem; font-size: .82rem; }
.inventory-sidebar .sidebar-range { margin-top: 0; }
.inventory-sidebar .range-min-max { font-size: .65rem; }
.inventory-sidebar .body-pill { padding: .3rem .6rem; font-size: .72rem; }
.inventory-sidebar .body-style-pills { gap: .3rem; }
.filter-more-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; background: #f4f4f4; border: 1px solid #ddd; border-radius: 4px; padding: .5rem .7rem; font: 700 .72rem 'Inter', sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #4a4a4a; cursor: pointer; transition: border-color .2s, color .2s; }
.filter-more-toggle span i { color: var(--accent-color); margin-right: .3rem; }
.filter-more-toggle:hover { border-color: var(--accent-color); color: var(--accent-color); }
.filter-more-toggle[aria-expanded="true"] > i { transform: rotate(180deg); }
.filter-more-toggle > i { transition: transform .2s; font-size: .7rem; }
.filter-more { display: flex; flex-direction: column; gap: .8rem; }
.filter-more[hidden] { display: none; }
.inventory-sidebar .filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.inventory-sidebar .filter-row .filter-group { min-width: 0; }
.inventory-sidebar .filter-label-row .val-display { font-size: .72rem; }
.inventory-sidebar .filter-label-row { flex-wrap: nowrap; gap: .4rem; }
.inventory-sidebar .filter-label-row label, .inventory-sidebar .filter-label-row .val-display { white-space: nowrap; }

/* ROCKY standard (Reliability / Operations / Customer / Knowledge / Your Dealership) — About + Contact */
.rocky-values > p { max-width: 68ch; }
.rocky-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 2rem; }
.rocky-grid article { position: relative; padding: 1.5rem 1.25rem 1.25rem; border: 1px solid rgba(255,255,255,.16); border-top: 3px solid var(--accent-color); background: rgba(255,255,255,.04); }
.rocky-letter { display: block; font: 700 2.6rem/1 'Playfair Display', serif; color: var(--accent-color); margin-bottom: .6rem; }
.rocky-grid h3 { font-size: 1rem; margin: 0 0 .5rem; line-height: 1.3; }
.rocky-grid p { font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,.82); margin: 0; }
.rocky-tagline { margin: 1.75rem 0 0; text-align: center; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.rocky-tagline strong { color: var(--accent-color); letter-spacing: 3px; }
@media (max-width: 1100px) { .rocky-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .rocky-grid { grid-template-columns: 1fr 1fr; } .rocky-grid article:last-child { grid-column: 1 / -1; } }
.contact-form-section > p { max-width: 68ch; }
.contact-promise { margin: 1.5rem 0 2rem; padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent-color); background: rgba(255,255,255,.04); }
.contact-promise h3 { margin: 0 0 .75rem; font-size: 1rem; }
.contact-promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.contact-promise li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.5; }
.contact-promise li i { color: var(--accent-color); margin-top: .3rem; }
.contact-cta { text-align: center; }
.contact-cta p { margin: 0; }
.rocky-values .rocky-tagline { max-width: none; }
.contact-cta > p { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.contact-cta .btn-primary, .contact-cta .btn-search-outline { display: inline-flex; align-items: center; padding: .9rem 2rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; font-size: .85rem; border-radius: 4px; }
.contact-cta .btn-search-outline { border-color: rgba(255,255,255,.4); text-decoration: none; color: #fff; }
/* Home hero: the warranty promise IS the headline (Poppins, bold, figures in red); "Real cars…" is a quieter tagline beneath it */
.hero-slide .warranty-hero { font-family: 'Poppins', 'Inter', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; max-width: 1200px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.75); margin-bottom: 1.1rem; }
.hero-slide .warranty-line { display: block; }
.hero-slide .warranty-hero strong { color: var(--accent-color); font-weight: 800; white-space: nowrap; }
.hero-slide .hero-tagline { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 400; font-style: italic; line-height: 1.4; color: rgba(255,255,255,.85); text-shadow: 0 2px 12px rgba(0,0,0,.6); margin-bottom: 2.25rem; }
.hero-slide .hero-tagline .text-accent { color: var(--accent-color); font-weight: 600; }
@media (max-width: 1280px) { .hero-slide .warranty-hero { font-size: 1.75rem; } }
@media (max-width: 992px) { .hero-slide .warranty-hero { font-size: 1.5rem; } .hero-slide .hero-tagline { font-size: 1.15rem; } }
@media (max-width: 640px) { .hero-slide .warranty-hero { font-size: 1.25rem; line-height: 1.4; } .hero-slide .warranty-line + .warranty-line { margin-top: .6rem; } .hero-slide .hero-tagline { font-size: 1.05rem; margin-bottom: 1.75rem; } }
/* Seven nav links (HOME added): keep them on one line between the tablet breakpoint and ~1150px */
.nav-links a { white-space: nowrap; }
@media (min-width: 993px) and (max-width: 1150px) { .nav-links { gap: 1rem; } .nav-links a { font-size: .74rem; letter-spacing: .03em; } }

/* ==========================================================================
   PRICE BLOCK + CARFAX BADGE
   Every listing (SRP card, quick view, home featured card, VDP) shows the
   dealer-stated J.D. Power Retail Value above the RockyCarz price, the gap
   when RockyCarz is under it, and CARFAX's own "Show me the CARFAX" badge
   linking to the vehicle's report — the same badge rockycarz.com uses.
   ========================================================================== */
.inventory-card-content { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.inventory-card-content > .btn-card-outline { margin-top: auto; }
.inventory-card-stock { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8a8a8a; }
.inventory-card-content h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.inventory-card-content > p:not(.inventory-card-stock) { font-size: .9rem; color: #bdbdbd; }
.inventory-card .quick-view-btn { position: absolute; right: .75rem; bottom: .75rem; }

.price-block { display: flex; flex-direction: column; gap: .2rem; margin: .55rem 0 .35rem; padding: .7rem .85rem; border: 1px solid rgba(255, 255, 255, .12); border-left: 3px solid var(--accent-color); border-radius: 4px; background: rgba(255, 255, 255, .04); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.price-row-label { font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #9a9a9a; white-space: nowrap; }
.price-row-value { font-weight: 700; color: #ddd; font-size: .95rem; }
.price-row-jdpower .price-row-value { color: #bdbdbd; }
.price-row-rocky .price-row-label { color: #fff; }
.price-row-rocky .price-row-value { font-size: 1.45rem; font-weight: 800; color: var(--accent-color); line-height: 1.15; }
.price-row-savings { padding-top: .3rem; margin-top: .15rem; border-top: 1px dashed rgba(255, 255, 255, .14); }
.price-row-savings .price-row-label { color: #c9c9c9; }
.price-row-savings .price-row-value { color: #fff; }
.price-block-compact { margin: .25rem 0 .9rem; }
.price-block-compact .price-row-rocky .price-row-value { font-size: 1.3rem; }

.inventory-card-footer { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin: .1rem 0 .85rem; }
.inventory-card-footer .inventory-card-warranty { flex: 1; }
.carfax-badge { display: inline-flex; flex-shrink: 0; line-height: 0; border-radius: 3px; transition: transform .2s, box-shadow .2s; }
.carfax-badge img { display: block; width: 104px; height: auto; background: #fff; border-radius: 3px; padding: 3px 5px; }
.carfax-badge:hover, .carfax-badge:focus-visible { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .5); outline: none; }
.carfax-badge:focus-visible { box-shadow: 0 0 0 2px var(--accent-color); }

/* Home featured cards */
.car-card-details .carfax-badge img { width: 96px; }

/* Quick view (the photo was unconstrained before: it filled the modal and pushed the details below the fold) */
#modal-content-area > img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; align-self: start; }
#modal-content-area .price-block { max-width: 360px; }
#modal-content-area .carfax-badge { display: flex; width: fit-content; margin: .25rem 0 1rem; }
#modal-content-area .btn-primary { display: flex; justify-content: center; width: 100%; max-width: 360px; box-sizing: border-box; }

/* VDP price banner */
.overview-carfax { margin-top: .85rem; }
.overview-carfax .carfax-badge img { width: 130px; }
.price-banner-right .price-row-jdpower { justify-content: flex-end; }
.price-banner-right .price-row-jdpower .price-row-value { font-size: 1.05rem; }
.price-rocky-wrap { display: flex; flex-direction: column; align-items: flex-end; }
.price-rocky-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-color); }
.price-banner-right .savings-pill { margin-top: .15rem; }

/* CARFAX Value rating (great / good), copied from the VIN's carfax.com listing */
.carfax-value { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem .55rem; width: fit-content; margin-top: .45rem; text-decoration: none; color: #ddd; font-size: .78rem; line-height: 1.2; }
.carfax-value-pill { display: inline-block; padding: .22rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #2f7d32; }
.carfax-value-great .carfax-value-pill { background: #1b5e20; }
.carfax-value-good .carfax-value-pill { background: #2e7d32; }
.carfax-value-fair .carfax-value-pill { background: #6d6d6d; }
.carfax-value-amount { font-weight: 600; color: #c9c9c9; white-space: nowrap; }
.carfax-value:hover .carfax-value-amount, .carfax-value:focus-visible .carfax-value-amount { color: #fff; text-decoration: underline; }
.carfax-value:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 2px; border-radius: 3px; }
.price-banner-right .carfax-value { margin-top: .5rem; }

/* Dealer-fee disclosure: the last line of every ad, deliberately quiet and apart from the price */
.fee-disclosure { margin: .6rem 0 0; padding-top: .45rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #8d8d8d; text-align: right; }
.inventory-card .fee-disclosure, .car-card-content .fee-disclosure { margin-bottom: 0; }
#modal-content-area .fee-disclosure { max-width: 360px; }
.vdp-fee-disclosure { margin-top: 1.25rem; }
.vdp-fee-disclosure .fee-disclosure { font-size: .74rem; border-top-color: rgba(255, 255, 255, .16); }
.vdp-fee-disclosure:empty { display: none; }

@media (max-width: 640px) {
    .price-banner-right { align-items: flex-start; }
    .price-banner-right .price-row-jdpower { justify-content: flex-start; }
    .price-rocky-wrap { align-items: flex-start; }
    .inventory-card-footer { flex-wrap: wrap; }
}
