/**
 * Corner logo watermark on property / room listing and card thumbnails.
 * Uses --hl-img-watermark (set in layouts via listing-image-watermark-vars partial).
 * Keep overlays small — never fill the thumbnail.
 */

.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,
.hl-bk-table-thumb {
    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,
.hl-bk-table-thumb::before {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 1;
    background: var(--hl-img-watermark) no-repeat center / contain;
    opacity: 0.72;
    /* Do not stretch across the image */
    inset: auto;
}

.hl-listing-img--sm::before,
.owner-hostel-enter-btn--list-image::before {
    right: 4px;
    bottom: 4px;
    width: 22px;
    height: 22px;
    opacity: 0.78;
}

.hl-listing-img--xs::before,
.hl-bk-table-thumb::before {
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

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

.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 > img.admin-prop-thumb {
    width: 56px;
    height: 56px;
    max-width: 56px;
    object-fit: cover;
    border-radius: 8px;
}

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

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