/* Bus Detail Page Styles */

/* Hero Section */
.bus-detail-hero {
    background: linear-gradient(135deg, #4285F4 0%, #e8f0fe 50%, #ffffff 100%);
    padding: 200px 0 40px;
    margin-top: -200px;
    margin-bottom: 30px;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    aspect-ratio: 16/10;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-image-container:hover img {
    transform: scale(1.02);
}

/* Camera hint overlay */
.camera-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.hero-image-container:hover .camera-hint {
    opacity: 1;
}

/* Specs Strip */
.specs-strip {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.specs-strip .bus-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.specs-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Capacity Badge (reuse from fleet.css) */
.capacity-badge,
.vehicle-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f0fe;
    color: #4285F4;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.capacity-badge i,
.vehicle-badge i {
    font-size: 0.9rem;
}

/* Amenities Row */
.amenities-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.amenities-row .amenity-icon {
    color: #5f6368;
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.amenities-row .amenity-icon:hover {
    color: #4285F4;
}

/* Amenity Tooltips (shared with layout.css) */
/* Tooltip styles defined in layout.css */

/* Gallery Section */
.gallery-section {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 0 15px;
}

.gallery-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5f6368;
    margin-bottom: 12px;
    padding-left: 4px;
}

/* Thumbnail Grid */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.thumbnail {
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.25);
}

.thumbnail:hover img {
    transform: scale(1.1);
}

.thumbnail.active {
    border-color: #4285F4;
    box-shadow: 0 4px 16px rgba(66, 133, 244, 0.3);
}

/* Thumbnail Zoom Hint */
.thumbnail {
    position: relative;
}

.thumbnail-zoom {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail:hover .thumbnail-zoom {
    opacity: 1;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 20px 15px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
    border-radius: 8px;
}

.lightbox-next {
    right: 20px;
    border-radius: 8px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 0.9rem;
    opacity: 0.8;
    z-index: 10001;
}

/* Sticky CTA Button */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.sticky-cta .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #4285F4;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.4);
    transition: all 0.3s ease;
}

.sticky-cta .btn-cta:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(66, 133, 244, 0.5);
    text-decoration: none;
    color: white;
}

.sticky-cta .btn-cta i {
    font-size: 1.1rem;
}

/* Back Link variant for hero (light version) */
.back-link-hero {
    margin-bottom: 20px;
    padding: 0;
}

.back-link-hero a {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.back-link-hero a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .bus-detail-hero {
        margin-top: -120px;
        padding: 160px 0 30px;
    }

    .hero-image-container {
        margin: 0 15px;
        border-radius: 12px;
    }

    .specs-strip {
        padding: 20px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .specs-strip .bus-name {
        font-size: 1.5rem;
    }

    .specs-info {
        width: 100%;
        justify-content: flex-start;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .lightbox-nav {
        padding: 15px 10px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .sticky-cta {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .sticky-cta .btn-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media (max-width: 576px) {
    .specs-strip .bus-name {
        font-size: 1.3rem;
    }

    .capacity-badge,
    .vehicle-badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .amenities-row {
        gap: 12px;
    }

    .amenities-row .amenity-icon {
        font-size: 1.1rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .camera-hint {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
