.fleet-showcase-container {
    padding: 40px 0;
    background: #f6f3ec; /* Cream/Ivory default */
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Filters - Pill Buttons */
.fs-filters {
    display: flex;
    justify-content: center;
    gap: 16px; /* Default gap */
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.fs-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    border: 1px solid #e6dfd0; /* Hairline */
    background-color: transparent;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #5a6472; /* Muted slate */
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.fs-filter-btn:focus-visible {
    outline: 2px solid #bfa06a;
    outline-offset: 2px;
}

.fs-filter-btn:not(.active):hover, 
.fs-filter-btn:not(.active):focus {
    background-color: rgba(230, 223, 208, 0.3); 
    border-color: #d1c8b3; 
    color: #0f2747;
}

.fs-filter-btn.active {
    background-color: #0f2747; 
    border-color: #0f2747;
    color: #f6f3ec; 
    font-weight: 600;
}

/* Infinite Carousel Wrapper & Track */
.fs-carousel-wrapper {
    position: relative;
    width: 100%;
    cursor: grab;
    overflow: hidden; /* Prevent horizontal scrollbars */
    display: block; /* Ensure it's not hidden */
}

.fs-carousel-wrapper:active {
    cursor: grabbing;
}

.fs-carousel-track {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    width: max-content;
    will-change: transform;
    animation: fs-scroll 40s linear infinite;
    /* Ensure no flex wrap to keep it as a single row */
    flex-wrap: nowrap;
    /* Ensure it's always visible */
    visibility: visible;
    opacity: 1;
}

.fs-carousel-wrapper:hover .fs-carousel-track,
.fs-carousel-wrapper:focus-within .fs-carousel-track {
    animation-play-state: paused;
}

.fs-carousel-track.is-dragging {
    animation: none !important;
    transition: none !important;
}

@keyframes fs-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); /* Half width minus half gap */ }
}

/* Edge Masks */
.fs-edge-mask {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15%;
    max-width: 150px;
    z-index: 5;
    pointer-events: none;
}
.fs-edge-left {
    left: 0;
    background: linear-gradient(to right, #f6f3ec 0%, transparent 100%);
}
.fs-edge-right {
    right: 0;
    background: linear-gradient(to left, #f6f3ec 0%, transparent 100%);
}

/* Cards - The Single Container */
.fs-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* Add min-width constraints to ensure visibility on mobile */
    min-width: 260px;
    display: block; 
    flex: 0 0 320px; /* Fixed width for desktop */
    aspect-ratio: 1 / 1.5; /* Default */
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.5s ease;
    background: #e2dfd8; 
}

.fs-card.filtered-out {
    display: none !important;
}

.fs-card:hover, .fs-card:focus {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    outline: none;
}

/* Back Layer: Full Image */
.fs-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0; 
}
.fs-card-img.loaded {
    opacity: 1;
}

/* Base Tint Overlay */
.fs-card-tint {
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: opacity 0.5s ease;
    background-color: rgba(15, 39, 71, 0.1); 
}
.fs-card:hover .fs-card-tint {
    opacity: 0;
}

/* Gradient Overlay */
.fs-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 3;
    background: linear-gradient(to top, rgba(15,39,71,0.9) 0%, transparent 100%);
    pointer-events: none;
}

/* Front Layer: Content Container */
.fs-card-content {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 30px 25px 25px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    pointer-events: none;
}

/* Content Details */
.fs-vessel-name {
    margin: 0 0 8px 0;
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    pointer-events: auto;
}

.fs-vessel-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    transform: translateY(0);
    transition: transform 0.4s ease;
    pointer-events: auto;
}

.fs-card:hover .fs-vessel-details {
    transform: translateY(-5px);
}

.fs-vessel-cat {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 15px;
    color: #f6f3ec;
    opacity: 0.95;
}

.fs-vessel-specs {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #e2dfd8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Hover Cue */
.fs-card-hover-cue {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #bfa06a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: absolute;
    bottom: 15px;
    left: 25px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.fs-card:hover .fs-card-hover-cue {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Scaling */
@media (max-width: 1024px) {
    .fs-card { flex: 0 0 280px; }
}

@media (max-width: 767px) {
    .fs-card { 
        flex: 0 0 260px; /* Kept as fixed width, no percentages for infinite scroll stability */
        min-width: 260px; /* Force minimum width to guarantee visibility */
    } 
    
    .fs-edge-mask { width: 10%; }
    
    .fs-filters { 
        gap: 12px; 
        justify-content: center;
        align-items: center;
    }
    .fs-filter-btn { 
        font-size: 14px; 
        padding: 10px 20px;
    }
}