/* Listing detail page (listing.html) — rich detail layout, 2026-11-10.
   Loaded after styles.css on listing.html only. Clean, low-clutter: summary strip, short facts row,
   description with Read more, Lake Life (only with data), 5-6 short feature groups, sticky Ask panel. */
.ld-wrap.ld2{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"gallery side" "summary side" "body side";column-gap:44px;row-gap:0;align-items:start}
.ld2 .ld-gallery{grid-area:gallery}
.ld2 .ld-summary{grid-area:summary;padding-top:26px}
.ld2 .ld-side{grid-area:side;align-self:start;position:sticky;top:112px}
.ld2 .ld-body{grid-area:body;min-width:0}
.ld2>*{min-width:0}

/* summary strip */
.ld-eyebrow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:0 0 8px}
.ld-status{display:inline-block;font-size:.6rem;letter-spacing:.18em;font-weight:600;color:var(--navy-ink);border:1px solid var(--gold);padding:3px 9px;line-height:1.4}
.ld2 .ld-price{margin:0 0 .15em}
.ld2 .ld-city{margin:.25em 0 1rem}
.ld-stats{list-style:none;margin:0 0 14px;padding:14px 0;display:flex;flex-wrap:wrap;gap:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.ld-stats li{display:flex;align-items:baseline;gap:7px;padding:0 22px;border-left:1px solid var(--line)}
.ld-stats li:first-child{padding-left:0;border-left:0}
.ld-stats strong{font-family:var(--serif);font-size:1.75rem;font-weight:500;color:var(--navy-ink);line-height:1}
.ld-stats span{font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft)}

/* short facts row */
.ld-keyfacts{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px 16px;margin:0 0 8px;padding:14px 18px;background:var(--sand)}
.ld-keyfacts[hidden]{display:none}
.ld-keyfacts dt{font-size:.58rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);line-height:1.5}
.ld-keyfacts dd{margin:2px 0 0;font-size:.95rem;color:var(--navy-ink);font-weight:500;line-height:1.35}

/* sections */
.ld-body h2{font-family:var(--serif);font-size:1.75rem;font-weight:500;color:var(--navy-ink);margin:0 0 12px;line-height:1.2}
.ld-desc,.ld-lake,.ld-feats{margin-top:38px}
.ld-desc[hidden],.ld-lake[hidden],.ld-feats[hidden]{display:none}
.ld-remarks{white-space:pre-line;font-size:1rem;line-height:1.75;color:var(--ink);overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;line-clamp:6;overflow-wrap:anywhere}
.ld-remarks.is-open{display:block;-webkit-line-clamp:unset;line-clamp:unset}
.ld-more{margin:10px 0 0;padding:0 0 2px;background:none;border:0;border-bottom:1px solid var(--gold);font:inherit;font-size:.72rem;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--navy-ink);cursor:pointer}
.ld-more[hidden]{display:none}

