/**
 * Corner logo watermark on property / room listing and card thumbnails.
 * Uses --hl-img-watermark (set in layouts via listing-image-watermark-vars partial).
 * For click-to-zoom preview, see image-lightbox.css / image-lightbox.js.
 */

.hl-listing-img,
.hostel-card-img,
.bs-card-img,
.bh-card-img,
.hl-bk-item-img,
.owner-room-card-img,
.hostel-gallery-main,
.hostel-gallery-item,
.hostel-room-image,
.hostel-room-slider,
.owner-hostel-enter-btn--card-image,
.owner-hostel-enter-btn--list-image,
.lh-image-item {
    position: relative;
}

.hl-listing-img::before,
.hostel-card-img::before,
.bs-card-img::before,
.bh-card-img::before,
.hl-bk-item-img::before,
.owner-room-card-img::before,
.hostel-gallery-main::before,
.hostel-gallery-item::before,
.hostel-room-image::before,
.hostel-room-slider::before,
.owner-hostel-enter-btn--card-image::before,
.owner-hostel-enter-btn--list-image::before,
.lh-image-item::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: var(--hl-img-watermark) no-repeat right 8px bottom 8px / clamp(36px, 24%, 88px) auto;
    opacity: 0.78;
}

.hl-listing-img--sm::before,
.owner-hostel-enter-btn--list-image::before {
    background-size: clamp(28px, 52%, 56px) auto;
    background-position: right 4px bottom 4px;
    opacity: 0.85;
}

.hl-listing-img--xs::before,
.hl-bk-table-thumb::before {
    background-size: clamp(22px, 70%, 40px) auto;
    background-position: right 2px bottom 2px;
    opacity: 0.82;
}

.hl-bk-table-thumb {
    position: relative;
    overflow: hidden;
}

.hl-bk-table-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: var(--hl-img-watermark) no-repeat right 2px bottom 2px / clamp(22px, 70%, 40px) auto;
    opacity: 0.82;
}

.hl-listing-img:not(.hl-listing-img--xs):not(.hl-listing-img--sm) > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hl-listing-img--xs > img,
.hl-listing-img--sm > img {
    display: block;
}

.hl-listing-img--xs {
    display: inline-block;
    line-height: 0;
    vertical-align: middle;
}

.hl-listing-img--sm {
    display: inline-block;
    line-height: 0;
}
