/* Charlotte BG Showcase — Bootstrap 5 dark navbar with offcanvas vehicle drawers,
   hero carousel, locator below the fold, dealer card grid. Mirrors live
   charlottedealers.com chrome. */

[data-theme="charlotte-showcase"] {
    background-color: #ffffff;
    color: #212529;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: 70px;
}

[data-theme="charlotte-showcase"] body {
    padding-top: 70px;
}

/* Navbar */
[data-theme="charlotte-showcase"] .charlotte-navbar {
    background-color: #212529 !important;
    border-bottom: 4px solid #d11919;
}

[data-theme="charlotte-showcase"] .charlotte-navbar .logo-img-top {
    max-height: 50px;
    width: auto;
}

[data-theme="charlotte-showcase"] .charlotte-navbar .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
}

[data-theme="charlotte-showcase"] .charlotte-navbar .nav-link:hover,
[data-theme="charlotte-showcase"] .charlotte-navbar .nav-link.active {
    color: #ffffff;
}

[data-theme="charlotte-showcase"] .charlotte-navbar .navbar-toggler {
    color: #ffffff;
}

/* Offcanvas drawer — wide so the vehicle images render large (matches the
   legacy charlottedealers.com drawer). Capped at 92vw so it never overflows
   narrow screens; the @media block below makes it full-width on mobile. */
[data-theme="charlotte-showcase"] .charlotte-drawer {
    width: 720px;
    max-width: 92vw;
}

[data-theme="charlotte-showcase"] .charlotte-drawer .offcanvas-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="charlotte-showcase"] .charlotte-drawer-row {
    align-items: center;
    margin: 0.25rem 0;
}

[data-theme="charlotte-showcase"] .charlotte-drawer-name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

[data-theme="charlotte-showcase"] .img-jelly {
    max-width: 100%;
    height: auto;
}

[data-theme="charlotte-showcase"] .fs-medium {
    font-size: 0.95rem;
}

/* Announcement */
[data-theme="charlotte-showcase"] .charlotte-announcement {
    border-radius: 0;
    margin-top: 1rem !important;
}

/* Carousel */
[data-theme="charlotte-showcase"] #charlotteCarousel {
    margin-bottom: 1rem;
}

[data-theme="charlotte-showcase"] .carousel-img {
    /* Whole slide at natural ratio (no crop/zoom), but capped in height so the
       hero isn't too tall. width:auto keeps the aspect ratio while max-height
       limits it; Bootstrap's mx-auto on the <img> centers it when the capped
       image is narrower than the row. */
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

[data-theme="charlotte-showcase"] .carousel-control-prev-icon,
[data-theme="charlotte-showcase"] .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 1rem;
    background-size: 60% 60%;
    background-repeat: no-repeat;
    background-position: center;
}

/* Locate section */
[data-theme="charlotte-showcase"] .charlotte-locate {
    padding-top: 2rem;
}

[data-theme="charlotte-showcase"] .charlotte-locate-heading {
    /* Left-aligned to mirror legacy charlottedealers.com (its <h2 class="site-name">
       sits left; the zip prompt + form below stay centered). */
    text-align: left;
    font-size: 1.6rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1.25rem;
}

[data-theme="charlotte-showcase"] .charlotte-zip-prompt {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

[data-theme="charlotte-showcase"] .charlotte-zip-form input.form-control {
    max-width: 240px;
    margin-right: 0.5rem;
}

[data-theme="charlotte-showcase"] .charlotte-zip-form .btn-primary {
    background-color: #d11919;
    border-color: #d11919;
}

[data-theme="charlotte-showcase"] .charlotte-zip-form .btn-primary:hover {
    background-color: #a90f0f;
    border-color: #a90f0f;
}

[data-theme="charlotte-showcase"] .charlotte-preferred-map {
    height: 450px;
    border-radius: 4px;
}

[data-theme="charlotte-showcase"] .charlotte-dealers-map {
    height: 450px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

[data-theme="charlotte-showcase"] .charlotte-preferred-card {
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background: #f9f9f9;
    height: 100%;
}

/* Dealer card grid */
[data-theme="charlotte-showcase"] .charlotte-dealer-grid {
    margin: 0;
}

[data-theme="charlotte-showcase"] .charlotte-dealer-card {
    max-width: 260px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[data-theme="charlotte-showcase"] .charlotte-dealer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

[data-theme="charlotte-showcase"] .charlotte-dealer-card h6 {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    color: #212529;
}

[data-theme="charlotte-showcase"] .charlotte-dealer-card .btn-primary {
    background-color: #d11919;
    border-color: #d11919;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

[data-theme="charlotte-showcase"] .charlotte-dealer-card a {
    text-decoration: none;
}

/* Footer */
[data-theme="charlotte-showcase"] .charlotte-footer {
    background-color: #212529;
    color: #ffffff;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

[data-theme="charlotte-showcase"] .charlotte-footer p {
    color: #ffffff;
    margin-bottom: 0;
}

/* Mobile */
@media (max-width: 768px) {
    [data-theme="charlotte-showcase"] .charlotte-drawer {
        width: 100%;
    }

    [data-theme="charlotte-showcase"] .charlotte-zip-form {
        flex-direction: column;
        gap: 0.5rem;
    }

    [data-theme="charlotte-showcase"] .charlotte-zip-form input.form-control {
        max-width: 100%;
        margin-right: 0;
    }

    [data-theme="charlotte-showcase"] .charlotte-zip-form .btn-primary {
        margin-left: 0 !important;
    }
}

/* Drawer "Details" link */
[data-theme="charlotte-showcase"] .charlotte-drawer-details {
    color: #d11919;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.82rem;
}

[data-theme="charlotte-showcase"] .charlotte-drawer-details:hover {
    text-decoration: underline;
}

/* Vehicle detail page */
[data-theme="charlotte-showcase"] .charlotte-detail {
    padding-top: 1rem;
}

[data-theme="charlotte-showcase"] .charlotte-detail-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: #212529;
}

[data-theme="charlotte-showcase"] .charlotte-detail-subtitle {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: #495057;
    margin-top: 1rem;
    max-width: 40ch;
}

[data-theme="charlotte-showcase"] .charlotte-detail-pricing {
    margin-bottom: 1rem;
}

[data-theme="charlotte-showcase"] .charlotte-detail-price-starting {
    font-size: 1.4rem;
    font-weight: 600;
    color: #212529;
}

[data-theme="charlotte-showcase"] .charlotte-detail-price-shown {
    font-size: 0.95rem;
    color: #6c757d;
}

[data-theme="charlotte-showcase"] .charlotte-detail-hero {
    max-height: 420px;
    width: auto;
    max-width: 100%;
}

[data-theme="charlotte-showcase"] .charlotte-detail-lifestyle {
    border-radius: 4px;
}

[data-theme="charlotte-showcase"] .charlotte-detail-cta .btn-primary {
    background-color: #d11919;
    border-color: #d11919;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.6rem 1.5rem;
}

[data-theme="charlotte-showcase"] .charlotte-detail-cta .btn-primary:hover {
    background-color: #a90f0f;
    border-color: #a90f0f;
}
