/*!
 * Listing detail (spec D) — template-parts/sl/listing-detail.php.
 * Loaded after slipstream-ds.css on the four single listing pages.
 * Breakpoints: 960 (single column, form becomes a bottom sheet),
 * 760 (single-photo hero, crumbs hidden, compact glance), 560 (one-column lists).
 */

html:has(.sl-ld) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.sl-ld) { scroll-behavior: auto; } }

/* --------------------------------------------------------- section nav */
.sl-ld-secnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 55;
  background: var(--sl-white); border-bottom: 1px solid var(--sl-line);
  box-shadow: 0 8px 20px rgba(16, 25, 33, .06);
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform var(--sl-t-slow) ease, opacity var(--sl-t-slow) ease;
}
.sl-ld-secnav.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.sl-ld-secnav__inner {
  box-sizing: content-box; max-width: 1280px; margin: 0 auto; padding: 0 var(--sl-gutter);
  display: flex; gap: clamp(20px, 2.4vw, 32px); overflow-x: auto; scrollbar-width: none;
}
.sl-ld-secnav__inner::-webkit-scrollbar { display: none; }
.sl-root .sl-ld-secnav a {
  flex: 0 0 auto; padding: 17px 0 15px; border-bottom: 2px solid transparent;
  font-size: 15px; font-weight: 600; color: var(--sl-muted); white-space: nowrap;
}
.sl-root .sl-ld-secnav a:hover { color: var(--sl-ink); }
.sl-root .sl-ld-secnav a.is-active { color: var(--sl-ink); font-weight: 700; border-bottom-color: var(--sl-ink); }

/* ------------------------------------------------------------- gallery */
.sl-ld-gallery { position: relative; background: var(--sl-ink); }
.sl-ld-mosaic {
  display: grid; gap: 6px; height: clamp(340px, 40vw, 560px);
  grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.sl-ld-mosaic__tile {
  position: relative; display: block; min-width: 0; min-height: 0; padding: 0; border: 0; overflow: hidden;
  background: var(--sl-ink-2); cursor: zoom-in;
}
.sl-ld-mosaic__tile:first-child { grid-row: 1 / 3; }
.sl-ld-mosaic__tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--sl-ease);
}
.sl-ld-mosaic__tile:hover img { transform: scale(1.03); }
.sl-ld-mosaic__tile:focus-visible { outline: 3px solid var(--sl-lime); outline-offset: -3px; }

/* Fewer than five photos (spec D §3.3 fallbacks) */
.sl-ld-gallery--1 .sl-ld-mosaic { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.sl-ld-gallery--1 .sl-ld-mosaic__tile:first-child { grid-row: auto; cursor: default; }
.sl-ld-gallery--2 .sl-ld-mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.sl-ld-gallery--2 .sl-ld-mosaic__tile:first-child { grid-row: auto; }
.sl-ld-gallery--3 .sl-ld-mosaic { grid-template-columns: 2fr 1fr; }
.sl-ld-gallery--4 .sl-ld-mosaic__tile:nth-child(2) { grid-column: 2 / 4; }

.sl-ld-overlay {
  position: absolute; right: var(--sl-gutter); bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
}
.sl-ld-viewall {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--sl-r-pill); background: rgba(255, 255, 255, .95); color: var(--sl-ink);
  font: 700 15px/1 var(--sl-font-body); cursor: pointer; box-shadow: 0 2px 10px rgba(16, 25, 33, .18);
  transition: background var(--sl-t) ease;
}
.sl-ld-viewall:hover { background: var(--sl-white); }
.sl-ld-ovbtn {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--sl-r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .95); color: var(--sl-ink); cursor: pointer;
  box-shadow: 0 2px 10px rgba(16, 25, 33, .18);
}
.sl-ld-ovbtn:hover { background: var(--sl-white); }
.sl-ld-ovbtn[aria-pressed="true"] svg path { fill: currentColor; }
.sl-ld-ovbtn__tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 5px 10px; border-radius: var(--sl-r-sm); background: var(--sl-ink); color: var(--sl-white);
  font-size: var(--sl-fs-2xs); font-weight: 700; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity var(--sl-t-fast) ease;
}
.sl-ld-ovbtn:hover .sl-ld-ovbtn__tip, .sl-ld-ovbtn:focus-visible .sl-ld-ovbtn__tip { opacity: 1; }
.sl-ld-mback { display: none; }

