/* =============================================================
   CAR CARD COMPONENT — shared across all pages
   VIP Rent a Car Clone
   ============================================================= */

/* ── Section heading row (title + arrows) ─────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px 0 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    margin: 0;
}

.slider-arrows {
    position: absolute;
    right: 0;
    display: flex;
    gap: 4px;
}

.arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s;
}

.arrow-btn.prev { background: #0073bb; color: #fff; }
.arrow-btn.next { background: #0099ff; color: #fff; }
.arrow-btn:hover { opacity: 0.85; }

/* ── Car Card ─────────────────────────────────────────────── */
.car-card {
    background: #1e1e1e;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: box-shadow 0.2s, transform 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.7);
    transform: translateY(-2px);
}

/* Card dark header bar (brand logo + brand + model) */
.car-card-header {
    background: #212529;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 54px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255,255,255,0.07);
    padding: 2px;
}

.car-title-block { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.car-brand-name {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.car-model-name {
    color: #0099ff;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Skywards / badge strip (Exclusive Collection) */
.skywards-bar {
    background: #2a2a2a;
    border-left: 3px solid #c00;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #eee;
}

.skywards-bar img { width: 60px; height: auto; }

/* New Arrival badge */
.badge-new-arrival {
    position: absolute;
    top: 0;
    left: 0;
    background: #c00;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-right-radius: 4px;
    z-index: 2;
}

/* Card image wrapper */
.car-card-img-wrap {
    position: relative;
    background: #1a1a1a;
    overflow: hidden;
    flex-shrink: 0;
}

.car-card-img-wrap a { display: block; }

.car-card-img-wrap img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.35s ease;
}
.car-card:hover .car-card-img-wrap img { transform: scale(1.04); }

/* Price area */
.car-card-price {
    background: #212529;
    padding: 8px 12px 4px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2px;
}

.price-original {
    font-size: 11px;
    color: #aaa;
}

.price-original del { color: #888; }

.price-discount {
    font-size: 11px;
    color: #ff4444;
    font-weight: 700;
    margin-left: 4px;
}

.price-main {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.price-main .currency-sym {
    font-size: 13px;
    color: #fff;
    font-weight: 700;
    margin-right: 1px;
}

.price-unit {
    font-size: 11px;
    color: #ccc;
    font-weight: 400;
    margin-left: 1px;
}

.price-month {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

/* "Get quote" instead of public pricing */
.car-card-price--quote {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px 12px;
}
.car-card-get-quote {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    text-decoration: none !important;
    color: #fff !important;
    background: #0099ff;
    transition: filter 0.15s;
}
.car-card-get-quote:hover {
    filter: brightness(0.9);
    color: #fff !important;
}

/* Insurance + Free Delivery row */
.car-card-perks {
    background: #212529;
    padding: 4px 12px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.perk-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #ccc;
}

.perk-item img {
    width: 16px;
    height: 16px;
}

/* Action buttons row */
.car-card-actions {
    display: flex;
    gap: 0;
    border-top: 1px solid #333;
}

.btn-card-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 4px;
    font-size: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    color: #fff !important;
    transition: filter 0.15s;
    font-family: 'Poppins', sans-serif;
}

.btn-card-action:hover { filter: brightness(0.88); color: #fff !important; }

.btn-whatsapp { background: #333; }
.btn-call     { background: #444; }
.btn-inquire  { background: #0099ff; }

.btn-card-action i { font-size: 13px; }

/* ── CARDS SLIDER / GRID wrapper ─────────────────────────── */
.cars-slider-wrap {
    overflow: hidden;
    position: relative;
}

.cars-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    padding-bottom: 4px;
    padding: 8px 4px 12px;
}

.cars-row::-webkit-scrollbar { display: none; }

.car-col {
    flex: 0 0 calc(25% - 12px);
    min-width: 240px;
    max-width: 340px;
}

/* View All button */
.view-all-wrap { text-align: center; padding: 16px 0 24px; }

.btn-view-all {
    display: inline-block;
    background: #0099ff;
    color: #fff !important;
    padding: 11px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.btn-view-all:hover { background: #007acc; color: #fff !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1200px) {
    .car-col { flex: 0 0 calc(33.333% - 11px); }
}

@media (max-width: 767px) {
    .car-col { flex: 0 0 calc(50% - 8px); min-width: 180px; }
    .car-card-img-wrap img { height: 140px; }
    .price-main { font-size: 14px; }
    .section-title { font-size: 17px; }
}

@media (max-width: 480px) {
    .car-col { flex: 0 0 calc(100% - 0px); min-width: 260px; }
    .car-card-img-wrap img { height: 180px; }
}

/* =============================================================
   LISTING PAGE — grid layout
   ============================================================= */
.listing-page-header {
    text-align: center;
    padding: 30px 0 10px;
}

.listing-page-header h1 {
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    margin: 0 0 6px;
}

.listing-page-header .breadcrumb-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #ccc;
}

.listing-page-header .breadcrumb-bar a { color: #0099ff; }
.listing-page-header .breadcrumb-bar a:hover { text-decoration: underline; }

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px 0 40px;
}

@media (max-width: 1200px) { .cars-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px)  { .cars-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 400px)  { .cars-grid { grid-template-columns: 1fr; } }
