html, body {
    height: 100%;
}

:root {
    --brand-primary: #c41e3a;
    --brand-primary-hover: #a01930;
    --brand-primary-soft-15: rgba(196, 30, 58, 0.15);
    --brand-primary-soft-22: rgba(196, 30, 58, 0.22);
    --brand-primary-soft-25: rgba(196, 30, 58, 0.25);
    --brand-primary-soft-30: rgba(196, 30, 58, 0.30);
    --brand-primary-soft-45: rgba(196, 30, 58, 0.45);
    --brand-primary-soft-55: rgba(196, 30, 58, 0.55);
    --brand-primary-soft-60: rgba(196, 30, 58, 0.60);
    --brand-primary-soft-85: rgba(196, 30, 58, 0.85);

    --page-bg: #2b0909;
    --card-bg: #3d1a1a;
    --card-inner-bg: #351212;
    --card-border-soft: rgba(0, 0, 0, 0.25);
    --text-main: #ffffff;
    --text-muted: #d3bcbc;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--page-bg);
    color: var(--text-main);
}

.site-content {
    flex: 1 0 auto;
    width: 100%;
}

.truck-image-container {
    position: relative;
    overflow: hidden;
    display: flex;
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 16 / 9;
}

/* Card slider controls (chevrons + dots) */
.card-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.48);
    border: 0;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.15s ease;
    pointer-events: none;
}

.card-slider-prev { left: 8px; }
.card-slider-next { right: 8px; }

.card-slider-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: translateY(-50%) scale(1.08);
}

.card-slider-dots {
    position: absolute;
    bottom: 9px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.card-slider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.2s ease, transform 0.2s ease;
}

.card-slider-dot.is-active {
    background: #ffffff;
    transform: scale(1.7);
    font-weight: 900;
}

/* Show controls on card hover (desktop) */
.truck-card:hover .card-slider-btn,
.truck-card:hover .card-slider-dots {
    opacity: 1;
    pointer-events: auto;
}

/* Always visible on mobile */
@media (max-width: 768px) {
    .card-slider-btn,
    .card-slider-dots {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Truck image styling */
.truck-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease; /* Smooth zoom effect */
    display: block;
}

.truck-image-container .truck-image-slider {
    height: 100%;
}

.truck-image-container .truck-image-slider img {
    height: 100% !important;
    object-fit: cover;
}

/* No hover-zoom on cards (prevents image overlap) */
.truck-card:hover .truck-image {
    transform: none;
}

.navbar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 40px);
    max-width: 1700px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 8px;
    padding: 10px 20px;
    margin-top: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    flex-wrap: wrap;
    gap: 10px;
}

.navbar-toggle {
    border: 0;
    background: transparent;
    width: 40px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 12px;
}

.navbar-toggle span,
.navbar-toggle span::before,
.navbar-toggle span::after {
    display: block;
    width: 28px;
    height: 2.5px;
    border-radius: 999px;
    background: #1a1a1a;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle span::before,
.navbar-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.navbar-toggle span::before {
    top: -8px;
}

.navbar-toggle span::after {
    top: 8px;
}

.navbar-toggle.is-open span {
    transform: rotate(45deg);
}

.navbar-toggle.is-open span::before {
    transform: rotate(-90deg);
    top: 0;
}

.navbar-toggle.is-open span::after {
    opacity: 0;
}

.navbar-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 95;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 90px;
}

.navbar-menu-overlay.is-open {
    display: flex;
}

.navbar-menu {
    background: rgba(61, 26, 26, 0.96);
    border-radius: 20px;
    padding: 18px 22px;
    width: min(420px, 92vw);
    box-sizing: border-box;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}

.navbar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.navbar-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(53, 18, 18, 0.9);
}

.navbar-menu a:hover {
    background: rgba(196, 30, 58, 0.9);
}

