.object-room-groups {
    background: transparent;
}

/* LightGallery is also opened from inside a Bootstrap modal. Keep both
   generated layers above Bootstrap's modal/backdrop stacking levels. */
body.room-gallery-lightbox-open .lg-backdrop {
    z-index: 1990;
}

body.room-gallery-lightbox-open .lg-outer {
    z-index: 2000;
}

.object-room-groups__heading {
    margin: 0 0 1.5rem;
    text-align: center;
    font-size: 2rem;
    color: var(--thm-text);
}

.object-room-card {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--thm-white);
    border-radius: 0 0 40px 0;
}

.object-room-card__image {
    position: relative;
    display: block;
    flex: 0 0 240px;
    min-height: 180px;
    overflow: hidden;
    background: var(--thm-silver);
}

.object-room-card__image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    margin: 0;
}

.object-room-card__image--empty {
    flex-basis: 0;
    min-width: 0;
}

.object-room-card__gallery-count {
    position: absolute;
    left: 1em;
    bottom: 0.75rem;
    /* transform: translateX(-50%); */
    padding: 0.2rem 0.8rem;
    border-radius: 50rem;
    color: #fff;
    background: rgba(0, 0, 0, .62);
    white-space: nowrap;
    font-family: "FuturaPTBook", sans-serif;
    font-size: 1rem !important;
    line-height: 1.4;
}

.object-room-card__content {
    display: block;
    width: 100%;
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.25rem 1.75rem 1.2rem;
    border: 0;
    text-align: left;
    color: inherit;
    background: var(--thm-white);
    cursor: pointer;
    font: inherit;
}

.object-room-card__content:focus-visible {
    outline: 3px solid var(--thm-blue);
    outline-offset: -3px;
}

.object-room-card__title-row {
    display: inline-flex;
    flex: 1 1 200px;
    align-items: center;
    gap: .55rem;
    min-width: 0;
}

.object-room-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.object-room-card__title {
    font-size: 1.75rem !important;
    line-height: 1.15;
    color: var(--thm-text);
}

.object-room-card__decor {
    display: inline-block;
    flex: 0 0 auto;
    width: .7rem;
    height: .7rem;
    border: 3px solid var(--thm-yellow);
    border-radius: 50%;
}

.object-room-card__tags,
.object-room-modal__tags {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.object-room-card__tags {
    position: static;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.object-room-card__people {
    position: absolute;
    top: 1.15rem;
    right: 1.25rem;
    display: inline-block;
    padding: .25rem .9rem;
    border-radius: 1rem 0 1rem 0;
    color: var(--thm-text);
    background: var(--thm-silver);
    font-family: "FuturaPTBook", sans-serif;
    font-size: 1.05rem;
    line-height: 1.35;
    white-space: nowrap;
}

/* The card keeps both pills in one flex row; the shared pill definition
   remains absolute for backwards-compatible single-tag usage. */
.object-room-card__tags .object-room-card__people {
    position: static;
}

.object-room-card__summary {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 1rem;
    color: var(--thm-text);
    font-size: 1.05rem !important;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.object-room-card__more {
    display: inline-block;
    margin-top: .75rem;
    color: var(--thm-blue2);
    font-family: "FuturaPTBook", sans-serif;
    font-size: 1.1rem;
}

.object-room-modal .modal-dialog {
    max-width: 890px;
}

.object-room-modal__content {
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: 40px;
    background: var(--thm-white) !important;
}

.object-room-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 1.75rem;
    height: 1.75rem;
    padding: .75rem;
    border-radius: 50%;
    opacity: .9;
    background-color: rgba(255, 255, 255, .95);
}

.object-room-modal__gallery-wrap {
    position: relative;
    overflow: hidden;
    height: 360px;
    min-height: 360px;
    background: var(--thm-silver);
}

.object-room-modal__gallery {
    position: relative;
    height: 100%;
}

.object-room-modal__gallery .owl-stage-outer,
.object-room-modal__gallery .owl-stage,
.object-room-modal__gallery .owl-item {
    height: 100%;
}

/* The shared Owl Carousel rules center items with flexbox. A room slide
   must occupy the whole item so the responsive image is not narrowed. */
.object-room-modal__gallery .owl-item {
    display: block;
}

.object-room-modal__slide {
    display: block;
    width: 100%;
    height: 100%;
}

.object-room-modal__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* With three or more photos the desktop modal behaves like a clipped
   carousel: adjacent slides stay visible and Owl moves one slide at a time. */
@media (min-width: 768px) {
    .object-room-modal__gallery--multi .object-room-modal__slide {
        width: max-content;
    }

    .object-room-modal__gallery--multi .object-room-modal__slide img {
        width: auto;
        max-width: none;
        height: 360px;
        object-fit: contain;
    }
}

.object-room-modal__gallery .owl-nav {
    margin: 0;
}

.object-room-modal__gallery .owl-prev,
.object-room-modal__gallery .owl-next {
    top: calc(50% - 25px);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, .9) !important;
}

.object-room-modal__gallery .owl-prev {
    left: 1rem;
}

.object-room-modal__gallery .owl-next {
    right: 1rem;
}

.object-room-modal__gallery-count {
    z-index: 2;
    right: auto;
    left: 1.25rem;
    transform: none;
}

.object-room-modal__body {
    position: relative;
    padding: 1rem 2.5rem 2rem;
}

.object-room-modal__label {
    margin-bottom: .25rem;
    color: var(--thm-text);
    font-family: "FuturaPTBook", sans-serif;
    font-size: 1rem;
}

.object-room-modal__title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 1rem;
    color: var(--thm-text);
    font-size: 1.9rem;
}

