/*Property search results*/
.wl-psme-features {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	align-items: center;
}


.wl-psme-feature {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.2;
	position: relative;
	cursor: help;
	color: inherit;
	background-color:var(--wl-purple-lightest);
	padding:5px 7px;
	border-radius: 5px;
	font-size: 0.8em;
}

.wl-psme-feature__icon {
	width: 20px;
	height: 20px;
	display: block;
	flex: 0 0 20px;
	fill: var(--wl-purple);
	color: var(--wl-purple);
}

.wl-psme-feature.has-icon-only {
	gap: 0;
}


.wl-properties-single-features .wl-psme-features{
	gap:6px;
}
.wl-properties-single-features .wl-psme-feature{
	flex-grow: 1;
	gap: 8px;
	font-size: 1em;
	padding:7px 10px;
}


.wl-properties-card .wl-psme-feature.is-negative .wl-psme-feature__icon,
.wl-properties-card .wl-psme-feature.is-negative .wl-psme-feature__label {
	opacity: 0.6;
}

.wl-psme-feature--pets .wl-psme-feature__icon{opacity: 0.8}/*Pet icon is a bit strong*/
.wl-properties-card .wl-psme-feature--pets.is-negative .wl-psme-feature__icon {opacity: 0.4;}


.wl-properties-card .wl-psme-feature.is-negative::after {
	content: '';
	position: absolute;
	left: 0px;
	right: 0px;
	top: 50%;
	height: 1px;
	background: var(--wl-black);
	transform: rotate(-18deg);
	transform-origin: center;
	pointer-events: none;
}



/*Single property*/
.wl-psme-property-title__spec {
	display: block;
}

.wl-psme-property-title__spec small {
	font-size: 0.55em;
	font-weight: 500;
	display: block;
	line-height: 1.2;
}

.wl-psme-property-title__address {
	display: block;
	font-size: 1em;
	line-height: 1;
}

/* visually hide but keep accessible */

.wl-psme-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}


.wl-psme-status-notice {
	padding: 1.25rem;
	background-color: var(--wl-purple);
	color:#fff;
	border-radius: 10px;
	margin: 0 0 12px 0;
	text-align: center;
}

.wl-psme-property-actions {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.wl-psme-property-action {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
}

/* expand final item if row is odd */

.wl-psme-property-actions > :last-child:nth-child(odd) {
	grid-column: span 2;
}

.wl-psme-property-action__icon {
	width: 18px;
	height: 18px;
	display: block;
	flex: 0 0 18px;
	fill: currentColor;
	color: currentColor;
}

.wl-psme-map-tour {
	display: grid;
	gap: 24px;
	margin: 2rem 0;
}

.wl-psme-map-tour.has-tour {
	grid-template-columns: 1fr 1fr;
}

.wl-psme-map-tour.no-tour {
	grid-template-columns: 1fr;
}

.wl-psme-map-aspect,
.wl-psme-tour-aspect {
	width: 100%;
}

.wl-psme-map-tour.has-tour .wl-psme-map-aspect,
.wl-psme-tour-aspect {
	aspect-ratio: 16 / 9;
}

.wl-psme-map-tour.no-tour .wl-psme-map-aspect {
	aspect-ratio: auto;
	height: 400px;
}

.wl-psme-map-aspect {
	position: relative;
}

.wl-psme-map-aspect .wl-psme-map-container--single {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
}

.wl-psme-tour-aspect iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	border-radius: 10px;
}




.wl-psme-property-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, clamp(88px, 10vw, 147px));
    gap: 6px;
    width: 100%;
    line-height: 1;
}

.wl-psme-property-gallery__item {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    background: #f3f3f3;
    text-decoration: none;
    color: inherit;
}

/* Desktop placement */
.wl-psme-property-gallery__item:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    border-top-left-radius: 10px;
}

.wl-psme-property-gallery__item:nth-child(2) {
    grid-column: 4;
    grid-row: 1;
    border-top-right-radius: 10px;
}

.wl-psme-property-gallery__item:nth-child(3) {
    grid-column: 4;
    grid-row: 2;
}

.wl-psme-property-gallery__item:nth-child(4) {
    grid-column: 4;
    grid-row: 3;
}

.wl-psme-property-gallery__item:nth-child(5) {
    grid-column: 1;
    grid-row: 4;
    border-bottom-left-radius: 10px;
}

.wl-psme-property-gallery__item:nth-child(6) {
    grid-column: 2;
    grid-row: 4;
}

.wl-psme-property-gallery__item:nth-child(7) {
    grid-column: 3;
    grid-row: 4;
}