/* Nav accordion */
.nav-accordion-toggle {
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 10px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(53, 18, 18, 0.9);
    border: 0;
    cursor: pointer;
    gap: 10px;
    font-size: inherit;
}
.nav-accordion-toggle:hover {
    background: rgba(196, 30, 58, 0.9);
}
.nav-accordion-caret {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
.nav-accordion-toggle[aria-expanded="true"] .nav-accordion-caret {
    transform: rotate(180deg);
}
.nav-accordion-body {
    padding: 10px 12px 4px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}
.nav-accordion-body p {
    margin: 0 0 8px;
}
.nav-accordion-body a {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline !important;
    color: var(--brand-primary) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.nav-accordion-body a:hover {
    text-decoration: underline;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-home-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
}

.logo {
    width: auto;
    height: 52px;
    margin-right: 10px;
    flex-shrink: 0;
}

.brand {
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: bold;
    word-break: break-word;
    line-height: 1.2;
}

.brand-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    flex: 0 0 auto;
}

.brand-text {
    min-width: 0;
}

.nav-right {
    display: flex;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 700;
    box-shadow: 0 10px 26px var(--brand-primary-soft-45);
    transition: background 0.3s, box-shadow 0.3s;
}

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

/* Lucide icon helper — keeps icons vertically aligned inside buttons/links */
.lc-icon {
    display: inline-block;
    vertical-align: -3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}
.lc-icon svg {
    width: 100%;
    height: 100%;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(1.5em, 8vw, 3em);
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .hero-content h1 {
        display: none;
    }
}



/* Scroll down indicator styling */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 2;
}

.scroll-down-indicator span {
    color: white;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-icon {
    width: 30px;
    height: 30px;
    color: white;
    animation: wiggle 1.5s ease-in-out infinite;
}

.scroll-icon svg {
    width: 100%;
    height: 100%;
}

/* Wiggle animation */
@keyframes wiggle {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.filter-section {
    margin: 20px 0;
    padding: 20px;
    border-radius: 16px;
    background: var(--card-bg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    border: 1px solid var(--card-border-soft);
    transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 36px;
}
.filter-section h3 {
    margin: 0;
    color: #ffffff;
}
.filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 0;
    cursor: pointer;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
}
.filter-section.is-open .filter-toggle-btn {
    background: var(--brand-primary);
    color: #ffffff;
}
.filter-collapsible {
    padding-top: 14px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.filter-section.is-open .filter-collapsible {
    max-height: 900px;
    opacity: 1;
    transform: translateY(0);
}

.filter-fields {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-field {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    min-width: 150px;
}

.filter-field label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: rgba(255, 255, 255, 0.7);
}

.filter-field select,
.filter-field input[type="range"] {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.95em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
}

.filter-field select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' 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 14px center;
    background-size: 14px 14px;
}

.filter-field select:disabled {
    background-color: rgba(53, 8, 8, 0.70);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' 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 14px center;
    background-size: 14px 14px;
    color: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.06);
    cursor: not-allowed;
}

.dual-slider {
    position: relative;
    display: flex;
    align-items: center;
    height: 30px;
    margin-top: 10px;
}

.dual-slider-input {
    position: absolute;
    width: 100%;
    height: 5px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    z-index: 5;
}

.dual-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.dual-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

.slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    z-index: 1;
}


.filter-buttons {
    display: flex;
    align-items: stretch;
    padding-top: 10px;
    gap: 10px;
}

.reset-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    text-decoration: none;
}

.reset-btn img{
    width: 20px;
    height: 20px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

.search-btn img{
    width: 20px;
    height: 20px;
}



.search_result {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    gap: 15px;
}


.truck-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Truck card styling */
.truck-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.8);
    text-align: left;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect for truck card */
.truck-card:hover {
    transform: translateY(-10px); /* Move the card up */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); /* Add a stronger shadow */
}


.view-details-btn {
    width: 100%;
    font-size: 14px;
    margin-top: 10px;
    justify-content: center;
}


/* Truck details styling */
.truck-details {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    flex: 1 1 auto;
    gap: 10px;
}

.truck-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.truck-title-row h5 {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .truck-show-page .detail-title {
        font-size: 1.1rem;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    .truck-show-page .detail-price {
        font-size: 1rem !important;
        line-height: 1.2;
    }
}

.truck-card-price {
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
}

.truck-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.truck-unit-label {
    font-size: 12px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.75);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge.available {
    background: rgba(39, 205, 109, 0.12);
    color: #27cd6d;
    border: 1px solid rgb(39 202 109 / 35%);
}

.status-badge.sold {
    background: rgba(225, 43, 43, 0.12);
    color: #e12b2b;
    border: 1px solid rgb(225 29 29 / 35%);
}

.truck-details h4 {
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
    width: fit-content;
}

.truck-details h5 {
    font-size: 18px;
    font-weight: bold;
    width: fit-content;
}

.truck-details p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.truck-details p strong {
    font-weight: bold;
    color: #ffffff;
}

/* Empty state (filters/search) */
.truck-empty-state {
    width: 100%;
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 28px 18px;
    border-radius: 24px;
    background: var(--card-bg);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.6);
}

