/* ── Wrapper ──────────────────────────────────────────────────────────────── */

.slides-carousel-placeholder {
    width: 100%;
}

.slides-carousel-placeholder .swiper {
    position: relative;
    padding: 0 0 48px;
}

/* ── Hero mode: no bottom padding ────────────────────────────────────────── */

.slides-hero-carousel .swiper {
    padding: 0;
}

/* ── Equal-height slides ──────────────────────────────────────────────────── */

.slides-swiper .swiper-wrapper {
    align-items: stretch;
}

.slides-swiper .swiper-slide {
    height: auto;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */

.slides-swiper .slide-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#specials .slides-swiper .slide-inner {
    background-image: url("https://royalstarhawaii.com/wp-content/uploads/2021/05/Tours_Background-1.jpg"); 
    background-position: left top; 
    background-size: auto; 
    background-repeat: repeat;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Image (card mode) ────────────────────────────────────────────────────── */

.slides-swiper .slide-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

/* ── Hero slide ───────────────────────────────────────────────────────────── */

.slides-swiper .slide-hero {
    line-height: 0;
}

.slides-swiper .slide-hero-link {
    display: block;
    line-height: 0;
}

/* Both images: block + full-width, natural height */
.slides-swiper .slide-hero-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Desktop / mobile image swap ──────────────────────────────────────────── */
/*
   Default: show desktop, hide mobile.
   At ≤767px:  hide desktop, show mobile.
   If no mobile image was set, only the desktop img exists so nothing breaks.
*/

.slides-swiper .slide-hero-img--desktop {
    display: block;
}

.slides-swiper .slide-hero-img--mobile {
    display: none;
}

@media (max-width: 767px) {
    .slides-swiper .slide-hero-img--desktop {
        display: none;
    }
    .slides-swiper .slide-hero-img--mobile {
        display: block;
    }
}

/* ── Hero navigation arrows ────────────────────────────────────────────────
   Use top:50% so arrows stay centred on the fluid-height image.           */

.slides-hero-carousel .swiper-button-prev,
.slides-hero-carousel .swiper-button-next {
    top: 50%;
    transform: translateY(-50%);
}

/* ── Hero pagination dots — float over bottom of image ───────────────────── */

.slides-hero-carousel .swiper-pagination {
    bottom: 14px;
}

.slides-hero-carousel .swiper-pagination-bullet {
    background: rgba(255,255,255,0.7);
}

.slides-hero-carousel .swiper-pagination-bullet-active {
    background: #ffffff !important;
}

/* ── Body ─────────────────────────────────────────────────────────────────── */

.slides-swiper .slide-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

/* ── Title ────────────────────────────────────────────────────────────────── */

.slides-swiper .slide-title {
    color: #0a97b2;
    font-family: roboto slab;
    font-weight: bold;
    font-size: 24px;
    margin: 20px 0 0px 0;
}

/* ── Content ──────────────────────────────────────────────────────────────── */

.slides-swiper .slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.slides-swiper .slide-content p {
    margin: 0 0 10px;
}

.slides-swiper .slide-content strong {
    font-weight: 700;
}

.slides-swiper .slide-content h5 {
    color: #000;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    margin: 5px 0 15px 0;
}

/* ── Special Content ──────────────────────────────────────────────────────── */

#specials .slides-swiper .slide-content h5 {
    font-weight: bold;
    font-family: "Nunito Sans" !important;
    color: #fff;
    font-size: 15px;
    text-align: center;
    margin: 5px 0 15px 0;
}

#specials .slides-swiper .slide-content h3 {
    font-weight: bold;
    font-size: 24px;
    margin: 20px 0 0px 0;
    color: #fff;
    font-family: "Roboto Slab";
}

#specials .slides-swiper .slide-content p {
    color: #ffffff;
    font-size: 15px;
}

#specials .wp-block-buttons { margin-top: auto; }

#specials .wp-block-button__link {
    margin: 20px auto 15px auto;
    padding: 10px 15px;
    color: #ffffff;
    font-weight: normal;
    text-align: center;
    font-size: 18px !important;
    border-radius: 30px;
    width: 170px;
}

/* ── Pill button ──────────────────────────────────────────────────────────── */

.slides-swiper .wp-block-button__link:hover { color: #ffffff; text-decoration: none; }

/* ── Navigation arrows (shared) ──────────────────────────────────────────── */

.slides-carousel-placeholder .swiper-button-prev,
.slides-carousel-placeholder .swiper-button-next {
    color: #ffffff;
    background: rgba(0,0,0,0.3);
    top: 38%;
}
.slides-carousel-placeholder .swiper-button-prev { left: 0; }
.slides-carousel-placeholder .swiper-button-next { right: 0; }

.slides-carousel-placeholder .swiper-button-prev,
.slides-carousel-placeholder .swiper-button-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.slides-carousel-placeholder:hover .swiper-button-prev,
.slides-carousel-placeholder:hover .swiper-button-next {
    opacity: 1;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px;
}

/* ── Pagination dots (shared) ─────────────────────────────────────────────── */

.slides-carousel-placeholder .swiper-pagination {
    bottom: 20px;
}
.slides-carousel-placeholder .swiper-pagination-bullet-active {
    background: rgba(0,0,0,0.5) !important;
}

/* ── Responsive (card mode) ───────────────────────────────────────────────── */

@media (max-width: 767px) {
    .slides-swiper .slide-image img {
        height: 180px;
    }
}
