/* Search results use the county homepage components, preserving existing forms. */
.city-search .city-home-layout > :is(.city-home-secondary,.city-home-support) { display: none; }
.city-search .city-home-hero { padding: 24px; margin-bottom: 16px; }
.city-search .city-search-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.city-search .city-search-heading h1 { margin: 0; font-size: 24px; letter-spacing: -.4px; }
.city-search .city-search-heading p { margin: 0; color: #788698; font-size: 13px; }
.city-search .search-terms:not(:has(*)) { display: none; }
.city-search .search-terms { padding: 12px 0 0; margin: 0; }
.city-search .search-terms .term-title { color: #788698; font-size: 12px; }
.city-search .form-term { padding: 5px 10px; margin: 4px 5px 0 0; border: 1px solid #f0d1d2; border-radius: 999px; color: #a52427; background: #fff1f1; font-size: 12px; }
.city-search .form-term:hover { border-color: #a52427; color: #861c20; background: #ffe5e5; }
.city-search .form-term::after { color: inherit; opacity: .7; }
.city-search #search-zone .search-left { gap: 6px; }
.city-search #search-zone .search-left .dropdown-toggle { border-radius: 24px; }
.city-search #sortZone { align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #e0e7ee; border-radius: 10px; background: #fff; color: #647386; font-size: 13px; }
.city-search #sortZone strong.text-primary { color: #a52427 !important; }
.city-search #sortZone .sortBtnZone { display: flex; flex-wrap: wrap; gap: 4px; }
.city-search #sortZone .btn { min-height: 34px; padding: 6px 9px; border: 1px solid #e0e7ee; border-radius: 6px; color: #647386; background: #fff; font-size: 12px; }
.city-search #sortZone .btn.active { border-color: #a52427; color: #a52427; background: #fff5f5; }
.city-search .city-search-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 0 !important; }
.city-search .city-home-primary > .row > .col-12 { padding-inline: 0; }
.city-search .city-search-grid > .box-obj { width: 100%; min-width: 0; margin: 0; padding: 0; height: 270px !important; }
.city-search .city-search-results { margin-bottom: 18px; }
.city-search .pageNum { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; margin: 3px; padding: 7px 13px; border: 1px solid #dce5ee; border-radius: 999px; background: #fff; color: #54677e; font-size: 13px; line-height: 20px; }
.city-search .pageNum.disabled { border-color: #a52427; background: #a52427; color: #fff; opacity: 1; }
.city-search .pageNum:hover { border-color: #a52427; color: #a52427; background: #fff5f5; }
.city-search .city-home-ad-column > #angle { margin-top: 0; }
.city-search .city-home-primary > .row > .box-2 { margin-inline: 0; }
@media (max-width: 1199.98px) { .city-search .city-search-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; } }
@media (max-width: 991.98px) { .city-search .city-home-layout { grid-template-columns: 1fr; } }
@media (max-width: 767.98px) {
    .city-search .city-home-hero { padding: 20px 16px; }
    .city-search .city-search-heading { margin-bottom: 16px; }
    .city-search .city-search-heading h1 { font-size: 23px; }
    .city-search .city-search-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .city-search .city-search-grid > .box-obj { height: 250px !important; }
    .city-search #sortZone { padding: 12px; gap: 10px; }
    .city-search #sortZone .btn { padding-inline: 8px; }
    .city-search .city-home-primary div:has(> .pageNum) { display: flex; flex-wrap: nowrap; justify-content: safe center; gap: 4px; overflow-x: auto; padding-block: 6px; }
    .city-search .pageNum { flex: 1 0 30px; min-width: 30px; max-width: 44px; margin: 0; padding: 6px 3px; white-space: nowrap; }
}
@media (max-width: 767.98px) {
    .city-search #sortZone { position: relative; }
    .city-search #sortZone .sortBtnZone { display: none; top: calc(100% + 6px); right: 0; width: 180px; padding: 8px; border: 1px solid #e0e7ee; border-radius: 10px; }
    .city-search #sortZone .sortBtnZone.d-block { display: flex !important; }
}
.city-search .city-search-empty { width: 100%; margin: 0 0 20px; padding: 36px 24px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; text-align: center; }
.city-search .city-search-empty h2 { margin: 0 0 10px; font-size: 20px; color: #263241; }
.city-search .city-search-empty p { margin: 0; font-size: 14px; color: #788698; }
.city-search .city-building-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.city-search .city-building-grid > a { display: block; overflow: hidden; border: 1px solid #e0e7ee; border-radius: 10px; background: #fff; color: #263241; text-decoration: none; }
.city-search .city-building-grid .box-HH { display: block; height: auto; margin: 0; padding: 0; border: 0; box-shadow: none; }
.city-search .city-building-grid .obj-img { width: 100%; height: 200px; padding: 0; overflow: hidden; background: #f1f5f9; }
.city-search .city-building-grid .obj-img img { width: 100%; height: 100%; object-fit: cover; }
.city-search .city-building-grid .obj-data { width: 100%; padding: 14px 16px; }
.city-search .city-building-grid .obj-data > .title { margin-bottom: 12px; color: #788698; font-size: 12px; line-height: 1.7; }
.city-search .city-building-grid h3 { color: #263241; margin: 0 0 3px; font-size: 17px; line-height: 1.5; }
.city-search .city-building-grid .obj-data > .row { display: flex; gap: 8px; margin: 0; }
.city-search .city-building-grid .obj-data .font_02 > img { margin-top: 8px; }
.city-search .city-building-grid .obj-data > .row > .col-9 { width: 100%; padding: 0; color: #647386; font-size: 13px; }
.city-search .city-building-grid .obj-data > .row > .col-3 { width: 100%; padding: 0; color: #a52427; }
.city-search .city-building-grid .font_06 { color: #a52427; font-size: 19px; }
@media (max-width: 575.98px) { .city-search .city-building-grid { grid-template-columns: 1fr; } }

/* Applied filters use the brand accent with clear text contrast. */
.city-home #search-zone .search-left > .dropdown > .dropdown-toggle:is(.active,.show) { background: #fff1f1 !important; border-color: #a52427 !important; color: #a52427 !important; font-weight: 600; }

/* Keep prices and recommendation content clear of card edges. */
.city-search .city-home-primary > .row > .col-12:is(.box-2,.rent-zone) { padding: 22px; }
.city-search .city-home-primary > .row > :is(.box-2,.rent-zone) > .content { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-inline: 0 !important; }
.city-search .city-home-primary > .row > :is(.box-2,.rent-zone) > .content > .box-obj { width: 100%; min-width: 0; height: 250px !important; margin: 0; padding: 0; }
.city-search .city-home-primary > .row > .rent-zone > .content > a.w-100 { grid-column: 1 / -1; }
@media (max-width: 1199.98px) {
    .city-search .city-home-primary > .row > :is(.box-2,.rent-zone) > .content { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .city-search .city-home-primary > .row > .col-12:is(.box-2,.rent-zone) { padding: 18px 14px; }
    .city-search .city-home-primary > .row > :is(.box-2,.rent-zone) > .content { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
/* House, land and rental cards share the same text hierarchy and alignment. */
.city-search .city-home-primary .box-obj .box-obj-title { flex: 1; min-height: 0; height: auto; }
.city-search .city-home-primary .box-obj .box-obj-content { position: static; flex: none; height: auto; min-height: 88px; padding: 8px 10px; display: grid; grid-template-rows: 22px auto minmax(24px,auto); gap: 4px; text-align: left; }
.city-search .city-home-primary .box-obj .item-title { min-width: 0; margin: 0; padding: 0; color: #263241; font-size: 15px; font-weight: 600; line-height: 22px; }
.city-search .city-home-primary .box-obj .item-data { width: 100%; max-width: none; max-height: 36px; margin: 0; padding: 0; overflow: hidden; white-space: normal; overflow-wrap: anywhere; color: #788698; font-size: 12px; line-height: 18px; }
.city-search .city-home-primary .box-obj .item-data > div { white-space: normal; }
.city-search .city-home-primary .box-obj .obj-money { position: static; width: 100%; max-width: none; margin: 0; padding: 4px 0 0; align-self: end; text-align: right; color: #a52427; font-size: 18px; line-height: 24px; }
.city-search .city-home-primary .box-obj .obj-money > :is(span,font) { color: #a52427 !important; }
.city-search .city-home-primary .box-obj .obj-money .search-land-unit-price > span { font-size: 12px !important; }
@media (max-width: 767.98px) {
    .city-search .city-home-primary .box-obj .box-obj-content { min-height: 82px; padding: 6px 7px; grid-template-rows: 20px auto minmax(24px,auto); }
    .city-search .city-home-primary .box-obj .item-title { font-size: 14px; line-height: 20px; }
    .city-search .city-home-primary .box-obj .item-data { font-size: 11px; }
}

/* Keep history card text readable without applying the search card grid. */
.city-search #my319bar .box-obj-content { background: #fff !important; }

/* Recommendation cards reserve space only for metadata that is present. */
.city-search .city-home-primary > .row > :is(.box-2,.rent-zone) > .content > .box-obj > a { display: flex; flex-direction: column; height: 100%; }
.city-search .city-home-primary > .row > :is(.box-2,.rent-zone) .box-obj-title { flex: 0 0 144px; height: 144px; }
.city-search .city-home-primary > .row > :is(.box-2,.rent-zone) .box-obj-content { position: static; flex: 1; height: auto; min-height: 88px; grid-template-rows: 22px auto minmax(24px,auto); }
@media (max-width: 767.98px) {
    .city-search .city-home-primary > .row > :is(.box-2,.rent-zone) .box-obj-content { min-height: 82px; grid-template-rows: 20px auto minmax(24px,auto); }
}
