/* Reset & Base */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-top: 30px;
}

p {
    text-align: center;
    font-size: 16px;
}

/* Container for list */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
}

/* Card Mobil */

.card-mobil img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-mobil {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 300px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-mobil:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.card-mobil h3 {
    margin: 0 0 10px;
    color: #3498db;
}

.card-mobil p {
    margin: 5px 0;
    font-size: 15px;
}

/* Link Button */
.card-mobil a {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.card-mobil a:hover {
    background-color: #27ae60;
}

/* Login Link Note */
.login-note {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.login-note a {
    color: #2980b9;
    text-decoration: none;
    font-weight: 500;
}

.login-note a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card-mobil {
        width: 90%;
    }
}
/* Container kartu mobil */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Kartu mobil */
.card-mobil {
    width: 300px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.card-mobil:hover {
    transform: translateY(-5px);
}

/* Gambar mobil */
.card-mobil img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Isi kartu */
.card-body {
    padding: 15px;
}

.card-body h3 {
    margin-top: 0;
    font-size: 18px;
    color: #2c3e50;
}

.card-body p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

/* Tombol Pesan */
.btn-pesan {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #2ecc71;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.btn-pesan:hover {
    background-color: #27ae60;
}

/* Info login di atas daftar mobil */
.info-login {
    text-align: center;
    margin: 20px 0;
    background-color: #ecf0f1;
    padding: 10px;
    border-left: 4px solid #3498db;
    border-radius: 6px;
}

.btn-login {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
}

.btn-login:hover {
    text-decoration: underline;
}
/* Navbar Customer */
.navbar-custumer {
    background-color: #2c3e50;
    padding: 15px 0;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar-custumer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand a {
    font-size: 20px;
    font-weight: bold;
    color: #ecf0f1;
    text-decoration: none;
}

.navbar-links a {
    margin-left: 20px;
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: #1abc9c;
}

/* Responsif */
@media (max-width: 768px) {
    .navbar-custumer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        margin-top: 10px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .navbar-links a {
        margin: 0;
    }
}
/* Filter Form Styling */
.filter-form {
    margin: 30px auto;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
}

.filter-form form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.filter-form input,
.filter-form button {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.filter-form input {
    max-width: 250px;
}

.filter-form button {
    background-color: #3498db;
    color: white;
    cursor: pointer;
    border: none;
    width: 100%;
    max-width: 250px;
}

.filter-form button:hover {
    background-color: #2980b9;
}

/* Card Container */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 0 15px;
}

/* Card Style */
.card-mobil {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-mobil:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-mobil img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.card-body {
    padding: 10px 0;
}

.card-body h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-body p {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

/* Button Pesan */
.btn-pesan {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-pesan:hover {
    background-color: #2980b9;
}

/* Info Login */
.info-login {
    text-align: center;
    margin-top: 20px;
    font-size: 16px;
}

.info-login .btn-login {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.info-login .btn-login:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .filter-form {
        width: 90%;
    }

    .card-container {
        grid-template-columns: 1fr 1fr;
    }

    .card-mobil img {
        max-height: 180px;
    }
}

@media screen and (max-width: 480px) {
    .card-container {
        grid-template-columns: 1fr;
    }

    .filter-form input,
    .filter-form button {
        width: 100%;
    }
}
/* Form filter container */
.filter-form {
    margin: 30px auto;
    max-width: 1000px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Mengatur form agar elemen tampil horizontal */
.filter-form-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Membuat elemen-elemen tetap responsif */
}

/* Setiap input field */
.filter-input {
    flex: 1; /* Membuat input fleksibel dan bisa menyesuaikan ukuran */
    margin-right: 15px;
}

.filter-input:last-child {
    margin-right: 0; /* Menghapus margin kanan untuk elemen terakhir */
}

/* Input fields */
.input-field {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    border-color: #007BFF; /* Warna biru saat input aktif */
    outline: none;
}

/* Tombol Filter */
.btn-filter {
    padding: 12px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-filter:hover {
    background-color: #0056b3;
}

/* Tambahan untuk responsivitas */
@media (max-width: 768px) {
    .filter-form-container {
        flex-direction: column; /* Mengubah ke tampilan kolom pada perangkat kecil */
    }

    .filter-input {
        margin-bottom: 10px; /* Memberikan ruang antar elemen pada tampilan vertikal */
    }

    .btn-filter {
        width: 100%; /* Membuat tombol full-width pada perangkat kecil */
    }
}