.truck-empty-icon {
    width: 300px;
    height: 300px;
    object-fit: contain;
}

.truck-empty-sub {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
    font-size: 14px;
    font-weight: 700;
}

.truck-empty-btn {
    width: fit-content;
}

@media (max-width: 600px) {
    .truck-empty-icon {
        width: 220px;
        height: 220px;
    }
    .truck-empty-sub {
        font-size: 13px;
    }
}

/* Minimal meta row (Year / Miles / Hours) */
.truck-meta-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
}

.truck-meta-card {
    background: var(--card-inner-bg);
    border-radius: 16px;
    padding: 10px 12px 9px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.truck-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: rgba(255, 255, 255, 0.6);
}

.truck-meta-value {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 600px) {
    .truck-meta-row {
        gap: 8px;
    }
    .truck-meta-card {
        padding: 8px 9px 7px;
        border-radius: 14px;
    }
    .truck-meta-value {
        font-size: 15px;
    }
}

/* Truck pricing container */
.truck-pricing {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.truck-pricing h4 {
    color: #ffffff;
    font-weight: 600;
    font-size: 20px;
}

.truck-pricing h5 {
    font-size: 18px;
    font-weight: bold;
}


/* Footer styling */
.footer {
    background: #1b0606;
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 38px 0 calc(96px + env(safe-area-inset-bottom, 0px)) 0;
    font-size: 14px;
    margin-top: 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.footer-section {
    min-width: 220px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.footer-brand {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.footer-muted {
    color: rgba(255, 255, 255, 0.78);
    margin-top: 8px;
    line-height: 1.45;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    opacity: 0.85;
}

.footer-section ul li a:hover {
    color: var(--brand-primary); /* Highlight color on hover */
    opacity: 1;
}

.footer-section p {
    margin: 5px 0;
}

.footer-section .social-icons a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
    margin-top: 14px;
    transition: transform 0.2s, opacity 0.2s;
}

.footer-section .social-icons a img {
    width: 24px;
    height: 24px;
}

.footer-section .social-icons a:hover {
    transform: translateY(-1px);
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* Fixed bottom contact menu (mobile-first) */
.bottom-contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--brand-primary);
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 6px 10px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75);
}

.bottom-contact-bar a {
    flex: 1 1 25%;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bottom-contact-bar-icon {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
}
.bottom-contact-bar-icon .lc-icon {
    width: 13px;
    height: 13px;
}

@media (min-width: 768px) {
    .bottom-contact-bar {
        max-width: 640px;
        margin: 0 auto;
        left: 0;
        right: 0;
        border-radius: 18px 18px 0 0;
    }
}

/* ===================== */
/* RESPONSIVE MEDIA QUERIES */
/* ===================== */

/* Tablets and smaller desktops (768px - 1024px) */
@media (max-width: 1024px) {
    .navbar {
        max-width: 100%;
        padding: 8px 15px;
    }
    
    .brand {
        font-size: 1em;
    }
    
    .btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .filter-fields {
        gap: 55px;
    }
    
    .filter-field {
        flex: 1 1 150px;
        min-width: 120px;
    }
    
    .truck-list {
        gap: 15px;
    }
    
    .footer-container {
        gap: 18px;
    }
}

/* Tablets (600px - 768px) */
@media (max-width: 768px) {
    .navbar {
        gap: 10px;
        padding: 10px 15px;
        width: calc(100% - 20px);
        flex-wrap: nowrap;
        flex-direction: row;
        align-items: center;
    }
    
    .nav-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 0;
    }
    
    .nav-right {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        gap: 8px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .brand {
        font-size: 0.9em;
    }
    
    .hero {
        height: 60vh;
    }
    
    .filter-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .filter-fields {
        flex-direction: row;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .filter-field {
        flex: 1 1 calc(50% - 8px);
        min-width: auto;
    }
    
    .reset-btn {
        width: 100%;
        margin-top: 15px;
    }
    
    .search_result {
        flex-direction: row;
        gap: 15px;
        align-items: center;
    }
    
    .search_result h3 {
        margin: 0;
    }
    
    .truck-card {
        padding: 12px;
    }
    
    .truck-details h4,
    .truck-pricing h4 {
        font-size: 16px;
    }

    .truck-details h5,
    .truck-pricing h5 {
        font-size: 15px;
    }

    .truck-details p {
        font-size: 14px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer {
        padding: 30px 0 calc(96px + env(safe-area-inset-bottom, 0px)) 0;
    }
}

/* Mobile phones (up to 600px) */
@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    /* ── Navbar: single row, logo-left / toggle-right ── */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        border-radius: 0;
        padding: 8px 14px;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .nav-left {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .nav-home-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .logo {
        width: 100px;
        height: 58px;
        object-fit: contain;
        margin-right: 0;
        flex-shrink: 0;
    }

    /* Hide address & phone text on mobile — just show logo */
    .brand {
        display: none;
    }

    .nav-right {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 0 0 auto;
        gap: 8px;
        margin-top: 0;
    }

    /* Hide all nav buttons on mobile — they live in the hamburger menu */
    .nav-right .btn {
        display: none;
    }
    .nav-right .nav-full-inventory-btn {
        display: inline-flex;
        padding: 6px 14px;
        font-size: 12px;
    }

    .navbar-toggle {
        margin-right: 0;
    }

    .lists-container {
        padding-top: 60px;
    }

    .site-header--trucks-index + main .hero-video {
        transform: scale(1.25);
        transform-origin: center;
    }
    .site-header--trucks-index + main .scroll-down-indicator {
        bottom: 12px;
    }
    .site-header--trucks-index + main .scroll-down-indicator span {
        font-size: 10px;
        letter-spacing: 0.6px;
    }
    .site-header--trucks-index + main .hero-content h1 {
        font-size: clamp(1em, 5.2vw, 1.55em);
        margin-bottom: 12px;
    }

    .brand-br {
        display: none;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 0.75em;
        width: auto;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero {
        height: 80vh;
        height: 80dvh;
        min-height: 400px;
    }

    .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: calc(50% + 50px) center;
    }
    
    .hero-content h1 {
        font-size: clamp(1.2em, 6vw, 2em);
    }
    
    .filter-section {
        padding: 12px;
        margin: 10px 0;
        border-radius: 8px;
    }
    
    .filter-section h3 {
        font-size: 1em;
        margin: 0;
    }
    
    .filter-fields {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .filter-field {
        flex: 1 1 50%;
    }
    
    .filter-field label {
        font-size: 0.9em;
        margin-bottom: 4px;
    }
    
    .filter-field select,
    .filter-field input[type="range"] {
        padding: 8px;
        font-size: 0.9em;
    }
    
    body {
        font-size: 17px;
    }

    /* Universal button min-height on mobile — matches Extend button feel */
    .btn,
    .reset-btn,
    .view-details-btn {
        min-height: 40px;
        padding-top: 8px;
        padding-bottom: 8px;
        font-size: 14px;
    }

    /* filter-buttons row: keep buttons at natural pill size */
    .filter-toggle-btn {
        width: auto;
        padding: 7px 16px;
    }

    .filter-buttons {
        flex-wrap: nowrap;
        align-items: center;
    }

    .filter-buttons .reset-btn,
    .filter-buttons .btn {
        width: auto !important;
        flex: 0 0 auto;
        height: 44px !important;
        padding: 0 18px !important;
        font-size: 0.9em !important;
        line-height: 1 !important;
        box-sizing: border-box;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px;
        margin: 0;
    }
    
    .search_result {
        flex-direction: row;
        gap: 8px;
        padding: 8px 0;
        margin: 10px 0;
    }
    
    .search_result h3 {
        font-size: 0.95em;
        margin: 0;
    }
    
    .truck-list {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .truck-card {
        padding: 10px;
        border-radius: 24px;
    }

    /* Portrait aspect ratio for phone-shot images */
    .truck-image-container {
        aspect-ratio: 3 / 4;
    }
    
    .truck-card:hover {
        transform: translateY(-5px);
    }
    
    .truck-card:hover .truck-image {
        transform: none;
    }
    
    .truck-details {
        gap: 2px;
    }
    
    .truck-details h4,
    .truck-pricing h4 {
        font-size: 16px;
        margin-top: 10px;
    }

    .truck-details h5,
    .truck-pricing h5 {
        font-size: 15px;
    }

    .truck-details p {
        font-size: 14px;
        margin: 3px 0;
    }
    
    .footer {
        padding: 22px 0 calc(96px + env(safe-area-inset-bottom, 0px)) 0;
        font-size: 12px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .footer-section ul li {
        margin-bottom: 5px;
    }
    
    .footer-section p {
        margin: 3px 0;
        font-size: 11px;
    }
    
    .footer-section .social-icons a img {
        width: 20px;
        height: 20px;
    }
    
    .footer-bottom {
        margin-top: 15px;
        padding-top: 8px;
        font-size: 10px;
    }
}

/* Small mobile phones (up to 400px) */
@media (max-width: 400px) {

    .logo {
        width: 100px;
        height: 58px;
        object-fit: contain;
        margin-right: 0;
    }
    
    .hero {
        height: 30vh;
    }
    
    .hero-content h1 {
        font-size: clamp(1em, 5vw, 1.5em);
    }
    
    .truck-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .truck-card {
        padding: 10px;
        border-radius: 24px;
    }

}

.form-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.10);
    padding: 16px;
    margin-bottom: 16px;
}
.form-card h3 {
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
}

.dash-page {
    background: var(--page-bg);
}

.dash-main {
    max-width: 1700px;
    margin: 0 auto;
    padding: 110px 20px 28px;
}

.dash-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 12px;
}

.dash-title {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    color: #ffffff;
}

.dash-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .dash-main {
        padding: 80px 14px 22px;
    }
    .dash-topbar {
        gap: 8px;
    }
    .dash-topbar-right {
        gap: 8px;
    }
    .dash-search {
        width: 140px;
    }
    .dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .dash-kpi-value {
        font-size: 22px;
    }
    .dash-charts {
        grid-template-columns: 1fr;
    }
    .dash-chart-card {
        height: 260px;
    }
    .dash-chart-canvas {
        height: calc(260px - 54px) !important;
    }
    .dash-pie-wrap {
        height: calc(260px - 54px);
    }
}

.dash-menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 0;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.dash-menu-toggle span,
.dash-menu-toggle span::before,
.dash-menu-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    position: relative;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dash-menu-toggle span::before,
.dash-menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.dash-menu-toggle span::before {
    top: -5px;
}

.dash-menu-toggle span::after {
    top: 5px;
}

.dash-menu-toggle.is-open span {
    transform: rotate(45deg);
}

.dash-menu-toggle.is-open span::before {
    transform: rotate(-90deg);
    top: 0;
}

.dash-menu-toggle.is-open span::after {
    opacity: 0;
}

/* Off-canvas backdrop */
.dash-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dash-menu-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

/* Off-canvas panel — sits independently at z-index 981 */
.dash-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 80vw);
    background: #1b0606;
    box-shadow: -18px 0 45px rgba(0, 0, 0, 0.78);
    padding: 18px 18px 20px;
    transform: translateX(100%);
    transition: transform 0.34s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 981;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.dash-menu-panel.is-open {
    transform: translateX(0);
}

.dash-menu-title {
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 6px;
}

.dash-menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-menu-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(61, 26, 26, 0.95);
}

.dash-menu-links a:hover {
    background: rgba(196, 30, 58, 0.9);
}

.dash-search {
    width: 280px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: var(--card-inner-bg);
    color: #ffffff;
    padding: 10px 14px;
    outline: none;
    font-weight: 600;
}

.dash-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--card-inner-bg);
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.65);
}

