﻿.hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

    .hero-slide.aktivni {
        opacity: 1;
        pointer-events: auto;
        position: relative;
    }

    .hero-slide img {
        display: block;
        width: 100%;
        height: auto;
    }

.kupon-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 30px 0 0 0;
    z-index: 0;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    background: #000;
}

    .kupon-carousel .carousel-okno {
        position: relative;
        width: 100%;
        background: #000;
        overflow: hidden;
        border-radius: 8px;
        /* 🔥 sjednocená výška */
        height: 570px;
    }

    /* slide jako flexbox pro centrování */
    .kupon-carousel .carousel-slide {
        display: none;
        position: absolute;
        inset: 0;
        justify-content: center;
        align-items: center;
    }

        .kupon-carousel .carousel-slide.aktivni {
            display: flex;
        }

        .kupon-carousel .carousel-slide a {
            display: flex;
            width: 100%;
            height: 100%;
            justify-content: center;
            align-items: center;
        }

        /* 🔥 klíčové nastavení obrázku */
        .kupon-carousel .carousel-slide img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            display: block;
        }

    /* šipky */
    .kupon-carousel .carousel-sipka {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 42px;
        height: 42px;
        border: none;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.65);
        color: #fff;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

        .kupon-carousel .carousel-sipka:hover {
            background: rgba(0, 0, 0, 0.85);
        }

    .kupon-carousel .carousel-sipka-vlevo {
        left: 10px;
    }

    .kupon-carousel .carousel-sipka-vpravo {
        right: 10px;
    }

/* mobil */
@media (max-width: 768px) {
    .kupon-carousel {
        max-width: 100%;
    }

        .kupon-carousel .carousel-okno {
            height: 220px; /* menší výška na mobilu */
        }

        .kupon-carousel .carousel-sipka {
            width: 36px;
            height: 36px;
            font-size: 20px;
        }
}