.property-filter-hero {
    background:linear-gradient(100deg,rgba(16,34,58,.86),rgba(16,34,58,.25)),url('/assets/images/services-hero-photo.jpg') center 45%/cover;
    color:#fff;
    padding:18px 0 20px
}

.property-filter-inner {
    width:100%;
    box-sizing:border-box;
    max-width:1240px;
    margin:auto;
    padding-inline:24px
}

.property-filter-hero h1 {
    color:#fff;
    margin:0;
    font-size:clamp(2rem,3.3vw,3.25rem);
    line-height:1.12
}

.property-filter-intro {
    color:#fff;
    margin:0;
    max-width:1000px;
    font-size:1.05rem
}

.property-filter {
    background:rgba(16,34,58,.88);
    border:1px solid rgba(255,255,255,.4);
    border-radius:16px;
    padding:3px 16px;
    box-shadow:0 10px 28px #0003;
    backdrop-filter:blur(8px)
}

.property-filter fieldset {
    border:0;
    min-width:0;
    margin:0;
    padding:0
}

.property-filter-transactions {
    display:flex;
    justify-content:center;
    gap:36px;
    border-bottom:1px solid #ffffff40!important;
    padding-bottom:0!important
}

.property-filter label {
    margin:0;
    font-weight:400
}

.property-filter-transactions label,.property-filter-types label {
    position:relative;
    cursor:pointer
}

.property-filter input[type=radio],.property-filter-sr {
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap
}

.property-filter-transactions span {
    display:block;
    white-space:nowrap;
    padding:0 6px;
    color:#fff;
    font-size:1rem;
    line-height:22px;
    border-bottom:2px solid transparent
}

.property-filter-transactions input:checked+span {
    border-color:#C9A365;
    font-weight:700
}

.property-filter-types {
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:8px;
    padding-top:0!important
}

.property-filter-types span {
    word-break:normal;
    overflow-wrap:normal;
    box-sizing:border-box;
    min-height:42px;
    padding:0 6px;
    font-size:.9rem;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:0;
    border:2px solid transparent;
    border-radius:10px;
    text-align:center;
    font-weight:600;
    color:#fff;
    line-height:1.15
}

.property-filter-types svg {
    width:20px;
    height:20px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.5;
    stroke-linecap:round;
    stroke-linejoin:round
}

.property-filter-types input:checked+span {
    border-color:#C9A365;
    background:#C9A36540
}

.property-filter input:focus-visible+span,.property-filter a:focus-visible,.property-filter button:focus-visible,.property-filter summary:focus-visible {
    outline:3px solid #fff;
    outline-offset:4px
}

.property-filter-all {
    position:relative;
    display:inline-flex;
    cursor:pointer;
    font-size:.9rem;
    line-height:18px;
    margin:0!important
}

.property-filter-all span {
    padding:0 6px;
    border-radius:6px;
    color:#fff
}

.property-filter-all input:checked+span {
    background:#ffffff1c;
    text-decoration:underline;
    text-underline-offset:4px
}

.property-filter-search {
    display:flex;
    align-items:center;
    gap:12px;
    border-radius:50px;
    background:#fff;
    border:2px solid #d5dbe4;
    height:36px;
    box-sizing:border-box;
    padding:1px 3px 1px 12px
}

.property-filter-search>svg {
    flex:0 0 26px;
    width:26px;
    height:20px;
    fill:none;
    stroke:#10223A;
    stroke-width:1.8
}

.property-filter-search input {
    min-width:0;
    flex:1;
    width:100%;
    border:0!important;
    box-shadow:none!important;
    background:#fff;
    color:#10223A;
    font:inherit;
    height:28px;
    min-height:0;
    line-height:28px;
    padding:0;
    outline-offset:3px
}

.property-filter-search input::placeholder {
    color:#596577;
    opacity:1
}

.property-filter-search button {
    border:0;
    border-radius:30px;
    background:#C9A365;
    color:#10223A;
    padding:0 20px;
    height:28px;
    min-height:0;
    line-height:28px;
    font:inherit;
    font-weight:700;
    cursor:pointer
}

.property-filter-search button:hover {
    background:#dfbc83
}