.object-room-modal__people {
    position: static;
    margin-bottom: 1rem;
    border-radius: 1rem 0 1rem 0;
}

.object-room-modal__tags {
    margin-bottom: 0;
}

.object-room-modal__description {
    margin-top: 1rem;
    color: var(--thm-text);
    font-size: 1.15rem;
    line-height: 1.35;
}

.object-room-modal__details {
    margin: 1.25rem 0 0;
    font-size: 1rem;
}

.object-room-modal__details > div {
    display: flex;
    gap: 1rem;
    padding: .25rem 0;
    border-bottom: 1px solid var(--thm-silver);
}

.object-room-modal__details dt,
.object-room-modal__details dd {
    margin: 0;
}

.object-room-modal__details dt {
    flex: 0 0 42%;
    font-family: "FuturaPTBook", sans-serif;
}

.object-room-modal__details dd {
    flex: 1 1 auto;
}

@media (max-width: 767px) {
    .object-room-groups {
        padding: 0 !important;
    }

    .object-room-groups__heading {
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }

    .object-room-card {
        display: block;
        margin-bottom: 1rem;
        border-radius: 0 0 30px 0;
        margin-left: calc(var(--bs-gutter-x) * .5);
        margin-right: calc(var(--bs-gutter-x) * .5);
    }

    .object-room-card__image,
    .object-room-card__image img {
        width: 100%;
        min-height: 0;
        height: 220px;
    }

    .object-room-card__content {
        padding: 1rem 1.5rem 1.25rem;
    }

    .object-room-card__title-row {
        max-width: 100%;
    }

    .object-room-card__header {
        display: block;
    }

    .object-room-card__title {
        font-size: 1.55rem !important;
    }

    .object-room-card__tags {
        position: static;
        flex: 0 0 auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-top: .75rem;
    }

    .object-room-card__people {
        font-size: .95rem;
    }

    .object-room-card__tags .object-room-card__people {
        position: static;
        font-size: 15px !important;
    }

    .object-room-card__summary {
        margin-top: .85rem;
        font-size: 1.05rem !important;
        line-height: 1.25;
        -webkit-line-clamp: 5;
    }

    .object-room-modal .modal-dialog {
        margin: 1rem auto;
    }

    .object-room-modal__content {
        width: calc(100vw - 2rem);
        margin: 0 auto;
        border-radius: 40px;
    }

    .object-room-modal__close {
        top: .75rem;
        right: .75rem;
    }

    .object-room-modal__gallery-wrap,
    .object-room-modal__gallery,
    .object-room-modal__slide {
        min-height: 230px;
        height: 230px;
    }

    .object-room-modal__slide img {
        height: 100%;
    }

    .object-room-modal__gallery--multi .object-room-modal__slide {
        width: 100%;
    }

    .object-room-modal__body {
        padding: .85rem 1.5rem 1.5rem;
    }

    .object-room-modal__title {
        font-size: 1.55rem;
    }

    .object-room-modal__description {
        font-size: 1rem;
    }

    .object-room-modal__details > div {
        display: block;
    }

    .object-room-modal__details dd {
        margin-top: .1rem;
    }
}
