:root {
    --primary-color: #00674c;
    --primary-light: #008f6b;
    --primary-dark: #004231;
    --secondary-color: #f8c12a; /* A complementary yellow/gold for accents */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-dark);
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}
.navbar-brand img {
    height: 50px;
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background-color: var(--text-dark);
}
.carousel-item {
    height: 70vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}
.hero-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-top: -60px;
    position: relative;
    z-index: 10;
}
.search-box .form-control, .search-box .form-select {
    border-radius: 5px;
    border: 1px solid var(--border-color);
    padding: 12px 15px;
}

/* Filters */
.filter-type-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}
.filter-type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}
.filter-type-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Brands Slider */
.brand-logo {
    opacity: 0.6;
    transition: var(--transition);
    height: 60px;
    width: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    cursor: pointer;
    display: inline-block;
}
.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Vehicle Cards */
.vehicle-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
    height: 100%;
}
.vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.vehicle-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}
.vehicle-card:hover .card-img-top {
    transform: scale(1.05);
}
.vehicle-card .img-wrapper {
    overflow: hidden;
    position: relative;
}
.vehicle-card .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    font-weight: 500;
    padding: 8px 12px;
}
.vehicle-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vehicle-card .price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}
.vehicle-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
    color: #666;
    font-size: 0.85rem;
}

/* Calculator Section */
.calculator-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 80px 0;
    border-radius: 20px;
    margin: 60px 0;
    box-shadow: var(--shadow-lg);
}
.calc-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    padding: 30px;
}
.calc-result {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Vehicle Single Page */
.vehicle-gallery-full {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 60vh;
    min-height: 400px;
    width: 100%;
}
.gallery-main {
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}
.gallery-side {
    position: relative;
    overflow: hidden;
}
.gallery-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-more {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-more img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition);
}
.gallery-more:hover .gallery-overlay {
    background: rgba(0, 103, 76, 0.8);
}

.vehicle-details-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.feature-pill {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 8px 15px;
    display: inline-block;
    margin: 5px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: #ccc;
    padding: 60px 0 20px;
}
footer h5 {
    color: white;
    margin-bottom: 20px;
}
footer a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}
footer a:hover {
    color: var(--secondary-color);
}
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    transition: var(--transition);
}
.social-icon:hover {
    background: var(--primary-color);
    color: white;
}
