/* Casa Moldova search dashboard - Hotfix 1.6.6.12.9
 * Responsive layout contract aligned with the optimized public map workspace.
 * The Website shell keeps its existing header/footer; the module-owned Search
 * content uses the full workspace with the same compact outer gutters as Map.
 */

.estate-search-dashboard {
    --search-blue: #075985;
    --search-blue-dark: #064663;
    --search-soft: #eef9fc;
    --search-line: #d7e5ec;
    --search-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    width: 100%;
    min-width: 0;
    color: var(--estate-text, #17202a);
    background: #fff;
}

.estate-search-dashboard,
.estate-search-dashboard * {
    box-sizing: border-box;
}

body.bodywebpage-search {
    width: 100%;
    min-width: 0;
}

body.bodywebpage-search main,
body.bodywebpage-search .page,
body.bodywebpage-search .estate-page {
    width: 100%;
    min-width: 0;
    max-width: none;
    overflow: visible;
}

.estate-search-workspace {
    width: 100%;
    padding: 16px 0 48px;
}

.estate-search-workspace > .estate-container {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: 28px;
}

.estate-search-filter-card {
    position: relative;
    margin-top: 0;
    padding: 12px 16px 14px;
    border: 1px solid var(--search-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--search-shadow);
}

.estate-search-filter-sync {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 4px 6px 12px;
    border-bottom: 1px solid #e7eff3;
}

.estate-search-sync-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #0879bf;
    background: #eef8ff;
    font-weight: 900;
}

.estate-search-filter-sync strong,
.estate-search-filter-sync small {
    display: block;
}

.estate-search-filter-sync strong {
    color: #0b4164;
    font-size: 14px;
}

.estate-search-filter-sync small {
    margin-top: 2px;
    color: #728397;
}

.estate-search-filter-sync a {
    color: #0874b8;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.estate-search-profile-notice {
    margin: 11px 0 2px;
    padding: 8px 11px;
    border-radius: 10px;
    color: #166046;
    background: #effaf6;
    font-size: 13px;
    font-weight: 700;
}

/* Desktop: two compact map-filter rows plus one personal/action toolbar row.
 * No filter is invented here; the fields remain exactly the map filter contract. */
.estate-search-filter-form {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 8px 9px;
    padding-top: 10px;
    align-items: end;
}

.estate-search-field {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.estate-search-field--search { grid-column: 1 / span 4; grid-row: 1; }
.estate-search-field--city { grid-column: 5 / span 3; grid-row: 1; }
.estate-search-field--offer { grid-column: 8 / span 2; grid-row: 1; }
.estate-search-field--type { grid-column: 10 / span 3; grid-row: 1; }

.estate-search-field input,
.estate-search-field select,
.estate-search-sort select {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #d6e2e8;
    border-radius: 9px;
    outline: none;
    color: #334155;
    background: #fff;
    font: inherit;
    font-weight: 600;
}

.estate-search-field input:focus,
.estate-search-field select:focus,
.estate-search-sort select:focus {
    border-color: #45a5d7;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .10);
}

.estate-search-auth-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: end;
}

.estate-search-auth-filters[hidden] {
    display: none !important;
}

.estate-search-check {
    display: flex;
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    align-items: center;
    gap: 8px;
    border: 1px solid #d6e2e8;
    border-radius: 9px;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
}