.property-filter-tools {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-top:1px;
    font-size:.85rem;
    line-height:18px
}

.property-filter-tools a,.property-filter-tools summary {
    color:#fff;
    cursor:pointer;
    min-height:18px
}

.property-filter-tools>a {
    margin-left:auto
}

.property-filter-tools details {
    flex:1
}

.property-filter-fields {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
    gap:14px;
    padding:14px 0 4px
}

.property-filter-fields label {
    display:flex;
    flex-direction:column;
    gap:6px;
    color:#fff
}

.property-filter-fields input,.property-filter-fields select {
    width:100%;
    min-height:44px;
    color:#10223A;
    background:#fff;
    border:1px solid #cbd5e1;
    border-radius:6px;
    padding:8px;
    font:inherit
}

.property-filter-tools details p {
    color:#fff;
    margin:10px 0 0;
    font-size:.85rem
}


.property-filter-heading {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    column-gap:24px;
    row-gap:6px;
    margin-bottom:10px
}

.property-filter-heading h1 {
    grid-column:1/-1
}

.property-filter-contact {
    display:flex;
    align-items:center;
    gap:12px;
    font-size:.85rem;
    line-height:1.3
}

.property-filter-contact a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    min-height:36px;
    padding:6px 14px;
    border-radius:6px;
    background:#C9A365;
    color:#10223A;
    font-weight:700;
    text-decoration:none
}

.property-filter-contact a:hover {
    background:#dfbc83
}

.property-filter-contact a:focus-visible {
    outline:3px solid #fff;
    outline-offset:3px
}

@media(max-width:1100px) {
    .property-filter-contact {
        flex-direction:column;
        align-items:flex-end;
        gap:4px;
        max-width:220px;
        text-align:right
    }
}

@media(max-width:760px) {
    .property-filter-heading {
    grid-template-columns:1fr;
    row-gap:8px
}
.property-filter-contact {
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    max-width:none;
    text-align:left;
    gap:12px
}
.property-filter-contact span {
    max-width:170px
}
.property-filter-inner {
    padding-inline:16px
}
.property-filter-hero {
    padding:16px 0
}
.property-filter {
    padding:8px 12px
}
.property-filter-types {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px
}
.property-filter-types span {
    min-height:48px;
    padding:2px 3px;
    font-size:.85rem
}
.property-filter-types svg {
    width:22px;
    height:22px
}
.property-filter-transactions {
    gap:10px
}
.property-filter-transactions span {
    font-size:1rem
}
.property-filter-search {
    padding-left:12px;
    gap:7px
}
.property-filter-search input {
    font-size:.9rem
}
.property-filter-search button {
    padding:0 13px
}
.property-filter-search>svg {
    width:20px;
    flex-basis:20px
}
.property-filter-tools {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:2px 12px
}
.property-filter-tools details {
    grid-column:1;
    grid-row:1/3
}
.property-filter-tools .property-filter-all {
    grid-column:2;
    grid-row:2
}
.property-filter-tools>a {
    grid-column:2;
    grid-row:1
}
.property-filter-tools summary {
    white-space:nowrap
}
.property-filter-tools:has(details[open]) {
    display:flex;
    flex-wrap:wrap
}
.property-filter-tools details[open] {
    flex-basis:100%
}
.property-filter-tools details {
    min-width:0
}
.property-filter-fields {
    grid-template-columns:1fr
}

}


/* Size only the Properties and standard Listings hero filters. */
:is(.mi-properties, .listings-v2--standard) .property-filter {
    width:60%;
    box-sizing:border-box;
    margin-inline:auto;
    container:compact-listing-filter / inline-size
}
:is(.mi-properties, .listings-v2--standard) .property-filter svg {
    transform:scale(.75)
}
/* Let the existing controls wrap within the narrower panel on small screens. */
@container compact-listing-filter (max-width:320px) {
    .property-filter-types { grid-template-columns:repeat(2,minmax(0,1fr)) }
    .property-filter-transactions { flex-wrap:wrap; gap:4px }
    .property-filter-tools { display:flex; flex-wrap:wrap }
    .property-filter-tools details { flex-basis:100% }
}
