:root{
  --bg:#ffffff;
  --text:#0b0b0b;
  --muted:#5b5b5b;
  --line:#e7e7e7;
  --soft:#f1efed;
  --accent:#3b79c2;
  --radius:0px;
  --max:1080px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

/* ✅ ADD THIS RIGHT HERE */
html, body{
  overflow-x: clip; /* use hidden if clip causes issues */
}

img{max-width:100%; height:auto; display:block}
a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 22px}

/* ===== Fixed backgrounds (FADE ONLY) ===== */
.bg-layer{
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:0;
  transition: opacity 900ms ease;

  /* ✅ fade-only */
  will-change: opacity;
  background-position: center;
  transform: none;
}

.bg-00{ background:#ffffff; }
.bg-01{ background:#ffffff url("assets/listing_01_full_bg_01.jpg?v=2") center/cover no-repeat; }
.bg-02{ background:#ffffff url("assets/listing_02_full_bg_01.jpg?v=2") center/cover no-repeat; }
.bg-03{ background:#ffffff url("assets/listing_03_full_bg_01.jpg?v=2") center/cover no-repeat; }
.bg-04{ background:#ffffff url("assets/listing_04_full_bg_01.jpg?v=2") center/cover no-repeat; }
.bg-05{ background:#ffffff url("assets/bg-00.jpg?v=2") center/cover no-repeat; }

body[data-bg="0"] .bg-00,
body[data-bg="1"] .bg-01,
body[data-bg="2"] .bg-02,
body[data-bg="3"] .bg-03,
body[data-bg="4"] .bg-04,
body[data-bg="5"] .bg-05{ opacity:1; }


.bg-vignette{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background: radial-gradient(1200px 900px at 50% 10%,
    rgba(255,255,255,.22) 0%,
    rgba(255,255,255,0) 55%),
    rgba(0,0,0,.06);
}

/* ===== A11y ===== */
.skip-link{
  position:absolute; left:-999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px; width:auto; height:auto;
  padding:10px 12px;
  background:var(--bg);
  border:1px solid var(--line);
  z-index:9999;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  opacity: 1; /* default visible (no-js safe) */
}

/* Only fade-in when JS is active */
html.js .site-header{
  opacity: 0;
  transition: opacity 260ms ease;
}
html.js .site-header.is-ready{
  opacity: 1;
}

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:92px; gap:16px;
}

/* Prevent flex overflow */
.header-inner{ min-width: 0; }
.brand{ min-width: 0; flex: 1 1 auto; }

/* ===== Header brand wordmark ===== */
.brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  gap:12px;
}

.brand-wordmark{
  height: 64px;
  width: auto;
  display:block;
  max-width: 420px;
  object-fit: contain;
  flex-shrink: 1;
  opacity: 1; /* default visible (no-js safe) */
}

/* Only fade/slide when JS is active */
html.js .brand-wordmark{
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 260ms ease, transform 260ms ease;
}
html.js .site-header.is-ready .brand-wordmark{
  opacity: 1;
  transform: none;
}


/* Hard cap for small phones so logo + toggle always fit */
@media (max-width: 520px){
  .brand-wordmark{
    max-width: calc(100vw - 44px - 46px - 16px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
}

@media (max-width: 920px){
  .header-inner{ min-height:84px; }
  .brand-wordmark{
    height: 46px;
    max-width: 360px;
  }
}


.site-nav{
  display:flex;
  align-items:center;
  gap:28px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
}

.site-nav a{text-decoration:none; padding:10px 0}
.site-nav a:hover{opacity:.7}
.site-nav a.active{color:var(--accent)}

.nav-toggle{
  display:none;
  background:transparent;
  border:1px solid var(--line);
  width:46px; height:46px;
  align-items:center; justify-content:center;
}
.hamburger{width:18px; height:2px; background:var(--text); position:relative}
.hamburger:before,.hamburger:after{
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text)
}
.hamburger:before{top:-6px}
.hamburger:after{top:6px}

/* ===== Typography ===== */
.kicker{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin:0 0 10px;
  color:var(--muted);
}

h1,h2,h3{margin:0}
h1{
  font-size: clamp(44px, 5vw, 64px);
  line-height:1.02;
  letter-spacing:.02em;
  text-transform:uppercase;
}
h2{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  text-align:center;
  margin:0 0 26px;
  color:var(--text);
}
p{margin:0 0 10px}
.muted{color:var(--muted)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  text-decoration:none;
  padding:11px 20px;
  border:1px solid var(--text);
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  background:transparent;
}
.btn:hover{opacity:.8}
.btn.secondary{
  border-color: rgba(0,0,0,.35);
  color: rgba(0,0,0,.85);
}
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible{
  outline:3px solid rgba(59,121,194,.22);
  outline-offset:2px;
}

.section{padding:64px 0; background:transparent;}

/* ===== Panels ===== */
.center-panel{
  background:#ffffff;
  border:1px solid rgba(0,0,0,.10);
  padding:56px 48px;
  max-width:820px;
  margin:0 auto;
}
.center-panel.soft{ background: var(--soft); }
.center-panel.wide{ max-width: 940px; }

/* ===== Hero ===== */
.hero{ padding:0; background: transparent; }
.hero-band{
  background:#ffffff;
  border-bottom:1px solid rgba(0,0,0,.10);
}
.hero-inner{
  min-height: clamp(460px, 60vh, 620px);
  display:flex;
  align-items:center;
}
.hero-copy{
  max-width: 720px;
  padding: 78px 0;
}
@media (max-width: 920px){
  .hero-copy{ padding: 56px 0; }
}


/* ===== Listing spotlight layout ===== */

.anchor{
  display:block;
  position:relative;
  top:-110px;   /* offset for sticky header */
  height:0;
}

@media (max-width: 920px){
  .anchor{ top:-96px; }
}

.listing-scene{
  min-height: 78vh;
  display:flex;
  align-items:center;
}
.listing-panel{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items:start;
}
.listing-title{
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.02;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.listing-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 8px 0 18px;
}
.pill{
  border:1px solid rgba(0,0,0,.14);
  padding: 7px 10px;
  background: rgba(255,255,255,.55);
}
.listing-price{
  color: var(--accent);
  font-weight: 800;
  letter-spacing: .04em;
  margin: 10px 0 14px;
  font-size: 18px;
}
.listing-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.detail-card{
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  padding: 18px;
}
.detail-card h3{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin:0 0 10px;
}
.detail-list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
  color: var(--muted);
}

.detail-list li{
  display:grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap:12px;
  align-items:baseline;
  border-bottom:1px solid rgba(0,0,0,.08);
  padding-bottom:8px;
}

.detail-list li > b{
  min-width:0;
}

.detail-list li > span{
  min-width:0;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:break-word; /* helps Safari */
}


.detail-list b{
  color: var(--text);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:11px;
}

/* ===== Testimonials ===== */
.quote-grid{
  max-width: 900px;
  margin:0 auto;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:22px;
}
.quote{
  border-top:1px solid rgba(0,0,0,.12);
  padding-top:16px;
}
.quote p{color:rgba(0,0,0,.72)}
.quote b{
  display:block;
  margin-top:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:12px;
}

/* ===== Contact ===== */
.contact-wrap{max-width: 940px; margin:0 auto}
.form{
  display:grid;
  gap:12px;
  border:1px solid rgba(0,0,0,.10);
  padding:22px;
  background:#fff;
}
label span{
  display:block;
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px
}
input, textarea{
  width:100%;
  padding:12px 12px;
  border:1px solid rgba(0,0,0,.14);
  font:inherit;
  background:#fff;
}
textarea{resize:vertical; min-height:120px}
.form-note{min-height:1.2em}

/* ===== Footer ===== */
.site-footer{
  border-top:1px solid var(--line);
  padding:26px 0;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  font-size:13px;
  color:var(--muted);
}

/* ===== Scroll reveal ===== */
.reveal{ opacity:1; transform:none; }
html.js .reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
  will-change: opacity, transform;
}
html.js .reveal.reveal-left{ transform: translateX(-22px); }
html.js .reveal.reveal-right{ transform: translateX(22px); }
html.js .reveal.reveal-up{ transform: translateY(22px); }
html.js .reveal.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  html.js .reveal{
    transition:none !important;
    transform:none !important;
    opacity:1 !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .listing-scene{ min-height:auto; padding:40px 0; }
  .listing-panel{ grid-template-columns:1fr; }

  .center-panel{ padding:40px 22px; }
  .quote-grid{ grid-template-columns:1fr; }

  .site-nav{
    position:absolute;
    right:22px;
    top:78px;
    flex-direction:column;
    align-items:stretch;
    background:var(--bg);
    border:1px solid var(--line);
    padding:12px 16px;
    min-width: 220px;
    display:none;
    gap:10px;
  }
  .site-header.nav-open .site-nav{display:flex}
  .nav-toggle{display:inline-flex}
}

/* ===== Thumbnails ===== */
.thumbs{
  --thumb: 76px;
  display:flex;
  gap:10px;
  margin-top:14px;
  flex-wrap:wrap;
}

.thumb{
  width:var(--thumb);
  height:var(--thumb);
  padding:0;
  border:1px solid rgba(0,0,0,.12);
  border-radius:0;
  overflow:hidden;
  background:#fff;
  cursor:pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}


.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: none;
}

.thumb:focus-visible{
  outline: 3px solid rgba(0,0,0,.35);
  outline-offset: 2px;
}

/* ===== Lightbox ===== */
body.lb-open{ overflow:hidden; }

.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;

  opacity:0;
  pointer-events:none;
  transition: opacity 180ms ease;
}
.lightbox[hidden]{ display:none; }

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity:0;
  transition: opacity 200ms ease;
}

