/* ============================================================
   Image Carousel Additional Options — Frontend CSS
   All rules scoped to .icao-* so nothing bleeds out.
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.icao-carousel-wrapper {
    position: relative;
    width: 100%;
    -webkit-user-select: none;
    user-select: none;
}

/* ── Swiper container ────────────────────────────────────── */
.icao-carousel-wrapper .icao-swiper {
    width: 100%;
    overflow: hidden;
    /* Height is set by Elementor's responsive selector output */
}

/* ── Each slide ──────────────────────────────────────────── */
.icao-carousel-wrapper .icao-slide {
    position: relative;
    overflow: hidden;
    display: flex;
}

/* ── Anchor fills the slide (required for lightbox) ─────── */
.icao-carousel-wrapper .icao-slide-link {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

/* ── Image fills the anchor ──────────────────────────────── */
.icao-carousel-wrapper .icao-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    /* object-fit & object-position set by Elementor selector output */
    object-fit: cover;
    object-position: center center;
    flex-shrink: 0;
    pointer-events: none; /* let the <a> handle clicks */
}

/* ── Caption ─────────────────────────────────────────────── */
.icao-carousel-wrapper .icao-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: block;
    font-size: 0.9rem;
    line-height: 1.4;
    /* colour/bg/padding set by Elementor style controls */
    pointer-events: none;
}

/* ── Arrows ──────────────────────────────────────────────── */
.icao-carousel-wrapper .icao-btn-prev,
.icao-carousel-wrapper .icao-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.4);
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    line-height: 0;
}

.icao-carousel-wrapper .icao-btn-prev { left: 12px; }
.icao-carousel-wrapper .icao-btn-next { right: 12px; }

.icao-carousel-wrapper .icao-btn-prev:hover,
.icao-carousel-wrapper .icao-btn-next:hover {
    background: rgba(0,0,0,0.7);
}

.icao-carousel-wrapper .icao-btn-prev svg,
.icao-carousel-wrapper .icao-btn-next svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    display: block;
    pointer-events: none;
}

.icao-carousel-wrapper .icao-btn-prev.swiper-button-disabled,
.icao-carousel-wrapper .icao-btn-next.swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ── Dots ────────────────────────────────────────────────── */
.icao-carousel-wrapper .swiper-pagination {
    bottom: 10px;
}

.icao-carousel-wrapper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.55);
    opacity: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.icao-carousel-wrapper .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
}
