/* ============================================================
   fl718-santo-domingo.css — v1.0.0
   Santo Domingo, Dominican Republic location page.
   All rules scoped to body.fl718-santo-domingo-page.
   ============================================================ */

body.fl718-santo-domingo-page {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: #f5f3ef;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

:where(body.fl718-santo-domingo-page) *,
:where(body.fl718-santo-domingo-page) *::before,
:where(body.fl718-santo-domingo-page) *::after {
  box-sizing: border-box;
}

body.fl718-santo-domingo-page img {
  max-width: 100%;
  display: block;
}

body.fl718-santo-domingo-page .fl718-sd-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── HERO ──────────────────────────────────────────────────── */

body.fl718-santo-domingo-page .fl718-sd-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: clip;
  background-color: #e8e4de;
}

body.fl718-santo-domingo-page .fl718-sd-hero__img-left,
body.fl718-santo-domingo-page .fl718-sd-hero__img-right {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  opacity: 0;
}

body.fl718-santo-domingo-page .fl718-sd-hero__img-left {
  clip-path: inset(0 50% 0 0);
}

body.fl718-santo-domingo-page .fl718-sd-hero__img-right {
  clip-path: inset(0 0 0 50%);
}

body.fl718-santo-domingo-page .fl718-sd-hero__seam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.55);
  transform: translateX(-50%);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}