.lightbox-dialog{
  transform: translateY(10px);
  opacity:0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.lightbox.is-open .lightbox-dialog{
  transform: translateY(0);
  opacity:1;
}

.lightbox.is-closing .lightbox-dialog{
  opacity:0;
  transform: translateY(10px);
}

.lightbox-img{
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  display:block;
  user-select:none;
}

.lightbox-close{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border-radius:0px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color:#fff;
  cursor:pointer;
}

.lightbox-nav{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  width:52px;
  height:62px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35);
  color:#fff;
  cursor:pointer;
  font-size:30px;
  line-height:1;
}

.lightbox-nav.prev{ left:12px; }
.lightbox-nav.next{ right:12px; }

.lightbox-caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:10px 14px;
  font-size:14px;
  color:rgba(255,255,255,.9);
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  text-align:center;
}

/* open state */
.lightbox.is-open{
  opacity:1;
  pointer-events:auto;
}
.lightbox.is-open .lightbox-backdrop{ opacity:1; }
.lightbox.is-open .lightbox-dialog{
  transform: translateY(0) scale(1);
  opacity:1;
}

/* closing state */
.lightbox.is-closing{
  opacity:0;
  pointer-events:none;
}
.lightbox.is-closing .lightbox-backdrop{ opacity:0; }
.lightbox.is-closing .lightbox-dialog{
  opacity:0;
  transform: translateY(10px) scale(0.985);
}




