@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* variables de diseño premium */
:root {
    --primary: #E32619;
    --primary-hover: #C51D12;
    --primary-light: #FDE8E7;
    --dark: #18191B;
    --dark-grey: #2C2E33;
    --medium-grey: #6E727A;
    --light-grey: #F4F5F7;
    --border: #E8EAED;
    --white: #FFFFFF;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--dark-grey);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-header);
    color: var(--dark);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-header);
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--dark-grey);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover::after,
.nav-links li.active a::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-admin-nav {
    background-color: var(--dark);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
}

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

/* Hamburguesa móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Banner Central / Hero */
.hero {
    position: relative;
    background: linear-gradient(135deg, #18191B 0%, #2C2E33 100%);
    padding: 120px 0;
    color: var(--white);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(227, 38, 25, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    color: var(--white);
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-content p {
    font-size: 18px;
    color: var(--medium-grey);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-family: var(--font-header);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: var(--light-grey);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}

/* Buscador avanzado tipo Wigo */
.search-box-container {
    max-width: 900px;
    margin: -40px auto 60px;
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    position: relative;
    z-index: 100;
}

.search-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.search-tab {
    padding: 8px 16px;
    font-weight: 600;
    color: var(--medium-grey);
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.search-tab.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 16px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--medium-grey);
    text-transform: uppercase;
}

.form-group select, .form-group input {
    width: 100%;
    padding: 12px;
    background-color: var(--light-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--dark-grey);
}

/* Sección de Marcas (Horizontal) */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--medium-grey);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.brand-card {
    background-color: var(--light-grey);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    cursor: pointer;
}

.brand-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    background-color: var(--white);
    transform: translateY(-4px);
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand-logo-container {
    width: 80px;
    height: 80px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.brand-logo-container svg, .brand-logo-container img {
    max-width: 60%;
    max-height: 60%;
}

.brand-details h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.brand-details p {
    font-size: 14px;
    color: var(--medium-grey);
}

.brand-card .arrow-icon {
    width: 44px;
    height: 44px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.brand-card:hover .arrow-icon {
    background-color: var(--primary);
    color: var(--white);
}

/* Grilla de Promociones de Venta (6 Cards) */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.car-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.car-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

.car-image-container {
    height: 220px;
    overflow: hidden;
    background-color: var(--light-grey);
    position: relative;
}

.car-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.car-card:hover .car-image-container img {
    transform: scale(1.05);
}

.car-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-category {
    font-size: 13px;
    color: var(--medium-grey);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
}

.car-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.car-desc {
    font-size: 14px;
    color: var(--medium-grey);
    margin-bottom: 20px;
    flex-grow: 1;
}

.car-price {
    font-family: var(--font-header);
    margin-bottom: 20px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.price-label {
    font-size: 12px;
    color: var(--medium-grey);
    display: block;
}

.price-values {
    font-size: 18px;
    font-weight: 800;
    color: var(--dark);
}

.price-values span {
    color: var(--medium-grey);
    font-weight: 400;
    font-size: 14px;
    margin: 0 4px;
}

.car-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-card-quote {
    background-color: var(--light-grey);
    color: var(--dark);
    font-size: 13px;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.btn-card-quote:hover {
    background-color: var(--border);
}

.btn-card-detail {
    background-color: var(--primary);
    color: var(--white);
    font-size: 13px;
    padding: 10px;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

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

/* Sección de Características */
.bg-light {
    background-color: var(--light-grey);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background-color: var(--white);
    padding: 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--medium-grey);
    font-size: 14px;
}

/* Banner de Anuncios */
.ad-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 320px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.ad-banner-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.ad-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: center;
    padding: 0 64px;
}

.ad-banner-content {
    max-width: 500px;
    color: var(--white);
}

.ad-banner-content h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ad-banner-content p {
    margin-bottom: 24px;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

/* Promociones de Servicio */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Banners Publicitarios (Doble) */
.double-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

.pub-banner {
    height: 240px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.pub-banner-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.pub-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: flex-end;
    padding: 32px;
}

.pub-banner-content {
    color: var(--white);
}

.pub-banner-content h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 8px;
}

.pub-banner-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Vista de Filtros (autos.php) */
.filters-header {
    background-color: var(--light-grey);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
    position: relative;
}

.brand-banner-area {
    margin-top: 24px;
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.brand-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: center;
    padding: 48px;
    color: var(--white);
}

.brand-banner-content h1 {
    color: var(--white);
    font-size: 40px;
    margin-bottom: 12px;
}

.brand-banner-content p {
    max-width: 600px;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
}

.filters-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 48px;
}

.filters-sidebar {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    height: fit-content;
}

details.filter-section {
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    display: block;
}

details.filter-section:last-child {
    border-bottom: none;
}

details.filter-section summary {
    list-style: none;
    cursor: pointer;
    outline: none;
}

details.filter-section summary::-webkit-details-marker {
    display: none;
}

details.filter-section summary h4 {
    font-size: 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-grey);
    font-family: var(--font-header);
    font-weight: 600;
}

details.filter-section summary h4 .toggle-arrow {
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

details[open].filter-section summary h4 .toggle-arrow {
    transform: rotate(45deg);
}

details.filter-section .checkbox-group {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

details.filter-section .checkbox-group::-webkit-scrollbar {
    width: 4px;
}
details.filter-section .checkbox-group::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--dark-grey);
    cursor: pointer;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.price-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-range-inputs input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.btn-apply-filters {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    margin-top: 16px;
}

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

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.results-count {
    font-size: 15px;
    color: var(--medium-grey);
}

.sort-select select {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--white);
    color: var(--dark-grey);
    cursor: pointer;
}

.autos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-weight: 600;
    transition: var(--transition);
}

.page-link:hover, .page-link.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Vista de Detalle (auto.php) */
.breadcrumbs {
    padding: 24px 0;
    font-size: 14px;
    color: var(--medium-grey);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs span {
    margin: 0 8px;
}

.car-detail-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    margin-bottom: 64px;
}

.car-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--light-grey);
    border: 1px solid var(--border);
}

