/* Elementor Carousel Slider Styles */

.ecs-carousel-wrapper {
    width: 100%;
    position: relative;
    margin: 20px 0;
    padding: 0;
    overflow: visible; /* Pozwól strzałkom być widocznymi poza kontenerem */
}

.ecs-carousel-swiper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.ecs-carousel-slide {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    padding: 0; /* Usunięto padding, bo nie ma strzałek */
    box-sizing: border-box;
}

.ecs-carousel-slide > * {
    width: 100%;
}

/* Navigation Arrows - Ukryte */
.ecs-carousel-nav {
    display: none !important;
}

.ecs-carousel-nav button {
    pointer-events: all;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(224, 224, 224, 0.5);
    color: #333;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    font-size: 16px;
    position: absolute;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.25; /* Bardzo delikatnie widoczne domyślnie */
}

.ecs-carousel-nav .ecs-carousel-prev {
    left: 10px; /* 10px od lewej krawędzi slajdu */
}

.ecs-carousel-nav .ecs-carousel-next {
    right: 10px; /* 10px od prawej krawędzi slajdu */
}

/* Pokazuj strzałki przy hover na wrapper */
.ecs-carousel-wrapper:hover .ecs-carousel-nav button,
.ecs-carousel-wrapper.ecs-nav-visible .ecs-carousel-nav button {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.95);
    border-color: #e0e0e0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ecs-carousel-nav button:hover {
    background-color: #fff;
    border-color: #333;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.ecs-carousel-nav button:focus,
.ecs-carousel-nav button:active {
    opacity: 1;
    outline: 2px solid rgb(42, 42, 42) !important;
    outline-offset: 2px;
    background-color: #fff;
    border-color: #333;
}

/* Pagination Dots - Wyśrodkowane */
.ecs-carousel-pagination,
.swiper-pagination,
.ecs-carousel-swiper .swiper-pagination,
.swiper-pagination-bullets {
    position: absolute !important;
    bottom: 4px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    z-index: 10 !important;
    width: auto !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(204, 204, 204, 0.6) !important;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
    opacity: 1;
}

.swiper-pagination-bullet:hover {
    background-color: rgba(153, 153, 153, 0.8) !important;
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background-color: rgb(122, 122, 122) !important;
    transform: scale(1.3);
    opacity: 1;
}

/* Empty state */
.ecs-carousel-empty {
    background-color: #f5f5f5;
    border: 2px dashed #ccc;
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ecs-carousel-pagination {
        bottom: 10px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .ecs-carousel-slide {
        min-height: 200px;
    }

    .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

/* Accessibility */
.ecs-carousel-swiper:focus-visible {
    outline: 2px solid rgb(68, 68, 68);
    outline-offset: -2px;
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ecs-carousel-slide {
    animation: slideIn 0.5s ease-in-out;
}

