/* fl718-santa-fe-v3.css — Santa Fe desktop+shared base styles
   v1.0.3 (2026-08-12): lightbox UI sheet no longer swallows backdrop taps.
   Version: 1.0.1
   Last updated: 2026-08-12
   Body class: fl718-location-santa-fe
   All rules scoped to body.fl718-location-santa-fe */

/* ------------------------------------------------------------
   BASE RESET & BODY
   ------------------------------------------------------------ */
body.fl718-location-santa-fe {
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background-color: #f5ede4;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

:where(body.fl718-location-santa-fe) *,
:where(body.fl718-location-santa-fe) *::before,
:where(body.fl718-location-santa-fe) *::after {
  box-sizing: border-box;
}

body.fl718-location-santa-fe img {
  max-width: 100%;
  display: block;
}

/* ------------------------------------------------------------
   VISUALLY HIDDEN
   ------------------------------------------------------------ */
body.fl718-location-santa-fe .fl718-sf-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 SECTION
   calc(100vh + 56px) with margin-top:-56px — prevents gap from fixed nav.
   ============================================================ */

body.fl718-location-santa-fe .fl718-sf-hero {
  position: relative;
  width: 100%;
  height: calc(100vh + 56px);
  margin-top: -56px;
  overflow: clip;
  background-color: #f0e0ce;
}

body.fl718-location-santa-fe .fl718-sf-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
  display: block;
}

/* ============================================================
   IRIS VEIL — "The Eye Opens"
   mix-blend-mode: destination-out punch through dark veil.
   ============================================================ */

body.fl718-location-santa-fe .fl718-sf-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  isolation: isolate;
  background: rgba(10, 6, 4, 0.97);
  pointer-events: none;
}

body.fl718-location-santa-fe .fl718-sf-hero__veil-hole {
  position: absolute;
  border-radius: 50%;
  background: black;
  mix-blend-mode: destination-out;
  top: 24%;
  left: 76%;
  width: 220vmax;
  height: 220vmax;
}

/* ============================================================
   HERO OVERLAY — Title + Subtitle
   ============================================================ */

body.fl718-location-santa-fe .fl718-sf-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

body.fl718-location-santa-fe .fl718-sf-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(18, 8, 3, 0.52) 0%,
    rgba(18, 8, 3, 0.20) 40%,
    transparent 62%
  );
  opacity: 0;
}

body.fl718-location-santa-fe .fl718-sf-hero__text {
  position: absolute;
  top: 0;
  left: 0;
  max-width: clamp(280px, 34vw, 560px);
  padding: clamp(3.25rem, 5.5vw, 5.5rem) 0 0 clamp(1.5rem, 3.5vw, 3.5rem);
  text-align: left;
}

body.fl718-location-santa-fe .fl718-sf-hero__title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-variation-settings: 'opsz' 9, 'WONK' 1, 'wght' 300;
  font-size: clamp(2.0rem, 4.8vw, 5.8rem);
  letter-spacing: 0.015em;
  line-height: 1.14;
  text-transform: none;
  color: rgba(255, 248, 234, 0.90);
  display: block;
  margin: 0 0 0.55em 0;
  opacity: 0;
}

body.fl718-location-santa-fe .fl718-sf-hero__subtitle {
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-weight: 300;
  font-size: clamp(0.95rem, 1.15vw, 1.08rem);
  letter-spacing: 0.22em;
  line-height: 1.5;
  font-style: italic;
  color: rgba(255, 240, 218, 0.92);
  display: block;
  margin: 0;
  opacity: 0;
}

/* ============================================================
   GALLERY GRID — 2-col alternating editorial layout
   Odd: 64% right-aligned. Even: 64% left-aligned. 14vh gap.
   ============================================================ */

body.fl718-location-santa-fe .fl718-sf-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(2rem, 4vw, 4rem);
  padding-top: 14vh;
  padding-bottom: 12vh;
}

body.fl718-location-santa-fe .fl718-sf-item {
  overflow: clip;
  opacity: 0;
  cursor: pointer;
  position: relative;
  transform-origin: center center;
}

body.fl718-location-santa-fe .fl718-sf-item img {
  width: 100%;
  height: auto;
  display: block;
}

