/**
 * American TGB — Modern Theme Design System
 * Responsive: mobile-first, tablet & desktop
 */

:root {
    --at-primary: #fc0012;
    --at-primary-dark: #c8000e;
    --at-primary-light: #ff3344;
    --at-dark: #0d0d0d;
    --at-dark-soft: #1a1a1a;
    --at-gray-900: #212121;
    --at-gray-700: #4a4a4a;
    --at-gray-500: #6b7280;
    --at-gray-300: #d1d5db;
    --at-gray-100: #f3f4f6;
    --at-white: #ffffff;
    --at-surface: #fafafa;

    --at-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --at-radius-sm: 8px;
    --at-radius-md: 12px;
    --at-radius-lg: 20px;
    --at-radius-xl: 28px;

    --at-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --at-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --at-shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --at-shadow-primary: 0 8px 24px rgba(252, 0, 18, 0.25);

    --at-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --at-header-height: 72px;
    --at-section-py: clamp(3rem, 6vw, 6rem);
    --at-container-px: clamp(1rem, 3vw, 1.5rem);
}

/* ── Base ── */
body {
    font-family: var(--at-font);
    color: var(--at-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--at-primary);
    color: var(--at-white);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    letter-spacing: -0.02em;
    font-weight: 700;
}

.text-primary { color: var(--at-primary) !important; }
.bg-primary { background-color: var(--at-primary) !important; }

/* ── Buttons ── */
.btn-primary {
    background: var(--at-primary);
    border-color: var(--at-primary);
    border-radius: var(--at-radius-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.6rem 1.4rem;
    transition: var(--at-transition);
    box-shadow: var(--at-shadow-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--at-primary-dark);
    border-color: var(--at-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(252, 0, 18, 0.35);
}

.btn-outline-primary {
    color: var(--at-primary);
    border-color: var(--at-primary);
    border-radius: var(--at-radius-sm);
    font-weight: 600;
    transition: var(--at-transition);
}

.btn-outline-primary:hover {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: var(--at-white);
}

.at-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--at-radius-sm);
    transition: var(--at-transition);
}

.at-btn--lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.at-btn--white {
    background: var(--at-white);
    color: var(--at-dark);
    border: none;
    box-shadow: var(--at-shadow-md);
}

.at-btn--white:hover {
    background: var(--at-gray-100);
    transform: translateY(-2px);
    box-shadow: var(--at-shadow-lg);
    color: var(--at-dark);
}

/* ── Header ── */
.rent-header.sticky-on .at_header_nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--at-shadow-md);
}

.rent-header-info {
    background: var(--at-dark) !important;
    position: relative;
    z-index: 3;
    overflow: hidden;
}

/* Contact row: readable on dark bar */
.rent-header-info .tp-info p {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 0.875rem;
    line-height: 1.3;
}

.rent-header-info .tp-info .icon-wrapper {
    color: var(--at-primary);
    flex-shrink: 0;
}

.rent-header-info .tp-info-wrapper {
    gap: clamp(1rem, 3vw, 2.5rem);
    flex-wrap: wrap;
}

/* Top bar auth — disable main.css btn-primary circle pseudo-element (causes red arc on hover) */
.rent-header-info .at-topbar-btn {
    position: relative;
    z-index: 1;
    border-radius: 50px;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    margin-left: 0.35rem;
    overflow: visible;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.rent-header-info .at-topbar-btn::before {
    content: none !important;
    display: none !important;
}

.rent-header-info .at-topbar-btn--signin {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}

.rent-header-info .at-topbar-btn--signin:hover,
.rent-header-info .at-topbar-btn--signin:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
    transform: none;
    box-shadow: none;
}

.rent-header-info .at-topbar-btn--signup {
    background: var(--at-primary);
    border: 1.5px solid var(--at-primary);
    color: #fff;
}

.rent-header-info .at-topbar-btn--signup:hover,
.rent-header-info .at-topbar-btn--signup:focus {
    background: var(--at-primary-dark);
    border-color: var(--at-primary-dark);
    color: #fff;
    transform: none;
    filter: brightness(1.05);
    box-shadow: 0 4px 14px rgba(252, 0, 18, 0.35);
}

