/*
 * Styles of the estate CMS modules — the uik3-default pieces the module
 * markup relies on: the full-width label chips of the OneClick filter
 * (the Vorbild's uk-width-100 site class, one bar per value).
 */
.sesimmotool-modul .uk-width-100 {
    display: block;
    width: 100%;
    margin-top: 2px;
    box-sizing: border-box;
}

.sesimmotool-modul a.uk-label {
    text-decoration: none;
}

/*
 * The clustered estate map of the list and the map module: the box keeps the
 * height its markup sets, Leaflet fills it, the consent overlay centers, and
 * the cluster icon is the Vorbild's m1 pin with the count on top.
 */
.imo-map-search {
    position: relative;
    overflow: hidden;
}

.imo-map-search .leaflet-container {
    height: 100%;
    width: 100%;
}

.imo-map-search .imo-map-consent {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.imo-map-cluster {
    background: url("map/m1.png") no-repeat center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font: bold 11px Arial, sans-serif;
}

.imo-map-cluster span {
    /* The count sits at 53% like the Vorbild's OpenLayers text anchor. */
    margin-top: 3px;
}

/* Equal tile heights: the image area keeps one aspect ratio, the picture
   covers it — the visual counterpart of the Vorbild's fixed tile image size. */
.layout-property-tile-item .item-image,
.layout-property-list-item .item-image {
    display: block;
    width: 100%;
}

.layout-property-tile-item .item-image img,
.layout-property-list-item .item-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.layout-property-tile-item .item-image .uk-placeholder,
.layout-property-list-item .item-image .uk-placeholder {
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* Equal card heights inside a matched grid row. */
.layout-property-tile-item,
.layout-property-tile-item .uk-card {
    height: 100%;
    width: 100%;
}
