/* ==========================================================================
   content.css — SPB Paradise "travel zine" skin
   (article pages + reviews grid + hotel data bar)

   Design language taken from the site's own Muse-era identity: flat blue
   #29ABE2 / #0071BC, warm brown ink #534741, cream #FAF5E5, hard offset
   shadows instead of soft glows, 2px ink borders, square corners, Julius
   Sans One display caps. Components are built to NOT resemble the
   story-note / artcard / bookbox family used by the other builder sites:
   stamp aside, numbered section rules, ink-framed filmstrip, blue score
   block, press-down tile hover.

   The recovered Muse css files stay untouched; everything article-specific
   lives here (zine head, story, story-stamp, hero mosaic, hotel ticket,
   lightbox, revgrid, pagefoot).
   ========================================================================== */

@font-face {
  font-family: "Julius Sans One";
  src: url("../fonts/juliussansone-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #29abe2;
  --blue-dark: #0071bc;
  --blue-ink: #08597f;
  --ink: #534741;
  --cream: #faf5e5;
  --paper: #ffffff;
  --text: #4a403a;
  --muted: #7d7269;
  --bg: #f4f3ec;
  --rule: rgba(83, 71, 65, .28);
  --pop-blue: 7px 7px 0 rgba(41, 171, 226, .9);
  --pop-ink: 7px 7px 0 rgba(83, 71, 65, .18);
  --radius: 2px;
  --heading: "Julius Sans One", "Segoe UI", Arial, sans-serif;
  --body: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.75 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ==========================================================================
   ARTICLE PAGE — zine head
   ========================================================================== */

.article {
  max-width: 900px; margin: 0 auto; padding: 38px 20px 64px;
}
.zine-head { margin: 0 0 14px; }
.zine-kicker {
  margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted);
}
.zine-kicker-tag {
  background: var(--ink); color: var(--cream); padding: 5px 12px 4px;
}
.zine-kicker time { letter-spacing: .14em; }
.story-h1 {
  font-family: var(--heading); font-weight: 400;
  font-size: 2rem; line-height: 1.28; letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink); margin: 0 0 18px;
}
/* marker swipe under the headline — the zine signature */
.zine-head::after {
  content: ""; display: block; width: 84px; height: 6px;
  background: var(--blue); box-shadow: 7px 7px 0 rgba(41, 171, 226, .35);
}

/* ---- body typography: sections between ink rules -------------------------- */
.story-intro { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.6em; }
.story-text { max-width: 780px; margin-left: auto; margin-right: auto; }
.story-text h2 {
  font-family: var(--body); font-weight: 700;
  font-size: 1.22rem; line-height: 1.4; color: var(--ink);
  margin: 2.1em 0 .6em; padding-top: .85em;
  border-top: 2px solid var(--rule);
}
.story-text h3 { font-size: 1.12rem; color: var(--ink); margin: 1.7em 0 .5em; }
.story-text p { margin: .85em 0; }
.story-text ul, .story-text ol { margin: .85em 0; padding-left: 1.5em; }
.story-text li { margin: .3em 0; }
.story-text li::marker { color: var(--blue-dark); }
.story-text blockquote {
  margin: 1.4em 0; padding: .9em 1.2em;
  border: 2px solid var(--ink); border-left-width: 8px;
  background: var(--cream); color: var(--ink);
}
.story-text pre {
  background: var(--cream); border: 2px solid var(--ink);
  padding: 12px 14px; overflow-x: auto; font-size: .9em;
}
.story-text code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .92em; }
.story-text table { border-collapse: collapse; width: 100%; margin: 1.2em 0; font-size: .95em; }
.story-text th, .story-text td {
  border: 2px solid var(--rule); padding: 8px 12px;
  text-align: left; vertical-align: top;
}
.story-text th { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.story-text hr { border: 0; border-top: 2px solid var(--rule); margin: 2.2em 0; }
.story-text img { border: 2px solid var(--ink); }

/* ==========================================================================
   "HUMAN-WRITTEN" STAMP — flat dashed stamp, unlike any sibling site
   ========================================================================== */

.story-stamp {
  display: flex; gap: 14px; align-items: flex-start;
  border: 2px dashed var(--blue-dark); background: var(--cream);
  padding: 15px 18px; margin: 0 0 36px;
}
.story-stamp-badge {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--blue-dark); color: #fff;
}
.story-stamp-badge svg { transform: rotate(-8deg); }
.story-stamp-tag {
  display: block; font-family: var(--heading);
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--blue-dark); margin: 2px 0 4px;
}
.story-stamp p { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink); }

