/*
 * [recommended_aircraft] — Figma "Services Section V2".
 * Centred title + row of aircraft cards with bg image, gradient and frosted info box.
 */

.recommended-aircraft {
    padding: 140px 100px;
    background: #FFFFFF;
}

.recommended-aircraft__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    max-width: 1240px;
    margin: 0 auto;
}

.recommended-aircraft__heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 764px;
    text-align: center;
}

.recommended-aircraft__suptitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 150%;
    text-transform: uppercase;
    color: #D7C09B;
}

.recommended-aircraft__title {
    margin: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 130%;
    text-transform: uppercase;
    color: #1E1F2E;
}

/* Slider container — Swiper is ALWAYS initialised (see PHP inline script).
   Sizing of slides is driven by Swiper's breakpoint-aware slidesPerView and
   spaceBetween. When cards fit the viewport (desktop), Swiper's watchOverflow
   adds .swiper-pagination-lock on the pagination element → CSS hides it; touch
   is suppressed by Swiper itself. When they don't fit (tablet/mobile), the
   carousel activates and pagination appears.

   Card width / spacing are intentionally set by Swiper (inline style on .swiper-
   slide + transform on .swiper-wrapper). We do NOT set flex sizing here so we
   don't fight the slider's measurements. */
.recommended-aircraft__list {
    width: 100%;
    overflow: hidden;
}

.recommended-aircraft__list .swiper-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.recommended-aircraft__card {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 24px;
    height: 330px;
    background-color: #1E1F2E;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit;
}

/* Pagination — visible whenever Swiper deems the carousel "scrollable" (slides
   overflow). When all cards fit, Swiper adds .swiper-pagination-lock and we
   hide it. Figma-spec dots: 16×6 default 0.4 opacity, 100×6 solid for active,
   4px gap, beige (#D7C09B), pill radius. */
.recommended-aircraft__pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.recommended-aircraft__pagination.swiper-pagination-lock {
    display: none;
}

.recommended-aircraft__pagination .swiper-pagination-bullet {
    width: 16px;
    height: 6px;
    margin: 0 !important;
    background: #D7C09B;
    opacity: 0.4;
    border-radius: 100px;
    transition: width .2s ease, opacity .2s ease;
    cursor: pointer;
}

.recommended-aircraft__pagination .swiper-pagination-bullet-active {
    width: 100px;
    opacity: 1;
}

.recommended-aircraft__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, rgba(17, 19, 40, 0) 0%, rgba(17, 19, 40, 0.7) 89.87%);
    pointer-events: none;
}

.recommended-aircraft__info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 24px;
    text-align: center;
}

.recommended-aircraft__card-title {
    display: block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 135%;
    color: #FFFFFF;
}

.recommended-aircraft__card-meta {
    display: block;
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    color: #F6F4EE;
}

/* Responsive — only typography / section padding here. Card sizing & layout
   come from Swiper (slidesPerView per breakpoint), so we don't try to set
   flex-basis or column counts on the slides themselves. */
@media (max-width: 1199px) {
    .recommended-aircraft {
        padding: 100px 40px;
    }
    .recommended-aircraft__title {
        font-size: 40px;
    }
}

/* Mobile — Figma "Services Section V2" spec: padding 120/16, 64-px gap between
   header and slider, 28-px H2, 440-px card height. */
@media (max-width: 575px) {
    .recommended-aircraft {
        padding: 120px 16px;
    }
    .recommended-aircraft__container {
        gap: 64px;
    }
    .recommended-aircraft__title {
        font-size: 28px;
        line-height: 130%;
    }
    .recommended-aircraft__suptitle {
        font-size: 24px;
        line-height: 150%;
    }
    .recommended-aircraft__card {
        height: 440px;
    }
}