.rent-header-info .btn-primary {
    border-radius: 50px;
    font-size: 0.8125rem;
    padding: 0.4rem 1rem;
    box-shadow: none;
}

.rent-header-info .btn-primary::before {
    content: none !important;
    display: none !important;
}

.rent-header-info .btn-primary:hover {
    transform: none;
    filter: brightness(1.1);
}

.at_header_nav {
    transition: background var(--at-transition), box-shadow var(--at-transition);
}

.rent-header.sticky-on .at_header_nav .at_nav_menu ul li > a {
    color: var(--at-dark);
}

/* Nav on red bar — override Bootstrap .nav-link red link color */
.rent-header:not(.sticky-on) .at_header_nav .at_nav_menu ul li > a.nav-link {
    color: #fff !important;
}

.rent-header .at_header_nav .at_nav_menu ul li > a {
    border-radius: 4px;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rent-header .at_header_nav .at_nav_menu ul li:hover > a,
.rent-header .at_header_nav .at_nav_menu ul li.current-menu-item > a,
.rent-header .at_header_nav .at_nav_menu ul li.current_page_item > a,
.rent-header .at_header_nav .at_nav_menu ul li.current-menu-ancestor > a,
.rent-header .at_header_nav .at_nav_menu ul li > a.is-active {
    color: #fff !important;
    background: rgba(0, 0, 0, 0.14);
    font-weight: 700;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.92);
}

.rent-header:not(.sticky-on) .at_header_nav .at_nav_menu ul li.current-menu-item > a,
.rent-header:not(.sticky-on) .at_header_nav .at_nav_menu ul li.current_page_item > a,
.rent-header:not(.sticky-on) .at_header_nav .at_nav_menu ul li > a.is-active:not(.is-ancestor) {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rent-header .at_header_nav .at_nav_menu ul li.has-submenu > a {
    padding-right: 1.5rem !important;
}

.rent-header .at_header_nav .at_nav_menu ul li.has-submenu::after {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    line-height: 1;
}

.rent-header .at_header_nav .at_nav_menu ul li:hover.has-submenu::after {
    color: rgba(255, 255, 255, 0.95);
}

.at_nav_menu ul li a {
    font-weight: 600;
    font-size: 0.9375rem;
    transition: color var(--at-transition);
}

/* Red hover on light / sticky header nav */
.rent-header.sticky-on .at_header_nav .at_nav_menu ul li:hover > a,
.rent-header.sticky-on .at_header_nav .at_nav_menu ul li.current-menu-item > a,
.rent-header.sticky-on .at_header_nav .at_nav_menu ul li.current_page_item > a,
.rent-header.sticky-on .at_header_nav .at_nav_menu ul li.current-menu-ancestor > a,
.rent-header.sticky-on .at_header_nav .at_nav_menu ul li > a.is-active {
    color: var(--at-primary) !important;
    background: rgba(252, 0, 18, 0.08);
    box-shadow: inset 0 -3px 0 var(--at-primary);
    font-weight: 700;
    text-shadow: none;
}

.rent-header.sticky-on .at_header_nav .at_nav_menu ul li.has-submenu::after {
    color: var(--at-dark);
}

.rent-header.sticky-on .at_header_nav .at_nav_menu ul li:hover.has-submenu::after {
    color: var(--at-primary);
}

.logo-wrapper img {
    max-height: 52px;
    width: auto;
    transition: transform var(--at-transition);
}

.logo-wrapper:hover img {
    transform: scale(1.02);
}

.header-toggle-btn,
.apt_search_toggle {
    border-radius: var(--at-radius-sm) !important;
    transition: var(--at-transition);
}

.header-toggle-btn:hover,
.apt_search_toggle:hover {
    background: var(--at-gray-100);
    color: var(--at-primary);
}

/* Mobile auth bar */
.at-mobile-auth {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--at-dark-soft);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.at-mobile-auth .btn {
    flex: 1;
    font-size: 0.8125rem;
    border-radius: 50px;
}

/* Mobile menu */
.mobile-menu {
    width: min(340px, 88vw);
    border-radius: 0 var(--at-radius-lg) var(--at-radius-lg) 0;
    box-shadow: var(--at-shadow-lg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu .close-menu {
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--at-gray-100);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--at-transition);
}

.mobile-menu .close-menu:hover {
    background: var(--at-primary);
    color: var(--at-white);
}

.mobile-menu-list li a {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--at-gray-100);
    transition: color var(--at-transition), padding-left var(--at-transition);
}

