/* Fleet carousel — type-based cards (car / two-wheeler) */
#items-carousel .owl-item,
.fc-fleet-carousel .owl-item {
    display: flex;
}

#items-carousel .owl-item > .col-lg-12,
.fc-fleet-carousel .owl-item > .col-lg-12 {
    width: 100%;
    display: flex;
}

.fc-fleet-sections {
    width: 100%;
}

.fc-fleet-type-section {
    margin-bottom: 2.5rem;
}

.fc-fleet-type-section:last-child {
    margin-bottom: 0;
}

.fc-fleet-type-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #f0f0f0;
}

.fc-fleet-type-section__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
}

.fc-fleet-type-section__title .fa {
    margin-right: 8px;
    color: #1ecb15;
}

.fc-fleet-type-section--car .fc-fleet-type-section__title .fa {
    color: #1565c0;
}

.fc-fleet-type-section--two-wheeler .fc-fleet-type-section__title .fa {
    color: #1ecb15;
}

.fc-fleet-type-section__count {
    font-size: 0.85rem;
    color: #888;
}

.fc-fleet-carousel {
    width: 100%;
}

.fc-fleet-card-link {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.fc-fleet-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.fc-fleet-card-link .de-item.fc-fleet-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fc-fleet-card-link:hover .fc-fleet-card {
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    transform: translateY(-4px);
}

/* Top accent bar per type */
.fc-fleet-card__accent {
    height: 4px;
    width: 100%;
    flex-shrink: 0;
}

.fc-fleet-card--car .fc-fleet-card__accent {
    background: linear-gradient(90deg, #031b4e, #3b82f6);
}

.fc-fleet-card--two-wheeler .fc-fleet-card__accent {
    background: linear-gradient(90deg, #1a7a16, #84cc16);
}

.fc-fleet-card--default .fc-fleet-card__accent {
    background: linear-gradient(90deg, #475569, #94a3b8);
}

/* Media area — same height in carousel for aligned cards */
.fc-fleet-card__media-wrap {
    position: relative;
    flex: 0 0 220px;
    height: 220px;
    overflow: hidden;
}

.fc-fleet-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fc-fleet-type-badge--car {
    background: rgba(3, 27, 78, 0.92);
    color: #fff;
}

.fc-fleet-type-badge--two-wheeler {
    background: rgba(26, 122, 22, 0.92);
    color: #fff;
}

.fc-fleet-type-badge--default {
    background: rgba(71, 85, 105, 0.92);
    color: #fff;
}

.fc-fleet-card__media {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0 !important;
    overflow: hidden;
}

.fc-fleet-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    box-shadow: none !important;
}

.fc-fleet-card-link:hover .fc-fleet-card__media img {
    transform: scale(1.05);
}

/* Two-wheeler: portrait contain inside fixed frame */
.fc-fleet-card--two-wheeler .fc-fleet-card__media-wrap {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 50%, #ecfdf5 100%);
}

.fc-fleet-card--two-wheeler .fc-fleet-card__media--portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.fc-fleet-card--two-wheeler .fc-fleet-card__media--portrait img {
    width: auto;
    max-width: 78%;
    max-height: 190px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.12));
}

/* Car: landscape cover */
.fc-fleet-card--car .fc-fleet-card__media-wrap {
    background: linear-gradient(160deg, #eef2f7 0%, #e2e8f0 100%);
}

/* Body */
.fc-fleet-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px !important;
}

.fc-fleet-card__body .d-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fc-fleet-card__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.fc-fleet-card__title {
    font-size: 17px !important;
    margin: 0 !important;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.fc-fleet-subtitle {
    display: block;
    font-weight: 400;
    color: #64748b;
    font-size: 12px;
}

.fc-fleet-driver-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    white-space: nowrap;
    flex-shrink: 0;
}

.fc-fleet-driver-pill--self {
    background: #f1f5f9;
    color: #475569;
}

.fc-fleet-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8ecf1;
}

.fc-fleet-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #031b4e;
    background: #f4f7fe;
    padding: 5px 10px;
    border-radius: 8px;
}

.fc-fleet-chip i {
    opacity: 0.65;
    font-size: 10px;
}

.fc-fleet-card--two-wheeler .fc-fleet-chip {
    color: #1a7a16;
    background: #ecfdf5;
}

/* Footer: price + CTA */
.fc-fleet-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.fc-fleet-card__price {
    margin: 0 !important;
    position: static !important;
}

.fc-fleet-price-amount {
    display: block;
    font-size: 22px !important;
    font-weight: 700;
    color: #031b4e;
    line-height: 1.1;
}

.fc-fleet-price-unit {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

.fc-fleet-card--two-wheeler .fc-fleet-price-amount {
    color: #1a7a16;
}

.fc-fleet-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--primary-color, #1ecb15);
    color: #fff;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.fc-fleet-card--car .fc-fleet-book-btn {
    background: #031b4e;
}

.fc-fleet-card-link:hover .fc-fleet-book-btn {
    transform: translateX(2px);
    filter: brightness(1.05);
}

/* Override theme de-item padding on fleet cards */
#section-cars .fc-fleet-card .d-atr-group {
    display: none;
}

@media (max-width: 767px) {
    .fc-fleet-card__media-wrap {
        flex: 0 0 200px;
        height: 200px;
    }

    .fc-fleet-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .fc-fleet-book-btn {
        justify-content: center;
    }
}