body.fl718-location-santa-fe .fl718-sf-grid .fl718-sf-item:nth-child(odd) {
  width: 64%;
  margin-left: auto;
  margin-bottom: 14vh;
}

body.fl718-location-santa-fe .fl718-sf-grid .fl718-sf-item:nth-child(even) {
  width: 64%;
  margin-right: auto;
  margin-bottom: 14vh;
}

body.fl718-location-santa-fe .fl718-sf-grid .fl718-sf-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  body.fl718-location-santa-fe .fl718-sf-grid {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 10vh;
  }
  body.fl718-location-santa-fe .fl718-sf-grid .fl718-sf-item:nth-child(odd),
  body.fl718-location-santa-fe .fl718-sf-grid .fl718-sf-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 8vh;
  }
  body.fl718-location-santa-fe .fl718-sf-grid .fl718-sf-item:last-child {
    margin-bottom: 0;
  }
}

/* ============================================================
   WARM GLOW OVERLAY — "Adobe Warmth"
   ============================================================ */

body.fl718-location-santa-fe .fl718-sf-item__warm-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  will-change: opacity;
}

body.fl718-location-santa-fe .fl718-sf-item__warm-glow--color {
  background: radial-gradient(
    ellipse 80% 75% at 50% 50%,
    rgba(210, 165, 110, 0.22) 0%,
    rgba(200, 145, 90, 0.14) 40%,
    rgba(190, 130, 75, 0.05) 70%,
    transparent 90%
  );
  mix-blend-mode: screen;
}

body.fl718-location-santa-fe .fl718-sf-item__warm-glow--bw {
  background: radial-gradient(
    ellipse 80% 75% at 50% 50%,
    rgba(215, 215, 215, 0.12) 0%,
    rgba(200, 200, 200, 0.07) 45%,
    transparent 75%
  );
  mix-blend-mode: soft-light;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-location-santa-fe .fl718-sf-item__warm-glow {
    display: none !important;
  }
  body.fl718-location-santa-fe .fl718-sf-item img {
    filter: none !important;
  }
}

/* ============================================================
   LIGHTBOX — "The Aperture"
   Three fixed layers. Circular clip-path iris.
   ============================================================ */

body.fl718-location-santa-fe .fl718-sf-ap-dark {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(16, 8, 4, 0.97);
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
}

body.fl718-location-santa-fe .fl718-sf-ap-dark--active {
  pointer-events: auto;
}

body.fl718-location-santa-fe .fl718-sf-ap-stage {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
}

body.fl718-location-santa-fe .fl718-sf-ap-stage--active {
  pointer-events: auto;
}

body.fl718-location-santa-fe .fl718-sf-ap-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 120px);
  max-height: calc(100dvh - 120px);
}

body.fl718-location-santa-fe .fl718-sf-ap-image {
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  will-change: opacity;
}

body.fl718-location-santa-fe .fl718-sf-ap-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: default;
}

body.fl718-location-santa-fe .fl718-sf-ap-ui {
  position: fixed;
  inset: 0;
  z-index: 9200;
  pointer-events: none;
  opacity: 0;
}

/* The UI layer is a full-viewport (inset:0) sheet at z-index 9200, above the
   backdrop (z-index 0, inside the stage at 9100). Giving the whole sheet
   pointer-events:auto made it swallow every backdrop tap, so tap-outside-to-
   close never worked on desktop OR mobile. Keep the sheet transparent to
   pointers and re-enable them only on the controls that need them.
   Verified 2026-08-12: without this, elementFromPoint over the backdrop
   returns #sfApUi (or a nav button), never #sfApBackdrop. */
body.fl718-location-santa-fe .fl718-sf-ap-ui--active {
  pointer-events: none;
}

body.fl718-location-santa-fe .fl718-sf-ap-ui--active .fl718-sf-ap-close-btn,
body.fl718-location-santa-fe .fl718-sf-ap-ui--active .fl718-sf-ap-nav {
  pointer-events: auto;
}

body.fl718-location-santa-fe .fl718-sf-ap-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(255, 244, 228, 0.75);
}