.mobile-menu-list li a:hover {
    color: var(--at-primary);
    padding-left: 0.5rem;
}

.mobile-menu .contact-info {
    padding: 1.5rem;
    background: var(--at-surface);
    border-radius: var(--at-radius-md);
    margin: 1rem;
}

.mobile-menu .contact-info h4 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--at-gray-500);
}

/* Off-canvas */
.at_offcanvus_menu {
    background: var(--at-white);
    box-shadow: var(--at-shadow-lg);
}

.at-offcanvus-close {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: var(--at-transition);
}

.at-offcanvus-close:hover {
    background: var(--at-primary);
    color: var(--at-white);
}

/* ── Hero (Home) ── */
.rent-hero {
    min-height: clamp(420px, 70vh, 720px);
    display: flex;
    align-items: center;
}

.rent-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 13, 13, 0.75) 0%,
        rgba(13, 13, 13, 0.45) 50%,
        rgba(252, 0, 18, 0.15) 100%
    );
    z-index: 1;
}

.rent-hero #hero-video,
.rent-hero .bg-video {
    object-fit: cover;
}

.rent-hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.rent-hero-content .at-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.rent-hero-content .at-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* ── Breadcrumb ── */
.breadcrumb-section {
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
    background-size: cover;
    background-position: center;
}

.breadcrumb-section::before {
    background: linear-gradient(135deg, rgba(13, 13, 13, 0.88) 0%, rgba(26, 26, 26, 0.75) 100%) !important;
}

.breadcrumb-section .tire-print {
    opacity: 0.12;
    max-height: 80%;
    object-fit: contain;
}

.breadcrumb-content-wrapper h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.breadcrumb {
    --bs-breadcrumb-divider: "›";
    font-size: 0.875rem;
}

.breadcrumb-item a {
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--at-transition);
}

.breadcrumb-item a:hover {
    opacity: 1;
    color: var(--at-primary) !important;
}

/* ── Section titles ── */
.title-style-2 .subtitle,
.at-subtitle,
.h4-subtitle {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.title-style-2 h2,
.section-title h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* ── Cards ── */
.at-content-card {
    background: var(--at-white);
    border-radius: var(--at-radius-lg);
    box-shadow: var(--at-shadow-md);
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.at-content-card .post-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--at-gray-700);
}

.at-content-card .post-body h2,
.at-content-card .post-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Product cards */
.h4-ft-product-card {
    border-radius: var(--at-radius-md) !important;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--at-shadow-sm);
    transition: transform var(--at-transition), box-shadow var(--at-transition);
}

.h4-ft-product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--at-shadow-lg);
}

.h4-ft-product-card .product-card-top img {
    transition: transform 0.5s ease;
}

.h4-ft-product-card:hover .product-card-top img {
    transform: scale(1.05);
}

.h4-ft-product-card .product-title {
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--at-dark);
    text-decoration: none;
    transition: color var(--at-transition);
}

.h4-ft-product-card .product-title:hover {
    color: var(--at-primary);
}

.h4-ft-product-card .at_product_action .cart-btn {
    background: var(--at-primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--at-transition);
}

.h4-ft-product-card:hover .at_product_action .cart-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Filter buttons */
.h4-filter-btn {
    border-radius: 50px !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
    transition: var(--at-transition);
    border: 1px solid var(--at-gray-300);
    background: transparent;
}

.h4-filter-btn.active,
.h4-filter-btn:hover {
    background: var(--at-primary) !important;
    border-color: var(--at-primary) !important;
    color: var(--at-white) !important;
}

/* Car slider */
.car-slider-single {
    border-radius: var(--at-radius-lg);
    overflow: hidden;
    box-shadow: var(--at-shadow-md);
}

.car-slider-item-left,
.car-slider-item-right {
    border-radius: var(--at-radius-md);
}

.car-info li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.car-info li i {
    border-radius: var(--at-radius-sm) !important;
    min-width: 44px;
    text-align: center;
}