/* ---------------------------------------------------------- page grid */
.sl-ld {
  box-sizing: content-box; max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 80px); align-items: start;
  padding: clamp(20px, 2.2vw, 28px) var(--sl-gutter) clamp(56px, 6vw, 96px);
}
.sl-ld__main { min-width: 0; }
.sl-ld__main > * + * { margin-top: clamp(24px, 2.6vw, 32px); }
.sl-ld__main > .sl-ld-sec, .sl-ld__main > .sl-ld-disclaimer {
  padding-top: clamp(28px, 2.8vw, 36px); border-top: 1px solid var(--sl-line);
}
.sl-ld-glance + .sl-ld-sec { border-top: 0 !important; padding-top: 0 !important; }
.sl-ld-sec { scroll-margin-top: 72px; }

/* --------------------------------------------------------- title block */
.sl-ld-title { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sl-ld-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.sl-ld-crumbs li { display: inline-flex; align-items: center; font-size: var(--sl-fs-sm); font-weight: 600; }
.sl-ld-crumbs li + li::before { content: "\203A"; margin: 0 9px; color: var(--sl-subtle); font-weight: 500; }
.sl-root .sl-ld-crumbs a { color: var(--sl-teal); }
.sl-root .sl-ld-crumbs a:hover { text-decoration: underline; }

.sl-ld-h1 {
  margin: 0; font-family: var(--sl-font-display); font-weight: 700; color: var(--sl-ink);
  font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.sl-root .sl-ld-addr { font-size: var(--sl-fs-md); font-weight: 500; color: var(--sl-muted); }
.sl-root .sl-ld-addr:hover { color: var(--sl-teal); }
.sl-root .sl-ld-addr--loc { display: inline-block; margin-bottom: 18px; color: var(--sl-teal); text-decoration: underline; text-underline-offset: 3px; }

.sl-ld-status { position: relative; }
.sl-ld-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 0; border-radius: 8px; font: 600 var(--sl-fs-sm)/1 var(--sl-font-body); color: var(--sl-ink);
}
.sl-ld-chip svg { stroke-width: 1.95; }
.sl-ld-chip--unverified { padding-left: 10px; background: #E3EEEE; cursor: pointer; }
.sl-ld-chip--unverified svg { color: var(--sl-teal); }
.sl-ld-chip--unverified:hover { background: #D2E4E4; }
.sl-ld-chip--verified { background: var(--sl-lime-tint); cursor: default; }
.sl-ld-tip {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 20; width: max-content; max-width: min(420px, 86vw);
  padding: 16px; border-radius: var(--sl-r-md); background: var(--sl-ink); color: var(--sl-white);
  font-size: var(--sl-fs-sm); line-height: 1.6; text-wrap: balance; box-shadow: 0 14px 34px rgba(16, 25, 33, .28);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--sl-t-fast) ease, transform var(--sl-t-fast) ease, visibility 0s linear var(--sl-t-fast);
}
.sl-ld-tip::before {
  content: ""; position: absolute; top: -6px; left: 22px; width: 12px; height: 12px;
  background: var(--sl-ink); transform: rotate(45deg);
}
.sl-ld-tip strong { color: var(--sl-white); }
.sl-ld-status:hover .sl-ld-tip, .sl-ld-status:focus-within .sl-ld-tip {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.sl-ld-tip__more {
  padding: 0; border: 0; background: none; color: var(--sl-teal-soft); font: 700 var(--sl-fs-sm)/1.6 var(--sl-font-body);
  cursor: pointer; text-decoration: none; text-underline-offset: 2px;
}
.sl-ld-tip__more:hover { text-decoration: underline; }

/* ------------------------------------------------------ at a glance */
.sl-ld-glance {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: clamp(22px, 2.4vw, 30px) 0 0;
  border-top: 1px solid var(--sl-line); border-bottom: 1px solid var(--sl-line);
}
.sl-ld-glance__cell { min-width: 0; padding: 16px 16px 16px 0; }
.sl-ld-glance__cell + .sl-ld-glance__cell { padding-left: 16px; border-left: 1px solid var(--sl-line); }
.sl-ld-glance dt { font-size: var(--sl-fs-sm); font-weight: 500; color: var(--sl-muted); }
.sl-ld-glance dd { margin: 4px 0 0; font-size: var(--sl-fs-md); font-weight: 700; color: var(--sl-ink); }

/* ------------------------------------------------------------ sections */
.sl-ld-h2 {
  margin: 0 0 18px; font-family: var(--sl-font-display); font-weight: 700; color: var(--sl-ink);
  font-size: clamp(21px, 1.9vw, 26px); line-height: 1.15; letter-spacing: -0.02em;
}
/* Listing copy comes from the CRM and editors: a long URL or token must wrap, not
   widen the page (UI test 23 Oct: a booking URL made a phone page 426px wide). */
.sl-ld-about, .sl-ld-checks, .sl-ld-amenities, .sl-ld-addr, .sl-ld-faq .sl-faq__a, .sl-ld-title { overflow-wrap: anywhere; }
.sl-ld-about p { max-width: 68ch; margin: 0 0 14px; font-size: 17px; line-height: 1.65; color: var(--sl-muted); text-wrap: pretty; }
.sl-ld-about p:last-child { margin-bottom: 0; }
.sl-ld-about p.sl-ld-about__sub { margin: 22px 0 6px; font-weight: 700; color: var(--sl-ink); }
.sl-ld-about p.sl-ld-about__sub:first-child { margin-top: 0; }

.sl-ld-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.sl-ld-checks li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--sl-fs-md); font-weight: 500; line-height: 1.4; color: var(--sl-ink); }
.sl-ld-checks svg { flex: 0 0 auto; margin-top: 1px; color: var(--sl-teal); stroke-width: 2.2; }

.sl-ld-amenities {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none;
}
.sl-ld-amenities li {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px;
  border-radius: 14px; background: var(--sl-sand); font-size: var(--sl-fs-md); font-weight: 600; line-height: 1.3; color: var(--sl-ink);
}
.sl-ld-amenities img { flex: 0 0 auto; width: 24px; height: 24px; }

.sl-ld-faq .sl-faq__item { box-shadow: none; border: 1px solid var(--sl-line); }
.sl-ld-faq .sl-faq__q { padding: 18px 20px; }
.sl-ld-faq .sl-faq__a { padding: 0 20px 18px; }

.sl-ld-map {
  position: relative; overflow: hidden; border-radius: var(--sl-r-xl);
  aspect-ratio: 16 / 7; min-height: 260px; background: #1B2733;
}
.sl-ld-map .gm-style { font-family: var(--sl-font-body); }

/* Map pin: label over a lime teardrop holding the category icon */
.sl-mappin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.sl-mappin__label {
  max-width: 220px; padding: 6px 10px; border-radius: var(--sl-r-sm); background: var(--sl-white); color: var(--sl-ink);
  font: 700 13px/1.2 var(--sl-font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.sl-mappin__drop {
  width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  display: flex; align-items: center; justify-content: center; background: var(--sl-lime);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.sl-mappin__drop svg { transform: rotate(45deg); color: var(--sl-ink); }

/* ------------------------------------------------- disclaimer + claim */
.sl-ld-eyebrow {
  display: block; margin: 0 0 10px; font-family: var(--sl-font-body); font-size: var(--sl-fs-2xs); font-weight: 800;
  letter-spacing: var(--sl-track-eyebrow); text-transform: uppercase; color: var(--sl-ink);
}
.sl-ld-eyebrow--dark { color: var(--sl-teal-soft); }
.sl-ld-disclaimer p { max-width: 80ch; margin: 0 0 10px; font-size: var(--sl-fs-xs); line-height: 1.55; color: var(--sl-muted); }
.sl-ld-disclaimer p:last-child { margin-bottom: 0; }

.sl-ld-claim {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--sl-ink); color: var(--sl-white);
}
.sl-ld-claim > div { flex: 1 1 280px; min-width: 0; max-width: 46ch; }
.sl-ld-claim h2 {
  margin: 0 0 8px; font-family: var(--sl-font-display); font-weight: 700; color: var(--sl-white);
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -0.025em;
}
.sl-ld-claim p { margin: 0; font-size: var(--sl-fs-md); line-height: 1.5; color: #C8D1CF; text-wrap: pretty; }
.sl-ld-claim__btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 220px; height: 54px; padding: 0 28px; border: 0; border-radius: var(--sl-r-pill);
  background: var(--sl-white); color: var(--sl-ink); font: 700 18px/1 var(--sl-font-display); letter-spacing: -0.01em; cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 25, 33, .18);
  transition: background var(--sl-t) ease, transform var(--sl-t) ease, box-shadow var(--sl-t) ease;
}
.sl-ld-claim__btn svg { stroke-width: 1.56; }
.sl-ld-claim__btn:hover { background: var(--sl-mist); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16, 25, 33, .26); }

/* ------------------------------------------------- inquiry panel (aside) */
.sl-ld__aside { position: sticky; top: 24px; transition: top var(--sl-t-slow) ease; }
.sl-root.sl-secnav-on .sl-ld__aside { top: 72px; }
.sl-ld-formcard {
  position: relative; padding: 22px; border: 1px solid var(--sl-line); border-radius: 28px;
  background: var(--sl-white); box-shadow: 0 24px 50px rgba(16, 25, 33, .10);
}
.sl-ld-formcard__title {
  margin: 4px 8px 6px; text-align: center; font-family: var(--sl-font-display); font-size: 26px; font-weight: 700;
  line-height: 1.1; letter-spacing: -0.02em; color: var(--sl-ink); text-wrap: balance;
}
.sl-ld-formcard__sub { margin: 0 8px 14px; text-align: center; font-size: var(--sl-fs-sm); line-height: 1.5; color: var(--sl-muted); text-wrap: pretty; }
.sl-ld-sheetx {
  display: none; position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: var(--sl-r-pill); background: var(--sl-sand); color: var(--sl-ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.sl-ld-trust {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 8px 0 0; padding: 0; list-style: none;
  font-size: var(--sl-fs-xs); font-weight: 600; color: var(--sl-muted);
}
.sl-ld-trust li { display: inline-flex; align-items: center; gap: 5px; }
.sl-ld-trust svg { color: var(--sl-teal); stroke-width: 2.23; }

/* Contact Form 7 markup, restyled in place (field names untouched) */
/* .sl-root prefix: the WP Customizer's Additional CSS styles .wpcf7-form site-wide
   (blue uppercase button, 8px inputs, margins) at the same specificity, and it is
   edited on production, so these must win outright. */
.sl-root .sl-inq .wpcf7-form { max-width: none; margin: 0; }
.sl-root .sl-inq .wpcf7 { margin: 0; }
.sl-root .sl-inq .wpcf7-form > p { position: relative; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.sl-root .sl-inq .wpcf7-form br { display: none; }
.sl-root .sl-inq .wpcf7-form-control-wrap { display: block; }
.sl-root .sl-inq input[type="text"], .sl-root .sl-inq input[type="tel"], .sl-root .sl-inq input[type="email"] {
  display: block; width: 100%; height: 52px; margin: 0; padding: 0 22px; border: 1px solid #D5DBD9; border-radius: var(--sl-r-pill);
  background: var(--sl-white); color: var(--sl-ink); font: 500 var(--sl-fs-md)/1 var(--sl-font-body);
  box-shadow: 0 4px 12px rgba(16, 25, 33, .05); transition: border-color var(--sl-t) ease, box-shadow var(--sl-t) ease;
}
.sl-root .sl-inq input::placeholder { color: #667679; opacity: 1; }
.sl-root .sl-inq input[type="text"]:focus, .sl-root .sl-inq input[type="tel"]:focus, .sl-root .sl-inq input[type="email"]:focus {
  outline: 0; border-color: var(--sl-teal); box-shadow: 0 0 0 3px rgba(29, 90, 102, .15), 0 6px 18px rgba(16, 25, 33, .07);
}
.sl-root .sl-inq input[aria-invalid="true"] { border-color: var(--sl-danger); }
.sl-root .sl-inq .wpcf7-not-valid-tip { display: block; margin: 6px 0 0 18px; font-size: var(--sl-fs-xs); font-weight: 600; color: var(--sl-danger); }
.sl-root .sl-inq .wpcf7-acceptance .wpcf7-list-item { margin: 2px 0 0; }
.sl-root .sl-inq .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; padding: 4px 6px 0; font-size: var(--sl-fs-xs); line-height: 1.5; color: var(--sl-muted); cursor: pointer; }
.sl-root .sl-inq .wpcf7-acceptance input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--sl-ink); }
.sl-root .sl-inq .wpcf7-acceptance a { font-weight: 700; }
.sl-root .sl-inq [class*="turnstile"] { display: flex; justify-content: center; }
.sl-root .sl-inq [class*="turnstile"]:empty { display: none; }
.sl-root .sl-inq .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; margin-top: 4px; padding: 0 24px; border: 0; border-radius: var(--sl-r-pill);
  background: var(--sl-lime); color: var(--sl-ink); font: 700 18px/1 var(--sl-font-body); text-transform: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 25, 33, .10);
  transition: background var(--sl-t) ease, transform var(--sl-t) ease, box-shadow var(--sl-t) ease, gap var(--sl-t) ease;
}
.sl-root .sl-inq .wpcf7-submit .sl-arr, .sl-modal .sl-arr { flex: 0 0 auto; display: block; }
.sl-root .sl-inq .wpcf7-submit:hover { gap: 14px; background: #C9F24F; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16, 25, 33, .14); }
.sl-root .sl-inq .wpcf7-submit:disabled { opacity: .6; cursor: progress; transform: none; }
.sl-root .sl-inq .wpcf7-spinner { display: inline-block; position: absolute; right: 18px; bottom: 15px; margin: 0; }
.sl-root .sl-inq .wpcf7-response-output { margin: 12px 0 0 !important; padding: 10px 14px !important; border-radius: var(--sl-r-md); font-size: var(--sl-fs-sm); }

/* -------------------------------------------------------- lower bands */
.sl-ld-band { padding-block: clamp(48px, 5vw, 72px); }
.sl-ld-band--sand { background: var(--sl-sand); }
.sl-ld-band__inner { max-width: var(--sl-max); margin: 0 auto; padding-inline: var(--sl-gutter); }
.sl-ld-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }

