/* Vehicles Page Styles - Shia Group Theme */

/* Hero Section */
.vehicles-hero {
    height: 50vh;
    position: relative;
    background: linear-gradient(
        rgba(0, 0, 0, 0.7), 
        rgba(0, 0, 0, 0.7)
    ), url('https://images.unsplash.com/photo-1503376780353-7e6692767b70?w=1920&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ccc;
}

/* Search Card */
.search-card {
    background: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-card-header {
    background: #dc3545;
    padding: 1rem 1.5rem;
    color: white;
}

.search-card-header h5 {
    margin: 0;
    font-weight: 600;
}

.search-card-body {
    padding: 2rem;
}

.search-form {
    margin: 0;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: end;
}

.search-group {
    display: flex;
    flex-direction: column;
}

.search-label {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.search-control {
    padding: 12px 15px;
    border: 1px solid #444;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
}

.search-control::placeholder {
    color: #999;
}

.search-control option {
    background: #333;
    color: white;
}

.search-btn {
    padding: 12px 20px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-btn:hover {
    background: #c82333;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filter-title {
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #2c2c2c;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    text-decoration: none;
}

.filter-btn.active {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.filter-badge {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
}

.filter-btn.active .filter-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* Results Info */
.results-info {
    color: #666;
    font-size: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

/* Vehicles Grid */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.vehicle-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.vehicle-image-container {
    position: relative;
}

.vehicle-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.vehicle-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.available {
    background: #28a745;
    color: white;
}

.status-badge.unavailable {
    background: #ffc107;
    color: #333;
}

.vehicle-content {
    padding: 1.5rem;
}

.vehicle-title {
    color: #2c2c2c;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.vehicle-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vehicle-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.feature-item i {
    color: #dc3545;
    margin-right: 0.5rem;
    width: 16px;
}

.vehicle-footer {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.vehicle-price {
    text-align: center;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #dc3545;
}

.price-period {
    color: #666;
    font-size: 0.9rem;
}

.vehicle-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.btn-book {
    background: #dc3545;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-book:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.btn-unavailable {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: not-allowed;
}

.btn-details {
    background: transparent;
    color: #dc3545;
    padding: 0.75rem 1rem;
    border: 2px solid #dc3545;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background: #dc3545;
    color: white;
}

/* Modal Styles */
.vehicle-modal .modal-header {
    background: #2c2c2c;
    color: white;
    border-bottom: none;
}

.vehicle-modal .modal-title {
    font-weight: 600;
}

.vehicle-modal .btn-close {
    filter: invert(1);
}

.vehicle-details-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: 600;
    color: #2c2c2c;
}

.detail-value {
    color: #666;
}

.price-highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: #dc3545 !important;
}

.features-title {
    color: #2c2c2c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.features-list i {
    color: #28a745;
    margin-right: 0.75rem;
    width: 16px;
}

.vehicle-modal .modal-footer {
    border-top: 1px solid #eee;
}

.btn-primary {
    background: #dc3545;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* No Vehicles Card */
.no-vehicles-card {
    background: white;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.no-vehicles-content i {
    color: #ccc;
}

.no-vehicles-content h5 {
    color: #2c2c2c;
    margin-bottom: 1rem;
}

.no-vehicles-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    background: #2c2c2c;
    color: white;
    padding: 3rem;
    border-radius: 8px;
    text-align: center;
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: #dc3545;
    color: white;
}

.cta-btn.primary:hover {
    background: #c82333;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background: white;
    color: #2c2c2c;
    text-decoration: none;
}

.cta-btn.success {
    background: #28a745;
    color: white;
}

.cta-btn.success:hover {
    background: #218838;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-danger h5 {
    color: #721c24;
    margin-bottom: 0.5rem;
}

.alert-danger .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.alert-danger .btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-row {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .search-row .search-group:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        flex-direction: column;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicle-features {
        grid-template-columns: 1fr;
    }
    
    .vehicle-actions {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .vehicles-hero {
        height: 40vh;
    }
    
    .search-card-body {
        padding: 1rem;
    }
    
    .filter-section {
        padding: 1rem;
    }
    
    .vehicle-content {
        padding: 1rem;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}