/**
 * Fleet Booking - Vehicle Cards Styles
 * Uber-style vehicle cards for the fleet grid
 */
/* Vehicle Grid Layout - 3 columns */
.ride-options-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0 1rem;
}

@media (max-width: 1024px) {
    .ride-options-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .ride-options-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Individual Vehicle Card */
.uber-vertical-card {
    background: #ffffff;
    border: 1px solid #e8ecf1;
    border-radius: 18px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 380px;
}

.uber-vertical-card:hover {
    background: #fafbfc;
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.uber-vertical-card.selected {
    border: 2.5px solid #000000;
    background: #fafafa;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.uber-vertical-card.selecting {
    border: 2.5px solid #d1d5db;
    background: #fafafa;
    pointer-events: none;
    opacity: 0.85;
}

.uber-vertical-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.uber-vertical-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Check Badge */
.uber-vertical-card .check-badge {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: #000000;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.uber-vertical-card.selected .check-badge {
    display: flex;
}

/* SVG Icons */
.svg-icon {
    width: 12px;
    height: 13px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: currentColor;
}

/* Car Image Area - 250px minimum height */
.car-image-top {
    width: 100%;
    min-height: 250px;
    height: auto;
    background: #f5f6f8;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.car-image-top img {
    width: 100%;
    min-height: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

.car-image-top .vehicle-emoji {
    font-size: 4.5rem;
    line-height: 1;
}

.car-image-top::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #d1d5db;
    border-radius: 2px;
}

/* Promo Chip */
.promo-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    z-index: 1;
}

/* Vehicle Info */
.car-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.car-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.car-badge {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--e-global-color-secondary);
    background: var(--e-global-color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.car-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.9rem;
}

/* Vehicle Specs */
.car-specs-stack {
    display: flex;
    justify-content: end;
    gap: 0.6rem;
    margin-top: -0.9rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f3f4f6;
}

.car-spec {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

/* ETA Line */
.car-eta-line {
    font-size: 0.72rem;
    color: #059669;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.car-eta-line.quote-only {
    color: var(--e-global-color-primary);
}

.eta-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.eta-dot.warning {
    background: #f59e0b;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Bottom Row - Price & Button */
.car-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.9rem;
}

.car-price-tag {
    display: none;
    flex-direction: column;
}

.car-price-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.car-price-value.quote-price {
    color: var(--e-global-color-primary);
    font-size: 0.95rem;
}

.car-price-unit {
    padding-top: 5px;
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 400;
}

/* Select Button */
.btn-select-ride {
    padding: 0.45rem 0.9rem;
    background: #000000 !important;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    min-width: 72px;
    justify-content: center;
    text-decoration: none;
}

.btn-select-ride:hover {
    background: #1a1a1a;
    color: #e5c158 !important;
    text-decoration: none;
}

.uber-vertical-card.selected .btn-select-ride {
    background: #059669;
}

.uber-vertical-card.selecting .btn-select-ride {
    background: #059669;
}

.btn-select-ride .btn-text {
    transition: opacity 0.15s;
    font-size: 0.8rem;
    padding: 5px 15px;
}

.btn-select-ride .btn-check-icon {
    display: none;
    width: 14px;
    height: 14px;
    color: #ffffff;
    fill: #ffffff;
}

.uber-vertical-card.selected .btn-select-ride .btn-check-icon {
    display: inline-block;
}

.btn-select-ride .btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.uber-vertical-card.selecting .btn-select-ride .btn-spinner {
    display: inline-block;
}

.uber-vertical-card.selecting .btn-select-ride .btn-text,
.uber-vertical-card.selecting .btn-select-ride .btn-check-icon {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Quote Only Styling */
.uber-vertical-card.quote-only .btn-select-ride {
    background: #eef2ff;
    color: #00000;
}

.uber-vertical-card.quote-only .btn-select-ride:hover {
    background: #eef2ff;
    color: #4f46e5;
}

.uber-vertical-card.quote-only.selected .btn-select-ride {
    background: #059669;
    color: #ffffff;
}

/* Loading State for Grid */
.cfb-vehicles-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.cfb-vehicles-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

/* No Vehicles Found */
.cfb-no-vehicles {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

.cfb-no-vehicles .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Elementor Widget Styles */
.elementor-widget-fleet-grid .ride-options-row {
    margin: 0;
}

.elementor-widget-fleet-grid .uber-vertical-card {
    margin: 0;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .car-image-top {
        min-height: 180px;
    }
    .car-image-top img {
        min-height: 180px;
    }
    .car-image-top .vehicle-emoji {
        font-size: 3.5rem;
    }
    .car-title {
        font-size: 1rem;
    }
    .car-price-value {
        font-size: 1rem;
    }
    .btn-select-ride {
        min-width: 60px;
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    .btn-select-ride .btn-text {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}