/* --------------------------------------------- mobile CTA bar + sheet */
.sl-ld-mbar, .sl-ld-scrim { display: none; }

/* --------------------------------------------------------- claim modal */
.sl-modal { position: fixed; inset: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sl-modal[hidden] { display: none; }
.sl-modal__scrim { position: absolute; inset: 0; background: rgba(16, 25, 33, .55); backdrop-filter: blur(2px); }
.sl-modal__card {
  position: relative; width: min(440px, 100%); padding: 32px; border-radius: var(--sl-r-xl);
  background: var(--sl-white); box-shadow: 0 30px 80px rgba(16, 25, 33, .32);
}
.sl-modal__x {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--sl-r-pill);
  display: flex; align-items: center; justify-content: center; background: var(--sl-sand); color: var(--sl-muted); cursor: pointer;
}
.sl-modal__x svg { width: 14px; height: 14px; }
.sl-modal__x:hover { background: var(--sl-line); }
.sl-modal__badge {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--sl-mist); color: var(--sl-teal);
}
.sl-modal__badge svg { stroke-width: 1.4; }
.sl-modal__card h2 {
  margin: 20px 0 10px; font-family: var(--sl-font-display); font-size: 26px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--sl-ink);
}
.sl-modal__card > p { margin: 0; font-size: var(--sl-fs-md); line-height: 1.6; color: var(--sl-muted); }
.sl-modal__go { margin-top: 22px; }
.sl-modal__card .sl-btn--outline { margin-top: 10px; }
.sl-modal__card .sl-btn { height: 52px; font-weight: 700; }
.sl-modal__foot { margin-top: 16px !important; text-align: center; font-size: var(--sl-fs-sm) !important; line-height: 1.5 !important; }

