/* CarMoto public frontend enhancements — red brand theme */

:root {
    --cm-red: #dc2626;
    --cm-red-dark: #b91c1c;
    --cm-red-glow: rgba(220, 38, 38, 0.35);
    --cm-dark: #111827;
    --cm-text: #374151;
    --cm-muted: #6b7280;
    --cm-surface: #f9fafb;
    --cm-border: #e5e7eb;
    --cm-glass: rgba(255, 255, 255, 0.82);
    --cm-radius: 12px;
    --cm-radius-lg: 16px;
    --cm-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --cm-shadow-hover: 0 16px 40px rgba(220, 38, 38, 0.14);
    --cm-section-y: 2.25rem;
}

/* ─── Global public typography ─── */
body.frontend-shell h1, body.frontend-shell .h1 { font-size: clamp(1.45rem, 2.8vw, 1.85rem); font-weight: 700; letter-spacing: -0.025em; }
body.frontend-shell h2, body.frontend-shell .h2 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; }
body.frontend-shell h3, body.frontend-shell .h3 { font-size: 1.1rem; font-weight: 600; }
body.frontend-shell h4, body.frontend-shell .h4 { font-size: 1rem; font-weight: 600; }
body.frontend-shell h5, body.frontend-shell .h5 { font-size: 0.92rem; font-weight: 600; }
body.frontend-shell .display-3 { font-size: clamp(1.65rem, 3vw, 2rem) !important; }
body.frontend-shell .display-4,
body.frontend-shell .display-5 { font-size: clamp(1.25rem, 2.4vw, 1.55rem) !important; font-weight: 700 !important; letter-spacing: -0.02em; }
body.frontend-shell .lead { font-size: 0.92rem !important; font-weight: 400 !important; line-height: 1.55; color: var(--cm-muted) !important; }
body.frontend-shell section.py-5 { padding-top: var(--cm-section-y) !important; padding-bottom: var(--cm-section-y) !important; }
body.frontend-shell .mb-5 { margin-bottom: 1.5rem !important; }
body.frontend-shell .btn { font-size: 0.85rem; font-weight: 600; border-radius: 999px; }
body.frontend-shell .btn-lg { font-size: 0.9rem; padding: 0.55rem 1.25rem; }
body.frontend-shell .card { border-radius: var(--cm-radius-lg); border-color: var(--cm-border); box-shadow: var(--cm-shadow); }
body.frontend-shell .form-control,
body.frontend-shell .form-select { font-size: 0.875rem; border-radius: 10px; border-color: var(--cm-border); }
body.frontend-shell .form-control:focus,
body.frontend-shell .form-select:focus { border-color: var(--cm-red); box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

/* ─── Page hero (top of inner pages) ─── */
.cm-page-hero {
    padding: 1.75rem 0 1.5rem;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    border-bottom: 1px solid var(--cm-border);
}
.cm-page-hero h1 {
    font-size: clamp(1.35rem, 2.6vw, 1.65rem);
    font-weight: 700;
    color: var(--cm-dark);
    margin-bottom: 0.45rem;
    letter-spacing: -0.025em;
}
.cm-page-hero__eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cm-red);
    margin-bottom: 0.4rem;
}
.cm-page-hero__desc {
    font-size: 0.9rem;
    color: var(--cm-muted);
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.55;
}
.cm-page-hero--left .cm-page-hero__desc { margin: 0; }

/* ─── Section headings ─── */
.cm-section { padding: var(--cm-section-y) 0; }
.cm-section--alt { background: var(--cm-surface); }
.cm-section-head {
    text-align: center;
    margin-bottom: 1.5rem;
}
.cm-section-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cm-red);
    background: rgba(220, 38, 38, 0.08);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
}
.cm-section-head__title {
    font-size: clamp(1.2rem, 2.4vw, 1.5rem);
    font-weight: 700;
    color: var(--cm-dark);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}
