/* ── Room rows ───────────────────────────────────────────────
   Figma (Luxury Suites): desktop 1366:63181, mobile in 1366:63345.
   ─────────────────────────────────────────────────────────── */

.room-rows {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 64px 0;
}

.room-rows__row {
    /* The picture runs to the edge of the screen; the words keep to the
       site's content box. --edge is that box's margin (64px at 1440,
       more on wider screens); padding % is of the row, the full width. */
    --edge: max(var(--pad-x), calc((100% - var(--site-max-w)) / 2));
    --inner: 80px;
    display: flex;
    align-items: center;
    min-height: 318px;
}

/* Every other one the other way round */
.room-rows__row:nth-child(even) {
    flex-direction: row-reverse;
}

.room-rows__media {
    position: relative;
    flex: 0 0 50%; /* exactly half the screen, from the middle out */
    align-self: stretch;
    min-height: 318px;
}

.room-rows__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-rows__content {
    position: relative;
    display: flex;
    flex: 0 0 50%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    padding-top: 60px;
    padding-bottom: 30px;
    /* Picture on the left: the words end at the box's right edge */
    padding-inline: var(--inner) var(--edge);
}

/* Picture on the right: the words start at the box's left edge */
.room-rows__row:nth-child(even) .room-rows__content {
    padding-inline: var(--edge) var(--inner);
}

/* The faint numeral behind the name, up and to the left of it: outlined
   in stone, not filled (Figma 1299:27677) */
.room-rows__heading {
    position: relative;
}

.room-rows__numeral {
    position: absolute;
    top: -30px;
    left: -8px;
    font-family: var(--font-heading);
    font-size: 64px;
    font-style: italic;
    font-weight: 100;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px #D8CEB3;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    pointer-events: none;
}

/* The I alone is larger: 67px tall, from 30px above the name to 37px into
   it (Fraunces' capitals are 0.7em) */
.room-rows__row:first-child .room-rows__numeral {
    top: -45px;
    font-size: 96px;
}

.room-rows__title {
    position: relative;
    font-size: 48px;
    line-height: 1.08;
}

.room-rows__text {
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0.08px;
    color: var(--color-ink-soft);
}

.room-rows__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
}


/* Above 1600 the picture keeps to the content box too */
@media (min-width: 1601px) {
    .room-rows__row {
        padding-inline: var(--edge);
    }

    .room-rows__content {
        padding-inline: var(--inner) 0;
    }

    .room-rows__row:nth-child(even) .room-rows__content {
        padding-inline: 0 var(--inner);
    }
}

/* Tablet — rows stay side to side, half and half */
@media (max-width: 1024px) {
    .room-rows {
        gap: 32px;
        padding: var(--pad-y) 0;
    }

    .room-rows__row {
        --inner: var(--pad-x);
    }

    .room-rows__content {
        padding-top: 48px;
        padding-bottom: 24px;
    }

    .room-rows__numeral {
        top: -28px;
        font-size: 48px;
    }

    .room-rows__row:first-child .room-rows__numeral {
        top: -30px;
        font-size: 64px;
    }

    .room-rows__title {
        font-size: 32px;
        line-height: 1.06;
        letter-spacing: -0.32px;
    }
}

/* Mobile — the picture on top, the buttons full width */
@media (max-width: 767px) {
    .room-rows {
        gap: 40px;
    }

    .room-rows__row,
    .room-rows__row:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0 var(--pad-x);
    }

    .room-rows__media {
        flex: none;
        min-height: 0;
        aspect-ratio: 353 / 235;
    }

    .room-rows__content,
    .room-rows__row:nth-child(even) .room-rows__content {
        flex: none;
        gap: 12px;
        padding: 20px 0 0;
    }

    .room-rows__numeral {
        display: none;
    }

    .room-rows__title {
        font-size: 24px;
        line-height: 1.18;
    }

    .room-rows__text {
        font-size: 14px;
        line-height: 1.55;
    }

    .room-rows__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 16px;
    }

    .room-rows__actions .button--secondary {
        align-self: center;
    }
}
