/* Fleet Viewer Frontend Styles */

.fv-fleet-wrapper {
    --fv-primary-local: var(--fv-primary, #000000);
    --fv-secondary-local: var(--fv-secondary, #1a1a1a);
    --fv-accent-local: var(--fv-accent, #d4af37);
    --fv-card-bg-local: var(--fv-card-bg, #ffffff);
    --fv-btn-bg-local: var(--fv-btn-bg, #000000);
    --fv-btn-hover-local: var(--fv-btn-hover, #d4af37);
    --fv-text-local: var(--fv-text, #333333);
    --fv-heading-local: var(--fv-heading, #111111);
    --fv-muted-local: var(--fv-muted, #666666);
    --fv-font-local: var(--fv-font, "Inter", sans-serif);
    --fv-radius-local: var(--fv-radius, 12px);
    --fv-shadow-local: var(--fv-shadow, 0 10px 30px rgba(0,0,0,0.08));
    --fv-anim-speed-local: var(--fv-anim-speed, 0.3s);
    --fv-icon-local: var(--fv-icon, var(--fv-accent, #d4af37));

    font-family: var(--fv-font-local);
    color: var(--fv-text-local);
    margin: 2rem 0;
}

.fv-fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .fv-fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fv-fleet-grid {
        grid-template-columns: 1fr;
    }
}

/* Card Styling */
.fv-vehicle-card {
    background-color: var(--fv-card-bg-local);
    border-radius: var(--fv-radius-local);
    overflow: hidden;
    box-shadow: var(--fv-shadow-local);
    transition: transform var(--fv-anim-speed-local) cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow var(--fv-anim-speed-local) cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.fv-vehicle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Image Section */
.fv-card-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio 5:3 */
    overflow: hidden;
    cursor: pointer;
    background: #f8f9fa;
}

.fv-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--fv-anim-speed-local) ease;
}

.fv-placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.fv-vehicle-card:hover .fv-card-image img {
    transform: scale(1.05);
}

.fv-gallery-indicator {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

.fv-vehicle-card:hover .fv-gallery-indicator {
    background: rgba(0, 0, 0, 0.8);
}

/* Content Section */
.fv-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.fv-vehicle-title {
    margin: 0 0 10px 0;
    color: var(--fv-heading-local);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
}

.fv-vehicle-desc {
    color: var(--fv-muted-local);
    font-size: 0.95rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
    flex-grow: 1;
}

.fv-vehicle-specs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.fv-spec-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--fv-heading-local);
    font-weight: 500;
    font-size: 1rem;
}

.fv-spec-item svg {
    width: 22px;
    height: 22px;
    color: var(--fv-icon-local);
}

/* Button */
.fv-card-action {
    margin-top: auto;
}

.fv-book-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--fv-btn-bg-local);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: calc(var(--fv-radius-local) - 4px);
    font-weight: 600;
    font-size: 1rem;
    transition: background-color var(--fv-anim-speed-local) ease;
    border: none;
    cursor: pointer;
}

.fv-book-btn:hover {
    background-color: var(--fv-btn-hover-local);
    color: #ffffff;
}

/* Entrance Animations */
.fv-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fv-reveal.fv-active {
    opacity: 1;
    transform: translateY(0);
}


/* Lightbox Styles */
.fv-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fv-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.fv-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.fv-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    user-select: none;
}

.fv-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
}

.fv-lightbox-close:hover {
    color: var(--fv-accent, #d4af37);
}

.fv-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
    user-select: none;
}

.fv-lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
    color: var(--fv-accent, #d4af37);
}

.fv-lightbox-prev {
    left: 20px;
}

.fv-lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .fv-lightbox-nav {
        font-size: 20px;
        padding: 15px;
    }
    .fv-lightbox-prev { left: 10px; }
    .fv-lightbox-next { right: 10px; }
}
