:root {
    --bg-white: #FFFFFF;
    --text-black: #1A1A1A;
    --gold: #CFAE6E;
    --gold-dim: #8a754c;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    font-family: var(--font-sans);
    margin: 0;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: 0.3s; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; margin: 0 0 1rem 0; }

/* ... (Keep top of file the same) ... */

/* --- NAVIGATION --- */
nav {
    background-color: #FFF;
    border-bottom: 2px solid #CFAE6E;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; 
    letter-spacing: 2px; 
    color: #000; 
    font-weight: 800; 
    text-decoration: none;
}

/* SEARCH BAR (Desktop) - UPDATED */
.search-container {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px; /* Sharper corners for button group look */
    margin-right: 30px;
    background: #FFF;
    overflow: hidden; /* Keeps button inside border */
}

.search-container input {
    border: none;
    background: transparent;
    outline: none;
    padding: 10px 15px;
    font-family: var(--font-sans);
    font-size: 1rem;
    width: 250px;
    color: #333;
}

.search-btn {
    background: var(--gold);
    color: #FFF;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    height: 100%;
}

.search-btn:hover {
    background: var(--gold-dim);
}

/* SEARCH ICON (Mobile - Hidden on Desktop) */
.mobile-search-icon { display: none; }


/* === DESKTOP DEFAULT STYLES === */
.hamburger { display: none; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; color: #555; font-weight: 600; }
.nav-links a:hover { color: #CFAE6E; }


/* === MOBILE STYLES (Max Width 900px) === */
@media (max-width: 900px) {
    .hamburger { display: block; font-size: 2rem; cursor: pointer; color: #000; user-select: none; }
    
    /* Hide Desktop Search Input */
    .search-container { display: none; }

    /* Show Mobile Search Icon */
    .mobile-search-icon { 
        display: block; 
        font-size: 1.5rem; 
        cursor: pointer; 
        margin-right: 15px;
    }

    .nav-links { 
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: #FFF;
        flex-direction: column; 
        padding: 20px 0;
        border-bottom: 4px solid #CFAE6E;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 15px 0; font-size: 1.2rem; width: 100%; text-align: center; }
}

#mobile-search-bar {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: white;
    padding: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    z-index: 998;
    box-sizing: border-box;
}
#mobile-search-bar input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.1rem;
}

/* --- CAROUSEL --- */
.carousel-container { position: relative; height: 70vh; overflow: hidden; background: #000; border-bottom: 4px solid var(--gold-dim); }
.carousel-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; z-index: 0; }
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-content { position: absolute; bottom: 60px; left: 50px; z-index: 2; text-shadow: 0 2px 10px rgba(0,0,0,0.8); pointer-events: none; text-align: left; }
.carousel-content h2 { font-size: 3.5rem; color: #FFF; margin-bottom: 5px; }
.carousel-content p { font-size: 2rem; color: #FFFFFF; font-weight: 700; display: inline-block; padding: 5px 15px; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #FFF; font-size: 3rem; cursor: pointer; z-index: 10; text-shadow: 0 0 5px rgba(0,0,0,0.5); user-select: none; }
.carousel-prev { left: 30px; }
.carousel-next { right: 30px; }

/* --- GRID & CARDS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; margin-top: 40px; }
.car-card { display: block; background: #FFF; border: 1px solid #eee; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.3s; }
.car-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); border-color: var(--gold); }
.vehicle-image { width: 100%; height: 280px; background-size: cover; background-position: center; position: relative; }
.status-badge { position: absolute; top: 15px; right: 15px; padding: 8px 15px; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; color: #fff; background: var(--gold-dim); }
.card-bottom { padding: 30px; }
.year-mk { font-size: 1.1rem; font-weight: 700; color: var(--gold-dim); text-transform: uppercase; }
.model { font-size: 1.5rem; color: #111; font-weight: 700; margin: 5px 0 15px 0; }
.price { font-size: 1.6rem; color: #111; font-weight: 800; border-top: 1px solid #eee; padding-top: 15px; display: block; }
.btn { background: var(--gold); color: #FFF; border: none; padding: 15px 40px; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: inline-block; }

/* --- DETAIL PAGE HERO GALLERY --- */
.gallery-section { position: relative; width: 100%; height: 75vh; background: #111; overflow: hidden; margin-bottom: 0; border-bottom: 4px solid var(--gold-dim); display: flex; align-items: center; justify-content: center; }
.gallery-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; filter: blur(20px) brightness(0.6); z-index: 1; transform: scale(1.1); }
.gallery-section img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; transition: transform 0.3s; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.5); color: #FFF; padding: 20px 25px; font-size: 3rem; cursor: pointer; user-select: none; transition: 0.3s; z-index: 10; border: none; }
.gallery-arrow:hover { background: rgba(0,0,0,0.9); color: var(--gold); }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-section.single-img .gallery-arrow { display: none; }
#img-counter { z-index: 10; }

/* --- FIXED CONTACT BUTTON --- */
.fixed-contact-btn { position: fixed; bottom: 30px; right: 30px; background-color: var(--gold); color: #FFF; font-weight: 800; text-transform: uppercase; padding: 18px 40px; font-size: 1.1rem; border: none; border-radius: 50px; box-shadow: 0 5px 20px rgba(0,0,0,0.3); cursor: pointer; z-index: 9999; transition: all 0.3s; display: flex; align-items: center; gap: 10px; }
.fixed-contact-btn:hover { background-color: #b5955b; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.4); }

/* --- LIGHTBOX --- */
.lightbox-modal { display: none; position: fixed; z-index: 11000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); align-items: center; justify-content: center; }
.lightbox-content { max-width: 90%; max-height: 90vh; border: 2px solid var(--gold); border-radius: 4px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.lightbox-close:hover { color: var(--gold); }

/* --- SIMILAR VEHICLES GRID --- */
.similar-title { margin-top: 60px; border-top: 2px solid #eee; padding-top: 40px; }
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.similar-card { border: 1px solid #eee; background: white; transition: 0.2s; }
.similar-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.similar-img { height: 180px; background-size: cover; background-position: center; }
.similar-info { padding: 15px; }

@media (max-width: 900px) {
    .gallery-section { height: 50vh; }
    .fixed-contact-btn { bottom: 20px; right: 20px; padding: 15px 30px; font-size: 1rem; }
    .grid { grid-template-columns: 1fr; gap: 30px; }
    .similar-grid { grid-template-columns: 1fr; }
}