/* ----------------------------------------------- lightbox + photo viewer */
.sl-lightbox { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--sl-ink); }
.sl-lightbox[hidden], .sl-viewer[hidden] { display: none; }
.sl-lightbox__head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--sl-gutter); background: rgba(16, 25, 33, .92); color: var(--sl-white);
}
.sl-lightbox__count { font-size: var(--sl-fs-md); font-weight: 700; }
.sl-lightbox__x, .sl-viewer__back {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--sl-r-pill);
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: var(--sl-white); cursor: pointer;
}
.sl-lightbox__x:hover, .sl-viewer__back:hover { background: rgba(255, 255, 255, .2); }
.sl-lightbox__reel { display: flex; flex-direction: column; gap: 8px; max-width: 960px; margin: 0 auto; padding: 8px 16px 48px; }
.sl-lightbox__reel button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sl-lightbox__reel img { display: block; width: 100%; height: auto; }

.sl-viewer { position: fixed; inset: 0; z-index: 105; background: #000; color: var(--sl-white); }
.sl-viewer__head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--sl-gutter); background: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent);
}
.sl-viewer__count { font-size: var(--sl-fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }
.sl-viewer__head > span:last-child { width: 44px; }
.sl-viewer__strip {
  display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  touch-action: pan-x pinch-zoom; overscroll-behavior-x: contain;
}
.sl-viewer__strip::-webkit-scrollbar { display: none; }
.sl-viewer__slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; scroll-snap-align: center; }
.sl-viewer__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sl-viewer__nav {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 0;
  border-radius: var(--sl-r-pill); display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .9); color: var(--sl-ink); cursor: pointer;
}
.sl-viewer__nav:disabled { opacity: .3; cursor: default; }
.sl-viewer__nav--prev { left: 16px; }
.sl-viewer__nav--next { right: 16px; }