.cm-section-head__desc {
    font-size: 0.88rem;
    color: var(--cm-muted);
    max-width: 30rem;
    margin: 0 auto;
    line-height: 1.5;
}

/* ─── Breadcrumb bar ─── */
.cm-breadcrumb {
    background: var(--cm-surface);
    border-bottom: 1px solid var(--cm-border);
    padding: 0.65rem 0;
    font-size: 0.8rem;
}
.cm-breadcrumb .breadcrumb { margin: 0; font-size: 0.8rem; }
.cm-breadcrumb .breadcrumb-item a { color: var(--cm-muted); text-decoration: none; }
.cm-breadcrumb .breadcrumb-item a:hover { color: var(--cm-red); }

/* ─── Filter / search bar ─── */
.cm-filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--cm-border);
    padding: 1rem 0;
}
.cm-filter-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--cm-shadow);
}

/* ─── CTA blocks ─── */
body.frontend-shell .cta-section h2,
body.frontend-shell .cta-section .display-4 {
    font-size: clamp(1.25rem, 2.5vw, 1.55rem) !important;
    margin-bottom: 0.65rem !important;
}
body.frontend-shell .cta-section .lead {
    font-size: 0.88rem !important;
    margin-bottom: 1rem !important;
}
body.frontend-shell .cta-section { padding: 1.75rem 0 !important; }

/* ─── Service page overrides ─── */
body.frontend-shell .services-hero { padding: 2.5rem 0 2rem !important; }
body.frontend-shell .hero-title { font-size: clamp(1.5rem, 3vw, 2rem) !important; margin-bottom: 0.65rem !important; }
body.frontend-shell .hero-subtitle { font-size: 0.9rem !important; margin-bottom: 1.25rem !important; }
body.frontend-shell .hero-badge { font-size: 0.72rem !important; padding: 0.35rem 0.85rem !important; margin-bottom: 0.75rem !important; }
body.frontend-shell .stat-number { font-size: 1.25rem !important; }
body.frontend-shell .section-header h2 { font-size: clamp(1.15rem, 2vw, 1.35rem) !important; }

/* ─── Vehicle cards ─── */
body.frontend-shell .car-card-body h3.h5 { font-size: 0.95rem !important; }
body.frontend-shell .car-card-image { height: 170px; }
body.frontend-shell .feature-icon { width: 52px; height: 52px; font-size: 1.35rem; border-radius: 14px; }
body.frontend-shell .feature-card h3.h5 { font-size: 0.95rem !important; }
body.frontend-shell .feature-card p { font-size: 0.85rem; }

/* ─── Footer refinement ─── */
body.frontend-shell footer.bg-dark h5,
body.frontend-shell footer.bg-dark h6 { font-size: 0.9rem; }
body.frontend-shell footer.bg-dark p,
body.frontend-shell footer.bg-dark li { font-size: 0.82rem; }

body.frontend-shell .btn-danger,
body.frontend-shell .btn-primary {
    box-shadow: 0 4px 14px var(--cm-red-glow);
}
body.frontend-shell .navbar-brand img { height: 34px; }
body.frontend-shell .navbar { padding: 0.4rem 0; }
body.frontend-shell .navbar .nav-link { font-size: 0.85rem; }
body.frontend-shell .top-bar { font-size: 0.7rem; }

/* Navbar polish */
.navbar {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(220, 38, 38, 0.08);
}
.navbar-brand img {
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.04);
}
.nav-link {
    font-weight: 500;
    position: relative;
}
.nav-link.active::after,
.navbar .nav-link:hover::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.15rem;
    height: 2px;
    background: linear-gradient(90deg, var(--cm-red), #ef4444);
    border-radius: 2px;
}