/* ── Sidebar (products) ── */
.iv2_sidebar {
    border-radius: var(--at-radius-md) !important;
    box-shadow: var(--at-shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: calc(var(--at-header-height) + 1rem);
}

.iv2_sidebar_widget {
    padding: 1.25rem;
}

.iv2_sidebar_widget h6 {
    font-weight: 700;
    font-size: 0.9375rem;
}

.iv2_sidebar input[type="text"],
.iv2_sidebar .form-select {
    border-radius: var(--at-radius-sm);
    border: 1px solid var(--at-gray-300);
    padding: 0.65rem 1rem;
    transition: border-color var(--at-transition), box-shadow var(--at-transition);
}

.iv2_sidebar input:focus,
.iv2_sidebar .form-select:focus {
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px rgba(252, 0, 18, 0.12);
    outline: none;
}

#filter-btn {
    border-radius: var(--at-radius-sm);
    font-weight: 600;
}

/* ── Forms ── */
.contact-form-area,
.login-form-area,
.ct-form-wrapper input,
.ct-form-wrapper textarea,
.ct-form-wrapper select,
.login-form input {
    border-radius: var(--at-radius-sm) !important;
}

.contact-form-area,
.login-form-area {
    border-radius: var(--at-radius-lg) !important;
    box-shadow: var(--at-shadow-md);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.ct-form-wrapper input,
.ct-form-wrapper textarea,
.ct-form-wrapper select,
.login-form input {
    border: 1px solid var(--at-gray-300);
    padding: 0.75rem 1rem;
    transition: border-color var(--at-transition), box-shadow var(--at-transition);
}

.ct-form-wrapper input:focus,
.ct-form-wrapper textarea:focus,
.ct-form-wrapper select:focus,
.login-form input:focus {
    border-color: var(--at-primary);
    box-shadow: 0 0 0 3px rgba(252, 0, 18, 0.1);
}

/* ── Footer ── */
.footer-section .footer-wrapper {
    background: var(--at-dark) !important;
}

.footer-section .widget-title,
.footer-section .widget-title-large {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-nav li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.35rem 0;
    display: inline-block;
    transition: color var(--at-transition), transform var(--at-transition);
}

.footer-nav li a:hover {
    color: var(--at-primary);
    transform: translateX(4px);
}

.footer-section .phone-box .icon-wrapper {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
}

.footer-copyright a {
    color: var(--at-primary);
    text-decoration: none;
}

/* ── Flash sales ── */
.flash-sales-countdown-area {
    border-radius: 0;
}

.countdown-timer li {
    min-width: 72px;
    padding: 0.75rem;
    border-radius: var(--at-radius-sm) !important;
}

/* ── Tutorial / CTA section ── */
.tutorial-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.4) 100%);
    z-index: 1;
}

/* ── Page sections spacing ── */
.about-section,
.contact-section,
.login-section,
.inventory-details-area,
.h4-feature-product,
.car-slider {
    padding-top: var(--at-section-py);
    padding-bottom: var(--at-section-py);
}

.at-car-slider-img {
    height: min(500px, 42vh);
    object-fit: contain;
    width: 100%;
}

/* Side panel forms — background texture (footer-sidebars.css) */

/* ── News / Gallery cards ── */
.at-news-card,
.at-gallery-card {
    border-radius: var(--at-radius-md);
    overflow: hidden;
    box-shadow: var(--at-shadow-sm);
    transition: transform var(--at-transition), box-shadow var(--at-transition);
}

.at-news-card:hover,
.at-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--at-shadow-lg);
}

/* ── Login page ── */
.login-section .card {
    border: none;
    border-radius: var(--at-radius-xl);
    box-shadow: var(--at-shadow-lg);
    overflow: hidden;
}

.login-form-area h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
}

/* ── Scroll to top smooth ── */
html {
    scroll-behavior: smooth;
}

/* ── Find a Dealer map ── */
.map-area {
    border-radius: 0 0 var(--at-radius-lg) var(--at-radius-lg);
    overflow: hidden;
    box-shadow: var(--at-shadow-md);
}

.dealership-slider-area .card {
    border-radius: var(--at-radius-lg);
    box-shadow: var(--at-shadow-lg);
    border: none;
}

