/* Vehicle Quotes Page Styles */
.ukride-quotes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Journey Summary */
.journey-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.journey-info h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.journey-info p {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.journey-details {
    margin-top: 15px;
}

.journey-details .badge {
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 12px;
}

.return-journey-info {
    border-left: 4px solid #007bff;
}

/* Route Map */
.route-map {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

#map-content {
    width: 100%;
    height: 300px;
}

/* Vehicle Filter Tabs */
.vehicle-filter-tabs .nav-pills .nav-link {
    border-radius: 25px;
    margin: 0 5px;
    padding: 8px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.vehicle-filter-tabs .nav-pills .nav-link:hover,
.vehicle-filter-tabs .nav-pills .nav-link.active {
    background: #D7B65D;
    color: white;
    border-color: #D7B65D;
}

/* Vehicles Grid - Four cards per row */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Vehicle Card - Reduced height, better proportions */
.vehicle-card {
    transition: all 0.3s ease;
    height: fit-content;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.vehicle-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.vehicle-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vehicle-option:hover {
    border-color: #D7B65D;
}

.vehicle-option.selected {
    border-color: #28a745;
    background: #f8fff8;
}

/* Card Header - More compact */
.vehicle-option .card-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 12px 15px;
    position: relative;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
    letter-spacing: 0.3px;
}

.discount-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 0 12px 0 10px;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Card Body - Better spacing */
.vehicle-option .card-body {
    padding: 15px;
}

/* Vehicle Icon - More prominent, better sizing */
.vehicle-icon {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.vehicle-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(215, 182, 93, 0.05) 0%, 
        rgba(215, 182, 93, 0.02) 50%, 
        transparent 100%);
}

.vehicle-image {
    max-width: 90%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.vehicle-icon .fas {
    color: #D7B65D;
    font-size: 3.5rem;
    filter: drop-shadow(0 2px 4px rgba(215, 182, 93, 0.3));
}

/* Vehicle Specs - More compact and stylish */
.vehicle-specs {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    margin: 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: nowrap;
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 60px;
    gap: 4px;
    transition: all 0.2s ease;
}

.spec-item i {
    color: #000;
    font-size: 18px;
}

.spec-item span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* Pricing - More prominent */
.pricing {
    text-align: center;
    margin-bottom: 15px;
}

.original-price {
    font-size: 13px;
    color: #dc3545;
    text-decoration: line-through;
    margin-bottom: 4px;
    font-weight: 500;
}

.current-price {
    font-size: 22px;
    font-weight: 800;
    color: #28a745;
    text-shadow: 0 1px 2px rgba(40, 167, 69, 0.2);
}

/* Return Trip Pricing */
.return-pricing {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4f6d4 100%);
    border: 2px solid #28a745;
    border-radius: 10px;
    margin-top: 12px;
    padding: 12px 8px;
    position: relative;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.15);
}

.return-pricing::before {
    content: "Round Trip";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.return-pricing small {
    font-size: 13px !important;
    font-weight: 600;
    color: #155724 !important;
    line-height: 1.6;
    display: block;
}

.return-pricing .outbound-price,
.return-pricing .return-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
}

.return-pricing .outbound-price {
    border-bottom: 1px solid #c3e6cb;
    margin-bottom: 4px;
    padding-bottom: 6px;
}

.return-pricing .price-value {
    font-weight: 700;
    color: #28a745;
    font-size: 14px;
}

/* Card Footer */
.vehicle-option .card-footer {
    background: #fff;
    border-top: 1px solid #e9ecef;
    padding: 12px 15px;
}

/* Book Button */
.btn-book-vehicle {
    background: linear-gradient(135deg, #D7B65D 0%, #bea94f 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(215, 182, 93, 0.3);
}

.btn-book-vehicle:hover {
    background: linear-gradient(135deg, #bea94f 0%, #a59445 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(215, 182, 93, 0.4);
}

.btn-book-vehicle:active {
    transform: translateY(0);
}

/* Loading Spinner */
.circle-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    gap: 10px;
}

.circle {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #D7B65D;
    animation: bounce 1.4s ease-in-out infinite both;
}

.circle:nth-child(1) { animation-delay: -0.32s; }
.circle:nth-child(2) { animation-delay: -0.16s; }
.circle:nth-child(3) { animation-delay: 0s; }
.circle:nth-child(4) { animation-delay: 0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Modal Styling */
.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

#modalVehicleDetails {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#modalJourneyDetails {
    border: 1px solid #dee2e6;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

#modalPricingBreakdown {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
}

/* Responsive Design - Tablet & Mobile */
@media (max-width: 768px) {
    .ukride-quotes-container {
        padding: 15px;
    }
    .vehicles-grid {
        grid-template-columns: 1fr!important;
        gap: 15px;
    }
    .vehicle-icon {
        height: 120px;
    }
    .vehicle-image {
        max-height: 100px;
    }
    .journey-summary {
        padding: 15px;
    }
    .vehicle-filter-tabs .nav-pills {
        flex-wrap: wrap;
        justify-content: center;
    }
    .vehicle-filter-tabs .nav-pills .nav-link {
        margin: 2px;
        padding: 6px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vehicle-specs {
        padding: 10px;
    }
    .spec-item {
        gap: 2px;
    }
    .spec-item i {
        font-size: 14px;
    }
    .spec-item span {
        font-size: 12px;
    }
    .current-price {
        font-size: 20px;
    }
    .vehicle-icon {
        height: 100px;
    }
    .vehicle-image {
        max-height: 80px;
    }
}

/* Animation for filtering */
.vehicle-card {
    transition: all 0.3s ease;
}

.vehicle-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

/* Success States */
.alert-info {
    border-left: 4px solid #17a2b8;
}

.badge-info {
    background-color: #17a2b8;
}

.badge-secondary {
    background-color: #6c757d;
}

/* Enhanced hover effects */
.vehicle-option:hover .vehicle-name {
    color: #D7B65D;
}

.vehicle-option:hover .vehicle-specs {
    background: #fff8f6;
    border-color: #ffeecb;
}

.vehicle-option:hover .spec-item i {
    color: #bea94f;
}
