.soves-featured-hotels,
.soves-featured-hotels * {
    box-sizing: border-box;
}

.soves-featured-hotels {
    --soves-fh-ink: #101828;
    width: 100%;
    padding: 26px 0 30px;
    background: transparent;
}

.soves-featured-hotels__heading {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto 20px;
    color: var(--soves-fh-ink);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

/* Full width of whatever container/section Elementor places the widget in —
   "Container Max Width" (Style tab) caps it further and is user-adjustable,
   instead of a hardcoded 1300px ceiling regardless of the section around it. */
.soves-featured-hotels__track {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    height: 360px;
    gap: 20px;
    --soves-fh-gap: 20px;
}

/* Card: full-bleed hotel image with the name/location overlaid top-left and
   the "Starts From" price overlaid bottom-left, directly on the image —
   distinct from FeaturedToursWidget's below-image pill label. Default share
   is 4-per-row; "Cards Per Row" (Style tab, responsive) overrides this per
   breakpoint via flex-basis. */
.soves-featured-hotel-card {
    flex: 1 1 0;
    min-width: 220px;
}

.soves-featured-hotel-card__media {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
    text-decoration: none;
}

.soves-featured-hotel-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.soves-featured-hotel-card:hover .soves-featured-hotel-card__media img,
.soves-featured-hotel-card:focus-within .soves-featured-hotel-card__media img {
    transform: scale(1.06);
}

.soves-featured-hotel-card__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #243447, #3c5a6e);
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    font-weight: 600;
}

.soves-featured-hotel-card__overlay {
    --soves-fh-overlay-strength: 55;
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(16, 24, 40, calc(var(--soves-fh-overlay-strength) / 100 * 0.82)) 0%,
        rgba(16, 24, 40, 0) 22%,
        rgba(16, 24, 40, 0) 55%,
        rgba(16, 24, 40, calc(var(--soves-fh-overlay-strength) / 100)) 100%
    );
    pointer-events: none;
}

.soves-featured-hotel-card__title {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 14px;
    color: var(--soves-fh-title-color, #ffffff);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.soves-featured-hotel-card__price {
    position: absolute;
    left: 16px;
    bottom: 14px;
    color: var(--soves-fh-price-color, #ffffff);
    font-size: 13px;
    line-height: 1.4;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
    .soves-featured-hotels__track {
        padding: 0 16px;
    }

    .soves-featured-hotels__heading {
        font-size: 24px;
    }
}