.gallery-card img {
    border-radius: var(--at-radius-sm);
    transition: transform var(--at-transition);
}

.gallery-card:hover img {
    transform: scale(1.03);
}

/* ── Catalog cards ── */
.page-catalog .card,
.at-catalog-card {
    border-radius: var(--at-radius-md);
    box-shadow: var(--at-shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform var(--at-transition), box-shadow var(--at-transition);
}

.page-catalog .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--at-shadow-lg);
}

/* Global loading overlay */
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.92);
    cursor: wait;
}

.overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border: 4px solid #e5e5e5;
    border-top-color: var(--at-primary);
    border-radius: 50%;
    animation: at-spin 0.8s linear infinite;
}

@keyframes at-spin {
    to {
        transform: rotate(360deg);
    }
}

:focus-visible {
    outline: 2px solid var(--at-primary);
    outline-offset: 2px;
}

.grid_btn {
    border: 1px solid var(--at-gray-300);
    background: var(--at-white);
    border-radius: var(--at-radius-sm);
    padding: 0.4rem 0.65rem;
    cursor: pointer;
    transition: var(--at-transition);
    color: var(--at-gray-500);
}

.grid_btn:hover,
.grid_btn.active {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: #fff !important;
}

/* Override main.css red-on-red active icon on products listing toolbar */
.iv_listing_filter_menu .grid_btn,
.eq_listing_filter_menu .grid_btn {
    color: var(--at-gray-500);
}

.iv_listing_filter_menu .grid_btn:hover,
.iv_listing_filter_menu .grid_btn.active,
.eq_listing_filter_menu .grid_btn:hover,
.eq_listing_filter_menu .grid_btn.active {
    background: var(--at-primary);
    border-color: var(--at-primary);
    color: #fff !important;
}

.iv_listing_filter_menu .grid_btn:hover i::before,
.iv_listing_filter_menu .grid_btn.active i::before,
.eq_listing_filter_menu .grid_btn:hover i::before,
.eq_listing_filter_menu .grid_btn.active i::before {
    color: #fff;
}

/* Dealer locator — Leaflet / OpenStreetMap */
.at-dealer-map {
    width: 100%;
    min-height: clamp(280px, 50vh, 500px);
    z-index: 1;
    border-radius: 0;
}

.at-dealer-map .leaflet-control-attribution {
    font-size: 10px;
}

.at-dealer-locator .map-area {
    position: relative;
}

.at-dealer-list .dealer-item {
    padding: 0.75rem 1rem;
    border: 1px solid var(--at-gray-300);
    border-radius: var(--at-radius-sm);
    background: var(--at-surface);
}

/* Product detail page */
.at-product-gallery-img {
    max-height: min(500px, 60vh);
    object-fit: contain;
    width: 100%;
}

.product_view_slider {
    text-align: left !important;
}

.product_feature_img_slider_2 img,
.product_thumb_slider_2 img {
    margin-left: 0 !important;
}

.main-next, .main-prev,
.thumb-next, .thumb-prev {
    color: var(--at-dark);
    z-index: 10;
}