/* Lake Life */
.ld-lake{background:var(--navy);color:#fff;padding:26px 28px 18px;border-top:3px solid var(--gold)}
.ld-lake h2{color:#fff}
.ld-lake .ld-rows div{border-color:rgba(255,255,255,.16)}
.ld-lake .ld-rows dt{color:var(--gold)}
.ld-lake .ld-rows dd{color:#fff}

/* label / value rows (tidy comma lists, not checkmark grids) */
.ld-rows{margin:0}
.ld-rows div{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}
.ld-rows div:last-child{border-bottom:0}
.ld-rows dt{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--ink-soft);padding-top:4px;line-height:1.4}
.ld-rows dd{margin:0;font-size:.94rem;line-height:1.55;color:var(--ink);overflow-wrap:anywhere}
.ld-feat-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px 40px}
.ld-feat h3{font-family:var(--serif);font-size:1.25rem;font-weight:600;color:var(--navy-ink);margin:0 0 4px;padding-bottom:6px;border-bottom:2px solid var(--gold)}
.ld-feat .ld-rows div{grid-template-columns:110px minmax(0,1fr)}
.ld2 .ld-map{margin-top:38px}

/* sticky Ask panel */
.ld-side-card{border:1px solid var(--line);border-top:3px solid var(--gold);padding:22px 22px 18px;background:var(--surface);box-shadow:0 18px 40px -28px rgba(14,36,56,.45)}
.ld-side-price{font-family:var(--serif);font-size:1.9rem;font-weight:500;color:var(--navy-ink);margin:0;line-height:1.1}
.ld-side-addr{font-size:.86rem;color:var(--ink-soft);margin:4px 0 16px;line-height:1.45}
/* 2026-11-23: all four price-card chips are the same oval/pill, same height, even 12px gaps */
.ld2 .ld-actions{display:flex;flex-direction:column;gap:12px;margin:0}
.ld2 .ld-actions .btn{width:100%;box-sizing:border-box;border-radius:999px;min-height:48px;padding-left:1em;padding-right:1em;letter-spacing:.18em;white-space:nowrap}
/* Ask for a Showing = primary (navy), Ask About This Home = quiet secondary, Add to Notebook last */
.ld2 .ld-actions .ld-ask{border-color:var(--navy-ink);color:var(--navy-ink)}
.ld2 .ld-actions .ld-ask:hover{background:var(--navy);color:#fff}
.ld2 .ld-actions .nb-add--ld{order:3;border:2px solid var(--gold);border-radius:999px;min-height:48px;padding:10px 16px;white-space:nowrap}
/* Gold left bar cannot sit on a pill; keep the cream fill and use a matching gold outline */
.ld2 .ld-actions .nb-add--ld.is-in{background:var(--navy);color:#fff;border-color:var(--gold)}
.ld2 .ld-side-card .lal-alert-bar--listing{margin:12px 0 0;gap:12px}
.ld2 .ld-side-card .lal-alert-bar--listing .lal-alert-btn{box-sizing:border-box;width:100%;min-height:48px;border-radius:999px;white-space:nowrap;letter-spacing:.06em;padding:.7em .8em;gap:.4em}
.ld-side-call{margin:14px 0 0;font-size:.8rem;color:var(--ink-soft);text-align:center}
.ld-side-call a{color:var(--navy-ink);font-weight:600;text-decoration:none;border-bottom:1px solid var(--gold)}

/* mobile Ask bar (hidden on desktop) */
.ld-askbar{display:none}

@media (max-width:1100px){
  .ld-wrap.ld2{grid-template-columns:minmax(0,1fr) 290px;column-gap:30px}
  .ld-feat-grid{grid-template-columns:1fr}
}
@media (max-width:900px){
  .ld-wrap.ld2{grid-template-columns:minmax(0,1fr);grid-template-areas:"gallery" "summary" "side" "body"}
  .ld2 .ld-side{position:static;margin-top:18px}
  .ld-side-price,.ld-side-addr{display:none}
  .ld-side-card{padding:16px;box-shadow:none}
  .ld-askbar{display:flex;align-items:center;justify-content:space-between;gap:14px;position:fixed;left:0;right:0;bottom:0;z-index:890;
    padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--navy);border-top:2px solid var(--gold);
    transform:translateY(110%);transition:transform .22s ease;visibility:hidden}
  .ld-askbar.is-on{transform:none;visibility:visible}
  .ld-askbar-price{font-family:var(--serif);font-size:1.45rem;color:#fff;white-space:nowrap}
  .ld-askbar .btn{padding:.95em 1.2em;letter-spacing:.14em;font-size:.66rem;background:var(--gold);border-color:var(--gold);color:var(--navy);font-weight:600;border-radius:999px}
}
@media (max-width:560px){
  .ld-stats li{padding:0 14px}
  .ld-stats strong{font-size:1.45rem}
  .ld-keyfacts{padding:12px 14px}
  .ld-stats{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;gap:0}
  .ld-stats li{flex-direction:column;align-items:flex-start;gap:4px;padding:0 16px}
  .ld-lake{padding:22px 18px 12px}
  .ld-rows div,.ld-feat .ld-rows div{grid-template-columns:100px minmax(0,1fr);gap:12px;padding:9px 0}
  .ld-rows dt{font-size:.56rem;letter-spacing:.14em}
  .ld-body h2{font-size:1.55rem}
}
@media (max-width:560px){
  .ld-keyfacts{grid-template-columns:1fr 1fr 1fr;gap:12px 10px}
}
/* main.sub-main already pads for the fixed header; drop the duplicate gap above "Back to results" */
.page-listing .ld{padding-top:22px}
@media (max-width:560px){.page-listing .ld{padding-top:14px}}
.ld-photo-note{margin:6px 0 0;font-size:.74rem;color:var(--ink-soft);letter-spacing:.02em}

/* Listing Location map (2026-11-10): site-styled embed, cooperative gestures, action buttons */
.ld-map[hidden]{display:none}
.ld-map-canvas-wrap{position:relative;width:100%;height:380px;background:var(--bg-e9e5de);border-top:3px solid var(--gold);overflow:hidden}
.ld-map-canvas-wrap[hidden]{display:none}
#ld-map-canvas{width:100%;height:100%}
.ld-map-status{position:absolute;left:12px;right:12px;bottom:12px;z-index:2;margin:0;padding:8px 12px;background:rgba(255,255,255,.94);font-size:.78rem;color:var(--ink-soft);line-height:1.4}
.ld-map-status[hidden]{display:none}
.ld-map-actions{display:flex;flex-wrap:wrap;gap:10px 14px;margin-top:14px}
.ld-map-actions .btn{min-height:44px;padding:1em 1.6em;letter-spacing:.16em;text-align:center}
.ld-map-actions .btn[hidden]{display:none}
.ld-map-pop{max-width:240px}
@media (max-width:900px){
  .ld-map-canvas-wrap{height:300px}
}
@media (max-width:560px){
  .ld-map-canvas-wrap{height:260px}
  .ld-map-actions .btn{flex:1 1 calc(50% - 8px);padding:1em 0.8em;letter-spacing:.1em;font-size:.64rem}
}

/* Landscape: fit the main/hero photo entirely in the viewport (no crop). Portrait unchanged.
   2026-11-28: keep a reserved 3:2 frame (width/height 100% + object-fit:contain) instead of
   sizing the box from the image's intrinsic pixels. In Safari, the thumbnail strip uses the
   same photo URL with width="160" height="107", which can make the hero render at ~107px
   tall until a reload. Phone-landscape cover rule below is unchanged. */
@media (orientation:landscape) and (max-height:850px){
  .page-listing .ld-main{
    aspect-ratio:3/2;
    display:flex;align-items:center;justify-content:center;
    background:var(--navy,#0e2438);
    width:100%;
    min-width:100%;
    max-height:calc(100vh - var(--hdr,88px) - 48px);
    max-height:calc(100dvh - var(--hdr,88px) - 48px);
    overflow:hidden;
  }
  .page-listing .ld-main img{
    width:100%;height:100%;
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    object-position:center;
  }
}

/* 2026-11-11 (Brian): phone landscape reverted to the earlier full-width 3:2 photo (cropped to fill), not the shrunk fit-in-screen version. Desktop/tablet short screens keep the fit rule above. */
@media (orientation:landscape) and (max-height:540px) and (pointer:coarse){
  .page-listing .ld-main{aspect-ratio:3/2;display:block;background:var(--bg-e9e5de);max-height:none}
  .page-listing .ld-main img{width:100%;height:100%;max-width:none;max-height:none;object-fit:cover}
}
/* 2026-11-11: photo opens the slideshow on phones; make it tappable for iPhone Safari */
@media (hover:none),(pointer:coarse){.page-listing #ld-img{cursor:pointer}}
/* 2026-11-23: a pinch on the listing photo opens the slideshow and zooms the photo there, not the page (scrolling unchanged) */
@media (hover:none),(pointer:coarse){.page-listing #ld-img{touch-action:pan-x pan-y}}
/* mini map icon in the key facts box, next to On market */
.ld-keyfacts .ld-kf-map{display:flex;align-items:center}
.ld-keyfacts .ld-kf-map[hidden]{display:none}
.ld-keyfacts .ld-kf-map button{appearance:none;background:none;border:0;padding:2px;margin:0;cursor:pointer;line-height:0;border-radius:6px;transition:transform .15s}
.ld-keyfacts .ld-kf-map button:hover,.ld-keyfacts .ld-kf-map button:focus-visible{transform:scale(1.08)}
.ld-keyfacts .ld-kf-has-map{display:grid;grid-template-columns:1fr auto;column-gap:8px;align-items:center}
.ld-keyfacts .ld-kf-has-map dt{grid-column:1}.ld-keyfacts .ld-kf-has-map dd{grid-column:1}
.ld-keyfacts .ld-kf-has-map .ld-kf-map{grid-column:2;grid-row:1/span 2}
.ld-keyfacts .ld-kf-has-map .ld-kf-map svg{width:50px;height:40px}
/* mini map icon moved to the end of the beds/baths/sq ft/acres strip */
.ld-stats li.ld-stat-map{align-items:center;justify-content:center;align-self:center}
.ld-stats li.ld-stat-map[hidden]{display:none}
.ld-stats li.ld-stat-map button{appearance:none;background:none;border:0;padding:2px;margin:0;cursor:pointer;line-height:0;border-radius:6px;transition:transform .15s}
.ld-stats li.ld-stat-map button:hover,.ld-stats li.ld-stat-map button:focus-visible{transform:scale(1.08)}
.ld-stats li.ld-stat-map svg{width:50px;height:40px}
@media (max-width:560px){.ld-stats{grid-template-columns:repeat(5,auto)}.ld-stats li{padding:0 12px}.ld-stats li.ld-stat-map{padding:0 0 0 10px}}
@media (max-width:380px){.ld-stats li{padding:0 9px}.ld-stats li.ld-stat-map svg{width:44px;height:35px}}
/* 2026-11-12: phone landscape: compact centered price + Ask for a Showing bar (same content) */
@media (max-width:900px) and (orientation:landscape) and (max-height:520px){
  .ld-askbar{left:0;right:0;width:max-content;max-width:calc(100% - 24px);margin:0 auto;gap:12px;
    padding:5px 6px calc(5px + env(safe-area-inset-bottom)) 14px;border:2px solid var(--gold);border-bottom:0;border-radius:10px 10px 0 0}
  .ld-askbar-price{font-size:1.05rem}
  .ld-askbar .btn{padding:.6em 1em;font-size:.6rem;letter-spacing:.12em;border-radius:999px}
}

/* 2026-11-19: Your Agent card + Listed by (listing pages only) */
.ld-agent{margin-top:22px}
.ld-agent-heading{font-family:var(--serif);font-size:1.2rem;font-weight:500;color:var(--navy-ink);letter-spacing:.02em;line-height:1.2;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.ld-agent-card{display:flex;align-items:center;gap:14px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 28px -20px rgba(14,36,56,.55)}
.ld-agent-photo{flex:0 0 120px;width:120px;height:160px;border-radius:8px;overflow:hidden;background:var(--navy);box-shadow:0 0 0 2px var(--gold);box-sizing:content-box;position:relative}
.ld-agent-photo picture{display:block;width:100%;height:100%;position:relative}
.ld-agent-photo img{position:absolute;width:151.33%;max-width:none;height:auto;left:-39.33%;top:4.5%;display:block}
.ld-agent-meta{min-width:0;flex:1}
.ld-agent-name{margin:0;font-family:var(--serif);font-size:1.2rem;font-weight:600;color:var(--navy-ink);line-height:1.2}
.ld-agent-title{margin:3px 0 6px;font-size:.78rem;color:var(--ink-soft);line-height:1.3}
.ld-agent-phone{margin:0;line-height:1.3}
.ld-agent-phone a{color:var(--navy-ink);font-weight:600;font-size:.9rem;text-decoration:none;border-bottom:1px solid var(--gold);white-space:nowrap}
.ld-agent-phone a:hover{color:var(--navy-2)}
.ld-listed-by{margin-top:14px}
.ld-listed-by[hidden]{display:none}
.ld-listed-by-label{margin:0 0 4px;font-size:.62rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft);line-height:1.4}
.ld-listed-by-firm{margin:0;font-size:1.02rem;line-height:1.45;color:var(--navy-ink);font-weight:400}
.ld-listed-by-firm a{color:var(--navy-ink);font-weight:400;text-decoration:none}
@media (max-width:900px){
  .ld-agent{margin-top:18px}
  .ld-agent-card{box-shadow:0 8px 20px -16px rgba(14,36,56,.5)}
}
@media (max-width:560px){
  .ld-agent-photo{flex:0 0 96px;width:96px;height:128px}
  .ld-agent-name{font-size:1.12rem}
}


/* 2026-11-21: inline play/pause on the listing main photo. Cycles photos in place
   every 1s without opening the fullscreen viewer. Hidden when there is only one photo. */
.ld-play{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:2;
  width:40px;
  height:40px;
  padding:0;
  border:2px solid var(--gold);
  border-radius:50%;
  background:rgba(14,36,56,.82);
  color:var(--gold);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(14,36,56,.35);
}
.ld-play[hidden]{display:none}
.ld-play svg{display:block}
.ld-play:hover,.ld-play:focus-visible{
  background:var(--navy,#0e2438);
  color:#fff;
}
.ld-play:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px #fff, 0 0 0 4px var(--gold);
}

/* Count stays the existing #ld-count (updated as photos advance); just moved to bottom-left
   so the play button can sit on the bottom-right. */
.ld-count{left:12px;right:auto}

/* 2026-11-25 (seo-index): loading text drawn by CSS so it is not in the server HTML. */
.ld-loading:empty::after{content:"Loading this home\2026"}
