:root {
    --muro-gold: #d4af59;
    --muro-gold-hover: #c79b42;
}

.property-search-shell {
    position: relative;
    z-index: 2;
    width: min(88%, 1080px);
    margin: -142px auto 0;
    padding-bottom: 72px;
}

.property-search {
    background: #ffffff;
    border: 1px solid #edf0f2;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
    padding: 0 28px 24px;
}

.property-search-tabs {
    display: flex;
    align-items: stretch;
    gap: 26px;
    border-bottom: 1px solid #edf0f2;
}

.property-search-tab {
    position: relative;
    min-height: 58px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #7b8490;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
}

.property-search-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: var(--muro-gold);
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.property-search-tab.is-active {
    color: #111827;
}

.property-search-tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.property-search-fields {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 14px;
    padding: 20px 0 22px;
}

.property-search-fields[hidden] {
    display: none;
}

.property-search-content {
    transition: opacity 110ms ease, transform 110ms ease;
}

.property-search-content.is-transitioning {
    opacity: 0;
    transform: translateY(-8px);
}

.property-search-parcel-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 30px 0 32px;
}

.property-search-parcel-options[hidden] {
    display: none;
}

.property-search-parcel-option {
    min-height: 96px;
    padding: 18px;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    background: #ffffff;
    color: #273244;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.property-search-parcel-option:hover,
.property-search-parcel-option:focus-visible {
    border-color: var(--muro-gold);
    background: rgba(212, 175, 89, 0.05);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.08);
    outline: none;
}

.property-search-parcel-option.is-selected {
    position: relative;
    border-color: var(--muro-gold-hover);
    background: rgba(212, 175, 89, 0.16);
    color: #111827;
    box-shadow: inset 0 0 0 1px var(--muro-gold), 0 7px 16px rgba(212, 175, 89, 0.14);
}

.property-search-parcel-option.is-selected::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 9px;
    height: 5px;
    border-bottom: 2px solid var(--muro-gold-hover);
    border-left: 2px solid var(--muro-gold-hover);
    transform: rotate(-45deg);
}

.property-search-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.property-search-field label {
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
}