/* ================================================================ 960 */
@media (max-width: 960px) {
  .sl-ld { grid-template-columns: minmax(0, 1fr); }
  .sl-ld__aside { display: none; position: static; }
  .sl-ld__aside.is-open {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90;
    max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  }
  .sl-ld__aside.is-open .sl-ld-formcard {
    border: 0; border-radius: 24px 24px 0 0; box-shadow: none;
    padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
  }
  .sl-ld__aside.is-open .sl-ld-formcard__title { padding: 0 44px; }
  .sl-ld-sheetx { display: flex; }
  .sl-ld-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(16, 25, 33, .6); }

  .sl-ld-mbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--sl-white); border-top: 1px solid var(--sl-line); box-shadow: 0 -8px 24px rgba(16, 25, 33, .08);
  }
  .sl-ld-mbar__text { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--sl-ink); }
  .sl-ld-mbar__btn {
    flex: 0 0 auto; height: 50px; padding: 0 26px; border: 0; border-radius: var(--sl-r-pill);
    background: var(--sl-lime); color: var(--sl-ink); font: 700 16px/1 var(--sl-font-body); cursor: pointer;
  }
  .sl-root:has(.sl-ld-mbar) .sl-footer { padding-bottom: 96px; }
  .sl-ld-guides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .sl-ld-guides::-webkit-scrollbar { display: none; }
  .sl-ld-guides > * { flex: 0 0 min(78%, 320px); min-width: 260px; scroll-snap-align: start; }
}