.dash-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 900;
    display: grid;
    place-items: center;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.dash-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    padding: 18px 18px;
}

.dash-kpi-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dash-kpi-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
}

.dash-kpi-value {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.1;
    margin-top: 6px;
    color: #ffffff;
}

.dash-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--brand-primary-soft-15);
    color: var(--brand-primary);
}

.dash-kpi-icon.blue {
    background: rgba(43, 92, 255, 0.12);
    color: #2b5cff;
}

.dash-kpi-icon.green {
    background: rgba(24, 184, 120, 0.12);
    color: #18b878;
}

.dash-kpi-icon.purple {
    background: rgba(140, 92, 246, 0.12);
    color: #8c5cf6;
}

.dash-charts {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.dash-chart-card {
    height: 350px;
}

.dash-chart-canvas {
    width: 100% !important;
    height: calc(350px - 54px) !important;
    display: block;
}

.dash-card-title {
    font-weight: 900;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.dash-pie-wrap {
    width: 100%;
    max-width: 320px;
    height: calc(350px - 54px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#stockPie {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0 auto;
}

.dash-table-title {
    font-weight: 900;
    margin: 18px 0 10px;
    font-size: 18px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    background: var(--card-inner-bg);
}

.activity-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #18b878;
    margin-top: 6px;
    flex: 0 0 auto;
}

.activity-title {
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
    display: block;
    text-decoration: none;
}

.activity-sub {
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    font-size: 12px;
    margin-top: 2px;
}

.activity-price {
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .dash-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dash-charts {
        grid-template-columns: 1fr;
    }
    .dash-search {
        width: 200px;
    }
}

@media (max-width: 576px) {
    .activity-title {
        max-width: 220px;
    }
    .dash-main {
        padding: 16px 14px 22px;
    }
    .dash-grid {
        grid-template-columns: 1fr;
    }
    .dash-search {
        display: none;
    }
}

.lists-container {
    padding-top: 110px;
}

.lists-container .truck-sub-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
}

.lists-container .truck-unit-label {
    margin: 0;
}

@media (max-width: 600px) {
    .lists-container {
        padding-top: 60px;
    }
}

.lists-filter-search {
    width: 100%;
}

.lists-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 20px;
    margin-top: 14px;
    align-items: end;
}

