.stay-container {
    max-width: 600px;
    margin: 2rem auto;
    background: $stay-text-white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid $stay-card-border;
    position: relative;

    .stay-image {
        position: relative;
        width: 100%;
        height: 400px;
        overflow: hidden;

        picture {
            display: block;
            width: 100%;
            height: 100%;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }
        }

        .stay-icons {
            position: absolute;
            bottom: 1rem;
            left: 1.5rem;
            display: flex;
            gap: 0.75rem;
            z-index: 5;

            .stay-icon {
                width: 33.25px;
                height: 33.25px;
                padding: 4.156px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                border: 3px solid $stay-text-white;
                background: rgba(0, 0, 0, 0.3);
                backdrop-filter: blur(4px);

                img {
                    max-width: 100%;
                    max-height: 100%;
                    object-fit: contain;
                    filter: brightness(0) invert(1);
                    display: block;
                }
            }
        }

        .stay-badge-box {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, $stay-badge-gradient-start 0%, $stay-badge-gradient-end 100%);
            padding: 1.25rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;

            .badge-keywords {
                display: flex;
                gap: 0.5rem;
                flex-wrap: wrap;
                align-items: center;

                .badge-text {
                    font-size: 12px;
                    font-weight: 400;
                    color: $stay-text-white;
                    background: $stay-badge-text-bg;
                    padding: 5px 8px;
                    border-radius: 12px;    
                    line-height: 18px;
                    display: inline-block;
                    
                    // Inline styles (e.g., style="background-color: #db0d44;") will take precedence
                }
            }

            .badge-pricing {
                display: flex;
                flex-direction: row;
                align-items: center;
                gap: 1rem;

                .badge-actual-price {
                    font-size: 1.25rem;
                    font-weight: 400;
                    color: $stay-text-white;
                    text-decoration: line-through;
                    opacity: 0.9;
                }

                .badge-price {
                    font-size: 1.75rem;
                    font-weight: 700;
                    color: $stay-text-white;
                }
            }
        }
    }

    .stay-content {
        padding: 2rem 2.5rem;
        background: $stay-text-white;

        .stay-title {
            font-size: 20px;
            font-weight: 700;
            margin: 0;
            color: $stay-title-color;
            line-height: 1.2;
        }

        .stay-subtitle {
            font-size: 16px;
            font-weight: 500;
            color: $color-4;
            line-height: 24px;
            margin-bottom: 15px;
            padding-bottom: 0px;
        }

        .stay-description {
            font-size: 14px;
            color: $staytile-card-title-color;
            line-height: 21px;
            font-weight: 400;
            margin-bottom: 76px;

            p {
                margin: 0;
                
                span {
                    white-space: pre-wrap;
                }
            }
        }

        .stay-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;

            .stay-button-wrapper {
                display: flex;
                align-items: flex-start;
                gap: 15px;
                align-self: stretch;

                &.button-inside {
                    position: relative;
                }

                &.button-outside {
                    position: absolute;
                    left: 50%;
                    transform: translate(-50%, 50%);
                    bottom: 0;
                    z-index: 10;
                }

                .stay-button {
                    display: flex;
                    height: 45px;
                    padding: 15px 10px;
                    justify-content: center;
                    align-items: center;
                    gap: 10px;
                    flex: 1 0 0;
                    border-radius: 50px;
                    font-weight: 700;
                    font-size: 1rem;
                    text-decoration: none;
                    transition: all 0.3s ease;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                    min-width: 150px;
                    border: none;
                    cursor: pointer;

                    &.primary {
                        background: $stay-button-primary-bg;
                        color: $stay-button-primary-text;
                        border: 3px solid $stay-button-primary-bg;

                        &:hover {
                            background: $stay-button-primary-hover;
                            border-color: $stay-button-primary-hover;
                            transform: translateY(-2px);
                            box-shadow: 0 6px 20px $stay-button-primary-shadow;
                        }
                    }

                    &.outline {
                        background: transparent;
                        border: 3px solid $stay-title-color;
                        color: $stay-title-color;

                        &:hover {
                            background: $stay-title-color;
                            color: $stay-text-white;
                        }
                    }

                    .button-text {
                        order: 0;
                        display: inline-block;
                    }

                    .button-icon {
                        display: inline-flex;
                        align-items: center;
                        justify-content: center;
                        width: 1.25rem;
                        height: 1.25rem;

                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: contain;
                        }

                        &.button-icon-before {
                            order: -1;
                        }

                        &.button-icon-after {
                            order: 1;
                        }
                    }
                }
            }
        }
    }
}

/* Responsive */
@media (max-width: 768px) {
    .stay-container {
        margin: 1rem;

        .stay-image {
            height: 300px;
        }

        .stay-content {
            padding: 1.5rem;

            .stay-title {
                font-size: 1.5rem;
            }
        }

        .stay-image .stay-badge-box .badge-pricing .badge-price {
            font-size: 1.2rem;
        }
    }
}

@media (max-width: 480px) {
    .stay-container {
        .stay-content {
            .stay-buttons {
                flex-direction: row;
                flex-wrap: wrap;

                .stay-button-wrapper .stay-button {
                    width: 100%;
                }
            }
        }

        .stay-image {
            .stay-icons {
                bottom: 6rem;
                left: 1rem;

                .stay-icon {
                    width: 40px;
                    height: 40px;
                    padding: 0.5rem;
                }
            }

            .stay-badge-box {
                .badge-keywords .badge-text {
                    font-size: 0.9rem;
                    padding: 0.4rem 1rem;
                }

                .badge-pricing {
                    gap: 0.75rem;

                    .badge-actual-price {
                        font-size: 1rem;
                    }

                    .badge-price {
                        font-size: 1.3rem;
                    }
                }
            }
        }
    }
}

@media (max-width: 767px) {
    .stay-container {
        .stay-content {
            .stay-buttons {
                .stay-button-wrapper {
                    .stay-button {
                        .button-icon {
                            width: 1rem;
                            height: 1rem;
                        }
                    }

                    &.button-outside {
                        transform: translate(-50%, 40%);
                    }
                }
            }
        }
    }
}
