:root {
    /* Color Variables */
    --black-main: #0a0a0a;
    --black-dark: #000000;
    --black-light: #1a1a1a;
    --white-pure: #ffffff;
    --white-off: #f8f9fa;
    --white-warm: #f5f5f5;
    --gold-primary: #d4af37;
    --gold-secondary: #ffd700;
    --gold-dark: #b8860b;
    --gold-light: #f4e4a6;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #ffd700 50%, #b8860b 100%);
    --gray-dark: #2d2d2d;
    --gray-medium: #666666;
    --gray-light: #e0e0e0;
    
    /* Shadow Variables */
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Spacing & Effects */
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Mapped Variables */
    --bg-body: var(--white-off);
    --bg-card: var(--white-pure);
    --text-main: var(--black-main);
    --text-muted: var(--gray-medium);
    --border-light: var(--gray-light);
    --primary: var(--gold-primary);
    --primary-dark: var(--gold-dark);
    --primary-light: var(--gold-light);
}

/* Global Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: var(--transition);
}
img { max-width: 100%; }

/* Utility Classes */
.text-gold { color: var(--gold-primary) !important; }
.gold-link { color: var(--gold-primary) !important; }
.gold-link:hover { color: var(--gold-dark) !important; }
.border-light { border-color: var(--border-light) !important; }

/* --- Shared Component Utilities --- */
.section-title {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.section-title i {
    color: var(--gold-primary);
}

.h-100-link { 
    display: block; 
    height: 100%; 
}

/* --- Text & SEO Content Styles --- */
.text-content h2 { 
    font-size: 1.75rem; 
    margin-bottom: 1rem; 
    font-weight: 700; 
    color: var(--black-main);
}

.text-content p { 
    color: var(--text-muted); 
    margin-bottom: 1.2rem; 
}

.feature-box { 
    background: var(--bg-card); 
    padding: 2rem; 
    border-radius: var(--radius-xl); 
    height: 100%; 
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.feature-box:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-medium);
}

.feature-icon { 
    font-size: 2rem; 
    color: var(--gold-primary); 
    margin-bottom: 1rem; 
    display: block; 
}

/* =========================================
   1. BRAND TILES
   ========================================= */
.brand-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.brand-logo {
    height: 40px;
    width: 80%;
    object-fit: contain;
    transition: var(--transition);
}

.brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

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


.brand-card:hover .brand-name { 
    color: var(--gold-primary); 
}

/* =========================================
   2. CATEGORY CARDS
   ========================================= */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cat-icon {
    width: 48px;
    height: 48px;
    background: var(--gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.25rem;
    transition: var(--transition);
}

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

.category-card:hover .cat-icon {
    background: var(--gold-gradient);
    color: var(--white-pure);
}

/* =========================================
   3. BODY TYPE PILLS
   ========================================= */
.body-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    height: 100%;
}

.body-type-card i {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: var(--transition);
}

.body-type-card:hover {
    border-color: var(--gold-primary);
    background: var(--gold-light);
    color: var(--gold-dark);
    transform: translateX(4px);
}

.body-type-card:hover i { 
    color: var(--gold-primary); 
}

/* =========================================
   4. CAR LISTING CARDS
   ========================================= */
.car-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gold-primary);
}

.car-img-wrapper {
    position: relative;
    padding-top: 60%; /* 5:3 Aspect Ratio */
    overflow: hidden;
    background-color: var(--white-warm);
}

.car-img-wrapper img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.car-badge {
    position: absolute;
    top: 12px; 
    left: 12px;
    background: var(--gold-gradient);
    color: var(--black-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-light);
    z-index: 2;
}

.car-fav-btn {
    position: absolute;
    top: 12px; 
    right: 12px;
    width: 32px; 
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    z-index: 2;
}

.car-fav-btn:hover { 
    color: var(--gold-primary); 
    transform: scale(1.1); 
    background: var(--white-pure);
}

.car-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.car-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.car-title a:hover {
    color: var(--gold-primary);
}

.car-category {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 4px;
}

.spec-icon { 
    font-size: 1.1rem; 
    color: var(--gold-primary); 
}

.car-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price-amount { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--gold-primary); 
}

.price-period { 
    font-size: 0.75rem; 
    color: var(--text-muted); 
}

.btn-rent {
    background: var(--gold-gradient);
    color: var(--black-dark);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-rent:hover {
    background: var(--gold-dark);
    color: var(--white-pure);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* =========================================
   5. BLOG CARDS
   ========================================= */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gold-primary);
}

.blog-img-wrapper {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
}

.blog-img-wrapper img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img-wrapper img { 
    transform: scale(1.05); 
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    color: var(--black-main);
}

/* Accordion Overrides */
.accordion-button:not(.collapsed) {
    background-color: var(--gold-light);
    color: var(--gold-dark);
    box-shadow: none;
}

.accordion-button:focus { 
    box-shadow: none; 
    border-color: var(--gold-primary); 
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d4af37'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23b8860b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.25rem;
    }
    
    .feature-box {
        padding: 1.5rem;
    }
    
    .car-specs {
        grid-template-columns: repeat(3, 1fr);
    }
}