.estate-search-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.estate-search-form-actions {
    display: flex;
    min-width: 0;
    min-height: 38px;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.estate-search-form-actions .estate-btn {
    min-height: 38px;
    padding: 0 18px;
    border-color: #075985;
    border-radius: 9px;
    background: #075985;
    box-shadow: 0 8px 18px rgba(7, 89, 133, .20);
}

.estate-search-reset {
    padding: 8px 0;
    border: 0;
    color: #0874b8;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.estate-search-overview-head,
.estate-search-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 10px;
}

.estate-search-overview-head h2,
.estate-search-section-head h2 {
    margin: 0;
    color: #123b59;
    font-size: 22px;
}

.estate-search-overview-head p,
.estate-search-section-head p {
    margin: 3px 0 0;
    color: #718096;
    font-size: 13px;
}

.estate-search-overview-head > strong {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 999px;
    color: #075985;
    background: #f0f8fc;
    font-size: 13px;
}

.estate-search-status {
    padding: 18px;
    border: 1px dashed #bdd6e3;
    border-radius: 13px;
    color: #64748b;
    text-align: center;
}

.estate-search-status.is-error {
    border-color: #fecdd3;
    color: #9f1239;
    background: #fff1f2;
}

.estate-search-best {
    padding: 14px;
    border: 1px solid #cfe4f1;
    border-radius: 16px;
    background: linear-gradient(100deg, #eff9ff, #f8fcff);
    box-shadow: 0 10px 26px rgba(14, 116, 144, .06);
}

.estate-search-best .estate-search-section-head {
    margin: 0 0 10px;
    padding: 0 3px;
}

.estate-search-best-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
}

.estate-search-best-layout.has-proposalbox {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
}

.estate-search-best-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(238px, 24%, 270px);
    min-width: 0;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 4px 10px 0;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.estate-search-best-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d9e7ef;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(7, 89, 133, .055);
    scroll-snap-align: start;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.estate-search-best-card:hover {
    transform: translateY(-2px);
    border-color: #bed9e8;
    box-shadow: 0 9px 24px rgba(7, 89, 133, .11);
}

.estate-search-card-image {
    position: relative;
    display: block;
    width: calc(100% - 18px);
    height: 190px;
    min-height: 190px;
    margin: 9px 9px 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 10px;
    background: #eef2f6;
    cursor: pointer;
}

.estate-search-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    transition: transform .24s ease;
}

.estate-search-best-card:hover .estate-search-card-image img {
    transform: scale(1.018);
}