/* ================================================================ 760 */
@media (max-width: 760px) {
  .sl-ld-mosaic { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; height: clamp(300px, 82vw, 480px); }
  .sl-ld-mosaic__tile:first-child { grid-row: auto; grid-column: auto; }
  .sl-ld-mosaic__tile:not(:first-child) { display: none; }
  .sl-ld-viewall { display: none; }
  .sl-ld-overlay { top: 16px; bottom: auto; right: 12px; gap: 2px; }
  .sl-ld-ovbtn { background: transparent; box-shadow: none; color: var(--sl-white); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
  .sl-ld-ovbtn svg { width: 26px; height: 26px; }
  .sl-ld-ovbtn:hover { background: transparent; }
  .sl-ld-ovbtn__tip { top: calc(100% + 6px); bottom: auto; }
  /* Design 22 Oct: Share is a white circle like Back; the heart sits on the photo as on the cards. */
  .sl-ld-overlay { gap: 8px; }
  .sl-ld-ovbtn.ss-action--share, .sl-ld-ovbtn.ss-action--share:hover {
    background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(16, 25, 33, .18); color: var(--sl-ink); filter: none;
  }
  .sl-ld-ovbtn.ss-action--share svg { width: 20px; height: 20px; }
  .sl-ld-ovbtn.ss-action--save:not([aria-pressed="true"]) svg path { fill: rgba(16, 25, 33, .45); }
  .sl-ld-mback {
    display: flex; position: absolute; top: 16px; left: 16px; z-index: 2; width: 44px; height: 44px;
    align-items: center; justify-content: center; border-radius: var(--sl-r-pill);
    background: rgba(255, 255, 255, .95); box-shadow: 0 2px 10px rgba(16, 25, 33, .18);
  }
  .sl-root .sl-ld-mback { color: var(--sl-ink); }

  .sl-ld-crumbs { display: none; }
  .sl-ld-glance { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .sl-ld-glance__cell { padding: 12px 10px 12px 0; }
  .sl-ld-glance__cell + .sl-ld-glance__cell { padding-left: 10px; }
  .sl-ld-glance dt { font-size: var(--sl-fs-2xs); }
  .sl-ld-glance dd { font-size: var(--sl-fs-sm); line-height: 1.3; }
  .sl-ld-map { aspect-ratio: 4 / 5; }
  .sl-ld-tip { display: none; }   /* touch: the chip opens the claim dialog instead */
  .sl-viewer__nav { display: none; }
}

/* ================================================================ 560 */
@media (max-width: 560px) {
  .sl-ld-checks { grid-template-columns: 1fr; }
  .sl-ld-amenities { grid-template-columns: 1fr; }
}

/* Signed-in inquiry form (assets/ds/slipstream-account.js): filled fields are hidden,
   a card says who it's from; "Request sent" when this listing already has one. */
.sl-root .sl-inq [hidden] { display: none !important; }
.sl-root .sl-inq .sl-inq-me {
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 0 14px; padding: 20px 22px; border-radius: 18px;
  background: var(--sl-mist); color: var(--sl-ink);
}
.sl-root .sl-inq .sl-inq-me p { margin: 0; }
.sl-root .sl-inq .sl-inq-me__label { margin-bottom: 6px !important; font-size: var(--sl-fs-2xs); font-weight: 800; letter-spacing: var(--sl-track-eyebrow); text-transform: uppercase; color: var(--sl-teal); }
.sl-root .sl-inq .sl-inq-me__name { font-size: var(--sl-fs-lg); font-weight: 700; line-height: 1.3; }
.sl-root .sl-inq .sl-inq-me__line { font-size: var(--sl-fs-base); color: var(--sl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-root .sl-inq .sl-inq-me__actions { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px !important; }
.sl-root .sl-inq .sl-inq-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 var(--sl-fs-base)/1.4 var(--sl-font-body); color: var(--sl-teal);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.sl-root .sl-inq .sl-inq-link:hover { color: var(--sl-teal-deep); }
/* Editing: "Your contact details" + Done in place of the card. */
.sl-root .sl-inq .sl-inq-edit { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; padding: 0 6px 4px; }
.sl-root .sl-inq .sl-inq-edit__title { font-size: var(--sl-fs-sm); font-weight: 700; color: var(--sl-ink); }
.sl-root .sl-inq .sl-inq-edit .sl-inq-link { font-size: var(--sl-fs-sm); text-decoration: none; }
.sl-root .sl-inq .sl-inq-edit .sl-inq-link:hover { text-decoration: underline; }
/* One line of text: it's a <p> straight under the form, which the field rule above stacks as a column. */
.sl-root .sl-inq .wpcf7-form > .sl-inq-signin { display: block; margin: 0 0 12px; font-size: var(--sl-fs-sm); color: var(--sl-muted); }
.sl-root .sl-inq .sl-inq-signin a { font-weight: 700; }
.sl-root .sl-inq .wpcf7-form.is-sent > p,
.sl-root .sl-inq .wpcf7-form.is-sent > .wpcf7-response-output,
.sl-root .sl-inq .wpcf7-form.is-sent > .sl-inq-me { display: none; }
.sl-root .sl-inq .sl-inq-sent { padding: 18px; border-radius: var(--sl-r-md); background: var(--sl-lime-tint); color: var(--sl-ink); }
.sl-root .sl-inq .sl-inq-sent p { margin: 0; }
.sl-root .sl-inq .sl-inq-sent__title { font-family: var(--sl-font-display); font-size: 20px; font-weight: 700; }
.sl-root .sl-inq .sl-inq-sent__text { margin-top: 4px !important; font-size: var(--sl-fs-sm); color: var(--sl-muted); }
.sl-root .sl-inq .sl-inq-sent__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 12px !important; }
.sl-root .sl-inq .sl-inq-sent__my { font-weight: 700; }
