/* County landing pages only; search results and property pages retain their layout. */
.city-home:not(.city-search) { --city-section-gap: 20px; }
.city-home-shell { padding: 16px 6px 36px; }
.city-home-shell > #index-ad-a2c:empty { display: none; }
.city-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26%, 340px); gap: 24px; margin: 0; align-items: start; }
.city-home-layout > [class*="col-"] { width: auto; min-width: 0; padding: 0; }
.city-home-primary { grid-column: 1; grid-row: 1; }
.city-home-ad-column { grid-column: 2; grid-row: 1; }
.city-home-secondary { grid-column: 1; grid-row: 2; }
.city-home-support { grid-column: 2; grid-row: 2; }
/* Each desktop column stacks independently, so sidebar height cannot push listings down. */
.city-home-left,.city-home-right { display: flex; flex-direction: column; gap: var(--city-section-gap,20px); min-width: 0; padding: 0; }
.city-home-left { grid-column: 1; grid-row: 1; }
.city-home-right { grid-column: 2; grid-row: 1; }
:is(.city-home-left,.city-home-right) > [class*="col-"] { width: 100%; min-width: 0; padding: 0; }
.city-home .city-home-left > .city-home-primary > .row > :is(.hot-today-zone,.handpicked,.rent-zone,.box-2):last-child { margin-bottom: 0; }
.city-home .city-home-hero { margin-bottom: var(--city-section-gap,20px); }
.city-home .home-hero h1 { margin: 16px 0 12px; font-size: clamp(25px, 2.4vw, 34px); letter-spacing: -.6px; }
.city-home #yes319Navbar .wrap-links a.active { color: #a52427; border-bottom-color: #a52427; }
.city-home-hero > .row { margin: 0; }
.city-home-hero > .row > div { padding: 0; }
.city-home #search-zone { position: static !important; display: flex; flex-wrap: wrap !important; padding: 0; margin: 0 !important; border: 0; border-radius: 0; background: transparent; max-width: none !important; width: 100% !important; }
.city-home #search-zone > div { padding: 0; }
.city-home #search-zone > .search-right { order: -1 !important; flex: 1 0 100%; justify-content: start; align-items: center; gap: 12px; margin: 0 0 8px; }
.city-home #search-qs { padding: 0; }
.city-home #qs { max-width: none; width: 100%; border: 1px solid #c7d3e0; font-size: 14px; background: #fff; }
.city-home #search-qs .btn-search > div { padding: 0; border: 0; border-radius: 0; background: transparent; gap: 6px; }
.city-home .btn-search.show-full-info > div::after { content: none; }
.city-home #search-zone .search-left { flex-wrap: wrap; }
.city-home #search-zone .dropdown + .dropdown { margin-left: 0; }
.city-home #search-zone .dropdown-toggle { border: 1px solid #e0e7ee; font-size: 13px; }
.city-home #search-zone .dropdown-menu { border-color: #e0e7ee; border-radius: 10px; box-shadow: 0 10px 24px #26324112; max-width: calc(100vw - 48px); }
.city-home #search-zone + .search-terms:empty { display: none; }
.city-area-card { padding: 24px 28px; margin-bottom: var(--city-section-gap,24px); border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.city-area-card .home-section-heading { margin-bottom: 16px; }
.city-area-card h2 { font-size: 21px; }
.city-area-links { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.city-area-links a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 4px; border: 1px solid #e5ebf2; border-radius: 7px; background: #f7f9fb; color: #54677e; font-size: 13px; text-decoration: none; }
.city-area-links a:hover { color: #a52427; border-color: #a52427; background: #fff; }
.city-home-primary > .row { margin: 0; }
.city-home:not(.city-search) .city-home-primary > .row:last-child { display: flex; flex-direction: column; gap: var(--city-section-gap); }
.city-home:not(.city-search) .city-home-primary > .row:last-child > * { margin-block: 0 !important; }
.city-home :is(.hot-today-zone,.handpicked,.rent-zone,.box-2) { padding: 22px; margin-bottom: var(--city-section-gap,24px); border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.city-home :is(.hot-today-zone,.handpicked,.rent-zone,.box-2) > .title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0 0 18px; border: 0; background: transparent; color: #263241; font-size: 21px; font-weight: 700; }
.city-home :is(.hot-today-zone,.handpicked,.rent-zone,.box-2) > .title > :is(i,svg) { color: #a52427; font-size: 17px; }
.city-home :is(.hot-today-zone,.handpicked,.rent-zone,.box-2) > .content { padding: 0; border: 0; box-shadow: none; background: transparent; }
.city-home .hot-today-zone > .content { height: 400px; border: 1px solid #e5ebf2; border-radius: 9px; }
.city-home #hot-tody-carousel > .carousel-indicators { bottom: 90px; }
.city-home #hot-tody-carousel :is(.carousel-control-prev,.carousel-control-next) { top: 30%; bottom: auto; height: 44px; transform: translateY(-50%); }
.city-home .handpicked > .content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-inline: 0 !important; }
.city-home .handpicked > .content > .box-obj { width: 100%; height: 280px !important; min-width: 0; padding: 0; margin: 0; }
.city-home .box-obj-title { background: #f1f5f9; }
.city-image-missing { position: relative; min-height: 100px; background: #f1f5f9; }
.city-image-missing > img { display: none !important; }
.city-image-missing::after { position: absolute; inset: 0; display: grid; place-items: center; content: '照片準備中'; color: #a6b2bf; font-size: 13px; font-weight: 400; }
.city-home-ad-column { display: flex; flex-direction: column; gap: var(--city-section-gap,18px); padding: 0 !important; border: 0; background: transparent; box-shadow: none; }
.city-sidebar-panel { width: 100%; padding: 14px; border: 1px solid #e7edf3; border-radius: 14px; background: #fff; box-shadow: 0 4px 18px #26324108; }
.city-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #edf1f5; color: #364a61; font-size: 15px; font-weight: 700; }
.city-home-ad-column img { max-width: 100%; height: auto; border-radius: 6px; }
.city-home-ad-column > .row { margin-inline: -4px; }
.city-home-ad-column > .row > div { padding-inline: 4px; }
.city-home-support :is(.box,.interval) { border-color: #e0e7ee; }
.city-home-support .title { color: #54677e; background: transparent; border-color: #e0e7ee; font-size: 15px; }
.city-home-secondary table { color: #54677e; font-size: 13px; }
.city-home-secondary .box-2 { width: 100%; }
.city-home-secondary > .row > div { padding-inline: 6px; }
.city-home .city-home-shell :is(a,button,input):focus-visible { outline: 3px solid #4870a6; outline-offset: 3px; }
@media (max-width: 1199.98px) {
    .city-home .handpicked > .content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .city-area-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .city-home-layout { grid-template-columns: minmax(0, 1fr); gap: var(--city-section-gap,20px); }
    .city-home-left,.city-home-right { display: contents; }
    .city-home-left > .city-home-primary { grid-column: 1; grid-row: 1; }
    .city-home-right > .city-home-ad-column { grid-column: 1; grid-row: 2; }
    .city-home-left > .city-home-secondary { grid-column: 1; grid-row: 3; }
    .city-home-right > .city-home-support { grid-column: 1; grid-row: 4; }
    .city-home-layout > [class*="col-"] { grid-column: 1; grid-row: auto; }
    .city-home .city-home-primary > .row > :is(.hot-today-zone,.handpicked,.rent-zone,.box-2):last-child { margin-bottom: 0; }
    .city-home-ad-column > .row { display: flex; }
    .city-area-links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .city-home-shell { padding-top: 12px; }
    .city-home .home-hero h1 { font-size: 28px; }
    .city-home-hero,.city-area-card { padding: 22px 18px; }
    .city-home .hot-today-zone > .content { height: 320px; }
    .city-home :is(.hot-today-zone,.handpicked,.rent-zone,.box-2) { padding: 18px 14px; }
    .city-home .handpicked > .content { gap: 12px; }
    .city-home .handpicked > .content > .box-obj { height: 260px !important; }
    .city-home .obj-money { font-size: 17px; }
    .city-home #hot-tody-carousel .obj-money { font-size: 19px; }
    .city-area-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .city-area-card .home-section-heading { gap: 8px; }
    .city-area-card h2 { font-size: 18px; }
    .city-home #search-zone > .search-right { gap: 6px; }
    .city-home #qs { padding-left: 10px; font-size: 13px; }
    .city-home #search-zone .dropdown-toggle { padding-inline: 9px; }
    .city-home #search-zone .dropdown-menu { font-size: 13px; }
}

.city-home #box-obj-titleH { height: 100%; }
.city-home #box-obj-titleH > a { display: block; height: 100%; }
.city-home .hot-today-zone > .content:not(:has(a)) { height: auto; min-height: 120px; display: grid; place-items: center; color: #8d9aaa; font-size: 13px; }
.city-home .hot-today-zone > .content:not(:has(a))::after { content: '目前暫無強打物件，可使用上方搜尋探索更多選擇。'; }

/* Featured development cards: three equal columns with a clear information hierarchy. */
.city-home-buildings .city-home-primary .handpicked > .content { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: stretch; }
.city-home-buildings .city-home-primary .handpicked > .content > .box-obj { height: auto !important; }
.city-home-buildings .city-home-primary .handpicked .box-obj > a { display: flex; flex-direction: column; float: none; height: 100%; text-align: left; }
.city-home-buildings .city-home-primary .handpicked .box-obj-title { flex: none; height: 160px; padding: 0; }
.city-home-buildings .city-home-primary .handpicked .box-obj-content { position: static; height: auto; flex: 1; padding: 14px; overflow: visible; }
.city-home-buildings .city-home-primary .handpicked .item-title { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; font-size: 18px; line-height: 26px; text-align: left; white-space: normal; }
.city-home-buildings .city-home-primary .handpicked .item-title > br { display: none; }
.city-home-buildings .city-home-primary .handpicked .item-title > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 36px; max-height: 36px; overflow: hidden; color: #788698; font-size: 12px; font-weight: 400; line-height: 18px; }
.city-home-buildings .city-home-primary .handpicked .item-data { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin: 12px 0 0; padding: 0; color: #647386; font-size: 12px; line-height: 18px; white-space: normal; }
.city-home-buildings .city-home-primary .handpicked .item-data > div { width: auto; min-width: 0; padding: 0; }
.city-home-buildings .city-home-primary .handpicked .item-data > div:nth-child(1) { grid-column: 1; grid-row: 1; color: #364a61; }
.city-home-buildings .city-home-primary .handpicked .item-data > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #788698; }
.city-home-buildings .city-home-primary .handpicked .item-data > div:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; white-space: nowrap; }
.city-home-buildings .city-home-primary .handpicked .item-data > div:nth-child(4) { grid-column: 1 / -1; grid-row: 3; margin-top: 2px; padding-top: 10px; border-top: 1px solid #edf1f5; }
.city-home-buildings .city-home-primary .handpicked .item-data > div:nth-child(5) { position: absolute; top: 10px; left: 10px; display: flex; gap: 4px; width: auto; }
.city-home-buildings .city-home-primary .handpicked .font_06 { color: #a52427; font-size: 20px; font-weight: 700; line-height: 28px; }
@media (max-width: 767.98px) {
    .city-home-buildings .city-home-primary .handpicked > .content { grid-template-columns: 1fr; }
    .city-home-buildings .city-home-primary .handpicked .box-obj-title { height: 190px; }
    .city-home-buildings .city-home-primary .handpicked .box-obj-content { padding: 16px; }
}

@media (max-width: 575.98px) { .city-home-buildings .handpicked > .content { grid-template-columns: 1fr; } }

/* Keep search actions together; the narrow layout uses only two rows. */
.city-home-hero .home-intro { margin-bottom: 20px; }
.city-home #search-zone { align-items: center; }
.city-home #search-zone > .search-right { display: contents; }
.city-home #search-zone .search-right > a { margin-left: 0 !important; }
.city-home #search-zone .dropdown-toggle { padding-inline: 9px; }
.city-area-links a { flex-wrap: wrap; gap: 2px 5px; }
.city-area-links small { color: #8d9aaa; font-size: 11px; font-variant-numeric: tabular-nums; }
.city-market-section { margin-bottom: 24px; padding: 24px 22px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.city-market-section h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 21px; }
.city-market-section h2 > span { font-size: inherit; }
.city-market-section h2 > small { color: #788698; font-size: 12px; font-weight: 400; white-space: nowrap; }
.city-market-section h2 > span > :is(i,svg) { margin-right: 5px; color: #a52427; font-size: 17px; }
.city-market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.city-market-empty { margin: 0; padding: 20px; border-radius: 8px; background: #f7f9fb; color: #8d9aaa; font-size: 13px; line-height: 1.8; }
@media (max-width: 1199.98px) { .city-home #search-qs { flex-basis: 100%; } .city-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
    .city-home #search-zone .search-left > .dropdown > .dropdown-toggle { min-width: 42px !important; font-size: 12px; }
    .city-home #search-zone .search-right > a { padding-inline: 0 !important; }
    .city-market-section { padding: 20px 14px; }
    .city-market-grid { gap: 12px; }
    .city-area-links a { flex-direction: column; min-height: 48px; }
}

/* Sidebar sections stay separate; the district shortcuts follow the main ads. */
#angle.service-agent--compact .agent-cards .carousel-item { grid-template-columns: repeat(var(--agent-columns,1),minmax(0,320px)); align-items: start; gap: 14px; }
#angle.service-agent--compact .agent-cards .carousel-item:is(.active,.carousel-item-next,.carousel-item-prev) { display: grid; }
#angle.service-agent--compact .agent-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.city-sidebar-panel > .row { margin-inline: -4px; }
.city-sidebar-panel > .row > .col-6 { width: 100%; padding-inline: 4px; }
.city-sidebar-panel :is(.yesad300x250,.yesad145x35x6,.yesad300x105) { max-width: 320px; margin-inline: auto; }
.city-recommended-ads > .row > .col-6 > .row { max-width: 320px; margin-inline: auto; }
@media (min-width: 768px) and (max-width: 991.98px) {
    .city-home-ad-column:has(> .city-recommended-ads) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .city-home-ad-column:has(> .city-recommended-ads) > * { grid-column: 1 / -1; min-width: 0; }
    .city-home-ad-column > :is(.city-main-ads,.city-recommended-ads) { grid-column: auto; }
}
:is(.city-home-ad-column,.city-home-support) .city-area-card { width: 100%; padding: 20px 16px; margin: 0; text-align: left; }
:is(.city-home-ad-column,.city-home-support) .city-area-card .home-section-heading { flex-direction: column; align-items: flex-start; gap: 8px; }
:is(.city-home-ad-column,.city-home-support) .city-area-card h2 { font-size: 18px; line-height: 1.6; }
:is(.city-home-ad-column,.city-home-support) .city-area-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.city-home #hot-tody-carousel .box-obj > a > .logo-fx-1 { width: clamp(76px, 14%, 116px) !important; min-width: 0; max-width: none; bottom: 104px; left: auto; right: 18px; z-index: 3; }
.city-home #hot-tody-carousel .logo-fx-1 .fx-sale-img { border: 3px solid #fff; box-shadow: 0 3px 14px #26324130; }
.city-home #hot-tody-carousel .logo-fx-1 img { opacity: 1; }
@media (max-width: 767.98px) {
    .city-home #hot-tody-carousel .box-obj > a > .logo-fx-1 { width: 76px !important; right: 14px; }
    :is(.city-home-ad-column,.city-home-support) .city-area-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* County search toolbar: location and filters left, keyword and map right. */
.city-home #search-zone { gap: 8px; }
.city-home #search-zone > .d-flex:not(.search-left) { display: flex !important; order: 0 !important; flex: 0 0 auto; }
.city-home #search-zone > .d-flex .ms-2 { margin-left: 0 !important; }
.city-home #search-zone .btn-alert-taiwanmap { padding: 8px 2px; color: #263241; text-decoration: none; font-size: 14px; white-space: nowrap; }
.city-home #search-zone .btn-alert-taiwanmap::after { content: ''; display: inline-block; margin-left: 5px; vertical-align: middle; border: 4px solid transparent; border-bottom: 0; border-top-color: currentColor; }
.city-home #search-zone .search-left { order: 1 !important; flex: 0 0 auto; gap: 6px; }
.city-home #search-zone .dropdown-toggle { min-height: 40px; padding: 7px 11px; border-radius: 24px; border-color: #c5cbd2 !important; background: #fff !important; color: #303944; }
.city-home #search-qs { order: 2; flex: 1 1 220px; min-width: 180px; max-width: 360px; margin-left: auto; }
.city-home #qs { height: 44px; padding: 9px 72px 9px 18px; border-color: #dce2e8; border-radius: 28px; }
.city-home #qs:focus { border-color: #648bbb; box-shadow: 0 0 0 3px #648bbb18; }
.city-home #search-qs .btn-search { top: 4px; right: 5px; bottom: 4px; padding: 0; width: 36px; border-radius: 50%; }
.city-home #search-qs .btn-search > div { width: 36px; height: 36px; justify-content: center; font-size: 18px; }
.city-home #search-qs .btn-search span { display: none; }
.city-home .clear_qs { right: 46px; }
.city-home #search-zone .search-right > a { order: 3; color: #648bbb; white-space: nowrap; font-size: 14px; }
@media (max-width: 767.98px) {
    .city-home #search-zone { gap: 8px 6px; }
    .city-home #search-zone .search-left { flex: 1 1 auto; flex-wrap: wrap; gap: 5px; }
    .city-home #search-zone .search-left > .dropdown > .dropdown-toggle { min-height: 40px; padding-inline: 8px; }
    .city-home #search-qs { flex: 1 1 calc(100% - 56px); min-width: 0; max-width: none; margin-left: 0; }
    .city-home #search-zone .search-right > a { font-size: 13px; }
}

@media (max-width: 767.98px) {
    .city-home #search-zone .search-left > .dropdown > .dropdown-toggle { border: 1px solid #c5cbd2 !important; background: #fff !important; }
}

.city-home-support > .city-area-card { margin-bottom: 20px; }
.city-home-support > .city-empty-ad-spacing { margin-bottom: 0 !important; }

/* Keep lower county sections aligned and avoid stacked legacy margins. */
.city-home-secondary { display: flex; flex-direction: column; gap: var(--city-section-gap,16px); }
.city-home-secondary > :is(.rent-zone,.handpicked,.city-market-section,.interval) { margin: 0 !important; }
.city-home-secondary > .interval:not(:has(> :not(style,script))) { display: none; }
.city-home-secondary > .row { margin-inline: 0; }
.city-home-secondary > .row > .box-2 { width: 100%; margin: 0; padding: 22px; }
.city-home-secondary > .interval:has(> .row > .box-2) { display: grid; gap: var(--city-section-gap,16px); }
.city-home-secondary > .interval > .row:has(> .box-2) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--city-section-gap,16px) 16px; margin: 0 !important; }
.city-home-secondary > .interval > .row > .box-2 { width: auto; min-width: 0; margin: 0 !important; }
.city-home-secondary > .handpicked > .content { display: flex; gap: 0; }
.city-home-secondary > .handpicked > .content > .box-obj { width: 25%; height: 250px !important; padding-inline: 5px; }
@media (max-width: 991.98px) {
    .city-home-secondary > .handpicked > .content > .box-obj { width: 50%; }
}
@media (max-width: 767.98px) {
    .city-home-secondary > .interval > .row:has(> .box-2) { grid-template-columns: 1fr; }
    .city-home-secondary > .handpicked > .content > .box-obj { width: 50%; }
    .city-home-secondary > .row > .box-2 { padding: 18px 14px; }
}

.city-home .city-market-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
@media (max-width: 991.98px) { .city-home .city-market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767.98px) { .city-home .city-market-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.city-home .city-home-hero .search-terms:not(:has(*)) { display: none; }
.city-home .city-home-hero { padding-bottom: 20px; }

/* Separate lower listing cards with gutters outside their borders. */
.city-home-secondary > :is(.rent-zone,.handpicked) > .content { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.city-home-secondary > :is(.rent-zone,.handpicked) > .content > .box-obj { width: 100%; min-width: 0; padding: 0; margin: 0; height: 250px !important; }
.city-home-secondary > .rent-zone > .content > a.w-100 { grid-column: 1 / -1; }
.city-home .city-market-grid { gap: 12px; }
@media (max-width: 991.98px) {
    .city-home-secondary > :is(.rent-zone,.handpicked) > .content { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767.98px) {
    .city-home-secondary > :is(.rent-zone,.handpicked) > .content { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .city-home .city-market-grid { gap: 10px; }
}

/* Featured development cards in the lower county section. */
.city-home .city-featured-buildings > .title { justify-content: space-between; }
.city-home .city-featured-buildings > .title > span { margin-left: auto; }
.city-home .city-featured-buildings > .content { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 0; overflow: visible; }
.city-home .city-featured-buildings > .content > .box-obj { width: 100%; min-width: 0; height: auto !important; margin: 0; padding: 0; }
.city-home .city-featured-buildings .box-obj > a { position: relative; display: flex; flex-direction: column; float: none; height: 100%; background: #fff; text-decoration: none; }
.city-home .city-featured-buildings .box-obj-title { flex: none; width: 100%; height: auto; aspect-ratio: 16 / 10; margin: 0; padding: 0; overflow: hidden; background: #f1f5f9; }
.city-home .city-featured-buildings .box-obj-title > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.city-home .city-featured-buildings .box-obj-content { position: static; display: flex; flex-direction: column; flex: 1; height: auto; padding: 16px; overflow: visible; }
.city-home .city-featured-buildings .item-title { margin: 0; padding: 0; color: #263241; font-size: 17px; font-weight: 700; line-height: 25px; text-align: left; white-space: normal; }
.city-home .city-featured-buildings .item-title > br { display: none; }
.city-home .city-featured-buildings .item-title > span { display: block; margin-top: 5px; color: #788698; font-size: 12px; font-weight: 400; line-height: 18px; }
.city-home .city-featured-buildings .item-title > span:empty { margin: 0; }
.city-home .city-featured-buildings .item-data { display: grid; flex: 1; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr; gap: 7px 10px; margin: 0; padding: 10px 0 0; color: #647386; font-size: 12px; line-height: 20px; white-space: normal; }
.city-home .city-featured-buildings .item-data > div { width: auto; min-width: 0; padding: 0; }
.city-home .city-featured-buildings .item-data > div:nth-child(1) { grid-column: 1; grid-row: 1; color: #42546a; }
.city-home .city-featured-buildings .item-data > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; overflow-wrap: anywhere; }
.city-home .city-featured-buildings .item-data > div:nth-child(3) { grid-column: 2; grid-row: 1; white-space: nowrap; text-align: right; }
.city-home .city-featured-buildings .item-data > div:nth-child(4) { grid-column: 1 / -1; grid-row: 3; align-self: end; margin-top: 5px; padding-top: 12px; border-top: 1px solid #edf1f5; text-align: right; }
.city-home .city-featured-buildings .font_06 { color: #a52427; font-size: 21px; font-weight: 700; line-height: 28px; }
.city-home .city-featured-buildings .item-data > div:nth-child(5) { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 20px); }
.city-home .city-featured-buildings .item-data > div:nth-child(5) > img { width: auto; height: 17px; border-radius: 3px; }
@media (max-width: 767.98px) {
    .city-home .city-featured-buildings > .content { grid-template-columns: 1fr; }
    .city-home .city-featured-buildings .box-obj-title { aspect-ratio: 16 / 9; }
}
@media (max-width: 767.98px) {
    .city-home-secondary > .row > .box-2 > .content:has(> .box-obj) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
}
@media (max-width: 479.98px) {
    .city-home-secondary > .row > .box-2 > .content:has(> .box-obj) { grid-template-columns: 1fr; }
}

/* Make search prominent and show the full featured listing photo. */
.city-home #search-qs .btn-search { background: #a52427; color: #fff; }
.city-home #search-qs .btn-search > div { color: #fff; }
.city-home #search-qs .btn-search:hover { background: #861c20; }

/* Development directory cards and a separate, non-advertising QR utility. */
.city-home-buildings .city-building-list-section { margin: 0 0 var(--city-section-gap,24px); padding: 22px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.city-home-buildings .city-building-list-section > h2 { margin: 0 0 18px; color: #263241; font-size: 21px; font-weight: 700; }
.city-home-buildings .city-building-list { display: grid; gap: 14px; }
.city-home-buildings .city-building-list > a { display: block; overflow: hidden; border: 1px solid #e0e7ee; border-radius: 10px; background: #fff; color: #263241; text-decoration: none; }
.city-home-buildings .city-building-list > a:hover { border-color: #bdcbd9; box-shadow: 0 4px 14px #2632410a; }
.city-home-buildings .city-building-list .box-HH { display: grid; grid-template-columns: 190px minmax(0,1fr); min-height: 230px; height: auto; margin: 0; padding: 0; border: 0; background: #fff; }
.city-home-buildings .city-building-list .obj-img { position: relative; width: 100%; height: auto; min-height: 230px; margin: 0; padding: 0; overflow: hidden; background: #f1f5f9; }
.city-home-buildings .city-building-list .obj-img > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.city-home-buildings .city-building-list .building-directory-content { display: grid; grid-template-columns: minmax(0,1fr) 160px; width: 100%; min-width: 0; padding: 0; }
.city-home-buildings .building-directory-main { min-width: 0; padding: 20px; }
.city-home-buildings .building-directory-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: #788698; font-size: 11px; line-height: 18px; }
.city-home-buildings :is(.building-directory-status,.building-directory-type) { padding: 2px 7px; border-radius: 4px; background: #edf3fa; color: #234e78; }
.city-home-buildings .building-directory-type { background: #f4f6f8; color: #647386; }
.city-home-buildings .building-directory-location { margin-left: 2px; }
.city-home-buildings .city-building-list h3 { margin: 9px 0 5px; color: #263241 !important; font-size: 20px !important; font-weight: 700; line-height: 28px; }
.city-home-buildings .building-directory-tagline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; color: #647386; font-size: 13px; line-height: 20px; }
.city-home-buildings .building-directory-specs { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 12px; margin: 14px 0 12px; }
.city-home-buildings .building-directory-specs > div + div { padding-left: 12px; border-left: 1px solid #e7edf3; }
.city-home-buildings .building-directory-specs dt { margin-bottom: 4px; color: #8b98a8; font-size: 11px; font-weight: 400; line-height: 16px; }
.city-home-buildings .building-directory-specs dd { margin: 0; color: #364a61; font-size: 13px; font-weight: 600; line-height: 20px; }
.city-home-buildings .building-directory-company { margin: 0; color: #647386; font-size: 12px; line-height: 20px; overflow-wrap: anywhere; }
.city-home-buildings .building-directory-company > span { margin-right: 8px; color: #8b98a8; font-size: 11px; }
.city-home-buildings .building-directory-features { display: flex; flex-wrap: wrap; gap: 6px; }
.city-home-buildings .building-directory-features:empty { display: none; }
.city-home-buildings .building-directory-features > span { margin-top: 8px; padding: 1px 6px; border: 1px solid #e0e7ee; border-radius: 4px; color: #647386; font-size: 11px; line-height: 18px; }
.city-home-buildings .building-directory-price { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-width: 0; padding: 18px 16px; border-left: 1px solid #edf1f5; background: #fafbfc; }
.city-home-buildings .building-directory-price-label { color: #8b98a8; font-size: 11px; }
.city-home-buildings .building-directory-price > strong { color: #a52427; font-size: 22px; font-weight: 700; line-height: 32px; white-space: nowrap; }
.city-home-buildings .building-directory-view { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 8px; padding: 8px 10px; border: 1px solid #dce5ee; border-radius: 6px; background: #fff; color: #54677e; font-size: 12px; line-height: 18px; }
.city-home-buildings .city-building-list > a:hover .building-directory-view { border-color: #234e78; color: #234e78; }
.city-home-buildings .city-site-qrcode { padding: 22px 16px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; color: #263241; text-align: center; }
.city-home-buildings .city-site-qrcode h2 { color: #263241 !important; margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.city-home-buildings .city-site-qrcode p { margin: 0 0 16px; color: #788698; font-size: 12px; line-height: 20px; }
.city-home-buildings .city-site-qrcode canvas { display: block; max-width: 100%; margin: auto; }
@media (max-width: 767.98px) {
    .city-home-buildings .city-building-list-section { padding: 18px 14px; }
    .city-home-buildings .city-building-list .box-HH { grid-template-columns: 1fr; }
    .city-home-buildings .city-building-list .obj-img { height: 190px; min-height: 0; }
    .city-home-buildings .city-building-list .building-directory-content { grid-template-columns: 1fr; }
    .city-home-buildings .building-directory-main { padding: 18px; }
    .city-home-buildings .building-directory-price { padding: 16px 18px; border-top: 1px solid #edf1f5; border-left: 0; }
    .city-home-buildings .building-directory-view { width: 100%; }
}

/* Popular listings share the panorama card layout. */
.city-home .city-popular-unit { position: absolute; bottom: 8px; left: 5px; color: #788698; font-size: 10px; line-height: 20px; white-space: nowrap; }

/* Owner promotion artwork fills its content column without Bootstrap gutters. */
.city-home .city-owner-promotion { display: block; grid-column: 1 / -1; padding: 0; }
.city-home .city-owner-promotion > img { display: block; width: 100%; height: auto; }

/* County listing prices stay in normal flow, with space above labels and amounts. */
.city-home:not(.city-search) :is(.rent-zone,.city-home-secondary > .handpicked:not(.city-featured-buildings)) .box-obj > a { display: flex; flex-direction: column; }
.city-home:not(.city-search) :is(.rent-zone,.city-home-secondary > .handpicked:not(.city-featured-buildings)) .box-obj-title { flex: 1; min-height: 0; height: auto; padding: 0; }
.city-home:not(.city-search) :is(.rent-zone,.city-home-secondary > .handpicked:not(.city-featured-buildings)) .box-obj-content { position: static; display: grid; flex: none; height: auto; min-height: 96px; padding: 8px; grid-template-rows: minmax(22px,auto) auto minmax(24px,auto); gap: 4px; }
.city-home:not(.city-search) .rent-zone .item-title { padding: 0; font-size: 15px; line-height: 22px; }
.city-home:not(.city-search) .rent-zone .item-data { padding: 0; font-size: 12px; line-height: 18px; }
.city-home:not(.city-search) :is(.rent-zone,.city-home-secondary > .handpicked:not(.city-featured-buildings)) .obj-money { position: static; align-self: end; padding: 4px 0 0; font-size: 18px; line-height: 24px; white-space: normal; text-align: right; }

.city-home:not(.city-search) .city-home-secondary > .handpicked:not(.city-featured-buildings) :is(.item-title,.item-data) { padding: 0; }

/* Generated by console/morecityHDdata.php, morecityHFdata.php and morecityHIdata.php. */
.city-home .city-home-secondary > .interval > .morecity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 767.98px) {
    .city-home .city-home-secondary > .interval > .morecity-grid { grid-template-columns: 1fr; }
}
.city-home .morecity-card { container-type: inline-size; }
.city-home .city-home-secondary > .interval > .morecity-grid > .morecity-card { padding: 14px; }
.city-home .morecity-card > .morecity-heading { color: #263241; gap: 8px; margin-bottom: 10px; font-size: 1.285714rem; line-height: 1.5; }
.city-home .morecity-content { display: grid; gap: 10px; }
.city-home .morecity-featured { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.city-home .morecity-preview { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 8px; padding: 8px; min-width: 0; border: 1px solid #e5ebf2; border-radius: 8px; background: #f8fafc; color: #263241; text-decoration: none; transition: border-color .15s,background-color .15s; }
.city-home .morecity-preview:hover { border-color: #d8b1b4; background: #fff; }
.city-home .morecity-photo { display: block; width: 52px; aspect-ratio: 1; align-self: center; overflow: hidden; border-radius: 5px; background: #eef3f5; }
.city-home .morecity-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.city-home .morecity-info { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.city-home .morecity-name { display: block; min-width: 0; color: #263241; font-size: 1rem; font-weight: 600; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-home .morecity-meta { display: block; color: #788698; font-size: .785714rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-home .morecity-price { display: block; color: #a52427; font-size: 1.142857rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.city-home .morecity-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 16px; }
.city-home .morecity-list:empty { display: none; }
.city-home .morecity-record { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 6px 0; border-bottom: 1px solid #edf1f5; color: #263241; text-decoration: none; }
.city-home .morecity-record:hover .morecity-name { color: #a52427; }
.city-home .morecity-record > .morecity-price { text-align: right; }
.city-home .morecity-empty { grid-column: 1 / -1; padding: 16px 10px; border: 1px dashed #dce5ee; border-radius: 8px; color: #788698; font-size: 1rem; line-height: 1.8; text-align: center; }
.city-home :is(.morecity-preview,.morecity-record):focus-visible { outline: 2px solid #a52427; outline-offset: 3px; }
@container (max-width: 30rem) { .city-home .morecity-list { grid-template-columns: 1fr; } }
@container (max-width: 24rem) { .city-home .morecity-featured { grid-template-columns: 1fr; } }
