/* Carousel - základní nastavení pro Swiper */
.fleet-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 50px 0;
    background: #f8f9fa;
    
}
.section-title {
    z-index: 1;
    position: relative;
}

.car-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0px 0;
}

.car-carousel-wrapper {
    width: 100%;
    margin: 0 auto;
    overflow: visible;
}

/* Nastavení pro Swiper */
.car-swiper {
    width: 100%;
    padding: 20px 0 40px 0;
    overflow: visible;
    position: relative;
}

.car-swiper .swiper-wrapper {
    align-items: center;
}

.car-swiper .swiper-slide {
    transition: opacity 0.3s ease;
    opacity: 0.5;
    height: auto;
}

.car-swiper .swiper-slide-active {
    opacity: 1;
    z-index: 10;
}

.car-swiper .swiper-slide-prev, 
.car-swiper .swiper-slide-next {
    z-index: 5;
    scale: 0.9;
}

/* Skrytí ostatních karet kromě aktivní, předchozí a následující */
.car-swiper .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    opacity: 0 !important;
    pointer-events: none;
}

/* Nastavení karet */
.car-item {
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.car-swiper .swiper-slide-active .car-item {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.car-slide-header {
    margin-bottom: 15px;
    position: absolute;
}

.car-slide-header-right {
    position: absolute;
    top: 20px;
    right: 20px;
    text-align: right;
}

.car-class {
    color: #2671B8;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
}

.car-model {
    font-weight: 700;
    font-size: 18px;
    margin-top: 5px;
}

.car-img {
    max-width: 100%;
    max-height: 100%;
    margin: 0 0 0 0;
    object-fit: contain;
    padding-bottom: 25px;
}

.car-feature-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.car-feature-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Navigační tlačítka */
.car-swiper .swiper-button-next,
.car-swiper .swiper-button-prev {
    background-color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #2671B8;
    transition: all 0.2s ease;
}

.car-swiper .swiper-button-next:after,
.car-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

.car-swiper .swiper-button-next:hover,
.car-swiper .swiper-button-prev:hover {
    background-color: #2671B8;
    color: white;
    transform: scale(1.1);
}

/* Efekt přechodu mezi slidy */
.car-swiper .swiper-container-3d .swiper-slide-shadow-left,
.car-swiper .swiper-container-3d .swiper-slide-shadow-right {
    background-image: none !important;
}
/* Upravená maximální šířka containeru !nevim jestli použiju bylo pro carousel 
@media (min-width: 1400px) {
    .container {
        max-width: 1156px !important;
    }
} 
/* Upravená maximální šířka containeru !nevim jestli použiju bylo pro carousel */


/* Vlastní navigační tlačítka */
.navigation-container {
    position: relative;
}
.custom-navigation {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: -20px 0;
    gap: 20px;
}

.custom-nav-btn {
    background-color: transparent;
    color: #cacaca;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    z-index: 10;
    bottom: 180px;
    border: 1px solid #cacaca;
}
.custom-prev-btn {
    left: -55px;
}
.custom-next-btn {
    right: -55px;
}



.custom-nav-btn:hover {
    background-color: #ffffff;
    transform: scale(1.1);
}

.custom-nav-btn i {
    font-size: 20px;
}

/* Responzivní nastavení pro vlastní navigační tlačítka */

@media (min-width: 576px) and (max-width: 768px) {
    .custom-nav-btn {
        bottom: 150px;
    }
}

@media (min-width: 1400px) {

}   
@media (min-width: 1200px) {
}   
/* Responzivní nastavení */
@media (max-width: 992px) {
    .car-item {
        height: auto;
    }
    
    .car-img {
        padding-bottom: 25px;
    }
}

@media (max-width: 576px) {
    .car-carousel-container {
        padding: 20px 0;
    }
    
    .car-item {
        height: auto;
        padding: 25px;
    }
    
    .car-img {
        max-height: auto;
    }
    
    .car-slide-header {
        margin-bottom: 0;
        position: static;
    }
    
    .car-slide-header-right {
        position: static;
        top: auto;
        right: auto;
        text-align: left;
    }
    
    .car-model {
        font-size: 16px;
        margin-top: 0;
    }
    
    .car-feature-left,
    .car-feature-right {
        font-size: 12px;
    }
    .navigation-container {
        position: relative;
    }
    
    .custom-navigation {
        width: 100%;
        display: block;
        margin: -25px 0;
        gap: 0px;
        text-align: center;
    }
    .custom-nav-btn {
        top: -0px;
        position: initial;
        margin: 0 auto;
        display: block;
        width: 40px;
        height: 40px;
    }
    .custom-prev-btn {
        display: inline;
    }
    .custom-next-btn {
        display: inline;
    }   
    .custom-nav-btn i {
        font-size: 16px;
    }
}



