/* ==========================================================================
   VEHICLE LISTING SYSTEM - TOYOTA STYLE (COMPLETE VERSION)
   ========================================================================== */

/* 1. KATEGORI TABS */
.vehicle-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-link {
    background: none;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    font-size: 14px;
    transition: 0.3s;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
}

.tab-link.active {
    color: #eb0a1e;
    border-bottom-color: #eb0a1e;
}

.tab-link:hover {
    color: #eb0a1e;
}

/* 2. VEHICLE GRID & CARDS */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    transition: opacity 0.4s ease-in-out;
}

.vehicle-card {
    background: #fff;
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease backwards;
}

.vehicle-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

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

.v-info {
    padding: 20px;
}

.v-info h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #333;
    text-transform: uppercase;
	font-weight: 800; /* Baris ini untuk menebalkan huruf */
}

.v-label {
    color: #888;
    font-size: 0.85rem;
    margin: 0;
}

.v-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: #eb0a1e;
    margin-top: 5px;
}

/* 3. MODAL POPUP */
.v-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
}

.v-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 60%;
    max-width: 800px;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.v-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    transition: 0.3s;
}

.v-close:hover {
    color: #eb0a1e;
    transform: rotate(90deg);
}

/* 4. TABEL HARGA */
.v-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.v-table thead th {
    background: #eb0a1e;
    color: #fff;
    text-align: left;
    padding: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
}

.v-table tbody tr:last-child td {
    border-bottom: none;
}

.v-table tbody tr:hover {
    background-color: #fcfcfc;
}

/* 5. TOMBOL KAPSUL FANCY (GET YOUR OFFER & BROCHURE) */
.v-modal-footer {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    justify-content: center;
    padding: 10px 0;
}

.v-btn-fancy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 50px; /* Bentuk Kapsul */
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Tombol Merah */
.v-btn-red {
    background: linear-gradient(135deg, #eb0a1e 0%, #b30000 100%);
    color: #ffffff !important;
    border: none;
}

.v-btn-red:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(235, 10, 30, 0.4);
}

/* Tombol Outline */
.v-btn-outline {
    background: #fff;
    color: #333 !important;
    border: 2px solid #eb0a1e;
}

.v-btn-outline:hover {
    background: #eb0a1e;
    color: #ffffff !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(235, 10, 30, 0.2);
}

/* Efek Cahaya saat Hover */
.v-btn-fancy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.6s;
}

.v-btn-fancy:hover::before {
    left: 100%;
}

/* Ikon Sederhana (Pseudo) */
.v-btn-red span::after {
    content: ' ➔';
    margin-left: 10px;
}

.v-btn-outline span::before {
    content: '⬇ ';
    margin-right: 10px;
}

/* 6. ANIMASI & LOADING */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.v-loading-overlay {
    position: relative;
    min-height: 200px;
}

.v-loading-overlay::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #eb0a1e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 7. RESPONSIVE */
@media (max-width: 768px) {
    .v-modal-content { width: 90%; padding: 20px; }
    .v-modal-footer { flex-direction: column; gap: 15px; }
    .v-btn-fancy { width: 100%; }
}

@media (max-width: 600px) {
    .vehicle-grid { grid-template-columns: 1fr; }
    .vehicle-tabs { overflow-x: auto; white-space: nowrap; justify-content: flex-start; padding-bottom: 10px; }
}

/* ==========================================================================
   ADD-ON: FEATURED VEHICLE STYLE
   ========================================================================== */

/* Menghilangkan margin jika di dalam aplikasi featured */
#vehicle-app-featured {
    padding: 20px 0;
}

/* Membuat tampilan card di featured sedikit lebih premium */
#vehicle-app-featured .vehicle-card {
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Memberikan Badge "RECOMMENDED" atau "BEST SELLER" secara otomatis */
#vehicle-app-featured .vehicle-card::before {
  
	content: "FEATURED";
    position: absolute;
    top: 15px;
    left: 15px;
    background: #eb0a1e;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    letter-spacing: 1px;
}

/* Overlay halus pada gambar saat hover di versi featured */
#vehicle-app-featured .v-img {
    position: relative;
    overflow: hidden;
}


#vehicle-app-featured .v-img::after {
    content: 'View Details';
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    background: rgba(235, 10, 30, 0.9);
    color: #fff;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: bold;
    transition: bottom 0.3s ease;
    text-transform: uppercase;
}

#vehicle-app-featured .vehicle-card:hover .v-img::after {
    bottom: 0;
}

/* Penyesuaian Grid khusus featured agar lebih lebar jika hanya sedikit item */
@media (min-width: 992px) {
    #vehicle-app-featured .vehicle-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-width: 1200px;
        margin: 0 auto;
    }
}