/* ==========================================================================
   HERO MOSAIC — magazine top: wide photo left, two stacked right
   ========================================================================== */

.hero-mosaic {
  display: grid; gap: 6px; padding: 8px;
  background: var(--ink); border: 2px solid var(--ink);
  margin: 0 0 36px;
}
.mosaic-cell {
  padding: 0; border: 0; background: none; overflow: hidden;
  cursor: zoom-in; line-height: 0;
}
.mosaic-cell img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .15s ease;
}
.mosaic-cell:hover img { opacity: .78; }
.mosaic-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 230px 230px; }
.mosaic-3 .mosaic-cell--0 { grid-row: 1 / 3; }
.mosaic-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 300px; }
.mosaic-1 { grid-template-columns: minmax(0, 1fr); grid-template-rows: 360px; }
@media (max-width: 640px) {
  .mosaic-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 190px 110px 110px; }
  .mosaic-3 .mosaic-cell--0 { grid-column: 1 / 3; grid-row: 1; }
  .mosaic-2 { grid-template-rows: 170px; }
  .mosaic-1 { grid-template-rows: 220px; }
}

/* ---- inline figure above h2 ------------------------------------------------ */
.story-photo {
  margin: 2.4em 0 1.2em; overflow: hidden; line-height: 0;
  border: 2px solid var(--ink); box-shadow: var(--pop-ink);
  cursor: zoom-in;
}
.story-photo img { display: block; width: 100%; height: auto; }

/* ---- listicles: one page, a ranked list of hotels -------------------------- */
/* Each hotel section: its zine-framed photo directly below the h2
   (margins tightened for the under-heading spot) + a compact per-hotel
   availability CTA in the same ink-frame language. */
.list-photo { margin: .4em 0 1.6em; }
.zine-list-cta { margin: 1.1em 0 0; }
.zine-list-cta .zine-cta-btn { display: inline-block; padding: 10px 22px; font-size: .85rem; }

/* ==========================================================================
   HOTEL TICKET — score stub + perforation + fact body + CTA column
   (layout rendered by js/hotel-data.js)
   ========================================================================== */