.wl-psme-property-gallery__item:nth-child(8) {
    grid-column: 4;
    grid-row: 4;
    border-bottom-right-radius: 10px;
}

.wl-psme-property-gallery__image-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

.wl-psme-property-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 50% 50%;
    transition: transform 0.3s ease;
}

.wl-psme-property-gallery__item:hover .wl-psme-property-gallery__image,
.wl-psme-property-gallery__item:focus-visible .wl-psme-property-gallery__image {
    transform: scale(1.03);
}

.wl-psme-property-gallery__item.is-more::after {
    content: attr(data-more);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    pointer-events: none;
}

.wl-psme-property-gallery__item:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/*Lightbox gallery*/
html.wl-psme-lightbox-open,
body.wl-psme-lightbox-open {
    overflow: hidden;
}

.wl-psme-lightbox[hidden] {
    display: none !important;
}

.wl-psme-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
}

.wl-psme-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.wl-psme-lightbox__dialog {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(48px, 72px) 1fr minmax(48px, 72px);
    grid-template-rows: 1fr auto;
    align-items: center;
    justify-items: stretch;
    padding: 24px;
    gap: 16px;
}

.wl-psme-lightbox__stage {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: pan-y;
}

.wl-psme-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
	border-radius: 10px;
}

.wl-psme-lightbox__nav,
.wl-psme-lightbox__close {
    appearance: none;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.wl-psme-lightbox__nav:hover,
.wl-psme-lightbox__close:hover,
.wl-psme-lightbox__nav:focus-visible,
.wl-psme-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.03);
}

.wl-psme-lightbox__nav {
    width: 52px;
    height: 52px;
    font-size: 28px;
    line-height: 1;
    justify-self: center;
}

.wl-psme-lightbox__nav--prev {
    grid-column: 1;
    grid-row: 1;
}

.wl-psme-lightbox__nav--next {
    grid-column: 3;
    grid-row: 1;
}

.wl-psme-lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    font-size: 30px;
    line-height: 1;
    z-index: 2;
}

.wl-psme-lightbox__meta {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #fff;
    text-align: center;
    min-height: 24px;
}

.wl-psme-lightbox__count {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

@media (max-width: 767px) {
    .wl-psme-lightbox__dialog {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr auto;
        padding: 16px;
        gap: 12px;
    }

    .wl-psme-lightbox__stage {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .wl-psme-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .wl-psme-lightbox__nav:hover,
    .wl-psme-lightbox__nav:focus-visible {
        transform: translateY(-50%) scale(1.03);
    }

    .wl-psme-lightbox__nav--prev {
        left: -5px;
    }

    .wl-psme-lightbox__nav--next {
        right: 9px;
    }

    .wl-psme-lightbox__close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .wl-psme-lightbox__image {
        max-height: calc(100vh - 100px);
    }

    .wl-psme-lightbox__meta {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}


@media (max-width: 900px) {
    .wl-psme-property-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: auto auto;
        gap: 6px;
    }

    .wl-psme-property-gallery__item {
        display: none;
        border-radius: 0 !important;
    }

    .wl-psme-property-gallery__item:nth-child(1),
    .wl-psme-property-gallery__item:nth-child(2),
    .wl-psme-property-gallery__item:nth-child(3),
    .wl-psme-property-gallery__item:nth-child(4),
    .wl-psme-property-gallery__item:nth-child(5) {
        display: flex;
    }

    .wl-psme-property-gallery__item:nth-child(1) {
        grid-column: 1 / -1;
        grid-row: 1;
        aspect-ratio: 4 / 3;
        border-top-left-radius: 10px !important;
        border-top-right-radius: 10px !important;
    }

    .wl-psme-property-gallery__item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        aspect-ratio: 1 / 1;
        border-bottom-left-radius: 10px !important;
    }

    .wl-psme-property-gallery__item:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        aspect-ratio: 1 / 1;
    }

    .wl-psme-property-gallery__item:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        aspect-ratio: 1 / 1;
    }

    .wl-psme-property-gallery__item:nth-child(5) {
        grid-column: 4;
        grid-row: 2;
        aspect-ratio: 1 / 1;
        border-bottom-right-radius: 10px !important;
    }

    .wl-psme-property-gallery__more,
    .wl-psme-property-gallery__item.is-more::after {
        font-size: 0.9rem;
        padding: 6px;
    }
}


@media (max-width: 767px) {
	.wl-psme-map-tour.has-tour {
		grid-template-columns: 1fr;
	}
}


@media screen and (max-width:400px){
	.wl-psme-feature__icon {
		width: 17px;
		height: 17px;
		flex: 0 0 17px;
	}
}