/**
 * Fleet Display Styles
 *
 * @since      1.1.0
 * @package    Chauffeur_Booking_System
 */

/* Container */
.cbs-fleet-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cbs-fleet-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
}

/* Grid Layout */
.cbs-fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .cbs-fleet-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Fleet Card */
.cbs-fleet-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cbs-fleet-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Card Image */
.cbs-fleet-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cbs-fleet-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cbs-fleet-card:hover .cbs-fleet-card-image img {
    transform: scale(1.05);
}

.cbs-fleet-placeholder {
    width: 120px;
    height: 120px;
    color: #cbd5e0;
}

.cbs-fleet-placeholder svg {
    width: 100%;
    height: 100%;
}

/* Card Content */
.cbs-fleet-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cbs-fleet-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

/* Features */
.cbs-fleet-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.cbs-fleet-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

.cbs-fleet-feature svg {
    width: 20px;
    height: 20px;
    color: #718096;
    flex-shrink: 0;
}

/* Pricing */
.cbs-fleet-pricing {
    background: #f7fafc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.cbs-fleet-price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.cbs-fleet-price-item:last-of-type {
    border-bottom: none;
}

.cbs-fleet-price-label {
    font-size: 14px;
    color: #4a5568;
    flex: 1;
}

.cbs-fleet-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-left: 16px;
}

.cbs-fleet-vat-notice {
    font-size: 12px;
    color: #718096;
    margin: 12px 0 0 0;
    font-style: italic;
}

/* Actions */
.cbs-fleet-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cbs-fleet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cbs-fleet-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.cbs-fleet-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cbs-fleet-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.cbs-fleet-btn-primary:hover svg {
    transform: translateX(4px);
}

.cbs-fleet-link {
    text-align: center;
    font-size: 14px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cbs-fleet-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .cbs-fleet-container {
        padding: 20px 15px;
    }

    .cbs-fleet-card-content {
        padding: 20px;
    }

    .cbs-fleet-card-title {
        font-size: 20px;
    }

    .cbs-fleet-features {
        grid-template-columns: 1fr;
    }

    .cbs-fleet-card-image {
        height: 200px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cbs-fleet-card {
    animation: fadeInUp 0.6s ease-out;
}

.cbs-fleet-card:nth-child(2) {
    animation-delay: 0.1s;
}

.cbs-fleet-card:nth-child(3) {
    animation-delay: 0.2s;
}

.cbs-fleet-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* Slider Styles */
.cbs-fleet-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cbs-fleet-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.cbs-fleet-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.cbs-fleet-slide.active {
    opacity: 1;
    display: block;
}

.cbs-fleet-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Controls */
.cbs-fleet-prev,
.cbs-fleet-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 18px;
    transition: background 0.3s;
    border-radius: 5px;
}

.cbs-fleet-prev:hover,
.cbs-fleet-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.cbs-fleet-prev {
    left: 10px;
}

.cbs-fleet-next {
    right: 10px;
}

/* Dots */
.cbs-fleet-dots {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.cbs-fleet-dot {
    height: 8px;
    width: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    margin: 0 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cbs-fleet-dot.active,
.cbs-fleet-dot:hover {
    background-color: white;
}