@media (hover: hover) and (pointer: fine) {
  body.fl718-location-santa-fe .fl718-sf-ap-close-btn:hover {
    color: rgba(255, 244, 228, 1);
  }
}
@media (hover: none), (pointer: coarse) {
  body.fl718-location-santa-fe .fl718-sf-ap-close-btn:hover,
  body.fl718-location-santa-fe .fl718-sf-ap-close-btn:focus,
  body.fl718-location-santa-fe .fl718-sf-ap-close-btn:active {
    color: rgba(255, 244, 228, 0.75);
  }
  body.fl718-location-santa-fe .fl718-sf-ap-close-btn:focus {
    outline: none;
  }
}

body.fl718-location-santa-fe .fl718-sf-ap-close-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  fill: none;
}

body.fl718-location-santa-fe .fl718-sf-ap-counter {
  position: absolute;
  bottom: clamp(1.2rem, 2.5vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fraunces', Georgia, serif;
  font-variation-settings: 'opsz' 9, 'WONK' 1, 'wght' 300;
  font-weight: 300;
  font-size: 0.82rem;
  color: rgba(255, 244, 228, 0.55);
  letter-spacing: 0.14em;
  white-space: nowrap;
  pointer-events: none;
}

body.fl718-location-santa-fe .fl718-sf-ap-badge {
  position: absolute;
  bottom: clamp(2.6rem, 4.5vh, 3.8rem);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 244, 228, 0.38);
  pointer-events: none;
  white-space: nowrap;
}

body.fl718-location-santa-fe .fl718-sf-ap-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(255, 244, 228, 0.55);
  transition: color 0.2s;
}

@media (hover: hover) and (pointer: fine) {
  body.fl718-location-santa-fe .fl718-sf-ap-nav:hover {
    color: rgba(255, 244, 228, 0.9);
  }
}
@media (hover: none), (pointer: coarse) {
  body.fl718-location-santa-fe .fl718-sf-ap-nav:hover,
  body.fl718-location-santa-fe .fl718-sf-ap-nav:focus,
  body.fl718-location-santa-fe .fl718-sf-ap-nav:active {
    color: rgba(255, 244, 228, 0.55);
  }
  body.fl718-location-santa-fe .fl718-sf-ap-nav:focus {
    outline: none;
  }
}

body.fl718-location-santa-fe .fl718-sf-ap-prev { left: clamp(0.8rem, 2vw, 1.6rem); }
body.fl718-location-santa-fe .fl718-sf-ap-next { right: clamp(0.8rem, 2vw, 1.6rem); }

body.fl718-location-santa-fe .fl718-sf-ap-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

