/* Transaction summaries: comparison table on desktop, readable details on phones. */
.city-realprice,.city-home.city-search .city-home-primary > .row > .city-realprice { width: 100%; margin: 0 0 20px; padding: 22px; border: 1px solid #e0e7ee; border-radius: 12px; background: #fff; }
.city-home .city-realprice { margin: 0 !important; }
/* 搜尋頁下方可能插入 Google 自動廣告，保留卡片與廣告的間距。 */
.city-home.city-search .city-realprice { margin-bottom: 24px !important; }
.city-realprice > .realprice-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; padding: 0; border: 0; background: transparent; }
.city-realprice .realprice-heading-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.city-realprice .realprice-heading-title > svg { width: 18px; color: #a52427; }
.city-realprice .realprice-heading-title h2 { margin: 0; color: #263241; font-size: 21px; font-weight: 700; line-height: 1.5; }
.city-realprice .realprice-count { padding: 2px 7px; border-radius: 5px; color: #647386; background: #f1f5f9; font-size: 11px; line-height: 20px; }
.city-realprice #realpriceObjZone,.city-realprice #realprice-box { padding: 0; border: 0; box-shadow: none; background: transparent; }
.city-realprice .realprice-grid { display: grid !important; grid-template-columns: 72px minmax(0,1fr) repeat(4,minmax(0,60px)) minmax(72px,auto); gap: 10px; }
.city-realprice.city-realprice-land .realprice-grid { grid-template-columns: 72px minmax(0,1fr) 60px 70px 80px minmax(72px,auto); }
.city-realprice .realprice-grid > div { width: auto !important; min-width: 0 !important; max-width: none !important; padding: 0; }
.city-realprice #realprice-box > .realprice-head { margin: 0; padding: 10px 12px !important; border: 0; border-radius: 6px; background: #f5f7fa; color: #788698; font-size: 11px; font-weight: 500; }
.city-realprice #realprice-box > .realprice-row { position: relative; padding: 16px 12px !important; border: 0; border-bottom: 1px solid #edf1f5; color: #42546a; font-size: 12px; line-height: 1.8; }
.city-realprice #realprice-box > .realprice-row:last-child { border-bottom: 0; }
.city-realprice .realprice-row > a.stretched-link { position: absolute; inset: 0; }
.city-realprice #realprice-box > .realprice-row:is(:hover,:focus-within) { background: #f7f9fb; }
.city-realprice .realprice-row .price-address { color: #263241; font-weight: 600; }
.city-realprice .realprice-row .price-address .badge { font-size: 11px !important; border-radius: 4px; }
.city-realprice .realprice-row .price-total { color: #a52427 !important; font-size: 16px; font-weight: 700; white-space: nowrap; }
.city-realprice .price-age,.city-realprice .price-floor { display: none !important; }
.city-realprice .realprice-update { margin-top: 4px; padding-top: 14px; border-top: 1px solid #edf1f5; color: #8b98a8; font-size: 11px; line-height: 1.8; }
@media (min-width: 1600px) {
    .city-realprice:not(.city-realprice-land) .realprice-grid { grid-template-columns: 72px minmax(0,1fr) repeat(4,minmax(0,60px)) 88px 60px 90px; }
    .city-realprice .price-age,.city-realprice .price-floor { display: block !important; }
}
@media (max-width: 767.98px) {
    /* 縣市頁與物件頁成交共用兩行手機版配置。 */
    .city-realprice,.city-home.city-search .city-home-primary > .row > .city-realprice { padding: 12px; }
    .city-realprice #realprice-box > .realprice-head { display: none !important; }
    .city-realprice .realprice-row :is(.price-town,.price-build,.price-land,.price-unit) { display: block !important; text-align: left !important; }
    .city-realprice .realprice-row .price-parking { display: none !important; }
    .city-realprice .go-site { padding: 6px 8px; font-size: 12px; }
    .city-realprice > .realprice-heading { gap: 6px; margin-bottom: 8px; }
    .city-realprice .realprice-heading-title { gap: 5px; }
    .city-realprice .realprice-heading-title h2 { font-size: 16px; }
    .city-realprice .realprice-grid,.city-realprice.city-realprice-land .realprice-grid { grid-template-columns: repeat(12,minmax(0,1fr)); gap: 3px 4px; }
    .city-realprice #realprice-box > .realprice-row { padding: 6px 0 !important; font-size: 11px; line-height: 18px; }
    .city-realprice .realprice-row .price-address { grid-column: 1 / 10; font-size: 12px; }
    .city-realprice .realprice-row .price-address > div { white-space: nowrap !important; align-items: center; }
    .city-realprice .realprice-row .price-address span:last-child { white-space: nowrap; }
    .city-realprice .realprice-row .price-total { grid-column: 10 / 13; grid-row: 1; font-size: 14px; }
    .city-realprice .realprice-row .price-date { grid-column: 1 / 3; grid-row: 2; }
    .city-realprice .realprice-row :is(.price-town,.price-build) { grid-column: 3 / 6; grid-row: 2; }
    .city-realprice .realprice-row .price-land { grid-column: 6 / 9; grid-row: 2; }
    .city-realprice .realprice-row .price-unit { grid-column: 9 / 13; grid-row: 2; }
    .city-realprice .realprice-row :is(.price-date,.price-town,.price-build,.price-land,.price-unit) { font-size: 11px; white-space: nowrap; }
    .city-realprice .realprice-row > [data-label]::before { display: inline; margin: 0 3px 0 0; color: #8b98a8; font-size: 10px; font-weight: 400; line-height: inherit; content: attr(data-label); }
    .city-realprice .realprice-row :is(.price-address,.price-date,.price-total)::before { display: none; }
    .city-realprice .realprice-update { margin-top: 3px; padding-top: 6px; font-size: 10px; line-height: 1.5; }
}
