/* Vehicle Cards Container */
.vehicles-container {
    --primary: #5D8736;
    --primary-light: #809D3C;
    --primary-dark: #4A6C2C;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Vehicle Card Styles */
.vehicle-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: calc(var(--i) * 0.1s);
    animation-fill-mode: both;
}

.vehicle-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(93, 135, 54, 0.15);
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary-dark), #76a649);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vehicle-card:hover::before {
    opacity: 1;
}

/* Vehicle Image */
.vehicle-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    height: 220px;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.1);
}

/* Vehicle Details */
.vehicle-details {
    padding: 10px 0;
}

.vehicle-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.vehicle-capacity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #7f8c8d;
    font-weight: 600;
}

.seat-icon {
    width: 20px;
    height: 20px;
    fill: var(--primary);
}

.vehicle-description {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Price and Action Section */
.vehicle-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.price-period {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

.book-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.book-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3a5421);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(93, 135, 54, 0.4);
    color: white;
    text-decoration: none;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-top: 80px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Controls */
.filter-container {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 20px;
    align-items: end;
}

.search-box {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 10px rgba(93, 135, 54, 0.3);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
}

.filter-select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 10px rgba(93, 135, 54, 0.3);
}

.price-range {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-range label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.price-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    cursor: pointer;
}

.price-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(93, 135, 54, 0.4);
}

.price-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(93, 135, 54, 0.4);
}

.results-count {
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(93, 135, 54, 0.4);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3a5421);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(93, 135, 54, 0.6);
}

.scroll-to-top i {
    font-size: 1.2rem;
}

/* Card Expanded State */
.vehicle-card.card-expanded {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.vehicle-card.card-expanded .vehicle-description {
    max-height: none;
    overflow: visible;
}

/* Loading States */
.book-btn.loading {
    background: #95a5a6;
    cursor: not-allowed;
}

.book-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vehicle-card {
        padding: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .vehicle-image {
        height: 200px;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-container {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .search-input,
    .filter-select {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .vehicles-container {
        padding: 15px;
    }
    
    .vehicle-card {
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .filter-container {
        padding: 15px;
        border-radius: 10px;
    }
    
    .search-input {
        padding: 10px 40px 10px 12px;
    }
    
    .search-icon {
        right: 12px;
    }
    
    .price-range label {
        font-size: 0.9rem;
    }
}

/* Enhanced Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.vehicle-card:hover .book-btn {
    animation: pulse 2s infinite;
}

/* Focus States for Accessibility */
.search-input:focus,
.filter-select:focus,
.price-slider:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.book-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.scroll-to-top:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}