/* Listing landing pages. Shared by every file in /listings/.
   Photos stay sharp and edge to edge: no blur, frost, gradient, or dark panel behind type. */

.listing-page{padding-bottom:92px;}
.listing-page .section{padding-top:20px;padding-bottom:20px;}
.listing-page .section > .wrap > :last-child{margin-bottom:0;}
#book{scroll-margin-top:90px;}
.book-note{margin:12px 0 28px;max-width:62ch;}
.book-form-lead{margin:0 0 14px;font-weight:700;}

.gallery{background:var(--sand);}
.gallery__stage{
  background:var(--sand);
  touch-action:pan-y;
  cursor:pointer;
}
.gallery__stage img{
  width:100%;
  height:auto;
  display:block;
  user-select:none;
  -webkit-user-drag:none;
}
.gallery__tools{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:12px 16px 8px;
}
.gallery__nav{
  flex:0 0 auto;
  font-family:var(--sans);
  font-weight:700;
  font-size:.92rem;
  color:var(--navy);
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
}
.gallery__nav:hover{border-color:var(--copper);}
.gallery__nav:focus-visible{outline:3px solid var(--copper);outline-offset:2px;}
.gallery__tools .gallery__nav:first-child{justify-self:start;}
.gallery__tools .gallery__nav:last-child{justify-self:end;}
.gallery__count{
  margin:0;
  text-align:center;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--copper);
}
.gallery__hint{
  margin:0;
  padding:4px 16px 10px;
  font-size:.82rem;
  color:var(--muted);
}
.gallery__thumbs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:0 16px 16px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.gallery__thumbs button{
  flex:0 0 auto;
  width:84px;
  height:64px;
  padding:0;
  border:2px solid transparent;
  border-radius:8px;
  overflow:hidden;
  background:var(--sand-dark);
  cursor:pointer;
  scroll-snap-align:start;
}
.gallery__thumbs button[aria-current="true"]{border-color:var(--copper);}
.gallery__thumbs button:focus-visible{outline:3px solid var(--copper);outline-offset:2px;}
.gallery__thumbs img{width:100%;height:100%;object-fit:cover;display:block;}

.listing-kicker{margin-bottom:8px;}
.listing-address{margin:0 0 6px;}
.listing-place{margin:0 0 10px;color:var(--muted);font-size:1.05rem;}
.listing-price{
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.2rem,6vw,3.3rem);
  line-height:1;
  color:var(--navy);
  margin:0 0 8px;
}
.listing-mls{margin:0 0 8px;font-weight:700;letter-spacing:.04em;}
.listing-summary{margin:0;max-width:42ch;}
.listing-note{margin:18px 0 0;font-size:.92rem;color:var(--muted);max-width:62ch;}

.facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:8px 0 0;
}
.fact{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px 14px 16px;
}
.fact dt{
  margin:0 0 6px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
}
.fact dd{
  margin:0;
  font-family:var(--serif);
  font-size:1.12rem;
  line-height:1.3;
  color:var(--navy);
}
.fact dd span{
  display:block;
  margin-top:4px;
  font-family:var(--sans);
  font-size:.85rem;
  line-height:1.4;
  color:var(--muted);
}

.listing-desc p{max-width:68ch;}
.listing-desc p + p{
  padding-top:4px;
}

.rooms{width:100%;border-collapse:collapse;font-size:.98rem;}
.rooms th{
  text-align:left;
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--muted);
  padding:0 10px 10px 0;
  border-bottom:1px solid var(--line);
}
.rooms td{
  padding:12px 10px 12px 0;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.rooms tr td:last-child,.rooms tr th:last-child{padding-right:0;}

.listing-appliances{margin:0;padding-left:1.1em;max-width:68ch;}
.listing-appliances li{margin:0 0 .35em;}

.listing-media{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  list-style:none;
  margin:8px 0 0;
  padding:0;
}
.listing-media li{margin:0;}
.listing-media .btn{text-decoration:none;}

.listing-disclosure p{max-width:68ch;font-size:.95rem;}
.listing-disclosure p:last-child{margin-bottom:0;}

.listing-call__narrow{display:none;}
.listing-sms{display:none;}

.listing-bar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  background:#1B1B1B;
  border-top:1px solid rgba(201,169,106,.45);
}
.listing-bar__inner{
  max-width:720px;
  margin:0 auto;
  display:flex;
  gap:8px;
  align-items:center;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
}
.listing-bar .btn{
  flex:1;
  justify-content:center;
  padding:12px 10px;
  font-size:.92rem;
}
.listing-bar .btn--primary{flex:1.45;}
.listing-bar .btn--bar{
  background:transparent;
  color:#F7F3EC;
  border-color:rgba(247,243,236,.45);
}
.listing-bar .btn--bar:hover{background:#F7F3EC;color:#1B1B1B;border-color:#F7F3EC;}

@media (max-width:720px){
  .listing-call__wide{display:none;}
  .listing-call__narrow{display:inline;}
  .listing-sms{display:inline-flex;}
}
@media (min-width:800px){
  .listing-page .section{padding-top:28px;padding-bottom:28px;}
  .facts{grid-template-columns:repeat(3,1fr);}
  .gallery__tools,.gallery__hint,.gallery__thumbs{padding-left:24px;padding-right:24px;}
}
@media (max-width:560px){
  .stack-actions .btn{width:100%;justify-content:center;}
}

.listing-courtesy{margin:10px 0 0;font-size:.95rem;}
.listing-realtor{margin:6px 0 14px;}
.listing-realtor a{font-weight:700;}

.listing-index h1{margin-bottom:8px;}
.listing-hero,
.listing-card{
  display:grid;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  color:inherit;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
}
.listing-hero:hover,
.listing-card:hover{border-color:var(--copper);}
.listing-hero img,
.listing-card img{width:100%;height:100%;object-fit:cover;display:block;}
.listing-card img{aspect-ratio:3/2;height:auto;}
.listing-hero__body,
.listing-card__body{padding:22px 22px 24px;}
.listing-hero__body h2,
.listing-card__body h2{margin:0 0 6px;}
.listing-card__body h2{font-size:1.45rem;}
.listing-card__place{margin:0 0 8px;color:var(--muted);}
.listing-card__price{
  font-family:var(--serif);
  font-size:1.7rem;
  line-height:1;
  margin:0 0 8px;
  color:var(--navy);
}
.listing-hero .listing-card__price{font-size:clamp(2rem,4vw,2.8rem);}
.listing-card__meta{margin:0 0 8px;font-weight:700;letter-spacing:.04em;}
.listing-card__body p:last-of-type{margin-bottom:16px;}
.listing-card__body .btn,
.listing-hero__body .btn{margin-top:4px;}
.listing-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}
@media (min-width:800px){
  .listing-hero{grid-template-columns:1.35fr .9fr;min-height:420px;}
}
@media (max-width:900px){
  .listing-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:640px){
  .listing-grid{grid-template-columns:1fr;}
}
