/* Modern Vehicle Display Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --background-light: #f8fafc;
    --background-white: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Styles */
body.vehicles-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Modern Hero Section */
.hero-section {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: rgb(200, 234, 76);
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem); /* More responsive for mobile */
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #4b4f02 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-break: break-word;
    line-height: 1.1;
}

.hero-title,
.hero-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    hyphens: auto;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.25rem); /* More responsive for mobile */
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    word-break: break-word;
    line-height: 1.3;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

/* Center the hero title and subtitle */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.2rem;
        margin-top: 0;
        margin-bottom: 0.3rem;
        padding: 0 0.5rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }
    .hero-content {
        margin-top: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .hero-section {
        height: 28vh;
        min-height: 180px;
        padding-top: 56px !important; /* Typical mobile nav height */
    }
    .hero-stats {
        gap: 0.2rem;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 38vh;
        min-height: 220px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    .hero-content {
        padding: 0 0.5rem;
    }
    .hero-title {
        font-size: 1.2rem;
        line-height: 1.15;
        padding: 0 0.2rem;
        margin-bottom: 0.75rem;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        padding: 0 0.2rem;
    }
    .hero-stats {
        gap: 0.2rem;
        flex-direction: column;
        align-items: center;
    }
    .stat-item {
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .hero-title {
        font-size: 1rem;
    }
    .hero-subtitle {
        font-size: 0.85rem;
    }
}

/* Modern Filter Section */
.filter-section {
    padding: 2rem 0;
    background: var(--background-white);
    border-bottom: 1px solid var(--border-color);
}

.filter-card {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.filter-group {
    height: 100%;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.filter-label i {
    color: var(--primary-color);
}

.modern-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-white);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.modern-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

.reset-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.reset-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Modern Vehicles Grid */
.vehicles-section {
    padding: 4rem 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.vehicle-card-wrapper {
    transition: all 0.3s ease;
}

.modern-vehicle-card {
    background: var(--background-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modern-vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Modern Image Section */
.vehicle-image-section {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.image-carousel {
    height: 100%;
    position: relative;
}

.carousel-container {
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.vehicle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.modern-vehicle-card:hover .vehicle-image {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
    color: var(--text-muted);
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Modern Navigation */
.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.carousel-nav.prev {
    left: 1rem;
}

.carousel-nav.next {
    right: 1rem;
}

.modern-vehicle-card:hover .carousel-nav {
    opacity: 1;
}

/* Modern Badge */
.vehicle-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

.vehicle-badge span {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-md);
}

/* Modern Content Section */
.vehicle-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.vehicle-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.vehicle-year {
    background: var(--background-light);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
}

.vehicle-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.spec-item i {
    color: var(--primary-color);
}

/* Modern Features */
.vehicle-features {
    margin-bottom: 1.5rem;
}

.vehicle-features h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--success-color);
    font-size: 0.75rem;
}

.vehicle-description {
    margin-bottom: 2rem;
    flex: 1;
}

.vehicle-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Modern Guide Section */
.guide-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.guide-avatar {
    flex-shrink: 0;
}

.guide-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.guide-info {
    flex: 1;
}

.guide-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.guide-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
}

.guide-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: var(--accent-color);
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.action-btn.primary:hover {
    background: var(--primary-dark);
}

.action-btn.secondary {
    background: var(--background-light);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
}

.action-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vehicles-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 38vh;
        min-height: 220px;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .hero-stats {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-card {
        padding: 1.5rem;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .vehicle-image-section {
        height: 440px;
    }
    
    .vehicle-content {
        padding: 1.5rem;
    }
    
    .guide-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-actions {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 28vh;
        min-height: 180px;
        padding-top: 56px !important; /* Typical mobile nav height */
    }
    
    .hero-title {
        font-size: 1.2rem;
        margin-top: 0;
        margin-bottom: 0.3rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .hero-content {
        margin-top: 0.5rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-stats {
        gap: 0.2rem;
        flex-direction: column;
        align-items: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-card {
        padding: 1rem;
    }
    
    .vehicle-image-section {
        height: 200px;
    }
    
    .vehicle-content {
        padding: 1rem;
    }
    
    .vehicle-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .vehicle-specs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.container, .container-fluid {
    word-break: break-word;
    hyphens: auto;
}