.property-search {
    padding-block: clamp(2rem, 4vw, 3.5rem) 1.25rem;
    color: #101010;
}

.property-search h2 {
    margin: 0 0 1.25rem;
    font: 780 clamp(1.8rem, 3.4vw, 3rem)/1.08 var(--site-font, system-ui, sans-serif);
    letter-spacing: -.04em;
}

.property-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "tabs tabs tabs"
        "fields more submit"
        "options options map";
    align-items: start;
    gap: 1rem;
}

.property-search__tabs {
    grid-area: tabs;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    min-inline-size: 0;
    margin: 0 0 .4rem;
    padding: 0;
    border: 0;
}

.property-search__choice { position: relative; cursor: pointer; }

.property-search__choice input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.property-search__tile,
.property-search__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    border: 1px solid #d5d5d5;
    background: #fff;
}

.property-search__tile {
    min-height: 78px;
    padding: .65rem;
    border-radius: 12px;
    font-size: clamp(.95rem, 1.5vw, 1.3rem);
    font-weight: 750;
}

.property-search__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff2b6;
}

.property-search__icon svg,
.property-search__submit svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: none;
}

.property-search__choice input:checked + span {
    border-color: #c69500;
    background: #fff7d6;
    box-shadow: inset 0 0 0 1px #e9b700;
}

.property-search__choice input:focus-visible + span {
    outline: 2px solid #101010;
    outline-offset: 3px;
}

.property-search__fields {
    grid-area: fields;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.property-search__fields label,
.property-search__more label {
    display: grid;
    min-width: 0;
    gap: .35rem;
    font-size: .85rem;
    font-weight: 700;
}

.property-search :is(select, input[type="number"]) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: .55rem .75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    font: 500 1rem/1.4 var(--site-font, system-ui, sans-serif);
}

.property-search__more { grid-area: more; }
.property-search__more[open] label { margin-top: .65rem; }

.property-search__more summary,
.property-search__submit {
    min-height: 46px;
    padding: .65rem .9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: 750 .95rem/1.4 var(--site-font, system-ui, sans-serif);
    cursor: pointer;
}

.property-search__more summary {
    margin-top: 1.6rem;
    background: #fff;
}

.property-search__submit {
    grid-area: submit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.6rem;
    border-color: var(--yellow, #f4ce28);
    background: var(--yellow, #f4ce28);
    color: #101010;
}

.property-search__submit:hover { background: #ffdf49; }

.property-search__options {
    grid-area: options;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.property-search__chip {
    min-height: 44px;
    padding-inline: .8rem;
    border-radius: 999px;
    font-size: .875rem;
    font-weight: 650;
}

.property-search__map {
    grid-area: map;
    justify-self: end;
    align-self: center;
    color: inherit;
    font-weight: 750;
    text-underline-offset: .2em;
}

#featured { scroll-margin-top: 6rem; }

.property-results-pagination ul {
    display: flex;
    gap: 1rem;
    padding: 0;
    list-style: none;
}

@media (max-width: 760px) {
    .property-search__form {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "tabs" "fields" "options" "more" "submit" "map";
        gap: .75rem;
    }

    .property-search__tabs { gap: .35rem; }

    .property-search__tile {
        flex-direction: column;
        gap: .35rem;
        padding-inline: .2rem;
        font-size: clamp(.625rem, 2.7vw, .85rem);
    }

    .property-search__icon { width: 34px; height: 34px; }
    .property-search__fields { grid-template-columns: 1fr; }
    .property-search__more summary { width: fit-content; }
    .property-search__more summary,
    .property-search__submit { margin-top: 0; }
}
.property-search h2 {
    margin-bottom: .55rem;
}

.property-search__intro {
    max-width: 60ch;
    margin: 0 0 1.5rem;
    color: #595959;
}

.property-search__category {
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    padding: .75rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    color: #101010;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.property-search__category:has(input:checked) {
    border-color: var(--yellow, #f4ce28);
    background: var(--yellow, #f4ce28);
    color: #101010;
}

@media (hover: hover) {
    .property-search__category:not(:has(input:checked)):hover {
        border-color: #101010;
        background: #101010;
        color: #fff;
    }
}

.property-search__category-label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    min-height: 52px;
    padding: .3rem .25rem;
    border-radius: 6px;
    font-size: clamp(.9rem, 1.5vw, 1.2rem);
    font-weight: 750;
}

/* The card itself shows the selected state. */
.property-search__category input:checked + .property-search__category-label {
    background: transparent;
    box-shadow: none;
}

.property-search__category .property-search__icon {
    width: 36px;
    height: 36px;
    border: 1px solid currentColor;
    background: transparent;
}

.property-search__category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    min-height: 44px;
    margin-top: .4rem;
    padding: .35rem .55rem;
    border: 1px solid currentColor;
    border-radius: 6px;
    color: inherit;
    font-size: .8rem;
    font-weight: 750;
    text-decoration: none;
}

.property-search__category-link svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.property-search__category-link:hover {
    text-decoration: underline;
    text-underline-offset: .2em;
}

.property-search__category-link:focus-visible,
.property-search__category input:focus-visible + .property-search__category-label {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .property-search__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .property-search__category {
        transition: none;
    }
}
.property-search__category-link {
    background: transparent;
    color: #101010;
    border: 2px solid currentColor;
    transition: background-color .18s ease, color .18s ease;
}

@media (hover: hover) {
    .property-search__category:not(:has(input:checked)):hover
    .property-search__category-link:not(:hover, :focus-visible) {
        color: #fff;
    }
}

.property-search__category-link:hover,
.property-search__category-link:focus-visible {
    background: #fff;
    color: #101010;
    text-decoration: none;
}

.property-search__category-link:focus-visible {
    outline: 2px solid var(--yellow, #f4ce28);
    outline-offset: 3px;
}
.property-search {
    background: #f4f4f5;
    padding-block: clamp(2rem, 4vw, 3.25rem);
    border-bottom: 1px solid #e6e6e8;
}

.featured-slider + .property-search {
    margin-top: 0;
}
.property-search__panel {
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #dedee2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 3px 12px rgb(0 0 0 / 4%);
}

.property-search__panel .property-search__tabs {
    margin-bottom: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8e8eb;
}