/* Google Fonts */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Public+Sans:ital,wght@0,100..900;1,100..900&family=Squada+One&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Questrial&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 3rem;
    font-family: var(--font-family-2);
}

/* Variables */
:root {
    --main-color: #fa7104;
    --second-color: #e05404;
    --text-color: #060414;
    --container-color: #efe8e0;
    --bg-color: #f7f7f7;
    --text-alter-color: #818181;
    --poppins-font: "Questrial", sans-serif;
    --font-family-2: "Questrial", sans-serif;
}

body {
    color: var(--text-color);
    background: var(--bg-color);
    padding-top: 8rem;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    display: block;
}

section {
    padding: 3rem 0 2rem;
}

/* ========================================
Container
======================================== */
.container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========================================
Header & Navbar
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav {
    width: 100%;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 2px solid #c9a227;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 40px;
}


.nav-logo img {
    width: 4rem;
    height: auto;
}

.navbar {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    position: static;
    transform: none;
}

.nav-link {
    font-size: 0.88rem;
    color: var(--text-alter-color);
    font-family: var(--poppins-font);
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--bg-color);
}

.menu-title {
    color: #fff;
    justify-content: center;
    text-align: center;
    font-size: 0.88rem;
    padding: 0 70px;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* ========================================
Rental Section
======================================== */
.rentals .heading {
    text-align: center;
    margin-bottom: 3rem;
}

.heading h2 {
    font-family: var(--poppins-font);
}

.heading p {
    max-width: 550px;
    font-size: 0.9rem;
    margin: 1rem auto;
}

.rentals-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Sidebar */
.filter-menu {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 12px;
    height: fit-content;
}

.filter-menu h3 {
    margin-bottom: 15px;
    color: #0b1d3a;
}

.filter-menu ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-menu li {
    padding: 12px 16px;
    border-radius: 999px;
    /* pill shape */
    background: #fff;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}

/* Hover only for non-active items */
.filter-menu li:not(.active):hover {
    transform: translateX(4px);
    background: #f0fdf4;
    color: #0a7330;
}

/* Active item always dark green */
.filter-menu li.active {
    background: linear-gradient(135deg, #0a7330, #0fc15c);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(10, 115, 48, 0.25);
}

.rentals-content {
    display: grid;
    grid-template-columns: repeat(2, 450px);
    gap: 1.5rem;
}

.rental-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    background-image: url("../images/Background/Car_bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    min-height: 480px;
    padding: 20px;
    border-radius: 14px;
}

.rental-box p {
    font-size: 20px;
    font-weight: 600;
}

.rental-box.hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.rental-box:hover {
    transform: translateY(-6px);
    box-shadow:
        0 12px 25px rgba(0, 0, 0, 0.12),
        0 0 0 2px rgba(10, 115, 48, 0.08);
}

.rental-box img {
    width: 90%;
    object-fit: contain;
    margin: 0 auto 12px;
}

.rental-top {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.category-badge {
    font-size: 0.90rem;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 999px;
    background: rgba(10, 115, 48, 0.1);
    color: #0a7330;
}

.rental-image img {
    max-height: 200px;
}

.rental-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 10px 0 14px;
}

.car-logo {
    width: 100px;
    margin: 0 auto;
    text-align: center;
}

.car-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.divider-line {
    width: 95%;
    border: 0;
    height: 2px;
    background: #ccc;
    margin: 10px auto;
}

.rental-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.rental-info p {
    font-size: 0.8rem;
    color: var(--text-alter-color);
}

.rental-specs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0b1d3a;
    position: relative;
}

.spec i {
    font-size: 0.85rem;
    color: #0a7330;
}

/* Vertical line between specs */
.rental-specs .spec:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    width: 2px;
    height: 50%;
    background-color: #ccc;
}

.rental-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 6px;
    margin: 10px 0 14px;
    margin-bottom: 30px;
}

.rental-price .price {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ff6600;
}

.rental-price .per {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-alter-color);
}

.rental-btn {
    /* width: 100%; */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #0a7330;
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.price-btn {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.price-btn p {
    font-size: 0.97rem;
}

.price-btn p span {
    color: var(--text-alter-color);
}

.rental-btn:hover {
    background: var(--main-color);
}

/* ========================================
   Mobile Size
======================================== */
/* Mobile responsive */
@media screen and (max-width: 768px) {
    .navbar {
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
        border-bottom: 2px solid #c9a227;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 18px 0;

        display: none;
    }

    .navbar.active {
        display: flex;
    }

    .nav-link {
        font-size: 15px;
        color: #fff;
    }

    .nav {
        align-items: center;
        padding: 8px 16px;
    }

    .nav-logo img {
        width: 3rem;
    }

    .menu-title {
        padding: 0;
    }

    .menu-toggle {
        display: block;
    }

    .rentals-layout {
        grid-template-columns: 1fr;
    }

    /* Filter menu becomes horizontal */
    .filter-menu {
        position: sticky;
        top: 70px;
        z-index: 20;
    }

    .filter-menu ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* Hide scrollbar but keep scrolling */
    .filter-menu ul::-webkit-scrollbar {
        display: none;
    }

    .filter-menu li {
        text-align: center;
        justify-content: center;
        padding: 10px 6px;
        font-size: 0.75rem;
        border-radius: 8px;
    }

    .category-badge {
        font-size: 0.8rem;
    }

    .car-logo img {
        width: 60%;
    }

    .rental-specs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 10px 6px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .spec {
        justify-content: center;
        font-size: 0.75rem;
        padding: 6px 4px;
        border-radius: 8px;
    }

    /* Remove vertical divider on mobile */
    .rental-specs .spec::after {
        display: none;
    }

    .spec i {
        font-size: 0.75rem;
    }

    .rental-price .price {
        font-size: 1.0rem;
    }

    .rental-price .per {
        font-size: 0.7rem;
    }

    .rentals-content {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(1, 350px);
        gap: 1.5rem;
    }

}

@media screen and (max-width: 430px) {
    .navbar a {
        font-size: 0.7rem;
    }

    .nav {
        padding: 8px 12px;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .rentals-content {
        justify-content: center;
        display: grid;
        grid-template-columns: repeat(1, 330px);
        gap: 1.5rem;
    }
}