.wki-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: 278px;
    padding: clamp(30px, 4vw, 68px);
    overflow: hidden;
    border-radius: 27px;
    background: #102a47;
    color: #fff;
}

.wki-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0 0 0 32%;
    background: linear-gradient(90deg, #102a47 0%, rgba(16, 42, 71, .12) 65%),
        url('/assets/wikicidades/home-portals/wikiimoveis.webp') center 48% / cover no-repeat;
    content: '';
}

.wki-hero-content { width: min(100%, 42rem); }
.wki-hero-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    color: #bddeff;
    font-size: .875rem;
    font-weight: 800;
}

.wki-hero h1 {
    max-width: 16ch;
    margin: 0;
    color: inherit;
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 850;
    letter-spacing: -.048em;
    line-height: 1.02;
    text-wrap: balance;
}

.wki-hero-description {
    max-width: 33ch;
    margin: 14px 0 0;
    color: #e1ebf5;
    font-size: .95rem;
    line-height: 1.45;
}

.wki-hero-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 21px;
}

.wki-hero-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 999px;
    background: rgba(9, 28, 50, .56);
    color: #fff;
    font-size: .875rem;
    font-weight: 750;
    text-decoration: none;
}

.wki-hero-tabs a:hover { background: #254562; }
.wki-hero-tabs a[aria-current="page"] { background: #fff; border-color: #fff; color: #102a47; }
.wki-hero-tabs a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.wki-catalog-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    padding: 7px 2px 0;
}

.wki-catalog-links a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    color: #1e40af;
    font-size: .8125rem;
    font-weight: 750;
    text-decoration: none;
}

.wki-catalog-links a:hover { text-decoration: underline; }

.wk-imoveis-page .wki-filter {
    position: static;
    min-width: 0;
    max-height: none;
    overflow: visible;
}

.wki-filter-panel > summary { display: none; }
.wki-filter-panel > summary::-webkit-details-marker { display: none; }
.wki-filter-count {
    padding: 2px 7px;
    border-radius: 999px;
    background: #fff;
    color: #1e40af;
    font-size: .75rem;
}

.wki-filter-actions { border-radius: 0 0 21px 21px; }

.wki-agency-options {
    max-block-size: 30rem;
    overflow-y: auto;
    scrollbar-color: #bfdbfe transparent;
}

.wki-feature-list { display: grid; gap: 8px; }
.wki-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.wki-feature-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    font-size: .8125rem;
    font-weight: 700;
}

.wki-feature-row label i {
    width: 16px;
    flex: none;
    color: #2563eb;
    text-align: center;
}

.wki-feature-row select { padding-inline: 7px; }
.wki-city-combobox { position: relative; }
.wki-city-options {
    position: absolute;
    z-index: 8;
    inset: calc(100% + 4px) 0 auto;
    max-block-size: 16rem;
    overflow-y: auto;
    padding: 4px;
    border: 1px solid #cbdcf0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 26px #102a4724;
}

.wki-city-options [role="option"] {
    display: block;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #1e3a5f;
    font: inherit;
    font-size: .875rem;
    text-align: left;
    cursor: pointer;
}

.wki-city-options [role="option"]:hover,
.wki-city-options [role="option"][aria-selected="true"] { background: #eaf3ff; }

.wki-city-status {
    margin: 5px 0 0;
    color: #475569;
    font-size: .75rem;
}

.wki-city-status:empty { display: none; }
.wki-city-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.wki-city-chips:not(:empty) { margin-top: 8px; }
.wki-city-chip {
    display: inline-flex;
    min-height: 36px;
    max-width: 100%;
    align-items: center;
    gap: 3px;
    padding-left: 9px;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
    font-size: .75rem;
    font-weight: 700;
}

.wki-city-chip button {
    width: 36px;
    min-height: 36px;
    flex: none;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

.wki-city-chip button:hover { background: #dbeafe; }

@media (max-width: 850px) {
    .wki-hero {
        min-height: 232px;
        padding: 23px clamp(17px, 4vw, 30px);
        border-radius: 19px;
    }

    .wki-hero::before {
        inset: 0;
        background: linear-gradient(90deg, #102a47 0%, rgba(16, 42, 71, .88) 42%, rgba(16, 42, 71, .28)),
            linear-gradient(0deg, rgba(16, 42, 71, .9), transparent 58%),
            url('/assets/wikicidades/home-portals/wikiimoveis.webp') 57% 45% / cover no-repeat;
    }

    .wki-hero h1 { font-size: clamp(1.95rem, 7vw + .45rem, 3.5rem); text-wrap: wrap; }
    .wki-hero-brand { margin-bottom: 8px; font-size: .8125rem; }
    .wki-hero-description { margin-top: 9px; font-size: .875rem; }
    .wki-hero-tabs { margin-top: 15px; }
    .wki-hero-tabs a { padding-inline: 14px; }
    .wki-catalog-links { gap: 0 14px; }
    .wki-catalog-links a { font-size: .75rem; }

    .wki-filter-panel > summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 50px;
        padding: 10px 16px;
        border-radius: 20px;
        background: #eaf3ff;
        color: #163e78;
        font-size: .9375rem;
        font-weight: 800;
        list-style: none;
        cursor: pointer;
    }

    .wki-filter-panel[open] > summary { border-radius: 20px 20px 0 0; }
    .wki-filter-chevron { margin-left: auto; font-size: .8rem; }
    .wki-filter-panel[open] > summary .wki-filter-chevron { transform: rotate(180deg); }
    .wki-filter-panel > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: -3px; }
    .wki-filter-panel .wki-input { font-size: 16px; }
    .wki-filter-form .wki-filter-section, .wki-filter-toolbar { padding-inline: 16px; }
    .wki-filter-actions { padding: 12px 16px; }
    .wki-agency-options { max-block-size: 25rem; }
}
