/* A listing's own page, the luxury look: a full width photograph, the address
   in white on navy with the price in gold, the facts as a gold lined strip,
   a serif reading column, an editorial photo grid, and a quiet agent card.
   The markup is the plugin's (includes/collections/listings-page.php); this
   file only dresses it. Nothing under 16px, 1280 of content, header not sticky. */
body.single-listing{background:var(--ivory)}
body.single-listing .top{position:absolute;left:0;right:0;top:0;z-index:5;background:linear-gradient(180deg,rgba(0,35,73,.78),rgba(0,35,73,0));color:#fff}
body.single-listing .culc-lp{padding:0;max-width:none;margin:0}

/* The photograph */
body.single-listing .culc-lp-gallery{display:grid;grid-template-columns:2fr 1fr;gap:6px;position:relative;margin:0;height:min(82vh,820px);min-height:460px;background:var(--ink)}

body.single-listing .culc-lp-gallery .culc-lp-shot{height:100%;border-radius:0;position:relative}
body.single-listing .culc-lp-shots-side{display:grid;grid-template-rows:1fr 1fr;gap:6px;min-height:0}
body.single-listing .culc-lp-gallery .culc-lp-shot img{width:100%;height:100%;object-fit:cover}
body.single-listing .culc-lp-shot.is-main img{width:100%;height:100%;object-fit:cover}
body.single-listing .culc-lp-shot.is-main::after,body.single-listing .culc-lp-shots-side .culc-lp-shot::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,35,73,0) 55%,rgba(0,35,73,.55) 100%);pointer-events:none}
body.single-listing .culc-lp-all{position:absolute;z-index:2;right:var(--gutter);bottom:28px;left:auto;background:rgba(255,255,255,.94);color:var(--ink);font:600 16px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;padding:16px 22px;border:1px solid rgba(203,170,92,.7)}

