/* ============================================================
   g9-seat-slider.css
   Dedicated styles for the g9.html seat/feature sliders
   Side-peek carousel: one active slide with ~10% of the next
   peeking on the right (and prev on the left when applicable),
   caption overlaid on the bottom-center of the active image,
   chevron arrows in the gap between slides.
   ============================================================ */

/* container */
.g9-slider .g9-seat-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    overflow: hidden;
    height: auto !important;
}

/* slide — CSS Grid stack: image and caption occupy the same cell so the
   caption overlays the image bottom regardless of how other CSS treats
   .slide-caption's position property. */
.g9-slider .g9-seat-slider .swiper-slide {
    width: 86%;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 1;
    display: block !important;
    position: relative !important;
    text-align: left;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 12px;
}
.g9-slider .g9-seat-slider .slide-image-wrapper {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative;
    z-index: 1;
    line-height: 0;
}

/* image / video — cinematic widescreen, cropped to fit, capped at 740px tall.
   Identical rules for <img> and <video> so a slider mixing both media types
   (e.g. p7plus.html) renders every slide at the same height. */
.g9-slider .g9-seat-slider .slide-image-wrapper img,
.g9-slider .g9-seat-slider .slide-image-wrapper video {
    width: 100%;
    height: auto;
    aspect-ratio: 24 / 10;
    max-width: none;
    max-height: 740px !important;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* caption: absolutely positioned to the bottom of the slide (which is
   position:relative and height = image height). Overlays the image. */
.g9-slider .g9-seat-slider .slide-caption {
    position: absolute !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    padding: 4rem 2.5rem 1.75rem;
    text-align: left;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
    z-index: 5;
    margin: 0 !important;
}
.g9-slider .g9-seat-slider .slide-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    line-height: 1.3;
    text-align: left;
}
.g9-slider .g9-seat-slider .slide-text {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    max-width: 640px;
    text-align: left;
}

/* chevron arrows sitting in the gap between slides */
.g9-slider .g9-seat-slider .swiper-button-prev,
.g9-slider .g9-seat-slider .swiper-button-next {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin: 0;
    background: transparent;
    color: #555;
    box-shadow: none;
    z-index: 10;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.g9-slider .g9-seat-slider .swiper-button-prev::after,
.g9-slider .g9-seat-slider .swiper-button-next::after {
    font-size: 24px;
    font-weight: 300;
    color: #555;
}
.g9-slider .g9-seat-slider .swiper-button-prev:hover::after,
.g9-slider .g9-seat-slider .swiper-button-next:hover::after {
    color: #000;
}
.g9-slider .g9-seat-slider .swiper-button-disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* pagination (flat bar, appears below on mobile) */
.g9-slider .g9-seat-slider .swiper-nav-bottom {
    position: static;
    display: block;
    margin: 1rem 0 0;
    text-align: center;
    line-height: 0;
}
.g9-slider .g9-seat-slider .swiper-pagination {
    position: static;
    margin: 0;
    line-height: 0;
}
.g9-slider .g9-seat-slider .swiper-pagination-bullet {
    display: inline-block;
    opacity: 1 !important;
    background-color: #cccccc !important;
    width: 28px;
    height: 3px;
    border-radius: 0;
    margin: 0 4px !important;
    transition: background-color 0.2s ease;
}
.g9-slider .g9-seat-slider .swiper-pagination-bullet-active {
    background-color: #a4ce4c !important;
}

/* desktop (>=768): arrows in the gap, pagination hidden */
@media (min-width: 768px) {
    .g9-slider .g9-seat-slider .swiper-button-prev {
        left: calc(7% - 50px);
    }
    .g9-slider .g9-seat-slider .swiper-button-next {
        right: calc(7% - 50px);
    }
    .g9-slider .g9-seat-slider .swiper-pagination {
        display: none;
    }
}

/* mobile: wider slide (smaller peek), hide arrows, show pagination */
@media (max-width: 767.98px) {
    .g9-slider .g9-seat-slider .swiper-slide {
        width: 92%;
    }
    .g9-slider .g9-seat-slider .slide-image-wrapper img,
    .g9-slider .g9-seat-slider .slide-image-wrapper video {
        aspect-ratio: 4 / 3;
    }
    .g9-slider .g9-seat-slider .slide-caption {
        padding: 2.5rem 1.25rem 1rem;
    }
    .g9-slider .g9-seat-slider .slide-title {
        font-size: 1rem;
    }
    .g9-slider .g9-seat-slider .slide-text {
        font-size: 0.8rem;
    }
    .g9-slider .g9-seat-slider .swiper-button-prev,
    .g9-slider .g9-seat-slider .swiper-button-next {
        display: none;
    }
    /* Force all pagination bullets to render on mobile (defeats any
       conflicting display:none / width:0 rules from other stylesheets)
       and center them horizontally via flexbox so absolute/transform
       overrides from swiper-bundle can't push them off-center. */
    .g9-slider .g9-seat-slider .swiper-nav-bottom {
        text-align: center !important;
        width: 100% !important;
    }
    .g9-slider .g9-seat-slider .swiper-pagination {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 1rem 0 0 !important;
        padding: 0 !important;
        line-height: 0;
        font-size: 0;
        z-index: 5;
    }
    .g9-slider .g9-seat-slider .swiper-pagination .swiper-pagination-bullet {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 28px !important;
        height: 3px !important;
        background-color: #bdbdbd !important;
        border-radius: 0 !important;
        margin: 0 4px !important;
        transition: background-color 0.25s ease;
    }
    .g9-slider .g9-seat-slider .swiper-pagination .swiper-pagination-bullet-active {
        background-color: #a4ce4c !important;
    }
}