.property-search-field select {
    width: 100%;
    height: 48px;
    padding: 0 38px 0 13px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    outline: none;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, transparent 50%, #7b8490 50%), linear-gradient(135deg, #7b8490 50%, transparent 50%);
    background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    color: #273244;
    font-size: 0.88rem;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.property-search-field select:hover,
.property-search-field select:focus {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-type-picker {
    position: relative;
}

.property-type-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 38px 0 13px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #ffffff;
    color: #273244;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
 
.property-type-trigger:hover,
.property-type-trigger[aria-expanded="true"] {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-type-chevron {
    width: 7px;
    height: 7px;
    border-right: 1px solid #7b8490;
    border-bottom: 1px solid #7b8490;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
}

.property-type-trigger[aria-expanded="true"] .property-type-chevron {
    transform: rotate(225deg) translate(-2px, -1px);
}

.property-type-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 360px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid #e5e8eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.property-type-panel[hidden] {
    display: none;
}

.property-type-search-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 12px 10px;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
}

.property-type-search {
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    outline: none;
    background: #ffffff;
    color: #273244;
    font-size: 0.88rem;
}

.property-type-options {
    padding: 12px;
}

.property-type-search:focus {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-type-group {
    margin-bottom: 14px;
}

.property-type-group:last-child {
    margin-bottom: 0;
}

.property-type-category {
    display: block;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 6px;
    background: #f6f7f8;
    color: #1f2937;
    font-size: 0.84rem;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.property-type-category:hover,
.property-type-category:focus-visible,
.property-type-category.is-selected {
    outline: none;
    background: rgba(212, 175, 89, 0.16);
    color: #111827;
}

.property-type-subgroup {
    margin: 5px 0 8px 8px;
    padding-left: 7px;
    border-left: 1px solid #e5e8eb;
}

.property-type-heading {
    margin: 4px 4px 6px;
    color: #1f2937;
    font-size: 0.8rem;
    font-weight: 800;
}

.property-type-heading--nested {
    margin-top: 10px;
    color: #4b5563;
    font-size: 0.76rem;
}

.property-type-option {
    display: block;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4b5563;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.property-type-option:hover,
.property-type-option:focus-visible,
.property-type-option.is-selected {
    outline: none;
    background: rgba(212, 175, 89, 0.1);
    color: #111827;
}

.property-type-empty {
    padding: 20px 8px 10px;
    color: #697382;
    font-size: 0.84rem;
    text-align: center;
}

.property-type-empty[hidden],
.property-type-group[hidden],
.property-type-option[hidden],
.property-type-category[hidden],
.property-type-subgroup[hidden] {
    display: none;
}

.property-filter-picker {
    position: relative;
}

.property-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    padding: 0 38px 0 13px;
    border: 1px solid #dfe3e7;
    border-radius: 8px;
    background: #ffffff;
    color: #273244;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.property-filter-trigger:hover,
.property-filter-trigger[aria-expanded="true"] {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-filter-picker:has(.property-filter-clear:not([hidden])) .property-filter-trigger,
.property-type-picker:has(.property-filter-clear:not([hidden])) .property-type-trigger {
    padding-right: 68px;
}

.property-filter-trigger i {
    width: 7px;
    height: 7px;
    border-right: 1px solid #7b8490;
    border-bottom: 1px solid #7b8490;
    transform: rotate(45deg) translateY(-2px);
}

.property-filter-clear {
    position: absolute;
    top: 50%;
    right: 4px;
    z-index: 2;
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #697382;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.property-filter-clear:not([hidden]) {
    pointer-events: auto;
}

.property-filter-clear:not([hidden])::before {
    content: "";
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: -8px;
    width: 1px;
    background: #e1e5e9;
}

.property-filter-picker:hover .property-filter-clear:not([hidden]),
.property-filter-picker:focus-within .property-filter-clear:not([hidden]),
.property-type-picker:hover .property-filter-clear:not([hidden]),
.property-type-picker:focus-within .property-filter-clear:not([hidden]),
.property-filter-clear:focus-visible:not([hidden]) {
    opacity: 1;
    pointer-events: auto;
}

.property-filter-clear:hover,
.property-filter-clear:focus-visible {
    background: rgba(212, 175, 89, 0.12);
    color: var(--muro-gold-hover);
    outline: none;
}

.property-filter-clear[hidden] {
    display: none;
}

.property-type-picker .property-filter-clear {
    right: 4px;
}

.property-filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 360px;
    overflow-y: auto;
    border: 1px solid #e5e8eb;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.12);
}

.property-filter-panel[hidden] {
    display: none;
}

.property-filter-search-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 12px 10px;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
}

.property-filter-search {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    outline: none;
    color: #273244;
    font-size: 0.88rem;
}

.property-filter-search:focus,
.property-filter-range-input:focus {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-filter-options {
    padding: 12px;
}

.property-filter-option {
    display: block;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #4b5563;
    font-size: 0.84rem;
    text-align: left;
    cursor: pointer;
}

.property-filter-option:hover,
.property-filter-option:focus-visible,
.property-filter-option.is-selected {
    outline: none;
    background: rgba(212, 175, 89, 0.1);
    color: #111827;
}

.property-filter-option[hidden],
.property-filter-empty[hidden] {
    display: none;
}

.property-filter-empty {
    padding: 18px 12px;
    color: #697382;
    font-size: 0.84rem;
    text-align: center;
}

.property-filter-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
}

.property-filter-range label {
    display: grid;
    gap: 7px;
    color: #4b5563;
    font-size: 0.78rem;
    font-weight: 700;
}

.property-filter-range-input {
    width: 100%;
    height: 42px;
    padding: 0 10px;
    border: 1px solid #dfe3e7;
    border-radius: 7px;
    outline: none;
    color: #273244;
}

.property-search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid #edf0f2;
    padding-top: 18px;
}

.property-search-actions__group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
}

.property-reference-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 520px;
    height: 58px;
    padding: 6px 10px 6px 14px;
    border: 1px solid rgba(212, 175, 89, 0.58);
    border-radius: 11px;
    background: #fffaf0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.property-reference-search:focus-within {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-reference-search__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.property-reference-search__separator {
    flex: 0 0 auto;
    width: 1px;
    height: 38px;
    margin: 0 8px;
    background: rgba(201, 151, 53, 0.38);
}