/* The address and the price, on navy */
body.single-listing .culc-lp-title{background:var(--ink);color:#fff;max-width:none;margin:0;padding:64px max(var(--gutter),calc((100% - 1280px)/2)) 40px;display:flex;justify-content:space-between;align-items:flex-end;gap:40px;flex-wrap:wrap}
body.single-listing .culc-lp-pill{background:none;color:var(--gold);padding:0 0 0 64px;position:relative;display:inline-block;margin-bottom:22px;font:600 16px/1 var(--sans);letter-spacing:.3em;text-transform:uppercase;border:0}
body.single-listing .culc-lp-pill::before{content:"";position:absolute;left:0;top:50%;width:48px;height:1px;background:var(--gold)}
body.single-listing .culc-lp-title h1{color:#fff;font:400 clamp(40px,5vw,76px)/1.05 var(--serif);margin:0;letter-spacing:-.005em}
body.single-listing .culc-lp-town{color:rgba(255,255,255,.78);font:italic 400 clamp(20px,1.8vw,26px)/1.4 var(--serif);margin:14px 0 0}
body.single-listing .culc-lp-price{color:var(--gold-soft);font:400 clamp(38px,4vw,60px)/1 var(--serif);margin:0}

/* The facts, as a gold lined strip */
body.single-listing .culc-lp-facts{background:var(--ink);border:0;border-top:1px solid rgba(203,170,92,.4);max-width:none;margin:0;padding:0 max(var(--gutter),calc((100% - 1280px)/2));display:grid;grid-template-columns:repeat(5,1fr);gap:0}
body.single-listing .culc-lp-facts>div{padding:34px 0 38px;border:0;border-left:1px solid rgba(203,170,92,.28);padding-left:28px;background:none}
body.single-listing .culc-lp-facts>div:first-child{border-left:0;padding-left:0}
body.single-listing .culc-lp-facts strong{display:block;color:#fff;font:400 clamp(28px,2.6vw,40px)/1.1 var(--serif)}
body.single-listing .culc-lp-facts span{display:block;color:var(--gold-soft);font:500 16px/1.3 var(--sans);letter-spacing:.2em;text-transform:uppercase;margin-top:8px}

/* The reading column */
body.single-listing .culc-lp-body{max-width:calc(1280px + (var(--gutter) * 2));margin:0 auto;padding:96px var(--gutter) 120px;display:grid;grid-template-columns:minmax(0,7fr) minmax(300px,4fr);gap:88px;align-items:start}
body.single-listing .culc-lp-main h2{font:400 clamp(32px,3vw,44px)/1.1 var(--serif);color:var(--ink);margin:0 0 28px}
body.single-listing .culc-lp-main section+section{margin-top:88px}
body.single-listing .culc-lp-prose{font:400 18px/1.9 var(--sans);color:var(--text)}
body.single-listing .culc-lp-prose strong{color:var(--ink)}
body.single-listing .culc-lp-prose .listing-courtesy{margin-top:36px;padding-top:24px;border-top:1px solid var(--gold);font:italic 400 19px/1.5 var(--serif);color:var(--muted)}

/* Photographs, edited like a magazine: every fifth runs full width */
body.single-listing .culc-lp-photos{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
body.single-listing .culc-lp-photos .culc-lp-shot{border-radius:0;aspect-ratio:3/2;overflow:hidden}
body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(5n+1){grid-column:1 / -1;aspect-ratio:16/9}
body.single-listing .culc-lp-photos .culc-lp-shot img{width:100%;height:100%;object-fit:cover;transition:transform 1.1s cubic-bezier(.2,.7,.2,1)}
body.single-listing .culc-lp-photos .culc-lp-shot:hover img{transform:scale(1.04)}

/* The details, as hairline rows */
body.single-listing .culc-lp-details{display:block;margin:0;border-top:1px solid var(--line)}
body.single-listing .culc-lp-details>div{display:flex;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}
body.single-listing .culc-lp-details dt{font:500 16px/1.4 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
body.single-listing .culc-lp-details dd{margin:0;font:400 20px/1.4 var(--serif);color:var(--ink);text-align:right}

/* The map, framed and quiet */
body.single-listing .culc-lp-frame{border:1px solid var(--gold);padding:12px;background:#fff;border-radius:0}
body.single-listing .culc-lp-frame iframe{display:block;width:100%;height:420px;border:0;filter:grayscale(.45) contrast(1.02)}
body.single-listing .culc-lp-link{display:inline-block;margin-top:40px;font:600 16px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--ink);border-bottom:1px solid var(--gold);padding-bottom:8px}

/* The agent card and the viewing request */
body.single-listing .culc-lp-side{display:grid;gap:28px}
body.single-listing .culc-lp-card,body.single-listing .culc-evt-signup.culc-lp-card{background:var(--ink);color:#fff;border:1px solid rgba(203,170,92,.5);box-shadow:0 30px 60px -40px rgba(0,35,73,.6);padding:36px;border-radius:0}
body.single-listing .culc-lp-card h2,body.single-listing .culc-lp-card h3,body.single-listing .culc-evt-signup-title{font:400 32px/1.15 var(--serif);color:#fff;margin:0 0 18px}
body.single-listing .culc-lp-card .culc-lp-eyebrow,body.single-listing .culc-lp-card [class*="eyebrow"]{color:var(--gold-soft);letter-spacing:.24em;text-transform:uppercase;font-size:16px}
body.single-listing .culc-lp-card a{color:#fff}
body.single-listing .culc-lp-card .culc-chat-b.is-them{background:rgba(255,255,255,.1);color:#fff}
body.single-listing .culc-lp-card input[type=email],body.single-listing .culc-lp-card input[type=text]{background:#fff;color:var(--ink);border-radius:0;font-size:16px}
body.single-listing .culc-lp-card .culc-qc-go,body.single-listing .culc-lp-btn.is-solid{background:var(--gold);border-color:var(--gold);color:var(--ink);border-radius:0;font:600 16px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase}
body.single-listing .culc-lp-card .culc-lp-fine,body.single-listing .culc-lp-card .culc-qc-fine{color:rgba(255,255,255,.72);font-size:16px}

@media (max-width:980px){
  body.single-listing .culc-lp-body{grid-template-columns:1fr;gap:56px;padding:64px var(--gutter) 80px}
  body.single-listing .culc-lp-facts{grid-template-columns:repeat(2,1fr)}
  body.single-listing .culc-lp-facts>div{border-left:0;padding-left:0;border-top:1px solid rgba(203,170,92,.28)}
  body.single-listing .culc-lp-facts>div:first-child{border-top:0}
  body.single-listing .culc-lp-gallery{grid-template-columns:1fr;height:auto;min-height:0}
  body.single-listing .culc-lp-gallery .culc-lp-shot.is-main{height:56vh;min-height:320px;aspect-ratio:auto}
  body.single-listing .culc-lp-shots-side{grid-template-columns:1fr 1fr;grid-template-rows:none}
  body.single-listing .culc-lp-shots-side .culc-lp-shot{height:auto;aspect-ratio:4/3}
  body.single-listing .culc-lp-photos{grid-template-columns:1fr}
  body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(5n+1){aspect-ratio:3/2}
  body.single-listing .culc-lp-title{padding-top:44px}
}

/* Everything inside the navy cards reads light */
body.single-listing .culc-lp-card,body.single-listing .culc-lp-card p,body.single-listing .culc-lp-card span,body.single-listing .culc-lp-card strong,body.single-listing .culc-lp-card dt,body.single-listing .culc-lp-card dd,body.single-listing .culc-lp-card li,body.single-listing .culc-lp-card label,body.single-listing .culc-lp-card .culc-chat-b{color:#fff}
body.single-listing .culc-lp-card .culc-chat-b.is-them{background:rgba(255,255,255,.12)}
body.single-listing .culc-lp-card input::placeholder{color:#5a6472}
body.single-listing .culc-lp-card .culc-qc-go{color:var(--ink)}

/* Everything inside the navy cards reads light */
body.single-listing .culc-lp-card,body.single-listing .culc-lp-card p,body.single-listing .culc-lp-card span,body.single-listing .culc-lp-card strong,body.single-listing .culc-lp-card dt,body.single-listing .culc-lp-card dd,body.single-listing .culc-lp-card li,body.single-listing .culc-lp-card label,body.single-listing .culc-lp-card .culc-chat-b{color:#fff}
body.single-listing .culc-lp-card .culc-chat-b.is-them{background:rgba(255,255,255,.12)}
body.single-listing .culc-lp-card input::placeholder{color:#5a6472}
body.single-listing .culc-lp-card .culc-qc-go{color:var(--ink)}

/* The hero's photographs, fading one into the next */
body.single-listing .culc-lp-shot.is-main .lp-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
body.single-listing .culc-lp-shot.is-main .lp-hero__img.is-on{opacity:1}
body.single-listing .lp-hero__nav{position:absolute;z-index:3;left:max(var(--gutter),calc((100% - 1280px)/2));bottom:28px;display:flex;align-items:center;gap:0;background:rgba(0,35,73,.78);border:1px solid rgba(203,170,92,.6)}
body.single-listing .lp-hero__btn{background:none;border:0;color:#fff;font:400 22px/1 var(--serif);width:56px;height:52px;cursor:pointer}
body.single-listing .lp-hero__btn:hover{background:var(--gold);color:var(--ink)}
body.single-listing .lp-hero__count{color:#fff;font:600 16px/1 var(--sans);letter-spacing:.14em;padding:0 20px;min-width:96px;text-align:center}

/* The owner's Edit button (only seen when signed in) goes to the end of the page, not over the photograph */
body.single-listing .culc-lp{display:flex;flex-direction:column}
body.single-listing .culc-lp>*{order:1}
body.single-listing .culc-lp>.culc-inline-edit{order:99;position:static;align-self:flex-start;margin:0 0 56px max(var(--gutter),calc((100% - 1280px)/2));background:var(--ink);color:#fff;border:1px solid var(--gold);padding:14px 22px;font:600 16px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;border-radius:0}
body.single-listing .culc-lp>.culc-inline-edit::before{content:"Owner only: "}

/* ---- The luxury pass ---- */
/* 1. Six photographs on the page, the rest in the viewer */
body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(-n+3),body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(n+9){display:none}
body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(4){grid-column:1 / -1;aspect-ratio:16/9}
body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(5n+1){grid-column:auto;aspect-ratio:3/2}
body.single-listing .culc-lp-photos .culc-lp-shot:nth-child(4){grid-column:1 / -1;aspect-ratio:16/9}
body.single-listing .culc-lp-photos .culc-lp-shot{cursor:zoom-in}
body.single-listing .culc-lp-photos{gap:28px}
body.single-listing .lp-more{margin:48px 0 0;text-align:center}
body.single-listing .lp-more__btn{background:none;border:1px solid var(--gold);color:var(--ink);font:600 16px/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;padding:20px 34px;cursor:pointer;transition:background .25s,color .25s}
body.single-listing .lp-more__btn:hover{background:var(--gold)}

/* 2. The full screen viewer */
.lp-viewer{position:fixed;inset:0;z-index:99999;background:rgba(0,16,36,.97);display:flex;align-items:center;justify-content:center}
.lp-viewer[hidden]{display:none}
.lp-viewer figure{margin:0;max-width:min(1500px,86vw);max-height:90vh;text-align:center}
.lp-viewer img{max-width:100%;max-height:82vh;object-fit:contain;display:inline-block}
.lp-viewer figcaption{color:var(--gold-soft,#e3cf9d);font:600 16px/1 var(--sans,sans-serif);letter-spacing:.2em;margin-top:20px}
.lp-viewer__a,.lp-viewer__x{position:absolute;background:none;border:1px solid rgba(203,170,92,.6);color:#fff;cursor:pointer;width:60px;height:60px;font:400 26px/1 var(--serif,serif)}
.lp-viewer__a:hover,.lp-viewer__x:hover{background:#cbaa5c;color:#002349}
.lp-viewer__a--l{left:28px;top:50%;transform:translateY(-50%)}
.lp-viewer__a--r{right:28px;top:50%;transform:translateY(-50%)}
.lp-viewer__x{right:28px;top:28px;font-size:34px}
html.lp-lock{overflow:hidden}

/* 3. The opening line */
body.single-listing .lp-lead{font:400 clamp(26px,2.6vw,36px)/1.45 var(--serif);color:var(--ink);margin:0 0 36px;padding-left:28px;border-left:2px solid var(--gold)}

/* 4. The sale, in gold under the price */
body.single-listing .culc-lp-price{text-align:right}
body.single-listing .lp-sold{display:block;margin-top:14px;font:600 16px/1.2 var(--sans);letter-spacing:.24em;text-transform:uppercase;color:var(--gold);padding-top:14px;border-top:1px solid rgba(203,170,92,.6)}

/* 5. Details in two quiet columns */
body.single-listing .culc-lp-details{display:grid;grid-template-columns:1fr 1fr;column-gap:56px;border-top:0}
body.single-listing .culc-lp-details>div{border-top:1px solid var(--line);border-bottom:0;flex-direction:column;gap:6px;padding:22px 0}
body.single-listing .culc-lp-details dd{text-align:left}

/* 6. The map, softer */
body.single-listing .culc-lp-frame iframe{filter:grayscale(.85) contrast(.95) brightness(1.02);height:380px}

/* 7. Kim's card, with her photograph */
body.single-listing .lp-agent{padding:0;overflow:hidden}
body.single-listing .lp-agent__img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;object-position:50% 20%}
body.single-listing .lp-agent__body{padding:30px 32px 34px}
body.single-listing .lp-agent__eye{font:600 16px/1 var(--sans);letter-spacing:.26em;text-transform:uppercase;color:var(--gold-soft);margin:0 0 14px}
body.single-listing .lp-agent h2{font:400 34px/1.1 var(--serif);color:#fff;margin:0 0 12px}
body.single-listing .lp-agent__lic{font:italic 400 18px/1.5 var(--serif);color:rgba(255,255,255,.82);margin:0 0 18px}
body.single-listing .lp-agent__body p{margin:0 0 6px}
body.single-listing .lp-agent a{color:#fff;border-bottom:1px solid rgba(203,170,92,.6)}

/* 9. One calm invitation in place of the chat box */
body.single-listing .lp-ask h2{font:400 36px/1.1 var(--serif);color:#fff;margin:0 0 14px}
body.single-listing .lp-ask p{margin:0 0 24px}
body.single-listing .lp-ask__btn{display:inline-block;background:var(--gold);color:var(--ink)!important;font:600 16px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;padding:20px 30px;border:0}

/* 8. Quiet motion */
body.single-listing .culc-lp-shot.is-main img{animation:lp-drift 24s ease-out both}
@keyframes lp-drift{from{transform:scale(1.06)}to{transform:scale(1)}}
body.single-listing .lp-rise{opacity:0;transform:translateY(26px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
body.single-listing .lp-rise.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){body.single-listing .culc-lp-shot.is-main img{animation:none}body.single-listing .lp-rise{opacity:1;transform:none;transition:none}}
@media (max-width:980px){body.single-listing .culc-lp-details{grid-template-columns:1fr}body.single-listing .culc-lp-price{text-align:left}.lp-viewer__a--l{left:10px}.lp-viewer__a--r{right:10px}}