.estate-search-card-image .estate-search-match-badge {
    position: absolute;
    left: 9px;
    top: 9px;
    max-width: calc(100% - 18px);
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 999px;
    color: #fff;
    background: #16864b;
    box-shadow: 0 4px 11px rgba(0, 0, 0, .18);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.estate-search-best-card-body {
    min-width: 0;
    display: flex;
    flex: 1;
    padding: 11px 12px 12px;
    flex-direction: column;
    align-items: stretch;
}

.estate-search-best-card-body > .estate-search-card-facts {
    display: -webkit-box;
    min-height: 2.55em;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #173b55;
    font-size: 13px;
    font-weight: 760;
    line-height: 1.28;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.estate-search-best-card-body > .estate-search-card-price {
    margin-top: 6px;
    color: #075985;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.estate-search-best-card-body > .estate-search-card-sqm {
    margin-top: 3px;
    color: #0f8a75;
    font-size: 14px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
}

.estate-search-reason-chips {
    display: flex;
    min-height: 29px;
    margin: 10px 0 9px;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    align-content: flex-start;
    color: #426578;
    list-style: none;
    font-size: 12px;
    line-height: 1.15;
}

.estate-search-reason-chips li {
    min-width: 0;
    padding: 5px 8px;
    border: 1px solid #d6e9f3;
    border-radius: 999px;
    background: #f4faff;
    overflow-wrap: anywhere;
}

.estate-search-reason-chips li::first-letter {
    color: #159447;
}

.estate-search-detail--card {
    width: 100%;
    margin-top: auto;
    padding: 8px 11px;
    align-self: stretch;
    border: 1px solid #9bc6dc;
    border-radius: 9px;
    color: #075985 !important;
    background: #fff;
    font-size: 14px;
    min-height: 44px;
    font-weight: 900;
    text-align: center;
    transition: background .16s ease, border-color .16s ease;
}

.estate-search-detail--card:hover {
    border-color: #6eb0cf;
    background: #eef9ff;
}

.estate-search-topregion,
.estate-search-proposalbox {
    position: relative;
    min-width: 0;
    min-height: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    padding: 14px;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    background: linear-gradient(160deg, #eefaff 0%, #f8fdff 100%);
}

.estate-search-proposalbox[hidden] { display: none !important; }
.estate-search-proposalbox > span[data-ad-label] { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: #18753d; background: #ccf4d4; font-size: 10px; font-weight: 900; }
.estate-search-proposalbox-media { position: relative; height: 92px; margin: 9px 0 7px; overflow: hidden; border: 1px solid rgba(7,89,133,.12); border-radius: 10px; background: rgba(255,255,255,.72); }
.estate-search-proposalbox-media img { display:block; width:100%; height:100%; object-fit:cover; }
.estate-search-proposalbox h3 { margin: 8px 0 5px; color:#075985; font-size:16px; line-height:1.18; }
.estate-search-proposalbox p { margin:0 0 7px; color:#4f6f81; font-size:14px; line-height:1.45; }
.estate-search-proposalbox-steps { display:grid; gap:5px; margin:8px 0 10px; padding:0; list-style:none; counter-reset:proposal-step; }
.estate-search-proposalbox-steps li { position:relative; min-height:22px; padding:4px 7px 4px 30px; border-radius:7px; color:#60798a; background:rgba(255,255,255,.55); font-size:13px; font-weight:700; transition:color .22s ease,background .22s ease,transform .22s ease; counter-increment:proposal-step; overflow-wrap:anywhere; }
.estate-search-proposalbox-steps li::before { content:counter(proposal-step); position:absolute; left:7px; top:50%; width:17px; height:17px; transform:translateY(-50%); display:grid; place-items:center; border-radius:999px; color:#075985; background:#dceef8; font-size:9px; font-weight:900; }
.estate-search-proposalbox-steps li.is-active { color:#075985; background:#fff; transform:translateX(2px); }
.estate-search-proposalbox-steps li.is-active::before { color:#fff; background:#159447; }
.estate-search-proposalbox-steps li.is-complete::before { content:'✓'; color:#fff; background:#159447; }
.estate-search-proposalbox .estate-btn { display:flex; min-height:44px; padding:7px 10px; justify-content:center; border-color:#075985; border-radius:8px; color:#fff !important; background:#075985; font-size:14px; }
@media (prefers-reduced-motion: reduce) { .estate-search-proposalbox-steps li { transition:none; } }

.estate-search-insight-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
    margin-top: 11px;
}

.estate-search-insight {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dbe5eb;
    border-radius: 12px;
    background: #fff;
}

.estate-search-insight-head {
    display: flex;
    min-height: 42px;
    padding: 9px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.estate-search-insight h3 {
    display: grid;
    margin: 0;
    gap: 1px;
    font-size: 14px;
    line-height: 1.15;
}

.estate-search-insight h3 small {
    color: currentColor;
    font-size: 9px;
    font-weight: 700;
    opacity: .72;
}

.estate-search-insight-head button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 4px 6px;
    border: 0;
    color: #0874b8;
    background: transparent;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.estate-search-insight.is-cheap .estate-search-insight-head { color: #13853d; background: #edfbf0; }
.estate-search-insight.is-expensive .estate-search-insight-head { color: #d35e00; background: #fff5e9; }
.estate-search-insight.is-old .estate-search-insight-head { color: #7e22ce; background: #f6efff; }
.estate-search-insight.is-new .estate-search-insight-head { color: #0874b8; background: #eef8ff; }

.estate-search-insight-row {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    display: grid;
    grid-template-columns: 20px 38px minmax(0, 1fr) minmax(0, .9fr);
    min-height: 46px;
    padding: 6px 10px;
    align-items: center;
    gap: 7px;
    border: 0;
    border-top: 1px solid #edf2f5;
    background: #fff;
    color: #334155 !important;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

.estate-search-insight-row img {
    width: 38px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    background: #f1f5f9;
}

.estate-search-rank {
    color: #64748b;
    text-align: right;
}

.estate-search-insight-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.estate-search-insight-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
    color: #075985;
    font-size: 10px;
}

.estate-search-insight-row em {
    grid-column: 4;
    grid-row: 2;
    margin-top: -4px;
    color: #789;
    font-size: 9px;
    font-style: normal;
    overflow-wrap: anywhere;
}

.estate-search-insight-age {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    margin-top: -4px;
    overflow: hidden;
    color: #789;
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.estate-search-insight-empty {
    display: grid;
    min-height: 112px;
    margin: 0;
    padding: 14px;
    place-items: center;
    color: #718096;
    font-size: 11px;
    text-align: center;
}

.estate-search-infotainment {
    margin-top: 13px;
    padding: 13px;
    border: 1px solid #dbe7ed;
    border-radius: 14px;
    background: #fbfdff;
}

.estate-search-infotainment .estate-search-section-head {
    margin: 0 0 10px;
}

.estate-search-infotainment .estate-search-section-head a {
    color: #0874b8;
    font-size: 11px;
    font-weight: 850;
}

.estate-search-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.estate-search-info-grid > a {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-width: 0;
    min-height: 82px;
    padding: 10px;
    gap: 3px 8px;
    border: 1px solid #dfeaf0;
    border-radius: 9px;
    color: #334155 !important;
    background: #f6fbff;
    overflow-wrap: anywhere;
}

.estate-search-info-grid b {
    grid-row: 1 / 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #076ca8;
    background: #e7f3ff;
    font-size: 17px;
}

.estate-search-info-grid strong {
    color: #123b59;
    font-size: 14px;
}

.estate-search-info-grid small {
    color: #718096;
    font-size: 12px;
    line-height: 1.35;
}

.estate-search-results {
    margin-top: 22px;
    scroll-margin-top: 80px;
}

.estate-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.estate-search-result-card {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    min-width: 0;
    min-height: 154px;
    height: auto;
    overflow: hidden;
    border: 1px solid #dce7ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 20px rgba(15, 23, 42, .05);
}

.estate-search-result-image {
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
    padding: 0;
    border: 0;
    background: #eef2f6;
    cursor: pointer;
    overflow: hidden;
}

.estate-search-result-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    background: #eef2f6;
}

.estate-search-result-card > div {
    display: flex;
    min-width: 0;
    padding: 10px 11px;
    flex-direction: column;
    align-items: flex-start;
}

.estate-search-result-card h3 {
    margin: 0 0 4px;
    color: #123b59;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.estate-search-result-card p {
    margin: 0 0 9px;
    color: #718096;
    font-size: 12px;
}

.estate-search-result-card strong {
    color: #075985;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.estate-search-result-card em {
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.estate-search-result-card div > a {
    margin-top: auto;
    align-self: flex-end;
    font-size: 11px;
    font-weight: 850;
}

.estate-search-empty {
    grid-column: 1 / -1;
    padding: 30px;
    border: 1px dashed #cbdde6;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.estate-search-pagination {
    display: flex;
    margin: 19px 0 8px;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.estate-search-pagination button {
    padding: 8px 13px;
    border: 1px solid #cbdde6;
    border-radius: 999px;
    color: #075985;
    background: #fff;
    font-weight: 800;
    cursor: pointer;
}

.estate-search-pagination button:disabled {
    opacity: .4;
    cursor: default;
}

.estate-search-pagination span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

/* Hotfix 1.6.6.12.4: visual hardening.
 * Reset native button chrome, compact result cards, and make price/m²
 * a first-class comparison value without changing filter/data semantics. */
.estate-search-insight-row:hover,
.estate-search-insight-row:focus-visible {
    background: #f7fbfd;
    outline: none;
}

.estate-search-result-image:focus-visible,
.estate-search-detail:focus-visible {
    outline: 3px solid rgba(14, 165, 233, .18);
    outline-offset: -3px;
}

.estate-search-result-card em,
.estate-search-best-card-body > em {
    color: #0f766e;
    font-weight: 800;
}

.estate-search-result-card > div {
    justify-content: flex-start;
}

.estate-search-result-card div > .estate-search-detail {
    margin-top: auto;
}

/* Map-aligned responsive contract: 1180 / 900 / 760 / 520 / 380. */
@media (max-width: 1180px) {
    .estate-search-best-layout.has-proposalbox {
        grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
    }

    .estate-search-best-track {
        grid-auto-columns: minmax(230px, 31%);
    }

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

@media (max-width: 900px) {
    .estate-search-best-layout,
    .estate-search-best-layout.has-proposalbox {
        grid-template-columns: 1fr;
    }

    .estate-search-best-track {
        grid-auto-columns: minmax(225px, 42%);
    }

    .estate-search-proposalbox { min-height: 0; }
    .estate-search-proposalbox-media { height: 104px; }

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

@media (max-width: 760px) {
    .estate-search-result-card { min-height: 0; }

    .estate-search-filter-sync {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .estate-search-filter-sync a {
        grid-column: 2;
        white-space: normal;
    }

    .estate-search-overview-head,
    .estate-search-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .estate-search-overview-head > strong {
        align-self: flex-start;
    }

    .estate-search-best-track {
        grid-auto-columns: min(84vw, 100%);
    }

    .estate-search-proposalbox { display:block; }
    .estate-search-proposalbox .estate-btn { min-width:0; margin-top:8px; }

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

    .estate-search-results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .estate-search-form-actions {
        flex-wrap: wrap;
    }

    .estate-search-form-actions .estate-btn {
        flex: 1 1 190px;
    }

    .estate-search-insight-grid {
        grid-template-columns: 1fr;
    }

    .estate-search-info-grid {
        grid-template-columns: 1fr;
    }

    .estate-search-best-card {
        display: flex;
    }

    .estate-search-result-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .estate-search-result-image {
        aspect-ratio: 16 / 9;
    }

    .estate-search-result-image img {
        max-height: 240px;
    }

    .estate-search-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 380px) {
    .estate-search-best-track {
        grid-auto-columns: min(88vw, 100%);
    }

    .estate-search-best-card {
        display: flex;
    }

    .estate-search-card-image,
    .estate-search-card-image img {
        min-height: 174px;
        height: 174px;
    }

    .estate-search-result-card strong {
        font-size: 15px;
    }
}

.estate-search-filter-head {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 6px 11px;
    border-bottom: 1px solid #e7eff3;
}

.estate-search-filter-head > a {
    flex: 0 0 auto;
    color: #0874b8;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.estate-search-filter-title-wrap {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.estate-search-filter-title-wrap h1 {
    margin: 0;
    color: #123b59;
    font-size: clamp(22px, 1.7vw, 26px);
    line-height: 1.2;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.estate-search-info-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #0874b8;
    background: transparent;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

.estate-search-info-button:hover,
.estate-search-info-button:focus-visible,
.estate-search-info-button[aria-expanded="true"] {
    outline: none;
    background: #eef8ff;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .13);
}

.estate-search-filter-info {
    position: absolute;
    left: 100%;
    top: calc(100% + 6px);
    z-index: 30;
    width: min(340px, 100%);
    padding: 10px 12px;
    border: 1px solid #cfe2ed;
    border-radius: 10px;
    color: #344b5d;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
    font-size: 13px;
    line-height: 1.45;
}

.estate-search-filter-info[hidden],
.estate-search-advanced-panel[hidden] {
    display: none !important;
}

.estate-search-advanced-toggle {
    grid-column: 1 / span 2;
    grid-row: 2;
    min-height: 44px;
    justify-self: start;
    padding: 0 12px;
    border: 1px solid #cfe0e9;
    border-radius: 9px;
    color: #075985;
    background: #f7fbfd;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.estate-search-advanced-toggle span {
    display: inline-block;
    transition: transform .18s ease;
}

.estate-search-advanced-toggle[aria-expanded="true"] span {
    transform: rotate(45deg);
}

.estate-search-advanced-panel {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
    border: 1px solid #e1ebf0;
    border-radius: 12px;
    background: #f9fcfd;
    min-width: 0;
}

.estate-search-advanced-panel .estate-search-field,
.estate-search-advanced-panel .estate-search-auth-filters {
    grid-column: auto;
    grid-row: auto;
}

.estate-search-advanced-panel .estate-search-auth-filters {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.estate-search-form-actions,
.estate-search-auth-filters[hidden] + .estate-search-form-actions {
    grid-column: 3 / -1;
    grid-row: 2;
    min-height: 44px;
}

.estate-search-form-actions .estate-btn {
    min-height: 44px;
}

.estate-search-result-summary {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding-top: 11px;
    border-top: 1px solid #e7eff3;
}

.estate-search-result-summary > strong {
    color: #075985;
    white-space: nowrap;
}

.estate-search-active-filters {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
}

.estate-search-active-filter {
    max-width: 100%;
    overflow-wrap: anywhere;
    min-height: 32px;
    padding: 4px 9px;
    border: 1px solid #cfe0e9;
    border-radius: 999px;
    color: #31556b;
    background: #f7fbfd;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.estate-search-active-filter:hover,
.estate-search-active-filter:focus-visible {
    border-color: #75b8d7;
    outline: 2px solid rgba(14, 165, 233, .12);
}

.estate-search-sort {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.estate-search-sort select {
    width: min(220px, 28vw);
    min-height: 38px;
}

.estate-search-result-card > div,
.estate-search-insight-head > h3,
.estate-search-proposalbox-steps,
.estate-search-best-layout > * {
    min-width: 0;
}

.estate-search-proposalbox .estate-btn {
    white-space: normal;
    overflow-wrap: anywhere;
}

.estate-search-form-actions { flex-wrap: wrap; }
.estate-search-form-actions .estate-btn,
.estate-search-advanced-toggle { white-space: normal; }

.estate-search-status {
    margin-top: 12px;
}

.estate-search-best {
    margin-top: 14px;
}

@media (min-width: 1500px) {
    .estate-search-results-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .estate-search-workspace > .estate-container {
        width: 100%;
        max-width: none;
        padding-inline: 24px;
    }

    .estate-search-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estate-search-field--search,
    .estate-search-field--city,
    .estate-search-field--offer,
    .estate-search-field--type,
    .estate-search-advanced-toggle,
    .estate-search-form-actions,
    .estate-search-auth-filters[hidden] + .estate-search-form-actions,
    .estate-search-result-summary,
    .estate-search-advanced-panel {
        grid-row: auto;
    }

    .estate-search-field--search,
    .estate-search-field--city,
    .estate-search-field--offer,
    .estate-search-field--type {
        grid-column: auto;
    }

    .estate-search-advanced-toggle { grid-column: 1; }
    .estate-search-form-actions,
    .estate-search-auth-filters[hidden] + .estate-search-form-actions { grid-column: 2; }
    .estate-search-advanced-panel,
    .estate-search-result-summary { grid-column: 1 / -1; }
    .estate-search-advanced-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .estate-search-result-summary { grid-template-columns: minmax(0, 1fr) auto; }
    .estate-search-active-filters { grid-column: 1 / -1; grid-row: 2; }
    .estate-search-sort select { width: min(220px, 30vw); }
}

@media (max-width: 760px) {
    .estate-search-workspace {
        padding-top: 12px;
    }

    .estate-search-workspace > .estate-container {
        width: 100%;
        padding-inline: 16px;
    }

    .estate-search-filter-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .estate-search-filter-info {
        left: 0;
    }

    .estate-search-advanced-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .estate-search-result-summary {
        grid-template-columns: 1fr auto;
    }

    .estate-search-active-filters {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .estate-search-insight-row {
        grid-template-columns: 20px 38px minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .estate-search-workspace > .estate-container {
        width: 100%;
        padding-inline: 14px;
    }

    .estate-search-filter-card {
        margin-inline: 0;
        border: 1px solid var(--search-line);
        border-radius: 14px;
    }

    .estate-search-filter-head > a {
        width: 100%;
        white-space: normal;
    }

    .estate-search-filter-form {
        grid-template-columns: 1fr;
    }

    .estate-search-field--search,
    .estate-search-field--city,
    .estate-search-field--offer,
    .estate-search-field--type,
    .estate-search-advanced-toggle,
    .estate-search-form-actions,
    .estate-search-auth-filters[hidden] + .estate-search-form-actions,
    .estate-search-advanced-panel,
    .estate-search-result-summary {
        grid-column: 1;
    }

    .estate-search-advanced-panel,
    .estate-search-advanced-panel .estate-search-auth-filters {
        grid-template-columns: 1fr;
    }

    .estate-search-form-actions {
        justify-content: stretch;
        min-width: 0;
    }

    .estate-search-form-actions .estate-btn,
    .estate-search-reset {
        min-height: 44px;
    }

    .estate-search-result-summary {
        grid-template-columns: 1fr;
    }

    .estate-search-active-filters,
    .estate-search-sort {
        grid-column: 1;
        grid-row: auto;
    }

    .estate-search-sort {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .estate-search-sort select {
        width: min(100%, 220px);
    }

    .estate-search-overview-head,
    .estate-search-best,
    .estate-search-insight-grid,
    .estate-search-infotainment,
    .estate-search-results {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Hotfix 1.6.6.16.5: keep All results Details action visually aligned with recommendation cards. */
.estate-search-result-card > div { display:flex; flex-direction:column; min-width:0; }
.estate-search-detail--result { width:100%; margin-top:auto; justify-content:center; }