.car-main-img {
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-main-img img {
    max-height: 90%;
    object-fit: contain;
}

.car-detail-info {
    display: flex;
    flex-direction: column;
}

.car-detail-info h1 {
    font-size: 40px;
    margin-bottom: 8px;
}

.car-detail-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.detail-badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.detail-badge.category {
    background-color: var(--light-grey);
    color: var(--dark-grey);
}

.detail-badge.status {
    background-color: var(--primary-light);
    color: var(--primary);
}

.detail-price-box {
    background-color: var(--light-grey);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
}

.detail-price-box .price-usd {
    font-family: var(--font-header);
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.detail-price-box .price-pen {
    font-size: 20px;
    color: var(--medium-grey);
    margin-top: 4px;
}

.spec-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.spec-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--white);
}

.spec-pill svg {
    color: var(--primary);
    flex-shrink: 0;
}

.spec-label {
    font-size: 11px;
    color: var(--medium-grey);
    text-transform: uppercase;
    display: block;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Modal / Formulario de Cotización */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    transform: translateY(-20px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--medium-grey);
}

.modal-close:hover {
    color: var(--dark);
}

.modal h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal p {
    color: var(--medium-grey);
    font-size: 14px;
    margin-bottom: 24px;
}

.form-row {
    margin-bottom: 16px;
}

.form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

/* Panel de Administración Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background-color: var(--dark);
    color: var(--white);
    padding: 32px 0;
    flex-shrink: 0;
}

.admin-sidebar .logo {
    color: var(--white);
    padding: 0 24px;
    margin-bottom: 40px;
}

.admin-menu {
    list-style: none;
}

.admin-menu-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    border-left: 4px solid transparent;
}

.admin-menu-item a:hover, .admin-menu-item.active a {
    color: var(--white);
    background-color: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}

.admin-content {
    flex-grow: 1;
    background-color: var(--light-grey);
    padding: 48px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.admin-card {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info h5 {
    font-size: 13px;
    color: var(--medium-grey);
    text-transform: uppercase;
}

.stat-info span {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    font-family: var(--font-header);
}

/* Tablas Administrativas */
.admin-table-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background-color: var(--white);
    padding: 16px 24px;
    font-weight: 600;
    font-size: 14px;
    color: var(--medium-grey);
    border-bottom: 2px solid var(--border);
}

.admin-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    vertical-align: middle;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table img {
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-actions {
    display: flex;
    gap: 12px;
}

.btn-edit {
    color: #3182ce;
    font-weight: 600;
    cursor: pointer;
}

.btn-delete {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--medium-grey);
    font-size: 14px;
    margin-bottom: 24px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--medium-grey);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--medium-grey);
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .promo-grid, .features-grid, .services-grid, .autos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filters-layout {
        grid-template-columns: 1fr;
    }
    .car-detail-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .hero-content h1 {
        font-size: 36px;
    }
    .search-form {
        grid-template-columns: 1fr;
    }
    .brands-grid, .double-banners, .footer-grid {
        grid-template-columns: 1fr;
    }
    .promo-grid, .features-grid, .services-grid, .autos-grid {
        grid-template-columns: 1fr;
    }
    .ad-banner-overlay {
        padding: 0 24px;
    }
    .ad-banner-content h2 {
        font-size: 28px;
    }
}