hotel-data { display: block; margin: 0 0 36px; }
.ticket {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: var(--pop-blue);
  position: relative;
}
/* punched notches on the stub perforation */
.ticket::before, .ticket::after {
  content: ""; position: absolute; left: 150px; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--ink);
}
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.ticket-stub {
  background: var(--blue-dark); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 18px 12px;
  border-right: 2px dashed var(--ink);
}
.ticket-score { font-size: 2.1rem; font-weight: 700; line-height: 1; }
.ticket-stars {
  position: relative; display: inline-block;
  font-size: .7rem; line-height: 1; letter-spacing: 1px;
  color: rgba(255, 255, 255, .42);
}
.ticket-stars-bg { white-space: nowrap; }
.ticket-stars-fg {
  position: absolute; top: 0; left: 0;
  overflow: hidden; white-space: nowrap; color: #ffd76a;
}
.ticket-count { font-size: .68rem; color: rgba(255, 255, 255, .82); white-space: nowrap; }
.ticket-body {
  padding: 18px 20px; min-width: 0;
  display: flex; flex-direction: column; gap: 10px; justify-content: center;
}
.ticket-name {
  font-family: var(--heading); font-weight: 400;
  font-size: 1.15rem; color: var(--ink); line-height: 1.35;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.ticket-tag {
  font-family: var(--body); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--cream);
  border: 2px solid var(--ink); padding: 2px 9px;
}
.ticket-facts { display: flex; flex-direction: column; gap: 5px; }
.ticket-fact {
  display: flex; align-items: flex-start; gap: 8px; width: fit-content;
  font-size: .88rem; color: var(--muted); text-decoration: none;
}
.ticket-fact svg { flex: 0 0 auto; color: var(--blue-dark); margin-top: 3px; }
a.ticket-fact:hover { color: var(--blue-ink); text-decoration: underline; }
.ticket-cta {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.5; padding: 12px 10px;
  border-left: 2px dashed var(--ink);
  transition: background-color .15s ease;
}
.ticket-cta:hover { background: var(--blue-ink); color: #fff; }
.ticket--nostub { grid-template-columns: minmax(0, 1fr) 150px; }
.ticket--nostub::before, .ticket--nostub::after { display: none; }
@media (max-width: 640px) {
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket::before, .ticket::after { display: none; }
  .ticket-stub {
    flex-direction: row; justify-content: center; gap: 14px;
    border-right: 0; border-bottom: 2px dashed var(--ink);
    padding: 12px;
  }
  .ticket-score { font-size: 1.5rem; }
  .ticket-cta {
    border-left: 0; border-top: 2px dashed var(--ink);
    padding: 13px;
  }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(52, 44, 39, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw; max-height: 84vh;
  border: 3px solid #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  width: 44px; height: 44px; font-size: 22px; line-height: 1;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.lightbox button:hover { background: var(--blue); border-color: var(--blue); }
.lightbox-x { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   REVIEWS GRID — zine tiles (homepage section + /reviews/ index)
   clear:both: the whole Muse page content lives inside the floated
   full-bleed hero (#ppslideshowu723, float:left). Without clearance the
   section's box overlaps that float and every line box inside is
   displaced past the float's bottom edge. Same mechanism Muse itself
   uses on .verticalspacer.
   ========================================================================== */

.revgrid {
  padding: 54px 0 62px; clear: both;
  background: var(--cream);
  border-top: 2px solid var(--ink);
}
.revgrid-in { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
.revgrid-head {
  font-family: var(--heading); font-weight: 400;
  margin: 0; text-align: center; font-size: 1.65rem;
  letter-spacing: .04em; text-transform: uppercase; color: var(--ink);
}
.revgrid-head::after {
  content: ""; display: block; width: 52px; height: 6px;
  background: var(--blue); margin: 14px auto 0;
}
.revgrid-sub {
  margin: 14px 0 34px; text-align: center; color: var(--muted); font-size: .95rem;
}
.revgrid-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px 24px; }
.revgrid-list-page { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* the tile: 2px ink frame + hard blue offset shadow, press-down hover */
.ztile {
  display: flex; flex-direction: column;
  background: var(--paper); border: 2px solid var(--ink);
  box-shadow: var(--pop-blue);
  text-decoration: none; color: inherit;
  transition: transform .12s ease, box-shadow .12s ease;
}
.ztile:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 rgba(41, 171, 226, .9);
  color: inherit;
}
.ztile-img { border-bottom: 2px solid var(--ink); line-height: 0; }
.ztile-img img { display: block; width: 100%; height: 165px; object-fit: cover; }
.ztile-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.ztile-hotel {
  font-size: .68rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--blue-dark); margin-bottom: 7px;
}
.ztile-title { margin: 0 0 8px; font-size: 1.02rem; line-height: 1.45; color: var(--ink); }
.ztile-text {
  margin: 0 0 14px; font-size: .88rem; line-height: 1.6; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ztile-meta {
  margin-top: auto; padding: 6px 10px;
  background: var(--cream); border-left: 5px solid var(--blue);
  font-size: .78rem; font-weight: 600; color: var(--ink);
}

/* featured first tile: wide, image beside the text (desktop only) */
@media (min-width: 701px) {
  .revgrid-list .ztile:first-child {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
  .revgrid-list .ztile:first-child .ztile-img {
    border-bottom: 0; border-right: 2px solid var(--ink);
  }
  .revgrid-list .ztile:first-child .ztile-img img { height: 100%; min-height: 250px; }
  .revgrid-list .ztile:first-child .ztile-body { padding: 24px 28px 26px; }
  .revgrid-list .ztile:first-child .ztile-title { font-size: 1.28rem; }
}
/* featured tile with no photo: fall back to a full-width simple tile */
.revgrid-list .ztile:first-child:not(:has(.ztile-img)) { display: flex; grid-column: 1 / -1; }

.revgrid-more {
  display: table; margin: 34px auto 0; padding: 11px 26px;
  border: 2px solid var(--ink); background: var(--blue); color: #fff;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; box-shadow: var(--pop-ink);
  transition: background-color .15s ease, transform .12s ease, box-shadow .12s ease;
}
.revgrid-more:hover {
  background: var(--blue-ink); color: #fff;
  transform: translate(3px, 3px); box-shadow: 4px 4px 0 rgba(83, 71, 65, .18);
}

/* Muse's site_global sets a:link {color:#00F; text-decoration:underline}
   (0,1,1) which outranks single-class selectors — re-assert our styles on
   the grid anchors with higher specificity. */
.revgrid a.ztile, .revgrid a.ztile:link { color: inherit; text-decoration: none; }
.revgrid a.revgrid-more, .revgrid a.revgrid-more:link { color: #fff; text-decoration: none; }

/* ==========================================================================
   ARTICLE PAGE FOOTER
   ========================================================================== */

.pagefoot { background: var(--ink); color: #efe9df; margin-top: 46px; border-top: 5px solid var(--blue); }
.pagefoot-in {
  max-width: 1024px; margin: 0 auto; padding: 34px 20px 38px;
  text-align: center; font-size: .85rem; line-height: 1.8;
}
.pagefoot-brand {
  font-family: var(--heading); letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
}
.pagefoot-addr { color: #cfc6bb; }
.pagefoot a { color: var(--blue); text-decoration: none; }
.pagefoot a:hover { color: #fff; }
.pagefoot-copy { margin-top: 10px; color: #a89e93; font-size: .78rem; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 640px) {
  .article { padding: 26px 16px 48px; }
  .story-h1 { font-size: 1.45rem; }
  .revgrid { padding: 40px 0 46px; }
  .revgrid-list { gap: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .ztile, .ztile:hover, .revgrid-more, .revgrid-more:hover,
  .mosaic-cell img, .zine-cta-btn, .ticket-cta, .zine-cta-btn { transition: none; transform: none; }
}

/* ==========================================================================
   CLOSING CTA BAND (magazine spread) — replaces the old sidebar
   ========================================================================== */

.zine-cta {
  margin: 46px 0 0;
  background: var(--blue-dark); border: 2px solid var(--ink);
  box-shadow: var(--pop-blue);
  color: #fff; padding: 24px 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 30px; align-items: center;
}
.zine-cta-head {
  font-family: var(--heading); font-weight: 400; font-size: 1.15rem;
  letter-spacing: .06em; text-transform: uppercase; color: #fff;
  grid-column: 1;
}
.zine-cta-sub { margin: 0; font-size: .9rem; color: rgba(255, 255, 255, .85); grid-column: 1; }
.zine-cta-sub strong { color: #fff; }
.zine-cta-btn {
  grid-column: 2; grid-row: 1 / span 3;
  display: block; text-align: center; padding: 13px 24px;
  background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .92rem; letter-spacing: .05em; text-transform: uppercase;
  border: 2px solid var(--ink);
  transition: background-color .15s ease;
}
.zine-cta-btn:hover { background: var(--cream); color: var(--ink); }
.zine-cta-disc {
  grid-column: 1; margin-top: 6px;
  font-size: .72rem; line-height: 1.5; color: rgba(255, 255, 255, .72);
}
@media (max-width: 640px) {
  .zine-cta { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .zine-cta-btn { grid-column: 1; grid-row: auto; margin-top: 12px; }
}
/* slim top variant: sits between the spec strip and the first h2 */
.zine-cta--top {
  margin: 0 0 42px;
  padding: 14px 22px;
  gap: 2px 26px;
}
.zine-cta--top .zine-cta-head { font-size: 1rem; }
.zine-cta--top .zine-cta-btn { padding: 10px 20px; }