body.fl718-santo-domingo-page .fl718-sd-hero__title-block {
  position: absolute;
  inset: auto 0 0 0;
  padding: 80px 48px 44px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

body.fl718-santo-domingo-page .fl718-sd-hero__eyebrow {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: clamp(6px, 0.7vw, 10px);
  opacity: 0;
}

body.fl718-santo-domingo-page .fl718-sd-hero__city {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4.5vw, 68px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 0.92;
  color: #ffffff;
  margin-top: clamp(6px, 0.8vw, 10px);
  opacity: 0;
}

body.fl718-santo-domingo-page .fl718-sd-hero__sub {
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(11px, 1.1vw, 15px);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
  margin-top: clamp(12px, 1.4vw, 18px);
  opacity: 0;
}

body.fl718-santo-domingo-page .fl718-sd-hero__caption {
  display: inline;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-santo-domingo-page .fl718-sd-hero__title-block,
  body.fl718-santo-domingo-page .fl718-sd-hero__eyebrow,
  body.fl718-santo-domingo-page .fl718-sd-hero__city,
  body.fl718-santo-domingo-page .fl718-sd-hero__sub {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ── GRID ───────────────────────────────────────────────────── */

body.fl718-santo-domingo-page .fl718-sd-grid {
  columns: 3;
  column-gap: 8px;
  padding: 8px;
  padding-top: 14vh;
  padding-bottom: 12vh;
}

@media (max-width: 768px) {
  body.fl718-santo-domingo-page .fl718-sd-grid {
    columns: 2;
    padding-top: 10vh;
  }
}

@media (max-width: 480px) {
  body.fl718-santo-domingo-page .fl718-sd-grid {
    columns: 1;
    padding: 8px;
    padding-top: 8vh;
    padding-bottom: 8vh;
  }
}

body.fl718-santo-domingo-page .fl718-sd-item {
  break-inside: avoid;
  margin: 0 0 8px 0;
  overflow: clip;
  cursor: pointer;
  position: relative;
  display: block;
}

body.fl718-santo-domingo-page .fl718-sd-item img {
  width: 100%;
  height: auto;
  display: block;
  clip-path: inset(0 0 100% 0);
  filter: blur(2px);
}

/* ── HOVER — "The Window Frame" ─────────────────────────────── */

body.fl718-santo-domingo-page .fl718-sd-item__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: opacity;
  background: radial-gradient(
    ellipse 62% 58% at 50% 50%,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 35%,
    rgba(6, 4, 2, 0.28) 62%,
    rgba(8, 6, 3, 0.68) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-santo-domingo-page .fl718-sd-item__veil {
    display: none !important;
  }
  body.fl718-santo-domingo-page .fl718-sd-item img {
    clip-path: none !important;
    filter: none !important;
  }
}

/* ── LIGHTBOX — "The Glass Pane" ────────────────────────────── */

body.fl718-santo-domingo-page .fl718-sd-lb-dark {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  overflow: clip;
}

body.fl718-santo-domingo-page .fl718-sd-lb-dark--active {
  pointer-events: auto;
}

body.fl718-santo-domingo-page .fl718-sd-lb-strip {
  position: absolute;
  left: 0;
  width: 100%;
  background: rgba(14, 10, 6, 0.97);
  transform: scaleY(0);
  transform-origin: top center;
}

body.fl718-santo-domingo-page .fl718-sd-lb-stage {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

body.fl718-santo-domingo-page .fl718-sd-lb-stage--active {
  pointer-events: auto;
}

body.fl718-santo-domingo-page .fl718-sd-lb-image-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: calc(100dvh - 120px);
  opacity: 0;
}

body.fl718-santo-domingo-page .fl718-sd-lb-image {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

body.fl718-santo-domingo-page .fl718-sd-lb-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: default;
}

body.fl718-santo-domingo-page .fl718-sd-lb-ui {
  position: fixed;
  inset: 0;
  z-index: 9200;
  pointer-events: none;
  opacity: 0;
}

/* BUG-044: the UI sheet is position:fixed; inset:0 at z-index 9200, so giving
   the whole sheet pointer-events:auto puts a full-viewport catcher above the
   backdrop (z-index 0) and kills backdrop-to-close. State-scoping rule: grant
   pointer-events to the interactive CHILDREN, never to the sheet itself. */
body.fl718-santo-domingo-page .fl718-sd-lb-ui--active {
  pointer-events: none;
}

body.fl718-santo-domingo-page .fl718-sd-lb-ui--active .fl718-sd-lb-close-btn,
body.fl718-santo-domingo-page .fl718-sd-lb-ui--active .fl718-sd-lb-prev,
body.fl718-santo-domingo-page .fl718-sd-lb-ui--active .fl718-sd-lb-next,
body.fl718-santo-domingo-page .fl718-sd-lb-ui--active .fl718-sd-lb-counter {
  pointer-events: auto;
}

body.fl718-santo-domingo-page .fl718-sd-lb-close-btn {
  position: absolute;
  top: clamp(1rem, 2vh, 1.6rem);
  right: clamp(1rem, 2vw, 1.6rem);
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(248, 244, 236, 0.75);
}

/* Brighten on hover ONLY where a real hovering pointer exists. On touch,
   Safari latches :hover on tap and holds it until you tap elsewhere,
   leaving the control stuck bright after the tap ends (BUG-050 family). */
@media (hover: hover) and (pointer: fine) {
  body.fl718-santo-domingo-page .fl718-sd-lb-close-btn:hover {
    color: rgba(248, 244, 236, 1);
  }
}

/* Belt and braces: even if a UA reports (hover: hover) on a touch device,
   pin the color back to rest while the finger is down and after the tap. */
@media (hover: none), (pointer: coarse) {
  body.fl718-santo-domingo-page .fl718-sd-lb-close-btn:hover,
  body.fl718-santo-domingo-page .fl718-sd-lb-close-btn:focus,
  body.fl718-santo-domingo-page .fl718-sd-lb-close-btn:active {
    color: rgba(248, 244, 236, 0.75);
  }
  /* The JS leaves focus on the close button after interaction; without
     this the focus ring persists for the rest of the session. */
  body.fl718-santo-domingo-page .fl718-sd-lb-close-btn:focus {
    outline: none;
  }
}

body.fl718-santo-domingo-page .fl718-sd-lb-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  fill: none;
}

body.fl718-santo-domingo-page .fl718-sd-lb-counter {
  position: absolute;
  bottom: clamp(1.2rem, 2.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 300;
  font-size: 0.80rem;
  color: rgba(248, 244, 236, 0.50);
  letter-spacing: 0.16em;
  white-space: nowrap;
  pointer-events: none;
}

body.fl718-santo-domingo-page .fl718-sd-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: rgba(248, 244, 236, 0.55);
  transition: color 0.2s;
}

/* Brighten on hover ONLY where a real hovering pointer exists — same
   latch-on-tap issue as the close control above. */
@media (hover: hover) and (pointer: fine) {
  body.fl718-santo-domingo-page .fl718-sd-lb-nav:hover {
    color: rgba(248, 244, 236, 0.9);
  }
}

@media (hover: none), (pointer: coarse) {
  body.fl718-santo-domingo-page .fl718-sd-lb-nav:hover,
  body.fl718-santo-domingo-page .fl718-sd-lb-nav:focus,
  body.fl718-santo-domingo-page .fl718-sd-lb-nav:active {
    color: rgba(248, 244, 236, 0.55);
  }
  body.fl718-santo-domingo-page .fl718-sd-lb-nav:focus {
    outline: none;
  }
}

body.fl718-santo-domingo-page .fl718-sd-lb-nav.fl718-sd-lb-nav--hidden {
  opacity: 0;
  pointer-events: none;
}

body.fl718-santo-domingo-page .fl718-sd-lb-prev { left: clamp(0.8rem, 2vw, 1.6rem); }
body.fl718-santo-domingo-page .fl718-sd-lb-next { right: clamp(0.8rem, 2vw, 1.6rem); }

body.fl718-santo-domingo-page .fl718-sd-lb-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

body.fl718-santo-domingo-page .fl718-sd-lb-close-btn:focus-visible,
body.fl718-santo-domingo-page .fl718-sd-lb-nav:focus-visible {
  outline: 2px solid rgba(248, 244, 236, 0.5);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body.fl718-santo-domingo-page .fl718-sd-lb-image-wrap {
    max-width: 100vw;
    max-height: 100svh;
  }
  body.fl718-santo-domingo-page .fl718-sd-lb-image {
    max-height: calc(100svh - 120px);
  }
  body.fl718-santo-domingo-page .fl718-sd-lb-prev { left: 0.25rem; }
  body.fl718-santo-domingo-page .fl718-sd-lb-next { right: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  /* BUG-075 (2026-08-27): every selector in this block MUST carry an --active
     qualifier. These four elements are permanent position:fixed DOM, hidden only
     by opacity:0 / scaleY(0) and shown by adding --active in JS.

     Unqualified, these !important rules painted a near-opaque black sheet over
     the WHOLE PAGE from first load for every reduced-motion visitor — 9 strips
     at rgba(14,10,6,0.97), z-index 9000, measured on live on both templates.
     The page read as a lightbox stuck open with no image in it.

     The JS does NOT save this: fl718-santo-domingo-v*.js sets an inline
     opacity:0 at init, but !important in a stylesheet beats a normal inline
     declaration. Reading the JS as a mitigation is how this survived a week.

     Peru had the identical defect and fixed it this way — see
     fl718-peru-v3.css:507. Rule 3 of the BUG-047 lightbox contract: scope state
     to "is open", never "always". */
  body.fl718-santo-domingo-page .fl718-sd-lb-dark--active {
    opacity: 1 !important;
  }
  body.fl718-santo-domingo-page .fl718-sd-lb-dark--active .fl718-sd-lb-strip {
    transform: scaleY(1) !important;
  }
  body.fl718-santo-domingo-page .fl718-sd-lb-stage--active .fl718-sd-lb-image-wrap {
    opacity: 1 !important;
    transform: none !important;
  }
  body.fl718-santo-domingo-page .fl718-sd-lb-ui--active {
    opacity: 1 !important;
  }
}

/* ── AFTER-CONTENT ──────────────────────────────────────────────
   Deleted 2026-08-20 (BUG-061). The section is now universal: its styles live
   in css/fl718-after-content.css scoped to body.fl718-after-content, and the
   cards in css/fl718-ws-city-system.css. Redeclaring either here would win the
   cascade over the shared file for no reason — that is the exact drift this
   component was built to end.
   ──────────────────────────────────────────────────────────────── */

/* ── NO-JS + REDUCED MOTION FALLBACKS ──────────────────────── */

@media (prefers-reduced-motion: reduce) {
  body.fl718-santo-domingo-page .fl718-sd-hero__img-left,
  body.fl718-santo-domingo-page .fl718-sd-hero__img-right {
    opacity: 1 !important;
    transform: none !important;
    filter: brightness(1.0) saturate(1.0) !important;
  }
  body.fl718-santo-domingo-page .fl718-sd-hero__title-block {
    opacity: 1 !important;
  }
}

body.fl718-santo-domingo-page:not(.fl718-js-loaded) .fl718-sd-item {
  opacity: 1;
}
body.fl718-santo-domingo-page:not(.fl718-js-loaded) .fl718-sd-item img {
  clip-path: none;
  filter: none;
}
body.fl718-santo-domingo-page:not(.fl718-js-loaded) .fl718-sd-hero__img-left,
body.fl718-santo-domingo-page:not(.fl718-js-loaded) .fl718-sd-hero__img-right {
  opacity: 1;
  filter: brightness(1.0) saturate(1.0);
}
body.fl718-santo-domingo-page:not(.fl718-js-loaded) .fl718-sd-hero__title-block {
  opacity: 1;
}
