/* Places in Masinloc.

   The photography is the page. Type sits on it, never beside it in a card.
   Colours come from tokens.css; this file adds no new palette. Mobile gets the
   same art direction as desktop — a taller crop, not a shrunken one. */

.places-page{background:var(--navy-deep);color:#fff}
.places-page .site-nav{
  position:fixed;
  height:76px;
  background:linear-gradient(180deg,rgba(3,17,47,.72),rgba(3,17,47,0));
  border-bottom:0;
}
.places-page .brand img{filter:drop-shadow(0 2px 14px rgba(0,0,0,.5))}
.places-page .primary-nav a{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.45)}
.places-page .primary-nav a:not(.connect-link)::after{background:#fff}
.places-page .menu-toggle{color:#fff}

/* Opening statement --------------------------------------------------------- */
.places-hero{
  min-height:92svh;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  width:var(--content);
  margin:0 auto;
  padding:0 0 clamp(56px,7vw,104px);
}
.places-hero .section-label{
  margin:0 0 24px;
  color:var(--yellow);
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.places-hero h1{
  margin:0;
  color:#fff;
  font-family:var(--font-editorial);
  font-weight:400;
  font-size:clamp(52px,9vw,132px);
  line-height:.93;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.places-hero .lead{
  margin:30px 0 0;
  max-width:640px;
  color:rgba(255,255,255,.72);
  font-size:clamp(16px,1.5vw,20px);
  line-height:1.62;
}
.places-scroll{
  display:inline-flex;
  align-items:center;
  gap:10px;
  align-self:flex-start;
  margin-top:40px;
  padding:14px 22px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:999px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  transition:background var(--ease),border-color var(--ease),transform var(--ease);
}
.places-scroll svg{
  width:16px;height:16px;
  fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.places-scroll:hover{
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.55);
  transform:translateY(-2px);
}

/* Index rail ---------------------------------------------------------------- */
.places-index{
  position:sticky;
  /* Clears the fixed site navigation rather than sliding beneath it. */
  top:76px;
  z-index:30;
  background:rgba(3,17,47,.82);
  -webkit-backdrop-filter:saturate(150%) blur(16px);
  backdrop-filter:saturate(150%) blur(16px);
  border-top:1px solid rgba(255,255,255,.1);
  border-bottom:1px solid rgba(255,255,255,.1);
}
.places-index ol{
  width:var(--wide);
  margin:0 auto;
  padding:0;
  list-style:none;
  display:flex;
  gap:2px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
  scroll-snap-type:x proximity;
}
.places-index ol::-webkit-scrollbar{display:none}
.places-index a{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
  padding:16px 18px;
  color:rgba(255,255,255,.55);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  scroll-snap-align:center;
  border-bottom:2px solid transparent;
  transition:color var(--ease),border-color var(--ease);
}
.places-index a span{
  color:var(--yellow);
  font-size:10px;
  letter-spacing:.1em;
  opacity:.75;
}
.places-index a:hover{color:#fff}
.places-index a.is-current{
  color:#fff;
  border-bottom-color:var(--yellow);
}

/* One place ----------------------------------------------------------------- */
.place{
  position:relative;
  min-height:100svh;
  display:grid;
  align-items:end;
  isolation:isolate;
  overflow:hidden;
}
.place-media{
  position:absolute;
  inset:0;
  margin:0;
  z-index:-1;
  overflow:hidden;
  background:var(--navy);
}
.place-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  /* Each place declares where its subject sits. A plain centre crop loses the
     subject on the portrait originals. */
  object-position:var(--place-focus,50% 50%);
  /* Set by destinations.js as the section moves through the viewport. A
     generous starting scale means the pan never exposes an edge. */
  transform:scale(1.08) translate3d(0,var(--place-shift,0px),0);
  will-change:transform;
}
.place-scrim{
  position:absolute;
  inset:0;
  background:
    linear-gradient(0deg,rgba(3,17,47,.93) 0%,rgba(3,17,47,.74) 28%,rgba(3,17,47,.32) 54%,rgba(3,17,47,.04) 78%,rgba(3,17,47,.22) 100%),
    linear-gradient(90deg,rgba(3,17,47,.72) 0%,rgba(3,17,47,.28) 38%,rgba(3,17,47,0) 68%);
}

.place-copy{
  width:var(--content);
  margin:0 auto;
  padding:0 0 clamp(58px,7vw,104px);
  max-width:1240px;
}
.place-index{
  margin:0 0 18px;
  color:var(--yellow);
  font-family:var(--font-display);
  font-size:13px;
  font-weight:800;
  letter-spacing:.16em;
}
.place-index span{color:rgba(255,255,255,.4)}
.place-name{
  margin:0;
  color:#fff;
  font-family:var(--font-editorial);
  font-weight:400;
  font-size:clamp(44px,7.5vw,110px);
  line-height:.95;
  letter-spacing:-.045em;
  text-wrap:balance;
  text-shadow:0 4px 40px rgba(3,17,47,.42);
}
.place-locality{
  margin:14px 0 0;
  color:rgba(255,255,255,.66);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.place-rhyme{
  margin:26px 0 0;
  max-width:620px;
  color:rgba(255,255,255,.94);
  font-family:var(--font-editorial);
  font-size:clamp(19px,2vw,27px);
  line-height:1.45;
  letter-spacing:-.012em;
  text-wrap:pretty;
}
.place-open{
  margin-top:32px;
  padding:14px 24px;
  border:1px solid rgba(255,255,255,.32);
  border-radius:999px;
  background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  cursor:pointer;
  transition:background var(--ease),border-color var(--ease),transform var(--ease);
}
.place-open:hover{
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.6);
  transform:translateY(-2px);
}

/* Every other place leads from the right, so the sequence has a rhythm. */
.place:nth-child(even) .place-copy{
  margin-left:auto;
  margin-right:auto;
  text-align:right;
}
.place:nth-child(even) .place-rhyme{margin-left:auto}
.place:nth-child(even) .place-scrim{
  background:
    linear-gradient(0deg,rgba(3,17,47,.93) 0%,rgba(3,17,47,.74) 28%,rgba(3,17,47,.32) 54%,rgba(3,17,47,.04) 78%,rgba(3,17,47,.22) 100%),
    linear-gradient(270deg,rgba(3,17,47,.72) 0%,rgba(3,17,47,.28) 38%,rgba(3,17,47,0) 68%);
}

/* Entrance: copy settles as the place comes into view. */
html.js .place-copy>*{
  opacity:0;
  transform:translateY(26px);
}
html.js .place.is-current .place-copy>*{
  opacity:1;
  transform:none;
  transition:opacity .75s var(--ease-out),transform .75s var(--ease-out);
}
html.js .place.is-current .place-copy>*:nth-child(2){transition-delay:70ms}
html.js .place.is-current .place-copy>*:nth-child(3){transition-delay:120ms}
html.js .place.is-current .place-copy>*:nth-child(4){transition-delay:170ms}
html.js .place.is-current .place-copy>*:nth-child(5){transition-delay:220ms}

/* Full-screen viewer -------------------------------------------------------- */
.viewer{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  padding:clamp(16px,4vw,56px);
  background:rgba(3,17,47,.94);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.viewer[hidden]{display:none}
.viewer-figure{
  margin:0;
  max-width:min(1400px,100%);
  max-height:100%;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.viewer-figure img{
  width:100%;
  max-height:78svh;
  object-fit:contain;
  border-radius:6px;
}
.viewer-figure figcaption{text-align:center}
.viewer-name{
  margin:0;
  color:#fff;
  font-family:var(--font-editorial);
  font-size:clamp(24px,3vw,38px);
  font-weight:400;
  letter-spacing:-.03em;
}
.viewer-locality{
  margin:7px 0 0;
  color:rgba(255,255,255,.6);
  font-size:11px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.viewer-close,.viewer-nav{
  position:absolute;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  transition:background var(--ease),border-color var(--ease);
}
.viewer-close:hover,.viewer-nav:hover{
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.55);
}
.viewer-close{top:clamp(14px,3vw,28px);right:clamp(14px,3vw,28px);font-size:30px}
.viewer-nav{top:50%;transform:translateY(-50%)}
.viewer-prev{left:clamp(10px,2vw,26px)}
.viewer-next{right:clamp(10px,2vw,26px)}
body.viewer-open{overflow:hidden}

/* Mobile: the same art direction, in a taller frame. ------------------------ */
@media(max-width:980px){
  .places-page .site-nav{height:68px}
  .places-index{top:68px}
  .places-hero{min-height:88svh;padding-bottom:52px}
  .places-hero h1{font-size:clamp(46px,13vw,74px)}
  .places-hero .lead{font-size:16px}

  .place{min-height:100svh}
  .place-copy{padding-bottom:46px;text-align:left!important}
  .place:nth-child(even) .place-rhyme{margin-left:0}
  .place-name{font-size:clamp(40px,11.5vw,62px)}
  .place-rhyme{font-size:clamp(17px,4.6vw,22px);max-width:none}
  .place-open{width:100%;text-align:center}

  .place-scrim,
  .place:nth-child(even) .place-scrim{
    background:linear-gradient(0deg,rgba(3,17,47,.95) 0%,rgba(3,17,47,.82) 30%,rgba(3,17,47,.44) 56%,rgba(3,17,47,.08) 80%,rgba(3,17,47,.3) 100%);
  }

  .viewer-nav{width:46px;height:46px}
  .viewer-figure img{max-height:62svh}
}

@media(max-width:520px){
  .places-index a{padding:14px 14px;font-size:11px}
  .place-locality{font-size:11px;letter-spacing:.13em}
}

@media(hover:none){
  .places-scroll:hover,.place-open:hover{transform:none}
}

@media(prefers-reduced-motion:reduce){
  .place-media img{transform:scale(1.04)!important}
  html.js .place-copy>*{opacity:1!important;transform:none!important;transition:none!important}
  .places-scroll,.place-open,.viewer-close,.viewer-nav,.places-index a{transition:none}
}

/* Description, things to do and tags ---------------------------------------
   Added below the rhyme. Kept quiet so the photograph still leads: the rhyme
   is the emotional line, this is the practical detail underneath it. */
.place-description{
  margin:18px 0 0;
  max-width:560px;
  color:rgba(255,255,255,.88);
  font-size:15px;
  line-height:1.66;
}
.place-detail{
  display:grid;
  justify-items:start;
  gap:18px;
  margin-top:26px;
}
.place-todo h3{
  margin:0 0 10px;
  color:var(--yellow);
  font-family:var(--font-display);
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.place-todo ul{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:7px;
}
.place-todo li{
  position:relative;
  padding-left:18px;
  color:rgba(255,255,255,.9);
  font-size:14px;
  line-height:1.45;
}
.place-todo li::before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:7px;
  height:1.5px;
  background:var(--yellow);
}
.place-tags{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}
.place-tags li{
  padding:6px 13px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  color:rgba(255,255,255,.82);
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
}

.place-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:30px;
}
.place-open{margin-top:0}
.place-card{
  display:inline-flex;
  align-items:center;
  padding:14px 22px;
  border-radius:999px;
  color:rgba(255,255,255,.72);
  font-size:12px;
  font-weight:700;
  letter-spacing:.05em;
  transition:color var(--ease);
}
.place-card:hover{color:#fff;text-decoration:underline}

/* Right-aligned places mirror the detail block too. */
.place:nth-child(even) .place-description{margin-left:auto}
.place:nth-child(even) .place-detail{justify-items:end}
.place:nth-child(even) .place-actions{justify-content:flex-end}
.place:nth-child(even) .place-todo{text-align:right}
.place:nth-child(even) .place-todo li{padding-left:0;padding-right:18px}
.place:nth-child(even) .place-todo li::before{left:auto;right:0}

@media(max-width:980px){
  .place-copy{padding-bottom:40px}
  .place-description{font-size:14px;max-width:none}
  .place-detail{gap:20px;margin-top:22px}
  .place-todo li{font-size:13.5px}
  .place-actions{margin-top:24px;gap:8px}
  .place-open{width:auto;flex:1 1 auto}
  .place-card{padding:14px 16px}
  /* Mirroring is a desktop rhythm; on a phone everything reads left. */
  .place:nth-child(even) .place-description{margin-left:0}
  .place:nth-child(even) .place-detail{justify-items:start}
  .place:nth-child(even) .place-actions{justify-content:flex-start}
  .place:nth-child(even) .place-todo{text-align:left}
  .place:nth-child(even) .place-todo li{padding-left:18px;padding-right:0}
  .place:nth-child(even) .place-todo li::before{left:0;right:auto}
}

/* Breadcrumb: a quiet position marker above the hero, and the trail a crawler
   reads to place this page under A Closer Look. */
.crumbs{padding:96px clamp(20px,5vw,74px) 0;position:relative;z-index:4}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px;
  font:500 11.5px/1.4 var(--font-ui);letter-spacing:.06em;text-transform:uppercase}
.crumbs li{display:flex;align-items:center;gap:8px;color:rgba(255,255,255,.55)}
.crumbs li+li::before{content:"/";color:rgba(255,255,255,.3)}
.crumbs a{color:rgba(255,255,255,.72);text-decoration:none}
.crumbs a:hover{color:#fff}
.crumbs [aria-current]{color:var(--yellow)}

/* The factual line under the rhyme. The rhyme is the hook; this says what the
   place actually is and where, for a reader who has never been. */
.place-caption{
  margin:14px 0 0;max-width:52ch;
  font:400 clamp(14px,1.15vw,15.5px)/1.6 var(--font-ui);
  color:rgba(255,255,255,.78);
}
@media (max-width:820px){
  .crumbs{padding-top:84px}
  .place-caption{font-size:14px}
}

/* Research attached to a place ---------------------------------------------
   Only two entries carry this, because only two have been researched. It sits
   with the caption rather than in a block of links at the foot of the page:
   somebody reading about the church is exactly the person who wants its
   history, and a link is worth more there than in a list nobody scrolls to. */
.place-reads{
  margin:10px 0 0;
  font:400 13.5px/1.5 var(--font-ui);
}
.place-reads a{
  color:var(--white);
  text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.42);
  padding-bottom:2px;
  transition:border-color 200ms var(--ease-standard);
}
.place-reads a::after{content:" →";opacity:.75}
.place-reads a:hover,.place-reads a:focus-visible{border-bottom-color:var(--white)}
