/*
 * Newly Added Stays - Figma 1:1075.
 *
 * A fixed panel that shares the hero's right edge with the contact bubbles.
 * The frame sets it beside them rather than above: the bubbles keep the corner
 * they have always had, and the panel sits to their left, bottom-aligned with
 * the stack, so neither moves the other.
 *
 * There is no mobile frame for it, so below the desktop breakpoint it is not
 * rendered at all rather than shrunk into a phone's hero.
 */

.newly-added-stays {
    position: fixed;
    /* Clear of the bubble column: 22 right + its 76 box + 24 of air. */
    right: 122px;
    /*
     * Bottom-aligned with the bubbles, which is how the frame sets the two
     * against each other. The stack runs from the sticky chat widget at the
     * bottom up past .book-bow-cta, so the panel sits on that same baseline
     * rather than floating half way up the hero.
     */
    bottom: 40px;
    z-index: 998;
    width: 356px;
    max-width: calc(100vw - 160px);
    background: rgba(244, 244, 244, 0.9);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
}

.newly-added-stays[data-dismissed] {
    display: none;
}

.newly-added-stays-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.newly-added-stays-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-shark);
    margin: 0;
}

.newly-added-stays-close {
    background: none;
    border: 0;
    padding: 0;
    line-height: 0;
    color: var(--color-shark);
    cursor: pointer;
}

/* The frame uses icons/small/close; the theme's partial is the 24px cut. */
.newly-added-stays-close .icon-close {
    width: 20px;
    height: 20px;
}

.newly-added-stays-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* The rule the frame draws between the two rows. */
.newly-added-stay + .newly-added-stay {
    border-top: 1px solid var(--Light-Grey);
    padding-top: 12px;
}

.newly-added-stay-link {
    display: flex;
    align-items: stretch;
    gap: 16px;
    color: var(--color-shark);
    -webkit-transition: none;
    -moz-transition: none;
    -o-transition: none;
    transition: none;
}

.newly-added-stay-media {
    position: relative;
    flex: none;
    width: 144px;
    height: 96px;
    overflow: hidden;
    display: block;
}

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

.newly-added-stay-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(33, 37, 41, 0.4);
    color: var(--color-offwhite);
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3.429px 6.857px;
}

.newly-added-stay-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
}

/*
 * Stay titles run long - "La Villa De Madeleine - Stone villa with Private
 * Jacuzzi" - and the frame's row is two lines tall. Clamped, so one long title
 * cannot push the panel to twice its height.
 */
.newly-added-stay-name {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-shark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.newly-added-stay-location {
    font-family: var(--font-secondary);
    font-size: 13.714px;
    font-weight: 300;
    line-height: 19.2px;
    color: var(--Dark-Grey);
}

.newly-added-stay-arrow {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
    color: var(--color-shark);
}

.newly-added-stay-arrow .icon-cta-arrow {
    width: 15px;
    height: 15px;
}

/*
 * No mobile frame draws this panel, and a phone's hero has no room beside the
 * contact bubbles for it.
 */
@media (max-width: 991.98px) {
    .newly-added-stays {
        display: none;
    }
}
