:root {
    --primary: #2d3436;
    --accent: #00d2d3;
    --accent-dark: #01a3a4;
    --danger: #ff7675;
    --bg-soft: #f0f3f5;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-soft); color: var(--primary); }

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- Header --- */
header { background: white; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: var(--shadow); }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-menu { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-menu li a { text-decoration: none; color: var(--primary); font-size: 0.9rem; font-weight: 600; }
.logout-btn { background: var(--danger); color: white !important; padding: 8px 18px; border-radius: 8px; font-size: 0.85rem; }
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Wishlist Badge Header Icon --- */
.wishlist-nav-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 210, 211, 0.1);
    color: var(--accent-dark);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.wishlist-nav-btn:hover {
    background: var(--accent);
    color: white;
}
.wishlist-badge {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 50px;
    font-weight: 700;
}

/* --- Filter & Modal --- */
.filter-section { padding: 30px 5%; text-align: center; }
.filter-btn { background: var(--accent); color: white; border: none; padding: 12px 30px; border-radius: 50px; font-weight: 600; cursor: pointer; font-size: 1rem; transition: 0.3s; }
.filter-btn:hover { background: var(--accent-dark); }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 30px; border-radius: 15px; width: 90%; max-width: 400px; position: relative; }
.close-modal { position: absolute; top: 15px; right: 20px; cursor: pointer; font-size: 1.2rem; }

.filter-grid { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.filter-group label { display: block; font-size: 0.7rem; font-weight: 600; color: var(--accent); margin-bottom: 5px; text-transform: uppercase; }
.filter-group select, .filter-group input[type="text"] { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid #dfe6e9; }

/* --- Results Grid & Cards --- */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px 5%;
}

.car-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.3);
    animation: fadeIn 0.6s ease forwards;
    position: relative;
}

.car-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

/* --- Wishlist Heart Button Style --- */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wishlist-btn i {
    font-size: 1.1rem;
    color: #b2bec3;
    transition: color 0.3s ease;
}

.wishlist-btn.active i {
    color: var(--danger);
    animation: heartBeat 0.4s ease;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: white;
}

.car-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s ease;
}

.car-card:hover .car-img {
    transform: scale(1.05);
}

.car-info { padding: 20px; }
.car-info h3 { margin-bottom: 10px; font-weight: 600; letter-spacing: -0.5px; }
.car-tags { display: flex; gap: 15px; margin-bottom: 15px; font-size: 0.8rem; color: #636e72; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f1f1f1; }
.price-val { font-size: 1rem; font-weight: 600; color: var(--accent); }

.rent-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}
.rent-btn:hover { background: var(--accent-dark); }

/* --- Mobile --- */
@media (max-width: 768px) { 
    .menu-toggle { display: block; } 
    .nav-menu { display: none; flex-direction: column; position: absolute; top: 65px; left: 0; width: 100%; background: white; padding: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1); text-align: center; } 
    .nav-menu.active { display: flex; } 
}

/* --- Default Image Placeholder Style --- */
.car-img {
    height: 180px;
    background-color: #f1f2f6;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

@keyframes pulse {
    0% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 0.5; transform: scale(1); }
}

.car-img:not([style*="url"]) i {
    color: #b2bec3;
    animation: pulse 2s infinite ease-in-out;
}

#topBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--accent);
    color: white;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#topBtn:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}
 

:root {
    --primary: #2d3436;
    --accent: #00d2d3;
    --accent-dark: #01a3a4;
    --bg-soft: #f0f3f5;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg-soft); color: var(--primary); }

/* --- Header --- */
header { 
    background: white; 
    padding: 1rem 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: var(--shadow); 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--primary); 
    text-decoration: none; 
}

.logo span { color: var(--accent); }

#nav-menu {
    display: flex;
}

#nav-menu ul { 
    display: flex; 
    list-style: none; 
    gap: 20px; 
    align-items: center; 
}

#nav-menu ul li a { 
    text-decoration: none; 
    color: var(--primary); 
    font-size: 0.9rem; 
    font-weight: 600; 
}

.menu-toggle { 
    display: none; 
    flex-direction: column;
    gap: 5px;
    cursor: pointer; 
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* --- Mobile --- */
@media (max-width: 768px) { 
    .menu-toggle { display: flex; } 
    #nav-menu { 
        display: none; 
        position: absolute; 
        top: 65px; 
        left: 0; 
        width: 100%; 
        background: white; 
        padding: 20px; 
        box-shadow: 0 10px 10px rgba(0,0,0,0.1); 
        text-align: center; 
    } 
    #nav-menu.active { display: block; } 
    #nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }
}
    /* Force hide all Google Translate frames, banners, and tooltips */
    .goog-te-banner-frame, 
    .goog-te-balloon-frame, 
    #goog-gt-tt, 
    .goog-te-ftab,
    .goog-te-banner,
    iframe[id=":1.container"],
    iframe.goog-te-banner-frame { 
        display: none !important; 
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        pointer-events: none !important;
    }
    
    /* Prevent Google from pushing the body down or changing positioning */
    body, html { 
        top: 0 !important; 
        position: static !important; 
        margin-top: 0 !important;
    }
    
    .goog-tooltip { display: none !important; }
    .goog-text-highlight { background-color: transparent !important; box-shadow: none !important; }