/* WS List Service – Style 4 (Wonderful Selayar brand) */

.ws-s4 {
    display: flex;
    margin-bottom: 30px;
}

.ws-s4__card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(7, 21, 32, 0.06);
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.ws-s4__card:hover {
    box-shadow: 0 10px 28px rgba(7, 21, 32, 0.12);
    transform: translateY(-2px);
}

/* ── Media — padding-bottom keeps a stable ratio in every browser/iframe ── */
.ws-s4__media {
    position: relative;
    overflow: hidden;
    padding-bottom: 66%;            /* ~3:2 — matches the target screenshot proportion */
    background: #f4f4f4;
}
.ws-s4__media-link {
    position: absolute;
    inset: 0;
    display: block;
}
.ws-s4__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}
.ws-s4__card:hover .ws-s4__img { transform: scale(1.05); }

/* ── FEATURED badge (orange) ───────────────────────────────────── */
.ws-s4__badge--featured {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f97316;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 4px;
    line-height: 1;
    text-transform: uppercase;
    z-index: 2;
}

/* ── Wishlist heart ─────────────────────────────────────────────── */
.ws-s4__wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background .2s ease;
}
.ws-s4__wishlist:hover { background: #fff; }
.ws-s4__wishlist svg, .ws-s4__wishlist i {
    width: 16px;
    height: 16px;
    color: #071520;
}
.ws-s4__wishlist.added svg, .ws-s4__wishlist.added i { color: #f97316; }

/* ── Body ───────────────────────────────────────────────────────── */
.ws-s4__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ws-s4__title {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 12px;
    color: #071520;
}
.ws-s4__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.ws-s4__title a:hover { color: #0d9488; }

/* ── Rating row ─────────────────────────────────────────────────── */
.ws-s4__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 14px;
}
.ws-s4__stars {
    display: inline-flex;
    gap: 1px;
    color: #d1d5db;
    font-size: 14px;
    line-height: 1;
}
.ws-s4__star.is-on { color: #f59e0b; }
.ws-s4__rating-num {
    font-weight: 600;
    color: #071520;
}
.ws-s4__rating-sep { color: #9ca3af; }

/* ── Divider ────────────────────────────────────────────────────── */
.ws-s4__divider {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 14px 0;
}

/* ── Footer: price + duration ───────────────────────────────────── */
.ws-s4__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
}

.ws-s4__price-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.ws-s4__from {
    font-family: 'Sora', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
}
.ws-s4__price {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-style: italic;
    font-size: 22px;
    font-weight: 600;
    color: #071520;
}
.ws-s4__price .onsale,
.ws-s4__price del { display: none; }    /* hide built-in sale markup if not wanted */
.ws-s4__price ins { text-decoration: none; }

.ws-s4__duration {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Sora', sans-serif;
    font-size: 13px;
    color: #6b7280;
}
.ws-s4__clock { flex-shrink: 0; }

/* ── Kill theme price pill (Traveler's .text-lg adds box-shadow + white bg) ── */
.ws-s4__price span {
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* ── Mobile slider: 1 card + partial peek of next ───────────────── */
@media (max-width: 639px) {
    /* Allow the next slide to be visible outside the swiper bounds */
    .st-list-service.style_4 .swiper-container {
        overflow: visible !important;
    }
    /* Narrow each slide so the next card peeks in on the right */
    .st-list-service.style_4 .swiper-slide {
        width: 85% !important;
    }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 767px) {
    .ws-s4__body { padding: 16px 18px 18px; }
    .ws-s4__title { font-size: 19px; }
    .ws-s4__price { font-size: 19px; }
    .ws-s4__badge--featured { font-size: 10px; padding: 5px 10px; }
}