.eq-about-navs .nav-link,
.eq-about-navs a {
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — mobile, tablet, desktop (public pages)
   ══════════════════════════════════════════════════════════ */

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

/* Tablet */
@media (max-width: 1199.98px) {
    .rent-hero-content h1,
    .rent-hero-content .display-3 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .at-dealer-locator .dealership-slider-area .card.container {
        max-width: calc(100% - 1.5rem);
    }
}

@media (max-width: 991.98px) {
    .rent-header-info .container > .row {
        align-items: center;
    }

    .rent-header-info .tp-info-wrapper {
        justify-content: flex-start;
        gap: 0.75rem 1.25rem;
    }

    .at_header_nav .col-6.col-lg-3 {
        flex: 0 0 auto;
        width: auto;
        max-width: 55%;
    }

    .at_header_nav .col-6.col-lg-9 {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    .at_header_right {
        gap: 0.35rem;
    }

    .header-toggle-btn,
    .apt_search_toggle {
        width: 40px;
        height: 40px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .iv_listing_filter_menu,
    .eq_listing_filter_menu,
    .h4-filter-btn-group {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .product-card-bottom .product-card,
    .iv2_product_card {
        margin-bottom: 1rem;
    }

    .at-dealer-locator .mt--80 {
        margin-top: -1.5rem !important;
    }

    .dealership-slider-area .card.container {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        padding-left: 0;
        padding-right: 0;
    }

    .at-content-card,
    .at-breadcrumb-wrap .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .footer-section .row > [class*="col-"] {
        margin-bottom: 1.75rem;
    }

    .footer-section .footer-widget {
        text-align: center;
    }

    .footer-section .footer-widget ul {
        padding-left: 0;
    }

    .rent-hero {
        min-height: clamp(340px, 50vh, 480px);
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .rent-header-info {
        padding: 0.5rem 0;
    }

    .rent-header-info .col-xl-9,
    .rent-header-info .col-lg-4,
    .rent-header-info .col-6 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .rent-header-info .tp-info-wrapper {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .rent-header-info .tp-info p {
        font-size: 0.75rem;
    }

    .at_header_nav {
        padding: 0.65rem 0;
    }

    .logo-wrapper img {
        max-height: 44px;
    }

    .apt_header_search {
        margin-left: 0.5rem !important;
    }

    .rent-hero {
        min-height: clamp(300px, 52vh, 420px);
    }

    .rent-hero-content .at-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .rent-hero-content .at-hero-actions .at-btn {
        justify-content: center;
        width: 100%;
    }

    .breadcrumb-section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .breadcrumb-section .tire-print {
        display: none;
    }

    .breadcrumb-content h1 {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .h4-filter-btn-group {
        gap: 0.5rem;
    }

    .h4-filter-btn {
        font-size: 0.8125rem;
        padding: 0.4rem 1rem;
    }

    .countdown-timer li {
        min-width: 60px;
        padding: 0.5rem;
    }

    .flash-controls {
        width: 36px;
        height: 36px;
    }

    .at-dealer-map {
        min-height: clamp(220px, 42vh, 360px);
    }

    .at-dealer-locator .row.g-2 > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .at-dealer-list.dealer-list {
        max-height: 320px !important;
    }

    .at-dealer-list .dealer-item {
        font-size: 0.9rem;
    }

    .iv2_sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .car-slider-single {
        flex-direction: column;
    }

    .car-slider-item-left img {
        height: auto !important;
        max-height: 280px;
    }

    .product_view_slider .swiper-slide img,
    .at-product-gallery-img {
        max-height: min(360px, 50vh);
    }

    .eq-about-navs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.35rem;
        padding-bottom: 0.25rem;
    }

    .eq-about-navs::-webkit-scrollbar {
        display: none;
    }

    .eq-about-navs .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .page-catalog .row > [class*="col-"],
    .page-products .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }

    .login-section .card-body {
        padding: 1.5rem 1.25rem;
    }

    .footer-wrapper .footer-bottom {
        text-align: center;
    }

    .footer-wrapper .footer-bottom .row {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    .logo-wrapper img {
        max-height: 38px;
    }

    .at-content-card {
        padding: 1.15rem;
        border-radius: var(--at-radius-md);
    }

    .product-card-bottom .card-feature-box {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card-bottom .icon-box {
        width: 100%;
        justify-content: center;
    }

    .grid_btn {
        padding: 0.35rem 0.55rem;
    }

    .dealership-slider-area .card-body {
        padding: 1rem 0.85rem;
    }

    .at-dealer-locator .mt--80 {
        margin-top: -0.75rem !important;
    }

    .mobile-menu {
        width: min(300px, 92vw);
    }

    .container,
    .container-fluid {
        padding-left: max(0.75rem, env(safe-area-inset-left, 0.75rem));
        padding-right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
    }
}

/* Small phones — safe areas */
@supports (padding: max(0px)) {
    @media (max-width: 575.98px) {
        .main-wrapper {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        .at-side-panel-tab--left {
            left: max(0.75rem, env(safe-area-inset-left));
        }

        .at-side-panel-tab--right {
            right: max(0.75rem, env(safe-area-inset-right));
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero-video,
    .bg-video,
    .tutorial-section .bg-video {
        display: none;
    }

    .rent-hero,
    .tutorial-section {
        background: var(--at-dark);
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
