/* listings container */
.helmik-listing-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 20px;
    margin-bottom: 32px;
    margin-top: 16px;
}

.helmik-listing-container a {
    text-decoration: none !important;
}

/* listing item in a list */
.helmik-listing {
    /* background-color: orange;
    border: 1px solid #d3d3d3;
    border-radius: .25rem; */
    border-radius: .50rem;
    color: #a09880;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    line-height: 1.2em;
    overflow: hidden;
    font-size: .85em;
}

/* listing type "for sale" */
.helmik-listing-type-sale {
    /* background-color: #fafafa; */
}

/* listing type "to let" */
.helmik-listing-type-rental {
    /* background-color: #ceead0; */
}

/* property image */
.helmik-listing-img {
    /* make all image containers equal height regardless of image proportions */
    height: 180px;
}

.helmik-listing-img img {
    /* show as much of the image as fits in equal-sized boxes */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* property info */
.helmik-listing-content {
    padding: 15px;
}

.helmik-listing-content * {
    text-decoration: none !important;
    color: #a09880;
}

.helmik-listing-content * {
    margin-top: 5px;
    margin-bottom: 5px;
}

.helmik-listing-title {
    font-size: 1.25em;
    font-weight: bold;
    color: #ffffff;
}

.helmik-listing button {
    border: 1px solid #2196F3;
    padding: .5rem 1rem;
    cursor: pointer;
    border-radius: .25rem;
}

.helmik-filter-row {
    display: flex;
    flex-wrap: wrap;
}

.helmik-range-row {
    display: flex;
    align-items: center;
    column-gap: 8px;
}

.helmik-filter-column {
    flex: 1;
    padding: 16px;
}

.helmik-filter-input {
    flex: 1;
    width: 100%;
}

#helmik-filter-listing-type {
    margin-top: 16px;
}

.helmik-listing-filters fieldset {
    border: 0;
    padding: 0;
}

.helmik-listing-filters label {
    user-select: none;
}

.helmik-listing-filters label {
    z-index: 0;
    width: 100%;
    position: relative;
    display: inline-block;
    color: #a09880;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.7;
}

.helmik-listing-filters label > input {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    z-index: -1;
    position: absolute;
    left: -10px;
    top: -8px;
    display: block;
    margin: 0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
    box-shadow: none;
    outline: none;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.2s;
}

.helmik-listing-filters label > span {
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.helmik-listing-filters label > span::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    margin: 3px 11px 3px 1px;
    border: solid 2px; /* Safari */
    border-color: #484840;
    border-radius: 2px;
    width: 18px;
    height: 18px;
    vertical-align: top;
    transition: border-color 0.2s, background-color 0.2s;
}

.helmik-listing-filters label > span::after {
    content: "";
    display: block;
    position: absolute;
    top: 4px;
    left: 2px;
    width: 10px;
    height: 5px;
    border: solid 2px transparent;
    border-right: none;
    border-top: none;
    transform: translate(3px, 4px) rotate(-45deg);
}

.helmik-listing-filters label > input:checked,
.helmik-listing-filters label > input:indeterminate {
    background-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.helmik-listing-filters label > input:checked + span::before,
.helmik-listing-filters label > input:indeterminate + span::before {
    border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
    background-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.helmik-listing-filters label > input:checked + span::after,
.helmik-listing-filters label > input:indeterminate + span::after {
    border-color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
}

.helmik-listing-filters label > input:indeterminate + span::after {
    border-left: none;
    transform: translate(4px, 3px);
}

.helmik-listing-filters label:hover > input {
    opacity: 0.04;
}

.helmik-listing-filters label > input:focus {
    opacity: 0.12;
}

.helmik-listing-filters label:hover > input:focus {
    opacity: 0.16;
}

.helmik-listing-filters label > input:active {
    opacity: 1;
    transform: scale(0);
    transition: transform 0s, opacity 0s;
}

.helmik-listing-filters label > input:active + span::before {
    border-color: rgb(var(--pure-material-primary-rgb, 33, 150, 243));
}

.helmik-listing-filters label > input:checked:active + span::before {
    border-color: transparent;
    background-color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.6);
}

.helmik-listing-filters label > input:disabled {
    opacity: 0;
}

.helmik-listing-filters label > input:disabled + span {
    color: rgba(var(--pure-material-onsurface-rgb, 0, 0, 0), 0.38);
    cursor: initial;
}

.helmik-listing-filters label > input:disabled + span::before {
    border-color: currentColor;
}

.helmik-listing-filters label > input:checked:disabled + span::before,
.helmik-listing-filters label > input:indeterminate:disabled + span::before {
    border-color: transparent;
    background-color: currentColor;
}