@media (max-width: 1024px) {
    .lists-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lists-sort-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
    flex-wrap: wrap;
}

.lists-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.lists-sort-row .sort-select {
    width: 20%;
    min-width: 180px;
    max-width: 260px;
}

.direction-control {
    display: flex;
    gap: 10px;
    align-items: center;
}

.direction-btn {
    width: 42px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #fff;
    font-weight: 900;
    cursor: pointer;
}

.direction-btn.is-active {
    border-color: var(--brand-primary-soft-60);
    box-shadow: 0 0 0 3px var(--brand-primary-soft-15);
}

.lists-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.lists-tab {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px 12px 4px;
    border-radius: 0;
    background: transparent;
    color: rgba(255,255,255,0.6);
    font-family: inherit;
    font-weight: 700;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.lists-tab.is-active {
    color: #ffffff;
    border-bottom-color: var(--brand-primary);
    font-weight: 900;
}

.lists-tab-count {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lists-tab.is-active .lists-tab-count {
    border-color: var(--brand-primary-soft-45);
    color: #ffffff;
    background: var(--brand-primary-soft-15);
}

@media (max-width: 1024px) {
    .truck-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .lists-container .truck-list {
        grid-template-columns: 1fr;
    }

    .lists-actions {
        width: 100%;
        gap: 8px;
    }

    .lists-actions .lists-action-btn {
        flex: 1 1 33.333%;
        width: 33.333%;
        justify-content: center;
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .trucks-index-page .truck-list {
        grid-template-columns: 1fr;
    }
}

.truck-image-slider {
    display: flex;
    width: 100%;
    transition: transform 0.35s ease;
}
.truck-image-slider img {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    display: block;
}

.truck-show-page .detail-title {
    margin-top: 0;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


.truck-show-page .detail-unit {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.75);
}
.truck-show-page .detail-price {
    font-size: 26px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.86);
    margin-top: 4px;
}
.truck-show-page .detail-meta {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}
.truck-show-page .detail-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.10);
    padding: 16px;
}
.truck-show-page .detail-section {
    margin-top: 18px;
}
.truck-show-page .detail-section h3 {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 10px 0;
}
.truck-show-page .spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
@media (max-width: 992px) {
    .truck-show-page .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .truck-show-page .spec-grid { grid-template-columns: 1fr; }
}
.truck-show-page .spec-item {
    background: var(--card-inner-bg);
    border-radius: 10px;
    padding: 10px 12px;
}
.truck-show-page .spec-item small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 11px;
    margin-bottom: 2px;
}
.truck-show-page .spec-item div {
    font-weight: 700;
    color: #ffffff;
    word-break: break-word;
}
/* Full-width gallery on show page (horizontal swipe, ~80vh) */
.truck-show-gallery {
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.truck-show-gallery-track {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 80vh;
    max-height: 820px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: inherit;
}
.truck-show-gallery-track::-webkit-scrollbar {
    display: none;
}

.truck-show-gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: inherit;
    overflow: hidden;
}

