/* Owner approved property-first listing detail refresh, 2026-10-19.
   Applied through one shared SSR renderer, to both detail page and listing modal.
   No agent promotional panel. Brokerage/MLS attribution still renders in the footer. */
.prop-detail .prop-card--walkthrough {
  padding:0; overflow:hidden; background:#fff; color:#172235;
  border:1px solid #f1f3f5; border-radius:18px;
  box-shadow:0 6px 24px rgba(23,34,53,.06);
}
.prop-detail .prop-walk__summary { padding:26px 26px 0; background:#fff; }
.prop-detail .prop-walk__heading { margin:0 0 18px; font:700 clamp(18px,1.45vw,23px)/1.3 Arial,Helvetica,sans-serif; color:#172235; }
.prop-detail .prop-walk__price {
  font:800 clamp(28px,2.7vw,38px)/1.17 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  letter-spacing:-.035em; color:#172235;
}
.prop-detail .prop-walk__address { margin:8px 0 0; color:#172235; font-size:16px; line-height:1.5; }
.prop-detail .prop-walk__stats {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0; margin:22px 0 0; padding:0 0 20px;
  border-bottom:1px solid #f1f3f5;
}
.prop-detail .prop-walk__stat { min-width:0; display:flex; flex-direction:column; gap:2px; padding:0 8px 0 0; }
.prop-detail .prop-walk__stat + .prop-walk__stat { padding-left:14px; border-left:1px solid #f1f3f5; }
.prop-detail .prop-walk__stat strong { font-size:clamp(17px,1.7vw,23px); font-weight:800; line-height:1.25; white-space:nowrap; }
.prop-detail .prop-walk__stat span { color:#63748f; font-size:13px; white-space:nowrap; }
.prop-detail .prop-walk__actions { display:flex; flex-direction:column; gap:13px; padding:23px 26px 20px; }
.prop-detail .prop-walk__cta {
  display:flex; align-items:center; justify-content:center; gap:13px;
  width:100%; box-sizing:border-box; min-height:58px; border-radius:9px;
  border:1.5px solid #172235; padding:12px 14px; text-align:center; text-decoration:none;
  font:800 16px/1.35 system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  letter-spacing:0; cursor:pointer; transition:background .15s,color .15s,box-shadow .15s;
}
.prop-detail .prop-walk__cta svg { flex:0 0 23px; }
.prop-detail .prop-walk__cta--tour { color:#172235; background:transparent; box-shadow:none; }
.prop-detail .prop-walk__cta--tour:hover { background:#f1f3f5; color:#172235; }
.prop-detail .prop-walk__cta--qualify { background:transparent; color:#172235; }
.prop-detail .prop-walk__cta--qualify:hover { background:#f1f3f5; }
.prop-detail .prop-walk__cta--report { background:transparent; border-color:#172235; color:#172235; }
.prop-detail .prop-walk__cta--report:hover { background:#f1f3f5; }
.prop-detail .prop-walk__cta:focus-visible { outline:3px solid #172235; outline-offset:3px; }
.prop-detail .prop-walk__form {
  display:flex; flex-direction:column; gap:20px; margin:0 26px; padding:21px 0 0;
  border-top:1px solid #f1f3f5; background:#fff;
}
.prop-detail .prop-walk__group legend { font-size:11px; color:#62718c; letter-spacing:.095em; padding-bottom:11px; }
.prop-detail .prop-walk__day { min-height:80px; border-radius:10px; padding:13px 15px; }
.prop-detail .prop-walk__day:has(input:checked) { border-color:#172235; background:#f1f3f5; box-shadow:inset 0 0 0 1px #172235; }
.prop-detail .prop-walk__day:has(input:checked)::after { color:#172235; }
.prop-detail .prop-walk__day-date { font-size:20px; }
.prop-detail .prop-walk__times { border-radius:10px; background:#f1f3f5; }
.prop-detail .prop-walk__time:has(input:checked) { background:#f1f3f5; border-color:#f1f3f5; }
.prop-detail .prop-walk__time-sub { white-space:normal; }
.prop-detail .prop-walk__foot { margin:9px 26px 22px; font-size:11px; color:#6b7690; line-height:1.45; text-align:center; }
.prop-detail .prop-walk__unavailable { margin:15px 26px 25px; color:#6b7690; }
/* Existing suitcase JS unhides the button. Only the heart shows visually;
   aria-label, aria-pressed, and data-hhr-save keep full suitcase functionality. */
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail {
  position:absolute; z-index:7; top:17px; right:17px;
  display:flex; align-items:center; justify-content:center;
  width:49px; min-width:49px; height:49px; min-height:49px;
  margin:0; padding:0; gap:0; border:1px solid rgba(223,229,238,.94);
  border-radius:50%; background:rgba(255,255,255,.95);
  box-shadow:0 4px 14px rgba(23,34,53,.18);
  cursor:pointer; color:#172235;
}
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail[hidden] {display:none!important}
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail span {display:none!important}
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail .hhr-save-heart {display:block; width:25px; height:25px;}
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail[aria-pressed="true"] { color:#e13956; background:#fff3f6; }
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail:hover {background:#fff; transform:scale(1.045);}
.prop-detail .prop-gallery__hero .hhr-suitcase-save--detail:focus-visible {outline:3px solid #172235; outline-offset:3px}
/* Wide property viewer is intentionally independent of the Golden Page master. */
.page--listing-detail .listing-detail-page {max-width:1640px; padding:20px 24px 46px;}
.page--listing-detail .prop-detail--page {
  max-width:none; margin:0; padding:0; background:transparent;
  grid-template-columns:minmax(0,1.7fr) minmax(380px,.99fr);
  gap:24px; align-items:start;
}
.page--listing-detail .prop-detail--page .prop-detail__side { gap:20px; }
.page--listing-detail .prop-gallery--page .prop-gallery__hero { aspect-ratio:1.11/1; }
.page--listing-detail .site-header { min-height:52px; justify-content:flex-start; padding:10px 24px; }
.page--listing-detail .site-logo { flex:0 1 290px; }
.page--listing-detail .ld-back { border-radius:7px; background:transparent; color:#172235; padding:9px 4px; }
.page--listing-detail .ld-back:hover {background:transparent; text-decoration:underline;}
/* Narrow laptop and phones: no sideways scroll, touch-friendly hearts/actions. */
@media(max-width:1100px) {
  .page--listing-detail .prop-detail--page {grid-template-columns:minmax(0,1.4fr) minmax(300px,.95fr); gap:16px;}
  .page--listing-detail .listing-detail-page {padding:18px 14px 34px;}
  .prop-detail .prop-walk__summary {padding:20px 18px 0;}
  .prop-detail .prop-walk__actions {padding:20px 18px 16px;}
  .prop-detail .prop-walk__form {margin:0 18px;}
  .prop-detail .prop-walk__foot {margin:9px 18px 18px;}
  .prop-detail .prop-walk__stats {grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:12px;}
  .prop-detail .prop-walk__stat:nth-child(3) {padding-left:0;border-left:0;}
}
@media(max-width:767px){
  .page--listing-detail .listing-detail-page{padding:14px 0 28px;}
  .page--listing-detail .prop-detail--page {display:flex;flex-direction:column; gap:16px; padding:12px; background:#fff;}
  .page--listing-detail .prop-detail--page .prop-detail__main,
  .page--listing-detail .prop-detail--page .prop-detail__side {width:100%;}
  .page--listing-detail .prop-gallery--page .prop-gallery__hero {aspect-ratio:4/3;}
  .page--listing-detail .prop-detail--page .prop-detail__side {order:0;}
  .prop-detail .prop-walk__actions {gap:10px;}
  .prop-detail .prop-walk__cta {min-height:52px; font-size:15px;}
  .prop-detail .prop-walk__days {gap:8px;}
  .prop-detail .prop-walk__times {grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;}
  .prop-detail .prop-walk__time {flex-direction:column;flex-wrap:nowrap;gap:0;min-height:57px;padding:7px 1px;}
  .prop-detail .prop-walk__time-label {font-size:12px;}
  .prop-detail .prop-walk__time-sub {font-size:10px;margin-top:4px;text-align:center;}
  .prop-detail .prop-gallery__hero .hhr-suitcase-save--detail {width:46px;min-width:46px;height:46px;min-height:46px;top:12px;right:12px;}
  .page--listing-detail .site-header {padding:9px 16px;}
  .page--listing-detail .site-logo {grid-column:1/-1; width:min(100%,260px);}
}
 
/* Mobile-first ordering: visitor gets the tour/qualification/report actions
   immediately after the gallery, before long market/schools sections.
   CSS-only rearrangement of the one SSR copy; no duplicated forms or JS. */
@media(max-width:767px){
  .page--listing-detail .prop-detail--page > .prop-detail__main,
  .page--listing-detail .prop-detail--page > .prop-detail__side {display:contents;}
  .page--listing-detail .prop-detail--page > .prop-detail__main > .prop-gallery {order:0;}
  .page--listing-detail .prop-detail--page > .prop-detail__side > .prop-card--walkthrough {order:1;width:100%;}
  .page--listing-detail .prop-detail--page > .prop-detail__main > .prop-title {order:2;width:100%;}
  .page--listing-detail .prop-detail--page > .prop-detail__main > :not(.prop-gallery):not(.prop-title) {order:3;width:100%;}
  .page--listing-detail .prop-detail--page > .prop-detail__side > :not(.prop-card--walkthrough) {order:4;width:100%;}
}

/* Listing CTA already includes a contextual report. Hide the legacy global floating
   report button on this template only; retain the My Suitcase dock. That duplicate
   fixed button could cover Request a Tour at shorter viewport heights. */
.page--listing-detail a.hhr-property-report-dock {display:none!important;}
/* Existing listing viewer JS moves the tour card inside .prop-detail__main
   on phones. Honor its actual DOM placement rather than assuming it stays
   in the sidebar. */
@media(max-width:767px){
 .page--listing-detail .prop-detail--page > .prop-detail__main > .prop-card--walkthrough {order:1!important;width:100%;}
}