/* Hero upgrades */
.hero-modern {
    background: radial-gradient(circle at 78% 18%, rgba(220, 38, 38, 0.14), transparent 42%),
                radial-gradient(circle at 12% 82%, rgba(220, 38, 38, 0.06), transparent 35%),
                linear-gradient(160deg, #fafafa 0%, #ffffff 50%, #fff8f8 100%);
    min-height: auto;
}
.hero-modern__grid {
    min-height: auto;
}
.hero-headline {
    font-size: clamp(1.65rem, 3.2vw, 2.15rem);
    letter-spacing: -0.025em;
    line-height: 1.15;
}
.hero-subtext {
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 26rem;
}
.hero-trust-badge {
    font-size: 0.72rem;
    font-weight: 600;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}
.hero-orb--1 {
    width: 200px;
    height: 200px;
    background: rgba(220, 38, 38, 0.18);
    top: 8%;
    right: 6%;
    animation: heroOrbFloat 8s ease-in-out infinite;
}
.hero-orb--2 {
    width: 140px;
    height: 140px;
    background: rgba(239, 68, 68, 0.12);
    bottom: 12%;
    left: 4%;
    animation: heroOrbFloat 10s ease-in-out infinite reverse;
}
@keyframes heroOrbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(12px, -18px); }
}
.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.hero-stat span {
    font-size: 0.62rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.hero-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(220, 38, 38, 0.15);
}

