/*
 * Featured Stays - Figma 1:1229 (desktop) / 1:1456 (mobile), card 1:1234.
 *
 * The rail is deliberately wider than its container: a 1408 track of 428 cards
 * inside a 1376 frame, so a fourth card is always part-visible and the slider
 * never reads as a whole-page pager. That overflow is the design, not a bug.
 */

.featured-stays-section {
    padding-inline: var(--spacing-small);
    overflow: hidden;
}

.featured-stays-title {
    color: var(--color-shark);
    margin-bottom: 40px;
}

.featuredStaysSwiper {
    /* The track runs past the container's right edge, as the frame does. */
    overflow: visible;
    position: relative;
}

.featured-stay-card {
    display: flex;
    flex-direction: column;
    height: auto;
}

.featured-stay-media {
    display: block;
    /* 428 x 302.4 in the frame. */
    aspect-ratio: 443 / 313;
    overflow: hidden;
}

.featured-stay-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-stay-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
}

.featured-stay-label {
    background: var(--color-white-100);
    color: var(--color-shark);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 8px;
    margin-bottom: 24px;
}

.featured-stay-name {
    font-family: var(--font-primary);
    font-size: clamp(24px, 2.639vw, 38px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-shark);
    margin: 0;
}

.featured-stay-excerpt {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-shark);
    margin: 8px 0 0;
}

.featured-stay-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-shark);
    margin-top: 40px;
}

.featured-stay-cta .icon-cta-arrow {
    width: 15px;
    height: 15px;
    flex: none;
}

/*
 * The prev/next control is .slider-nav-disc in style.css, shared with Reviews.
 *
 * Only its vertical position differs. The Reviews cards are a uniform 460, so
 * the shared 50% centres on them; a Featured Stays card is image plus title,
 * excerpt and CTA, and 50% of that lands well below the image. This centres it
 * on the image band instead: a card is roughly a third of the track, and the
 * image is 313/443 of the card, so half the image height is about 10.5vw.
 */
.featured-stays-nav {
    top: calc(10.5vw - 40px);
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 992px) {
    /* The frame drops the control on mobile, as the Reviews rail does. */
    .featured-stays-nav {
        display: none;
    }
}