.truck-show-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

/* Gallery chevrons */
.truck-show-gallery {
    position: relative;
}
.show-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(6px);
}
.show-gallery-btn:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.08);
}
.show-gallery-btn .lc-icon {
    width: 22px;
    height: 22px;
}
.show-gallery-prev { left: 14px; }
.show-gallery-next { right: 14px; }

/* Gallery dots */
.show-gallery-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 10;
}
.show-gallery-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
}
.show-gallery-dot.is-active {
    background: #fff;
    transform: scale(1.4);
}

.truck-show-page .sidebar-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    border: 0;
}
.truck-show-page .confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.truck-show-page .confirm-modal {
    width: 100%;
    max-width: 860px;
    background: #1a0505;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.40);
    padding: 22px;
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    align-items: center;
}
.truck-show-page .confirm-icon {
    width: 110px;
    height: 110px;
    border-radius: 24px;
    background: var(--brand-primary-soft-22);
    display: grid;
    place-items: center;
    margin-left: 8px;
}
.truck-show-page .confirm-icon img {
    width: 46px;
    height: 46px;
}
.truck-show-page .confirm-title {
    font-size: 26px;
    font-weight: 900;
    margin: 0;
    line-height: 1.05;
    color: #ffffff;
}
.truck-show-page .confirm-sub {
    margin-top: 6px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    font-size: 15px;
}
.truck-show-page .confirm-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 8px;
}
.truck-show-page .confirm-actions .reset-btn,
.truck-show-page .confirm-actions .btn {
    width: 100%;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.truck-show-page .confirm-actions .reset-btn {
    background: #F3F4F6;
}
@media (max-width: 700px) {
    .truck-show-page .confirm-modal {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .truck-show-page .confirm-icon {
        margin-left: 0;
    }
    .truck-show-page .confirm-title {
        font-size: 28px;
    }
    .truck-show-page .confirm-sub {
        font-size: 16px;
    }
    .truck-show-page .confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* Details page: recommendations grid = 3 across on desktop */
.truck-list--recommendations {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
    .truck-list--recommendations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .truck-list--recommendations { grid-template-columns: 1fr; }
}

.truck-edit-page {
    background: var(--page-bg);
    min-height: 100vh;
}

.truck-edit-page .edit-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}

.truck-edit-page .card {
    background: var(--card-bg);
    color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    padding: 18px;
    border: 0;
}

.truck-edit-page .left-title {
    color: #ffffff;
}

.truck-edit-page .left-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
}

.truck-edit-page .left-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.truck-edit-page .left-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    margin-top: 2px;
}

