/* Property reading layout and the Tools pages. */
#view-tools .subhero, #view-translator .subhero { padding-bottom: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-bottom: clamp(50px,8vw,105px); }
.tool-card, .research-surface { background: #fffdf9; border: 1px solid #e7dccb; border-radius: 14px; }
.tool-card { padding: clamp(22px,4vw,40px); }
.tool-card h2 { font: 750 clamp(1.25rem,2.4vw,1.65rem)/1.2 var(--sans); letter-spacing: -.035em; margin: 0 0 10px; }
.tool-card p { color: #685a48; line-height: 1.6; }
.tools-translator { padding-bottom: 82px; }
#translator-page-editor { max-width: 820px; }
.tool-back { display: inline-block; font-weight: 700; color: #79501d; margin-bottom: 7px; }
.tool-back:hover, .research-source:hover { text-decoration: underline; }
[data-translator="source"], [data-translator="output"] { display: block; margin-top: 4px; }
[data-translator="form"] label, [data-translator="result"] label { display: grid; gap: 5px; color: #423728; margin-bottom: 12px; font-size: .9rem; font-weight: 620; }
[data-translator="status"] { color: #6b5336; margin: 14px 0 0; }
[data-translator="result"] { margin-top: 13px; }
[data-translator="form"] select, [data-translator="form"] textarea, [data-translator="result"] textarea { color: #29231d; }
[data-translator="form"] textarea, [data-translator="result"] textarea { min-height: 105px; }
#translator-page-editor .biz-metric-note, #message-translator .biz-metric-note { margin: 15px 0 0; }

.property-detail { --study-ink:#231e18; --study-muted:#695c4c; --study-line:#eadfce; --study-link:#7b4c19; }
.property-detail .detail-price { margin-bottom: .8rem; }
.property-detail h3 { font-family: var(--sans); font-size: clamp(1.18rem,2.1vw,1.45rem); line-height: 1.25; font-weight: 780; margin: 0 0 .7rem; color: var(--study-ink); }
.property-detail h4, .property-detail h5 { font: 750 1rem/1.3 var(--sans); margin: 0 0 .65rem; color: var(--study-ink); }
.property-detail p { line-height: 1.6; }
.property-detail .research-surface { padding: clamp(15px,3vw,26px); margin: 15px 0; color: var(--study-ink); }
.property-detail .property-research .research-surface { margin: 0; }
.property-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.property-actions .btn { white-space: normal; min-height: 37px; padding: 8px 13px; }
.property-detail .btn-outline, .tool-card .btn-outline, #message-translator .btn-outline {
  color: #49351c; background: #fffdf9; border-color: #d9c6a9;
}
.property-detail .btn-deep, .tool-card .btn-deep { color: #fff8ea; background: #272019; }
.property-primary-actions { margin: 0 0 15px; }
.property-overview header { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.property-overview header h3 { margin: 0; }
.property-reference { display: flex; align-items: center; gap: 7px; color: #614928; font-size: .78rem; }
.property-reference code { color: #332315; font-size: .86rem; }
.property-reference .text-link { padding: 5px 7px; border-radius: 5px; color: #794617; background: #f6ebd8; }
.property-overview-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin: 10px 0 14px; }
.property-overview-list div, .research-inline-facts div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--study-line); }
.property-overview-list dt, .research-inline-facts dt { color: var(--study-muted); }
.property-overview-list dd, .research-inline-facts dd { text-align: right; margin: 0; font-weight: 660; overflow-wrap: anywhere; }
.property-buy-notes { padding: 10px 12px; border: 1px solid #e7d6b7; border-radius: 8px; background: #fcf4e5; font-size: .87rem; }
.property-buy-notes summary, .property-highlight-grid summary { cursor: pointer; font-weight: 720; color: #63431f; }
.property-buy-notes p { margin: 8px 0 4px; }
.property-buy-notes a { text-decoration: underline; color: var(--study-link); }
.property-highlight-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.property-highlight-grid details { padding: 9px 11px; border-radius: 7px; background: #f7f0e4; font-size: .85rem; }
.property-highlight-grid p { margin: 7px 0 0; color: var(--study-muted); }
.property-description #detail-desc { white-space: pre-line; margin-bottom: .6rem; color: #3c3329; }
.property-description #translation-notice { display: block; color: var(--study-muted); font-size: .78rem; }
.property-membership.research-surface { background: #f6ebd8; border-color: #e5cda5; }
.property-membership p { margin-bottom: .65rem; }
.property-membership ul { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 24px; margin: .4rem 0 .8rem; padding-left: 20px; }
.property-research { display: grid; gap: 12px; margin: 25px 0 18px; }
.research-title { padding: 0 2px; }
.research-title h3 { margin-bottom: 4px; }
.research-title p { margin: 0; color: var(--study-muted); font-size: .85rem; }
.research-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: stretch; }
.property-detail .research-block, .property-detail .property-source { font-size: .88rem; }
.property-detail .research-block p { margin-bottom: .55rem; }
.research-inline-facts { margin: .4rem 0 .7rem; }
.research-map { display: grid; place-items: center; min-height: 160px; border: 1px solid #ebdfcc; border-radius: 9px; background: #f5eee2; margin: 9px 0 3px; overflow: hidden; }
.research-map iframe { width: 100%; height: min(390px,55vh); border: 0; display: block; }
.research-note, .research-source { color: var(--study-muted); font-size: .78rem; }
.research-source { color: var(--study-link); text-decoration: underline; text-underline-offset: 2px; }
#source-check-result:empty, #property-hazard-results:empty, #property-sales-data:empty { display: none; }
.research-price { margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--study-line); }
.property-research .detail-cost-section { margin: 0; padding: 10px 0 0; border: 0; background: transparent; }
.research-places-list, .research-sales-list { padding: 0; margin: 0 0 10px; list-style: none; }
.research-places-list li, .research-sales-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--study-line); }
.research-places-list small { display: block; color: var(--study-muted); margin-top: 3px; }
.research-places-list a { text-decoration: underline; color: var(--study-link); }
#nearby-fetch { margin-top: 10px; }
.property-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.related-card { display: grid; grid-template-columns: 72px minmax(0,1fr); align-items: center; gap: 10px; padding: 7px; border: 1px solid var(--study-line); border-radius: 8px; background: #fff; text-align: left; color: #332820; }
.related-card:hover { border-color: #b68e55; }
.related-card > span { display: grid; gap: 3px; min-width: 0; }
.related-card strong, .related-card small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.related-photo { display: block; width: 72px; height: 57px; border-radius: 5px; object-fit: cover; }
.related-card .no-photo { padding: 5px; font-size: .66rem; }
.related-price { color: #765125; font-size: .82rem; font-weight: 730; }
.property-related p, .property-source p { color: var(--study-muted); }
@media (max-width: 690px) {
  .tools-grid, .research-grid, .property-related-grid { grid-template-columns: 1fr; }
  .property-overview-list { column-gap: 12px; }
  .property-overview-list div { flex-direction: column; gap: 3px; justify-content: flex-start; }
  .property-overview-list dd { text-align: left; }
}
@media (max-width: 370px) {
  .property-overview-list, .property-highlight-grid, .property-membership ul { grid-template-columns: 1fr; }
}

.property-description .description-clamped { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
#property-description-more { color: #80511d; margin: 0 0 9px; }