.property-reference-search__content {
    flex: 0 0 190px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.property-reference-search__heading {
    display: block;
    color: #17263a;
    font-size: 0.76rem;
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
}

.property-reference-search__subtitle {
    display: block;
    margin-top: 3px;
    color: #697382;
    font-size: 0.76rem;
    line-height: 1.15;
    white-space: nowrap;
}

.property-reference-search__input-wrap {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #ffffff;
}

.property-reference-search__input-wrap:focus-within {
    border-color: var(--muro-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 89, 0.1);
}

.property-reference-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #273244;
    font: inherit;
    font-size: 0.84rem;
    appearance: none;
    -webkit-appearance: none;
}

.property-reference-search input::-webkit-search-decoration,
.property-reference-search input::-webkit-search-cancel-button,
.property-reference-search input::-webkit-search-results-button,
.property-reference-search input::-webkit-search-results-decoration {
    display: none;
}

.property-reference-search input::placeholder {
    color: #9aa3ad;
}

.property-reference-search__message {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    margin: 0;
    color: #a64b36;
    font-size: 0.72rem;
}

.property-search-reset,
.property-search-submit {
    border: 0;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.property-search-reset {
    flex: 0 0 auto;
    padding: 10px 0;
    background: transparent;
    color: #697382;
    font-size: 0.86rem;
}

.property-search-reset span {
    display: inline-block;
    margin-right: 5px;
    color: var(--muro-gold);
    font-size: 1rem;
    vertical-align: middle;
}

.property-search-reset:hover {
    color: var(--muro-gold-hover);
}

.property-search-reset svg {
    display: block;
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
}

.property-search-submit {
    flex: 0 0 220px;
    width: 220px;
    min-width: 220px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 24px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(120deg, #e4ba4e, #c88b1c);
    color: #fff;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 7px 16px rgba(163, 111, 24, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.property-search-submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.property-search-submit-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1100px) {
    .property-search-actions {
        flex-wrap: wrap;
    }

    .property-search-actions__group {
        margin-left: auto;
    }

    .property-reference-search {
        width: 480px;
    }

    .property-reference-search__content {
        flex-basis: 175px;
        min-width: 175px;
    }

    .property-search-submit {
        flex-basis: 200px;
        width: 200px;
        min-width: 200px;
    }
}

@media (max-width: 900px) {
    .property-search-shell {
        width: min(92%, 720px);
        margin-top: -82px;
    }

    .property-search-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-search-parcel-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .property-search-shell {
        width: calc(100% - 24px);
        margin-top: -34px;
        padding-bottom: 40px;
    }

    .property-search {
        border-radius: 14px;
        padding: 0 16px 20px;
    }

    .property-search-tabs {
        gap: 16px;
        overflow-x: auto;
    }

    .property-search-tab {
        flex: 0 0 auto;
        min-height: 56px;
        font-size: 0.85rem;
    }

    .property-search-fields {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 0 22px;
    }

    .property-search-parcel-options {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 0 24px;
    }

    .property-search-parcel-option {
        width: 100%;
        min-height: 72px;
    }

    .property-search-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .property-search-reset {
        align-self: flex-start;
    }

    .property-search-actions__group {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .property-reference-search {
        width: 100%;
        height: auto;
        min-height: 64px;
        padding: 10px 12px;
        flex-wrap: wrap;
    }

    .property-reference-search__icon {
        width: 34px;
        height: 34px;
    }

    .property-reference-search__separator {
        height: 36px;
        margin: 0 12px;
    }

    .property-reference-search__content {
        flex: 1 1 auto;
        min-width: 0;
    }

    .property-reference-search__heading {
        font-size: 0.84rem;
        white-space: normal;
    }

    .property-reference-search__subtitle {
        font-size: 0.74rem;
        white-space: normal;
    }

    .property-reference-search__input-wrap {
        width: 100%;
        flex-basis: 100%;
        margin-top: 10px;
        height: 44px;
    }

    .property-search-submit {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
        height: 54px;
    }

    .property-type-panel {
        right: -4px;
        left: -4px;
        max-height: min(360px, 62vh);
    }

    .property-type-search {
        height: 46px;
    }

    .property-filter-panel {
        right: -4px;
        left: -4px;
        max-height: min(360px, 62vh);
    }

    .property-filter-search {
        height: 46px;
    }

    .property-filter-range {
        grid-template-columns: 1fr;
    }

    .property-filter-clear {
        opacity: 1;
        pointer-events: auto;
    }
}
.property-type-option--all {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
    color: #c3943e;
    font-weight: 600;
}

.property-type-option--all:hover {
    color: #10233f;
}