/* ==========================================================================
   ROYAL ELITE LIMO - FLEET PAGE STYLESHEET
   Adds specific layout parameters, glare overlays, sub-navigation, and CTAs.
   ========================================================================== */

/* --- Category Sub-Navigation (Apple style) --- */
.fleet-sub-nav-wrapper {
    position: sticky;
    top: 90px;
    width: 100%;
    z-index: 990;
    margin-top: -30px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.fleet-sub-nav {
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 40px;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    max-width: 90%;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.fleet-sub-nav::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.sub-nav-item {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    white-space: nowrap;
    transition: all 0.3s var(--ease-ios);
}

.sub-nav-item:hover, .sub-nav-item.active {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

/* --- Category Layout Sections --- */
.fleet-category-section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    scroll-margin-top: 160px;
}

.fleet-category-section:last-of-type {
    border-bottom: none;
}

.fleet-cat-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

/* Alternate sections stagger */
.fleet-category-section:nth-of-type(even) .fleet-cat-grid {
    grid-template-columns: 0.85fr 1.15fr;
}

.fleet-category-section:nth-of-type(even) .fleet-cat-visual {
    order: 2;
}

.fleet-cat-visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 80%);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.fleet-cat-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transform: scale(0.98);
    transition: transform 0.8s var(--ease-ios);
}

.fleet-cat-visual:hover .fleet-cat-img {
    transform: scale(1.02);
}

/* Image Sweeping Reflection Overlay */
.fleet-cat-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        transparent 100%
    );
    transform: skewX(-25deg);
    transition: none;
    z-index: 5;
    pointer-events: none;
}

.fleet-cat-visual:hover::after {
    left: 150%;
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.fleet-cat-info {
    display: flex;
    flex-direction: column;
}

.fleet-cat-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.fleet-cat-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Spec badges in categories */
.fleet-cat-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cat-spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-primary);
}

.cat-spec-badge i, .cat-spec-badge svg {
    width: 14px;
    height: 14px;
    color: var(--gold-accent);
}

/* Available vehicle text tags */
.fleet-available-models {
    margin-bottom: 32px;
}

.available-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.available-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.available-tag {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.82rem;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
}

/* --- Inline intermediate CTAs --- */
.fleet-intermediate-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--glass-border);
    padding-top: 24px;
    margin-top: auto;
}

.cta-price-box {
    display: flex;
    flex-direction: column;
}

.cta-price-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.cta-price-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-accent);
}

.cta-price-value small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.cta-actions-group {
    display: flex;
    gap: 12px;
}

/* --- Block Section CTAs (Alternate Breaks) --- */
.fleet-section-breaker-cta {
    padding: 48px 0;
    background: linear-gradient(to right, rgba(10, 10, 11, 0.9), rgba(2, 2, 2, 0.95));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

.breaker-cta-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.breaker-cta-text h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.breaker-cta-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.breaker-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* --- RESPONSIVE FLEET MEDIA QUERIES --- */

@media (max-width: 1024px) {
    .fleet-cat-grid, .fleet-category-section:nth-of-type(even) .fleet-cat-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .fleet-category-section:nth-of-type(even) .fleet-cat-visual {
        order: 0;
    }
    
    .fleet-sub-nav-wrapper {
        top: 70px;
        margin-bottom: 30px;
    }
    
    .breaker-cta-container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .breaker-cta-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .fleet-category-section {
        padding: 50px 0;
    }
    
    .fleet-cat-title {
        font-size: 1.8rem;
    }
    
    .fleet-intermediate-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cta-actions-group {
        width: 100%;
    }
    
    .cta-actions-group .btn {
        flex: 1;
    }
    
    .breaker-cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .breaker-cta-actions .btn {
        width: 100%;
    }
}