/* Mobile tap zones (keep swipe too) */
.lb-tap-zone{
  display:none;              /* ✅ default off */
  position:absolute;
  top:0;
  bottom:0;
  width:38%;
  background:transparent;
  border:0;
  padding:0;
  margin:0;
  cursor:pointer;
  z-index:4;                 /* a bit higher */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lb-tap-zone.prev{ left:0; }
.lb-tap-zone.next{ right:0; }

/* Only show tap zones on mobile */
@media (max-width: 720px){
  .lb-tap-zone{ display:block; } /* ✅ only on mobile */
}

/* Make sure close button stays above tap zones */
.lightbox-close{ z-index:5; }





/* ===== Premium mobile feel ===== */
@media (max-width: 720px){
  /* thumbs: horizontal strip */
  .thumbs{
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  
    scroll-padding-left: 22px;
    gap: 12px;
  }


  .thumb{
    flex: 0 0 var(--thumb);   /* fixed width so they don’t expand weirdly */
    scroll-snap-align:start;
  }

  .thumbs::-webkit-scrollbar{ height:6px; }
  .thumbs::-webkit-scrollbar-thumb{
    background: rgba(0,0,0,.12);
    border-radius: 0px;
  }

  /* lightbox: near full-screen */
  .lightbox-dialog{
    width: 94vw;
    height: 76vh;
    border-radius: 0px;
  }

  /* safe areas (iPhone notch) */
  .lightbox-close{
    top: calc(10px + env(safe-area-inset-top));
    right: calc(10px + env(safe-area-inset-right));
  }
  .lightbox-nav.prev{ left: calc(12px + env(safe-area-inset-left)); }
  .lightbox-nav.next{ right: calc(12px + env(safe-area-inset-right)); }
  .lightbox-caption{
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  /* optional: swipe-only on mobile */
  .lightbox-nav{ display:none; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  /* lightbox */
  .lightbox,
  .lightbox-backdrop,
  .lightbox-dialog{
    transition: none !important;
  }

  /* header/logo fade */
  html.js .site-header,
  html.js .brand-wordmark{
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ===== Mobile: show more background between listings ===== */
@media (max-width: 720px){

  /* more space between sections so BG stays visible longer */
  .section{
    padding: 96px 0;  /* was 64px */
  }

  /* listings: add extra top/bottom breathing room */
  section[id^="pp-"]{
    padding-top: 120px;
    padding-bottom: 140px;
  }

  /* ✅ Extra breathing room BEFORE the first listing only */
  #pp-01{
    padding-top: 120px;  /* try 150–220px */
  }

  /* ensure the listing scene doesn't squeeze the BG */
  .listing-scene{
    min-height: 92vh;
    align-items: center;
  }

  /* panel spacing feel */
  .center-panel{
    padding: 34px 22px; /* slightly tighter than desktop, still premium */
  }

  .listing-panel{
    gap: 18px;
  }

  /* thumbnails: a touch more spacing from content */
  .thumbs{
    margin-top: 18px;
  }
}


.bg-layer, .bg-vignette{
  inset:auto;
  top:0; left:0;
  width:100vw;
  height:100vh;
}
@supports (height: 100lvh){
  .bg-layer, .bg-vignette{ height:100lvh; }
}