body.fl718-location-santa-fe .fl718-sf-ap-close-btn:focus-visible,
body.fl718-location-santa-fe .fl718-sf-ap-nav:focus-visible {
  outline: 2px solid rgba(255, 244, 228, 0.5);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  body.fl718-location-santa-fe .fl718-sf-ap-image-wrap {
    max-width: 100vw;
    max-height: 100svh;
  }
  body.fl718-location-santa-fe .fl718-sf-ap-image {
    max-height: calc(100svh - 120px);
  }
  body.fl718-location-santa-fe .fl718-sf-ap-prev { left: 0.25rem; }
  body.fl718-location-santa-fe .fl718-sf-ap-next { right: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-location-santa-fe .fl718-sf-ap-dark {
    clip-path: circle(150% at 50% 50%) !important;
    -webkit-clip-path: circle(150% at 50% 50%) !important;
  }
  body.fl718-location-santa-fe .fl718-sf-ap-stage {
    clip-path: circle(150% at 50% 50%) !important;
    -webkit-clip-path: circle(150% at 50% 50%) !important;
  }
  body.fl718-location-santa-fe .fl718-sf-ap-ui {
    opacity: 1 !important;
  }
}

@media (max-width: 600px) {
}

@media (max-width: 375px) {
}

/* ============================================================
   PREFERS-REDUCED-MOTION + NO-JS FALLBACKS
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  body.fl718-location-santa-fe .fl718-sf-item {
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
  }
  body.fl718-location-santa-fe .fl718-sf-hero__veil {
    display: none !important;
  }
  body.fl718-location-santa-fe .fl718-sf-hero__gradient,
  body.fl718-location-santa-fe .fl718-sf-hero__title,
  body.fl718-location-santa-fe .fl718-sf-hero__subtitle {
    opacity: 1 !important;
  }
}

body.fl718-location-santa-fe:not(.fl718-js-loaded) .fl718-sf-item {
  opacity: 1;
  filter: none;
}

body.fl718-location-santa-fe:not(.fl718-js-loaded) .fl718-sf-hero__veil {
  display: none;
}

body.fl718-location-santa-fe:not(.fl718-js-loaded) .fl718-sf-hero__gradient,
body.fl718-location-santa-fe:not(.fl718-js-loaded) .fl718-sf-hero__title,
body.fl718-location-santa-fe:not(.fl718-js-loaded) .fl718-sf-hero__subtitle {
  opacity: 1;
}

/* ============================================================================
 * DANLANN THREAD / HOVER ZONE / MENU RECALL — relocated here 2026-08-21
 * ----------------------------------------------------------------------------
 * BUG-061 Phase B. These three components were the ONLY definition site-wide
 * inside fl718-santa-fe-mobile-v3.css, which was misnamed: it was a MIXED file
 * carrying correctly media-queried mobile rules PLUS these desktop-wide
 * component styles. Ten other pages (Denver, China, Grand Canyon, Monument
 * Valley, SW Road Notes, Poetry...) define them in their DESKTOP stylesheet;
 * Santa Fe was the outlier.
 *
 * That is why the "mobile" file could not simply be given a wp_is_mobile()
 * guard — measured at 1440x900, guarding it made the thread and hover zone
 * `static` at 0px and put the menu recall in document flow at 1440px wide.
 * The fix is relocation, not a guard: the rules move here, into the desktop
 * file where every other page keeps them, and the remainder of the mobile file
 * becomes genuinely mobile-only and safely gateable.
 *
 * MOVED VERBATIM from fl718-santa-fe-mobile-v3.css lines 125-191, including
 * @keyframes fl718SantaFeThreadBreathe — the animation dies if the keyframes
 * do not travel with the rule that references them.
 *
 * Verified before and after at 1440x900: thread fixed 2px z-9999 breathing,
 * hover zone fixed 40px z-9998, recall fixed top 6px z-10000.
 * ==========================================================================*/

/* ------------------------------------------------------------
   MENU CURTAIN — thread + recall glyph
   Markup lives in page-santa-fe-mobile.php but had no styling
   anywhere — the nav bar could hide but the recall glyph was
   invisible and untappable. Matches the site-wide amber pattern
   used on Denver/China/Southwest Road Notes.
   ------------------------------------------------------------ */
body.fl718-location-santa-fe #fl718-danlann-thread {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(180,140,80,0.6) 30%, rgba(180,140,80,0.85) 50%, rgba(180,140,80,0.6) 70%, transparent 100%);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: height 0.2s ease;
}

body.fl718-location-santa-fe #fl718-danlann-thread.fl718-danlann-thread--breathing {
  animation: fl718SantaFeThreadBreathe 3.8s ease-in-out infinite;
}

@keyframes fl718SantaFeThreadBreathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.95; }
}

body.fl718-location-santa-fe #fl718-danlann-hover-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 9998;
  display: none;
  cursor: pointer;
}

body.fl718-location-santa-fe #fl718-menu-recall {
  position: fixed;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: rgba(180,140,80,0.75);
  user-select: none;
  line-height: 1;
}

body.fl718-location-santa-fe #fl718-menu-recall:focus-visible {
  outline: 2px solid rgba(180,140,80,0.6);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  body.fl718-location-santa-fe #fl718-danlann-thread.fl718-danlann-thread--breathing {
    animation: none;
    opacity: 0.7;
  }
}

/* ─────────────────────────────────────────────────────────────
   AFTER-CONTENT (.fl718-sf-after*) — REMOVED 2026-08-21, BUG-061 B5.
   0 page-private rules deleted. This page now renders the shared
   partial (template-parts/after-content.php), styled by
   fl718-after-content.css on desktop and fl718-after-content-mobile-v2.css
   on mobile. The markup these rules targeted no longer exists.

   Safety was established by RENDERING, not grepping (plan §12b): the live
   page was snapshotted at the real viewport, re-rendered with these rules
   stripped, and every element's computed styles diffed. Zero differences.
   ───────────────────────────────────────────────────────────── */