.truck-edit-page .media-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    overflow: hidden;
    background: #eef0f7;
}

.truck-edit-page .media-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.truck-edit-page .media-main .media-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 800;
    padding: 18px;
}

.truck-edit-page .media-main .media-empty svg {
    color: var(--brand-primary-soft-85);
}

.truck-edit-page .media-main img[src] + .media-empty {
    display: none;
}

.truck-edit-page .thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.truck-edit-page .thumb {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f8;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.truck-edit-page .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.truck-edit-page .thumb.is-active {
    outline: 3px solid var(--brand-primary-soft-45);
}

.truck-edit-page .thumb-actions {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 6px;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

.truck-edit-page .thumb-actions .left,
.truck-edit-page .thumb-actions .right {
    display: inline-flex;
    gap: 6px;
}

.truck-edit-page .action-pill {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 12px;
    border: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.10);
    color: rgba(0, 0, 0, 0.75);
    cursor: pointer;
}

.truck-edit-page .action-pill.is-on {
    background: var(--brand-primary);
    color: #fff;
}

.truck-edit-page .action-pill.is-danger {
    background: rgba(255, 77, 77, 0.92);
    color: #fff;
}

.truck-edit-page .thumb-upload {
    display: grid;
    place-items: center;
    color: rgba(0, 0, 0, 0.55);
    font-weight: 800;
    background: #fff5ec;
    border: 1px solid var(--brand-primary-soft-25);
}

.truck-edit-page .right-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.truck-edit-page .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.truck-edit-page .field label {
    font-size: 12px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.65);
}

.truck-edit-page .field input,
.truck-edit-page .field select,
.truck-edit-page .field textarea {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    padding: 11px 12px;
    font-weight: 700;
    outline: none;
    background: #fff;
}

.truck-edit-page .field textarea {
    resize: vertical;
    min-height: 92px;
}

.truck-edit-page .rt-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
    margin: 6px 0;
}