/* Hero Showcase — cinematic vehicle stage */
.hero-showcase {
    position: relative;
    max-width: 100%;
    margin-left: auto;
}
.hero-showcase__spotlight {
    position: absolute;
    inset: -4% -3% -2%;
    background: radial-gradient(ellipse at 50% 40%, rgba(220, 38, 38, 0.16), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.hero-showcase__frame {
    position: relative;
    z-index: 1;
    padding: 0.45rem;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,245,245,0.9));
    border: 1px solid rgba(220, 38, 38, 0.12);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255,255,255,0.8) inset;
}
.hero-showcase__label {
    position: absolute;
    top: 0.85rem;
    left: 1rem;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.hero-showcase__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: heroPulse 2s infinite;
}
@keyframes heroPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.hero-showcase__carousel {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.hero-showcase__progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.2);
    z-index: 4;
}
.hero-showcase__progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--cm-red), #f87171);
}
.hero-showcase__counter {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    backdrop-filter: blur(6px);
}
.hero-showcase__slide {
    position: relative;
    height: clamp(240px, 28vw, 310px);
    overflow: hidden;
    background: #111827;
}
.hero-showcase__slide--fallback { display: flex; align-items: center; justify-content: center; }
.hero-fallback-1 { background: linear-gradient(135deg, #7f1d1d, #dc2626, #450a0a); }
.hero-fallback-2 { background: linear-gradient(135deg, #1e3a5f, #2563eb, #0f172a); }
.hero-fallback-3 { background: linear-gradient(135deg, #14532d, #16a34a, #052e16); }
.hero-showcase__fallback-icon {
    position: absolute;
    font-size: 5rem;
    color: rgba(255,255,255,0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}
.hero-showcase__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}
.carousel-item.active .hero-showcase__img {
    animation: heroKenBurns 8s ease-out forwards;
}
@keyframes heroKenBurns {
    from { transform: scale(1.05); }
    to { transform: scale(1.1); }
}
.hero-showcase__vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.05) 100%);
    pointer-events: none;
}
.hero-showcase__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    animation: heroShine 6s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroShine {
    0%, 100% { transform: translateX(-120%); }
    50% { transform: translateX(120%); }
}
.hero-showcase__info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1rem 1rem;
    z-index: 2;
}
.carousel-item.active .hero-showcase__info {
    animation: heroInfoIn 0.5s ease forwards;
}
.carousel-item:not(.active) .hero-showcase__info { opacity: 0; animation: none; }
@keyframes heroInfoIn {
    from { transform: translateY(6px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.hero-showcase__info-top {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}
.hero-showcase__status { font-size: 0.58rem; font-weight: 600; text-transform: uppercase; }
.hero-showcase__year-tag {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.75);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    background: rgba(255,255,255,0.12);
}
.hero-showcase__title {
    color: #fff;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    margin: 0 0 0.4rem;
    line-height: 1.2;
}
.hero-showcase__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}
.hero-showcase__specs span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.9);
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
}
.hero-showcase__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-showcase__price small {
    display: block;
    font-size: 0.6rem;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-showcase__price strong {
    display: block;
    color: #fff;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    font-weight: 700;
}
.hero-showcase__actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.hero-showcase__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.92);
    color: var(--cm-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
    opacity: 0;
}
.hero-showcase__frame:hover .hero-showcase__nav { opacity: 1; }
.hero-showcase__nav:hover {
    background: var(--cm-red);
    color: #fff;
}
.hero-showcase__thumbs {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}
.hero-showcase__thumb {
    flex: 1;
    min-width: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hero-showcase__thumb img {
    width: 100%;
    height: 42px;
    object-fit: cover;
    display: block;
}
.hero-showcase__thumb span {
    display: block;
    font-size: 0.58rem;
    font-weight: 600;
    padding: 0.2rem 0.35rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-showcase__thumb.active,
.hero-showcase__thumb:hover {
    border-color: var(--cm-red);
    transform: translateY(-1px);
}
.hero-showcase__micro-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.65rem;
    font-size: 0.7rem;
    color: #6b7280;
}
.hero-showcase__micro-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.hero-showcase__micro-trust i { color: var(--cm-red); }
.hero-stats-row {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 100%;
}
.hero-stat strong {
    font-size: 1rem;
    color: var(--cm-red);
    line-height: 1;
}
.hero-showcase__actions .btn {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
}
.hero-showcase__nav--prev { left: 0.5rem; }
.hero-showcase__nav--next { right: 0.5rem; }
.hero-showcase__inner { border-radius: 16px; }
.hero-headline .text-danger {
    background: linear-gradient(135deg, var(--cm-red) 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content .badge {
    border: 1px solid rgba(220, 38, 38, 0.2);
    backdrop-filter: blur(6px);
}
.hero-content .btn {
    font-size: 0.85rem;
    box-shadow: none;
}
.hero-content .btn-danger:hover,
.hero-content .btn-test-drive:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Modern buttons */
.btn-danger, .btn-primary.bg-danger {
    background: linear-gradient(135deg, var(--cm-red) 0%, var(--cm-red-dark) 100%) !important;
    border: none !important;
    box-shadow: 0 8px 20px var(--cm-red-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-danger:hover, .btn-primary.bg-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px var(--cm-red-glow);
}
.btn-test-drive {
    background: linear-gradient(135deg, #111827 0%, #374151 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.25);
}
.btn-test-drive:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.35);
}

/* Car cards */
.car-card {
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
.car-card:hover {
    box-shadow: var(--cm-shadow-hover) !important;
    border-color: rgba(220, 38, 38, 0.15) !important;
}
.car-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.car-card:hover .car-card-image::after {
    opacity: 1;
}
.car-card-image { position: relative; }

/* Feature cards */
.feature-card {
    background: var(--cm-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.08);
    border-radius: var(--cm-radius-lg);
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--cm-shadow-hover);
    border-color: rgba(220, 38, 38, 0.2);
}
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(220,38,38,0.12), rgba(220,38,38,0.04));
    color: var(--cm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, var(--cm-red-dark) 0%, var(--cm-red) 45%, #ef4444 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Trust strip */
.trust-strip {
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #fff;
    padding: 1rem 0;
}
.trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}
.trust-strip .trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Floating action dock — chat left, WhatsApp right */
.cm-action-dock {
    position: fixed;
    bottom: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cm-action-dock--left {
    left: 18px;
    align-items: flex-start;
}
.cm-action-dock--right {
    right: 18px;
    align-items: flex-end;
}
.cm-action-dock--left .dock-label {
    margin-right: 0;
    margin-left: 4px;
    transform: translateX(-8px);
}
.cm-action-dock--left > div:hover .dock-label {
    transform: translateX(0);
}
.cm-action-dock--right .dock-label {
    margin-right: 4px;
    transform: translateX(8px);
}
.cm-action-dock--right > div:hover .dock-label {
    transform: translateX(0);
}
.cm-action-dock .dock-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.cm-action-dock .dock-btn:hover {
    transform: scale(1.08);
    color: #fff;
}
.cm-action-dock .dock-whatsapp { background: #25d366; }
.cm-action-dock .dock-chat {
    background: linear-gradient(135deg, var(--cm-red), var(--cm-red-dark));
    cursor: pointer;
}
.cm-action-dock .dock-label {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    margin-right: 4px;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.cm-action-dock > div:hover .dock-label { opacity: 1; transform: translateX(0); }

/* CarMoto Chat widget */
.cm-chat-panel {
    position: fixed;
    left: 18px;
    bottom: 96px;
    width: min(380px, calc(100vw - 36px));
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1055;
    transform: scale(0.92) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(220, 38, 38, 0.12);
}
.cm-chat-intake {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.1rem;
    overflow-y: auto;
    background: #fafafa;
}
.cm-chat-intake__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cm-dark);
    margin-bottom: 0.25rem;
}
.cm-chat-intake__desc {
    font-size: 0.78rem;
    color: var(--cm-muted);
    margin-bottom: 0.85rem;
}
.cm-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.cm-chat-panel.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cm-chat-header {
    background: linear-gradient(135deg, var(--cm-red-dark), var(--cm-red));
    color: #fff;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cm-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.cm-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: linear-gradient(180deg, #fafafa, #fff);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.cm-chat-msg {
    max-width: 88%;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-size: 0.875rem;
    line-height: 1.45;
}
.cm-chat-msg.bot {
    background: #fff;
    border: 1px solid #e5e7eb;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.cm-chat-msg.user {
    background: linear-gradient(135deg, var(--cm-red), var(--cm-red-dark));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.cm-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1rem 0.5rem;
}
.cm-chat-chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(220, 38, 38, 0.25);
    background: #fff;
    color: var(--cm-red);
    cursor: pointer;
    transition: all 0.15s ease;
}
.cm-chat-chip:hover {
    background: var(--cm-red);
    color: #fff;
}
.cm-chat-input-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.cm-chat-input-row input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    outline: none;
}
.cm-chat-input-row input:focus {
    border-color: var(--cm-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.cm-chat-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--cm-red);
    color: #fff;
    flex-shrink: 0;
}

/* Vehicle detail sidebar */
.inquiry-card {
    border-radius: var(--cm-radius-lg) !important;
    border: 1px solid rgba(220, 38, 38, 0.1) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
}

/* Footer */
footer.bg-dark {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
}
.cm-footer-logo {
    height: 44px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
}
.cm-footer-bottom {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.5;
}
.cm-footer-bottom__sep {
    margin: 0 0.55rem;
    opacity: 0.55;
}
.cm-footer-credit {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.cm-footer-credit:hover {
    color: var(--cm-red);
}

@media (max-width: 991px) {
    .hero-modern__grid { min-height: auto; }
    .hero-showcase { max-width: 100%; margin-top: 1.5rem; }
    .hero-showcase__nav { opacity: 1; }
    .hero-showcase__slide { height: clamp(280px, 55vw, 360px); }
}

@media (max-width: 767px) {
    .cm-action-dock--left { left: 12px; bottom: 16px; }
    .cm-action-dock--right { right: 12px; bottom: 16px; }
    .cm-chat-panel { left: 12px; right: 12px; width: auto; bottom: 80px; }
    .hero-headline { font-size: 1.5rem; }
    .hero-showcase__slide { height: clamp(220px, 50vw, 280px); }
}
