/* XD room_1920 — 대표 사진과 소개. 뱃지는 slide-04와 같은 규격입니다. */
.section-room-header-01 {
    --room-header-unit: min(1px, calc(100vw / 1920));
    --room-header-gutter: max(140px, calc((100% - 1640px) / 2));
    --room-header-height: var(--image-height, calc(760 * var(--room-header-unit)));
    position: relative;
    isolation: isolate;
    min-width: 0;
    color: #fff;
    background: #252525;
    font-family: "rixsinhead-pro", "SUIT Variable", sans-serif;
}

.section-room-header-01 *,
.section-room-header-01 *::before,
.section-room-header-01 *::after {
    box-sizing: border-box;
}

.section-room-header-01 :is(h1, p, ul) {
    margin: 0;
}

.section-room-header-01 :is(h1, p, li, a, .section-room-header-01-body) {
    overflow-wrap: anywhere;
    word-break: keep-all;
}

.section-room-header-01 .section-room-header-01-visual {
    display: grid;
}

.section-room-header-01 .section-room-header-01-photo {
    grid-area: 1 / 1;
    height: var(--room-header-height);
    min-height: 100%;
    overflow: hidden;
}

.section-room-header-01 .section-room-header-01-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-room-header-01 .section-room-header-01-content {
    position: relative;
    grid-area: 1 / 1;
    align-self: end;
    min-width: 0;
    margin: 80px var(--room-header-gutter) calc(103 * var(--room-header-unit));
}

.section-room-header-01 h1 {
    font-size: 24px;
    line-height: 1.666667;
    font-weight: 700;
}

.section-room-header-01 h1,
.section-room-header-01 .section-room-header-01-meta {
    text-shadow: 1px 1px 1px #00000029;
}

.section-room-header-01 .section-room-header-01-meta {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.section-room-header-01 .section-room-header-01-body {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.5;
}

.section-room-header-01 .section-room-header-01-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 0;
    list-style: none;
    color: #191919;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.section-room-header-01 .section-room-header-01-badges li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 35px;
    padding: 0 20px;
    border-radius: 20px;
    background: #ededed;
}

.section-room-header-01 .section-room-header-01-badges li > span {
    display: block;
    min-width: 0;
    text-align: center;
}

.section-room-header-01 a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

/* 원본 샘플에만 XD의 확대/이동을 적용합니다. 교체한 사진은 중앙 cover입니다. */
.section-room-header-01:not([data-image-height]):not([data-mobile-image-height]):not([data-image-height-natural="true"]) .section-room-header-01-photo > img[src^="/site-assets/moden/images/xd/hero-pool-night.webp"] {
    object-position: 50% 36.50096%;
    transform-origin: center;
    transform: translateX(-3.081866%) scale(1.06924367);
    border-radius: 0 !important;
}

@media (max-width: 1199px) {
    .section-room-header-01 {
        --room-header-gutter: clamp(30px, calc(56px + (100vw - 1024px) * .4772727273), 140px);
    }
}

/* room_390: the 280px photo is followed by the room details on white.
   Keep both rows in flow so custom photo heights and longer copy remain usable. */
@media (max-width: 767px) {
    .section-room-header-01 {
        --room-header-unit: clamp(1px, calc(100vw / 390), 1.4px);
        --room-header-height: var(--image-height, calc(280 * var(--room-header-unit)));
        color: #000;
        background: #fff;
    }

    .section-room-header-01 .section-room-header-01-visual {
        display: flex;
        flex-direction: column;
    }

    .section-room-header-01 .section-room-header-01-photo {
        flex-shrink: 0;
        min-height: 0;
    }

    .section-room-header-01 .section-room-header-01-content {
        align-self: stretch;
        margin: calc(20 * var(--room-header-unit)) var(--room-header-gutter) calc(30 * var(--room-header-unit));
    }

    .section-room-header-01 .section-room-header-01-content:not(:has(> *)) {
        display: none;
    }

    .section-room-header-01 h1 {
        font-size: clamp(20px, 2.5vw, 24px);
        line-height: 1.35;
    }

    .section-room-header-01 h1,
    .section-room-header-01 .section-room-header-01-meta {
        text-shadow: none;
    }

    .section-room-header-01 .section-room-header-01-meta {
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.357142857;
    }

    .section-room-header-01 .section-room-header-01-body {
        font-size: 14px;
    }

    .section-room-header-01 .section-room-header-01-badges {
        gap: 9px 8px;
        margin-top: 7px;
        font-size: 13px;
        line-height: 1;
    }

    .section-room-header-01 .section-room-header-01-badges li {
        min-height: 29px;
        padding: 0 10px;
    }

    /* XD uses a centered 1920:760 frame, shifted right by 1px at 390px.
       Uploaded photos and explicit height settings retain their normal cover crop. */
    .section-room-header-01:not([data-image-height]):not([data-mobile-image-height]):not([data-image-height-natural="true"]) .section-room-header-01-photo > img[src^="/site-assets/moden/images/xd/hero-pool-night.webp"] {
        position: relative;
        left: calc(50% + var(--room-header-unit));
        width: max(100%, calc(707.368421 * var(--room-header-unit)));
        max-width: none;
        transform: translateX(-50%) translateX(-3.081866%) scale(1.06924367);
    }
}

@media (max-width: 767px) {
    .section-room-header-01 {
        --room-header-gutter: 15px;
    }
}