.truck-edit-page .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.truck-edit-page .toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.truck-edit-page .sold-toggle-label {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.truck-edit-page .toggle {
    position: relative;
    width: 54px;
    height: 30px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    cursor: pointer;
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.truck-edit-page .toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.truck-edit-page .toggle span {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: transform 160ms ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.truck-edit-page .toggle input:checked + span {
    transform: translateX(24px);
}

.truck-edit-page .toggle.is-on {
    background: var(--brand-primary-soft-55);
}

.truck-edit-page .actions-bottom {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.truck-edit-page .btn-primary-admin {
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 14px 26px var(--brand-primary-soft-30);
    cursor: pointer;
}

.truck-edit-page .btn-ghost {
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 900;
    background: #fff;
    color: rgba(0, 0, 0, 0.75);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.truck-edit-page .error-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    padding: 14px 18px;
    border: 1px solid rgba(255, 77, 77, 0.25);
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 16px;
}

.truck-edit-page .error-box ul {
    margin: 0;
}

@media (max-width: 1200px) {
    .truck-edit-page .edit-grid {
        grid-template-columns: 1fr;
    }
    .truck-edit-page .thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .truck-edit-page .thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .truck-edit-page .row2 {
        grid-template-columns: 1fr;
    }
}

.manifacturers-page .man-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
    align-items: start;
}
@media (max-width: 1024px) {
    .manifacturers-page .man-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 576px) {
    .manifacturers-page .man-grid { grid-template-columns: 1fr; }
}
.manifacturers-page .man-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.10);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.manifacturers-page .man-name {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin: 0;
}
.manifacturers-page .man-meta {
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    font-size: 12px;
}
.manifacturers-page .man-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.manifacturers-page .man-actions a.btn {
    text-decoration: none;
}
.manifacturers-page .man-actions form {
    display: inline;
}
.manifacturers-page .man-actions .btn,
.manifacturers-page .man-actions .reset-btn {
    padding: 7px 14px;
    font-size: 13px;
}
.manifacturers-page .man-accordion {
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}
.manifacturers-page .man-accordion summary {
    list-style: none;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}
.manifacturers-page .man-accordion summary::-webkit-details-marker {
    display: none;
}
.manifacturers-page .man-accordion .caret {
    color: rgba(255,255,255,0.5);
    transition: transform 0.25s ease;
    display: inline-flex;
}
.manifacturers-page .man-accordion[open] .caret {
    transform: rotate(180deg);
}
.manifacturers-page .model-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.manifacturers-page .model-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.07);
    background: var(--card-inner-bg);
}
.manifacturers-page .model-name {
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.manifacturers-page .model-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex: 0 0 auto;
}
.manifacturers-page .model-actions .btn,
.manifacturers-page .model-actions .reset-btn {
    padding: 5px 12px;
    font-size: 13px;
}
.manifacturers-page .man-add-model {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
}
.manifacturers-page .man-add-model .form-control {
    min-width: 180px;
}
.manifacturers-page .rt-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.manifacturers-page .rt-modal {
    width: 100%;
    max-width: 620px;
    background: #1a0505;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    padding: 18px;
}
.manifacturers-page .rt-modal label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.manifacturers-page .rt-modal .form-control {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 10px;
}
.manifacturers-page .rt-modal .form-control:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: var(--brand-primary-soft-55);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--brand-primary-soft-15);
}
.manifacturers-page .rt-modal-title {
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 10px 0;
    color: #ffffff;
}
.manifacturers-page .rt-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.manifacturers-page .confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 18px;
}
.manifacturers-page .confirm-modal {
    width: 100%;
    max-width: 760px;
    background: #1a0505;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(0,0,0,0.40);
    padding: 18px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: center;
}
.manifacturers-page .confirm-icon {
    width: 92px;
    height: 92px;
    border-radius: 22px;
    background: var(--brand-primary-soft-22);
    display: grid;
    place-items: center;
    margin-left: 6px;
}
.manifacturers-page .confirm-icon img {
    width: 40px;
    height: 40px;
}
.manifacturers-page .confirm-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    color: #ffffff;
}
.manifacturers-page .confirm-sub {
    margin-top: 6px;
    color: rgba(255,255,255,0.6);
    font-weight: 700;
    font-size: 14px;
}
.manifacturers-page .confirm-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 6px;
}
.manifacturers-page .confirm-actions .reset-btn,
.manifacturers-page .confirm-actions .btn {
    width: 100%;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
@media (max-width: 700px) {
    .manifacturers-page .confirm-modal {
        grid-template-columns: 1fr;
    }
    .manifacturers-page .confirm-icon {
        margin-left: 0;
    }
    .manifacturers-page .confirm-actions {
        grid-template-columns: 1fr;
    }
}

/* ── Bootstrap modal dark theme override ── */
.modal-content {
    background: #1a0505;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.modal-header .modal-title {
    color: #ffffff;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    background: transparent;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
}

.modal-content .form-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.modal-content .form-control,
.modal-content .form-select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 10px;
}

.modal-content .form-control:focus,
.modal-content .form-select:focus {
    background: rgba(0, 0, 0, 0.45);
    border-color: var(--brand-primary-soft-55);
    color: #ffffff;
    box-shadow: 0 0 0 3px var(--brand-primary-soft-15);
}

.modal-content .form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}