/* =====================================================
   fleet-style.css — Porsche Luxe Drive (v2)
   Extends stylecss.css — no SVG placeholders,
   real images, pagination support
   ===================================================== */

/* ── Active nav ── */
.nav-active { color: #ffb700 !important; }

/* ════════════════════════════════
   FLEET HERO
════════════════════════════════ */
.fleet-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 5%;
    min-height: 55vh;
    background:
        linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.72) 46%, rgba(0,0,0,0.34) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.76) 100%),
        url("../assets/fleet bg.png") center center / cover no-repeat;
    border-bottom: 1px solid #151515;
    position: relative;
    overflow: hidden;
}
.fleet-hero-content { max-width: 55%; position: relative; z-index: 1; }
.highlight-gold      { color: #ffb700; }

.fleet-hero-stats {
    background-color: rgba(5, 5, 5, 0.82);
    border: 1px solid rgba(255, 183, 0, 0.18);
    padding: 35px;
    width: 350px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
}
.gold-value { color: #ffb700 !important; }

/* ════════════════════════════════
   FILTER BAR
════════════════════════════════ */
.filter-bar {
    background-color: #030303;
    border-bottom: 1px solid #151515;
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
}
.filter-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.filter-label {
    color: #444;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    white-space: nowrap;
}
.filter-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    background-color: transparent;
    color: #666;
    border: 1px solid #1e1e1e;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.filter-btn:hover { border-color: #555; color: #fff; }
.filter-btn.active {
    background-color: #ffb700;
    border-color: #ffb700;
    color: #000;
}
.filter-count { font-weight: 400; opacity: 0.7; font-size: 0.6rem; }

.fleet-count-label {
    margin-left: auto;
    color: #444;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ════════════════════════════════
   FLEET GRID
════════════════════════════════ */
.fleet-section { padding: 60px 5%; background-color: #000; }

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* ════════════════════════════════
   CAR CARD
════════════════════════════════ */
.car-card {
    width: 100%;
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    background: #050505;
    border: 1px solid #151515;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.car-card:hover {
    border-color: #333;
    transform: translateY(-3px);
    z-index: 2;
}
.featured-card { border-color: #151515; }
.featured-card:hover {
    border-color: #333;
    box-shadow: none;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Badge ── */
.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 10px;
    z-index: 3;
}
.badge-available    { background: #0a1a0a; color: #4caf50;  border: 1px solid #1e3e1e; }
.badge-booked       { background: #1a0a0a; color: #ff6b6b;  border: 1px solid #3e1e1e; }
.badge-maintenance  { background: #1a1000; color: #ffb700;  border: 1px solid #3a2800; }

/* ── Car Visual / Image  —  landscape area ~60% of card ── */
.car-visual {
    flex: 0 0 240px !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    min-height: 240px !important;
    overflow: hidden;
    position: relative;
}
.no-img-bg {
    background: repeating-linear-gradient(
        45deg,
        #060606,
        #060606 10px,
        #080808 10px,
        #080808 20px
    );
}

.car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s ease;
    display: block;
}
.car-card:hover .car-img { transform: scale(1.06); }
.car-dimmed { filter: brightness(0.35) grayscale(0.6) !important; }

/* Placeholder saat belum ada gambar */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #1e1e1e;
    font-size: 0.62rem;
    letter-spacing: 2px;
    font-weight: 700;
}

/* Overlay teks nama mobil di atas gambar */
.car-model-overlay {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.15);
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
}
/* Kalau ada gambar, overlay jadi putih agar terbaca */
.car-visual:has(.car-img) .car-model-overlay {
    color: rgba(255,255,255,0.55);
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    bottom: 0; right: 0; left: 0;
    padding: 20px 14px 10px;
    text-align: right;
    font-size: 0.72rem;
}

.gold-overlay   { color: rgba(255,255,255,0.55); }
.blue-overlay   { color: rgba(0,180,255,0.3); }
.brown-overlay  { color: rgba(200,168,48,0.3); }

/* ── Card Info ── */
.card-info {
    flex: 1 1 0 !important;
    height: 240px !important;
    max-height: 240px !important;
    min-height: 240px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 12px 14px !important;
    background: #050505;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}
.car-year {
    display: block;
    font-size: 0.62rem;
    color: #444;
    letter-spacing: 2px;
    margin-bottom: 3px;
}
.car-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.15;
}
.car-category-tag {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #444;
    border: 1px solid #1e1e1e;
    padding: 3px 8px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 4px;
}
.tag-gold    { color: #444; border-color: #1e1e1e; }
.tag-blue    { color: #00b4ff; border-color: #0d2a3a; }
.tag-classic { color: #c8a830; border-color: #3a2e10; }

/* ── Specs ── */
.card-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #111;
    margin-bottom: 8px;
}
.spec-item {
    padding: 6px 8px;
    border-right: 1px solid #111;
}
.spec-item:last-child { border-right: none; }
.spec-label {
    display: block;
    font-size: 0.56rem;
    color: #444;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.spec-val {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ccc;
    letter-spacing: 0.5px;
}

/* ── Card Footer ── */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-block   { display: flex; flex-direction: column; }
.price-from    { font-size: 0.56rem; color: #444; letter-spacing: 1.5px; }
.price-amount  {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.price-per   { font-size: 0.6rem; color: #666; font-weight: 400; }
.gold-price  { color: #fff; }
.dim-price   { color: #333; }

.btn-book {
    background: transparent;
    color: #fff;
    border: 1px solid #333;
    padding: 10px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-book:hover { border-color: #fff; background: #fff; color: #000; }
.btn-book-gold  { background: transparent; border-color: #333; color: #fff; }
.btn-book-gold:hover { border-color: #fff; background: #fff; color: #000; }
.btn-unavailable {
    background: transparent !important;
    color: #2a2a2a !important;
    border-color: #1a1a1a !important;
    cursor: not-allowed !important;
    font-size: 0.6rem !important;
}

/* ════════════════════════════════
   EMPTY STATE
════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 80px 5%;
    color: #333;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* ════════════════════════════════
   PAGINATION
════════════════════════════════ */
.pagination {
    padding: 50px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.pagination-inner {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pg-btn {
    background: transparent;
    color: #666;
    border: 1px solid #1e1e1e;
    padding: 10px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}
.pg-btn:hover      { border-color: #ffb700; color: #ffb700; }
.pg-disabled       { color: #222; border-color: #111; cursor: default; pointer-events: none; }

.pg-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pg-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #555;
    border: 1px solid #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
}
.pg-num:hover  { border-color: #555; color: #fff; }
.pg-active     { background: #ffb700; border-color: #ffb700; color: #000; }

.pg-ellipsis {
    color: #333;
    font-size: 0.8rem;
    padding: 0 4px;
    user-select: none;
}

.pg-info {
    font-size: 0.65rem;
    color: #333;
    letter-spacing: 2px;
}

/* ════════════════════════════════
   LOAD MORE
════════════════════════════════ */
.load-more-row {
    display: flex;
    justify-content: center;
    padding: 40px 0 10px;
}
.btn-load-more {
    background: transparent;
    color: #666;
    border: 1px solid #222;
    padding: 14px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-load-more:hover { border-color: #ffb700; color: #ffb700; }

/* ════════════════════════════════
   CTA STRIP
════════════════════════════════ */
.cta-strip {
    background-color: #050505;
    border-top: 1px solid #151515;
    border-bottom: 1px solid #151515;
    padding: 70px 5%;
}
.cta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.cta-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    font-style: italic;
    line-height: 0.95;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.cta-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}
.cta-sub {
    font-size: 0.7rem;
    color: #444;
    letter-spacing: 1px;
}

/* ══ SEARCH BAR ══════════════════════════════════════════ */
.search-form {
    display: flex;
    align-items: center;
    margin-left: auto;
}
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 12px;
    color: #444;
    pointer-events: none;
    flex-shrink: 0;
}
.search-input {
    background: #080808;
    border: 1px solid #1e1e1e;
    color: #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 9px 36px 9px 34px;
    width: 200px;
    outline: none;
    transition: border-color 0.2s, width 0.3s;
}
.search-input::placeholder { color: #333; }
.search-input:focus {
    border-color: #ffb700;
    width: 240px;
}
.search-clear {
    position: absolute;
    right: 10px;
    color: #555;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1;
}
.search-clear:hover { color: #ff4444; }

/* Banner hasil pencarian */
.search-result-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 0;
    border-top: 1px solid #111;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.search-result-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #555;
}
.search-keyword {
    color: #ffb700;
    font-style: italic;
}
.search-clear-full {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #444;
    text-decoration: none;
    border: 1px solid #1e1e1e;
    padding: 5px 12px;
    transition: all 0.2s;
}
.search-clear-full:hover { color: #ff4444; border-color: #3e0000; }

/* ── Responsive Grid ── */
@media (max-width: 1024px) {
    .fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
}
}
@media (max-width: 600px) {
    .fleet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}
    .car-card {
    width: 100%;
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    display: flex;
    flex-direction: column;
    background: #050505;
    border: 1px solid #151515;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
}