/* ==========================================================================
   Single Room
   ========================================================================== */

/* --- Intro: content + gallery --- */

.room-intro {
    overflow: hidden;
    padding-bottom: 48px;
}

.room-intro__content {
    padding: clamp(2rem, 5vw, 5rem) clamp(1.5rem, 2.8vw, 54px)
        clamp(2rem, 5vw, 5rem) clamp(1.5rem, 5vw, 97px);
    font-family: var(--font-family);
    font-weight: 400;
    font-size: clamp(16px, 1.15vw, 22px);
    line-height: 1.69;
    color: #323232;
    align-self: center;
}

.room-intro__content p + p {
    margin-top: 1em;
}

@media (min-width: 1024px) {
    .room-intro {
        display: grid;
        grid-template-columns: 1fr clamp(320px, 52.8vw, 1014px);
        align-items: stretch;
        padding-top: 64px;
        padding-bottom: 50px;
    }
}

/* --- Gallery slider --- */

.room-intro__gallery-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.room-intro__gallery {
    overflow: hidden;
    flex: 1;
    width: 100%;
    height: 100%;
}

.room-intro__gallery .swiper-slide {
    aspect-ratio: 402 / 291;
    height: auto;
}

@media (min-width: 1024px) {
    .room-intro__gallery .swiper-slide {
        aspect-ratio: 1014 / 740;
    }
}

.room-intro__gallery .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrows — same style as text-slider block */
.room-intro__gallery .swiper-button-prev,
.room-intro__gallery .swiper-button-next {
    width: 56px;
    height: 56px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin: -28px 34px 0;
    transition: opacity var(--transition-base);
}

.room-intro__gallery .swiper-button-prev::after,
.room-intro__gallery .swiper-button-next::after {
    display: none;
}

.room-intro__gallery .swiper-button-prev:hover,
.room-intro__gallery .swiper-button-next:hover {
    opacity: 0.8;
}

/* Pagination — outside slider, below image */
.room-gallery__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 16px;
    position: static !important;
}

@media (min-width: 1024px) {
    .room-gallery__pagination {
        margin-top: 40px;
    }
}

.room-gallery__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: transparent;
    border: 1px solid #944c23;
    border-radius: 50%;
    opacity: 0.8;
    margin: 0 !important;
    transition: width var(--transition-base),
        border-radius var(--transition-base);
    flex-shrink: 0;
}

.room-gallery__pagination .swiper-pagination-bullet-active {
    width: 65px;
    height: 10px;
    border-radius: 4.5px;
    background: transparent;
    border: 1px solid #944c23;
    opacity: 0.8;
}

/* --- Specs --- */

.room-specs {
    background: #f6f6f6;
    border-top: 1px solid var(--color-dark);
    border-bottom: 1px solid var(--color-dark);
    padding-block: 50px;
}

.room-specs__inner {
    max-width: var(--container-wide-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.room-specs__grid {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 2.5vw, 40px) clamp(32px, 5vw, 80px);
    margin: 0;
}

.room-specs__item {
    width: calc(50% - clamp(16px, 2.5vw, 40px));
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 34px;
}

.room-specs__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 30px;
    padding-top: 3px;
}

.room-specs__icon svg {
    width: 100%;
    height: auto;
}

.room-specs__text-wrap {
    display: block;
}

.room-specs__label {
    display: inline;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.22;
    color: #000;
    margin: 0;
}

.room-specs__label::after {
    content: ": ";
}

.room-specs__value {
    display: inline;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 22px;
    line-height: 1.22;
    color: #000;
    margin: 0;
}

/* --- Booking iframe --- */

.room-booking {
    padding-block: clamp(48px, 6vw, 96px);
}

/* --- Mobile --- */

@media (max-width: 1023px) {
    .room-intro__content {
        padding: clamp(1.5rem, 5vw, 2.5rem) var(--container-pad);
    }

    .room-intro__gallery-wrap {
        order: -1;
    }

    .room-intro__gallery .swiper-button-prev,
    .room-intro__gallery .swiper-button-next {
        width: 36px;
        height: 36px;
        margin: -18px 15px 0;
    }

    .room-intro__gallery .swiper-button-prev svg,
    .room-intro__gallery .swiper-button-next svg {
        width: 36px;
        height: 36px;
    }

    .room-specs__grid {
        gap: 40px;
    }

    .room-specs__item {
        width: 100%;
    }

    .room-specs__item--size {
        order: 1;
    }
    .room-specs__item--sleeps {
        order: 2;
    }
    .room-specs__item--bed {
        order: 3;
    }
    .room-specs__item--bathroom {
        order: 4;
    }
    .room-specs__item--amenities {
        order: 5;
    }
    .room-specs__item--extras {
        order: 6;
    }
}
