/* Fleet Categories Styling */

.fleet-category-subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.category-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.fleet_description {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
}

.fleet_description .lead {
    font-size: 1.3rem;
    color: var(--light);
}

.fleet-category-card {
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.fleet-category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.fleet-category-card .category-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 2;
}

.fleet-category-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.fleet-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.fleet-category-card:hover .fleet-category-image img {
    transform: scale(1.1);
}

.fleet-category-content {
    padding: 1.5rem;
    background-color: rgba(10, 13, 20, 0.9);
}

.fleet-category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.fleet-category-content p {
    color: var(--light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.category-btn {
    background-color: var(--red);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    font-weight: 500;
}

.category-btn:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* Boat Image Gallery Thumbnails */
.thumbnail-container {
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    cursor: pointer;
    background-color: #f8f9fa;
}

.thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-container:hover img {
    transform: scale(1.05);
}

.thumbnail-container.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Main Carousel Image Container */
.carousel-image-container {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    background-color: #000; /* Black background for letterboxing */
}

.carousel-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Maintain aspect ratio without cropping */
}

/* Preserve aspect ratio but fill available space */
.carousel-image-container.fill img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Make sure we're responsive */
@media (max-width: 768px) {
    .fleet-category-image {
        height: 180px;
    }
    
    .fleet-category-content h3 {
        font-size: 1.3rem;
    }
    
    .fleet_description .lead {
        font-size: 1.1rem;
    }
}
