/* Visit East Coast – the look of the Nova Scotia Gems app, made for the web.
   Colours, fonts and shapes come from the app's design (theme.ts). */

:root {
  --ink: #2F2E26;
  --ink-hover: #46443A;
  --cream: #F6EFE1;
  --paper: #FBF7EE;
  --paper-pressed: #F0E8D6;
  --muted: #6B675A;
  --terracotta: #B45A33;
  --green: #4F6B3A;
  --sea: #C6D9D6;
  --land: #D6DCB4;
  --hairline: rgba(47, 46, 38, .10);
  --border: rgba(47, 46, 38, .15);
  --shadow-card: 0 1px 2px rgba(47, 46, 38, .10);
  --shadow-float: 0 3px 10px rgba(47, 46, 38, .18);
  --shadow-lift: 0 10px 26px rgba(47, 46, 38, .14);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Karla', system-ui, sans-serif;
  --hand: 'Caveat', cursive;
  --radius: 24px;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* soft paper grain over the whole page, like the app's painted screens */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .18 0 0 0 0 .17 0 0 0 0 .13 0 0 0 .9 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p a, .muted a, .crumbs a, .credits a, .lead a { color: var(--terracotta); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.2; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.eyebrow a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.lead { font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 14px 0 0; }
.hand { font-family: var(--hand); font-weight: 600; }
.hand.big { font-size: 34px; color: var(--terracotta); margin: 18px 0 4px; }
.icon { flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 238, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; white-space: nowrap; }
.logo-visit { font: 700 26px/1 var(--hand); color: var(--terracotta); transform: rotate(-4deg); display: inline-block; }
.logo-name { font: 500 25px/1 var(--serif); letter-spacing: -.01em; }
.topnav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  font: 600 14.5px var(--sans);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--ink);
}
.topnav a:hover { background: var(--paper-pressed); }
.topnav a.soon { color: var(--muted); font-weight: 500; }
.topnav .nav-explore { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--cream); margin-left: 6px; }
.topnav .nav-explore:hover { background: var(--ink-hover); }

/* ---------- buttons, chips, badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  font: 600 15.5px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--ink-hover); }
.btn.ghost { background: var(--paper); color: var(--ink); border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--paper-pressed); }
.link { display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--sans); color: var(--terracotta); text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(47, 46, 38, .14);
  font: 600 14.5px var(--sans);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.chip:hover { background: var(--paper-pressed); }
.chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.chip.active svg { stroke: var(--cream); }

.rank {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 11.5px/1.5 var(--sans);
  white-space: nowrap;
}
.rank-must { background: var(--ink); color: var(--cream); }
.rank-worth { background: #E6E0CB; color: var(--ink); }
.rank-gem { background: #F1E3BF; color: #5E4714; }
.rank-time { color: #55524A; border-color: rgba(47, 46, 38, .28); }

.dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex: none;
}
.dot.big { width: 34px; height: 34px; }

/* ---------- home hero ---------- */
.hero { padding: 56px 0 24px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--green); }
.hero-photo { position: relative; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 600px;
  object-fit: cover;
  border-radius: 32px 32px 32px 8px;
  box-shadow: var(--shadow-lift);
}
.hero-credit {
  position: absolute;
  left: 18px;
  bottom: 40px;
  font: 700 28px var(--hand);
  color: var(--paper);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
  text-decoration: none;
  transform: rotate(-3deg);
}
.photo-credit { font-size: 12px; color: var(--muted); margin: 8px 4px 0; }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 6px 6px 6px 18px;
  max-width: 560px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 16.5px var(--sans);
  color: var(--ink);
  height: 44px;
}
.search button { height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--ink); color: var(--cream); font: 600 15px var(--sans); cursor: pointer; }
.search:focus-within { border-color: var(--ink); }

/* ---------- sections & grids ---------- */
.section { padding-top: 48px; padding-bottom: 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.with-icon { display: flex; align-items: center; gap: 12px; }
.page-head { padding: 48px 24px 28px; }
.page-head.narrow { max-width: 860px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-img { aspect-ratio: 4 / 3; background: var(--land); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 18px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 7px; font: 500 12.5px var(--sans); color: var(--muted); }
.card h3 { font-size: 19px; }
.card p { margin: 0 0 4px; font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .rank { margin-top: auto; }

.placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(251, 247, 238, .7), transparent 60%),
    color-mix(in srgb, var(--cat) 18%, var(--cream));
}

/* province & section cards */
.prov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prov-card, .sec-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}
.prov-card:hover, .sec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.prov-img, .sec-img { aspect-ratio: 16 / 10; background: var(--land); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.prov-img img, .sec-img img { width: 100%; height: 100%; object-fit: cover; }
.prov-card.soon .prov-img { background: linear-gradient(160deg, var(--sea), var(--land)); }
.prov-card.soon .hand { font-size: 30px; color: var(--ink); opacity: .7; transform: rotate(-5deg); }
.prov-body, .sec-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prov-body p:not(.eyebrow), .sec-body p:not(.eyebrow) { margin: 0; font-size: 14.5px; color: var(--muted); }
.prov-body .link { margin-top: 10px; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ---------- the painted map ---------- */
.map-frame {
  position: relative;
  height: var(--h, 560px);
  border-radius: 28px;
  overflow: hidden;
  background: var(--sea);
  box-shadow: var(--shadow-card), inset 0 0 0 1px var(--hairline);
}
.map-frame.small { border-radius: var(--radius); }
.map, .map.mapboxgl-map { position: absolute; inset: 0; } /* Mapbox would make it relative = 0 px tall */
.map-frame::after {
  /* paper grain + soft vignette on the map, like the app's painted map */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(120, 110, 70, .18);
}
.map-label {
  font: 700 24px/1 var(--hand);
  color: var(--ink);
  text-shadow: 0 0 6px var(--land), 0 0 2px var(--land);
  text-decoration: none;
  white-space: nowrap;
  text-align: center;
  cursor: pointer;
}
.map-label small { display: block; font: 600 16px var(--hand); color: var(--terracotta); }
.map-label.soon { color: #5d5a4c; }
.map-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251, 247, 238, .92);
  font: 500 13px var(--sans);
  color: var(--muted);
  box-shadow: var(--shadow-card);
  pointer-events: none;
}
.mapboxgl-popup-content {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-float);
  font-family: var(--sans);
}
.mapboxgl-popup-tip { border-top-color: var(--paper) !important; border-bottom-color: var(--paper) !important; }
.mapboxgl-popup-close-button { font-size: 20px; width: 30px; height: 30px; color: var(--ink); z-index: 2; background: rgba(251,247,238,.85); border-radius: 50%; top: 6px; right: 6px; }
.pop { display: block; width: 240px; text-decoration: none; color: var(--ink); }
.pop img, .pop .placeholder { width: 100%; height: 130px; object-fit: cover; }
.pop-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pop-body strong { font: 500 18px/1.2 var(--serif); }
.pop-body span.meta { font-size: 12.5px; color: var(--muted); }
.mapboxgl-ctrl-group { border-radius: 14px !important; background: var(--paper) !important; box-shadow: var(--shadow-float) !important; }

/* ---------- place page ---------- */
.crumbs { padding: 26px 0 18px; font-size: 14px; color: var(--muted); }
.place-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.place-media { position: relative; }
.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 28px;
  scrollbar-width: none;
  box-shadow: var(--shadow-lift);
  background: var(--land);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 14px 10px; font-size: 12px; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.gallery figcaption a { color: #fff; text-decoration: none; opacity: .92; }
.gallery.empty { aspect-ratio: 4 / 3; }
.gallery-count { position: absolute; top: 14px; right: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(251,247,238,.92); font: 600 12.5px var(--sans); }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(251,247,238,.92); box-shadow: var(--shadow-float); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.badges .chip { height: 34px; padding: 0 13px; font-size: 13.5px; }
.badges .rank { font-size: 12.5px; padding: 4px 11px; }
.where { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 12px 0 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.place-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; padding: 44px 0 12px; align-items: start; }
.place-main h2 { margin-bottom: 10px; }
.place-main h3 { margin: 28px 0 10px; }
.about p { font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.place-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 88px; }
.facts { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 6px 20px; }
.fact { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--hairline); color: var(--green); }
.fact:last-child { border-bottom: 0; }
.fact p { margin: 0; color: var(--ink); font-size: 15px; }
.fact .eyebrow { margin-bottom: 2px; color: var(--muted); }
.notice { display: flex; gap: 12px; padding: 16px 18px; margin-bottom: 26px; border-radius: 18px; background: #F4DCCB; color: #7A3418; }
.notice p { margin: 0; }
.callout { display: flex; gap: 12px; padding: 16px 18px; margin: 22px 0; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-card); color: var(--green); }
.callout p { margin: 0; color: var(--ink); }
.callout .eyebrow { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag { padding: 5px 13px; border-radius: 999px; border: 1px solid var(--border); font: 500 13.5px var(--sans); text-decoration: none; background: var(--paper); }
.tag:hover { background: var(--paper-pressed); }
.amenities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.amenities li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.amenities svg { stroke: var(--green); }

/* ---------- explore ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font: 600 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filters select {
  height: 42px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232F2E26' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  font: 500 15px var(--sans);
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
#count { margin: 6px 0 18px; }
.more { display: flex; justify-content: center; padding: 30px 0 10px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 40px 0; color: var(--muted); }
.empty-state .hand { font-size: 30px; color: var(--terracotta); display: block; }

.credits { padding-left: 20px; margin-top: 28px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--muted); }
.soon-page { padding-bottom: 32px; }

/* ---------- footer ---------- */
.footer { margin-top: 80px; padding: 48px 0 32px; background: var(--paper); border-top: 1px solid var(--hairline); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-inner p { margin: 12px 0 0; max-width: 40ch; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { text-decoration: none; font-size: 15px; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a.soon { color: var(--muted); }
.footer-small { margin-top: 32px; font-size: 13px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero-inner, .place-top, .place-body { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .prov-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .place-side { position: static; }
}
@media (max-width: 1040px) {
  .topbar-inner { height: auto; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 8px; }
  .topnav { margin: 0 -24px; padding: 0 24px; max-width: calc(100% + 48px); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .page-head { padding: 32px 16px 20px; }
  .topnav { margin: 0 -16px; padding: 0 16px; max-width: calc(100% + 32px); }
  .topnav a { padding: 7px 10px; font-size: 14px; }
  .hero { padding-top: 28px; }
  .prov-grid, .sec-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .map-frame { height: min(var(--h, 560px), 70vh); border-radius: 20px; }
  .search button { display: none; }
  .filters label { flex: 1 1 45%; }
  .filters select { width: 100%; }
}

/* ---------- trail: route map + elevation (like the app's elevation card) ---------- */
.walk-title { margin: 34px 0 14px; }
.map-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 4px 0; }
.key-line { width: 26px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, #B45A33 0 7px, transparent 7px 12px); }
.key-start, .key-turn { width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.key-start { background: var(--ink); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--border); }
.key-turn { background: var(--paper); border: 2.5px solid var(--terracotta); }
.elevation { margin-top: 18px; padding: 18px 20px 14px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 0 14px; border-left: 1px solid var(--hairline); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .eyebrow { margin: 0; }
.stat-value { margin: 2px 0 0; font: 500 26px/1.1 var(--serif); }
.readout { margin: 14px 0 6px; font-size: 14px; min-height: 1.4em; }
.chart { position: relative; height: 150px; cursor: crosshair; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--terracotta); border: 2.5px solid var(--paper); box-shadow: var(--shadow-float); pointer-events: none; }
.chart-axis { display: flex; justify-content: space-between; font-size: 12.5px; margin: 6px 0 8px; border-top: 1px solid var(--hairline); padding-top: 6px; }
@media (max-width: 640px) { .stat-value { font-size: 21px; } .stat { padding: 0 10px; } }

/* ---------- stats ribbon ---------- */
.stats-ribbon { padding: 40px 0; background: var(--ink); color: var(--cream); }
.stats-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 48px; text-align: center; }
.stats-row .stat-num { display: block; font: 500 clamp(32px, 5vw, 48px)/1 var(--serif); }
.stats-row .stat-label { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; opacity: .65; margin-top: 4px; }

/* ---------- pull-quote ---------- */
.pull-quote { padding: 56px 0; text-align: center; }
.pull-quote blockquote { font: italic clamp(22px, 3.5vw, 34px)/1.45 var(--serif); color: var(--ink); max-width: 780px; margin: 0 auto; }
.pull-quote blockquote::before { content: "\201C"; display: block; font-size: 60px; line-height: .5; color: var(--terracotta); opacity: .4; margin-bottom: 8px; }
.pull-quote cite { display: block; font: 400 15px var(--sans); font-style: normal; color: var(--muted); margin-top: 14px; }

/* ---------- why section ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.why-card { text-align: center; padding: 28px 20px; }
.why-card .why-icon { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--sea); }
.why-card h3 { font: 600 17px var(--sans); margin: 0 0 8px; }
.why-card p { font-size: 15px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ---------- category showcase (horizontal scroll) ---------- */
.showcase { overflow: hidden; }
.showcase-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 0 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.showcase-scroll::-webkit-scrollbar { display: none; }
.showcase-card { flex: none; width: 280px; scroll-snap-align: start; text-decoration: none; }
.showcase-card .card-img img { width: 280px; height: 190px; object-fit: cover; border-radius: var(--radius); }
.showcase-card .card-img .placeholder { width: 280px; height: 190px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.showcase-card h3 { font: 600 16px var(--sans); margin: 10px 0 2px; color: var(--ink); }
.showcase-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.4; }
.showcase-card .showcase-where { font-size: 13px; color: var(--muted); margin: 0 0 4px; }

/* ---------- seasonal guide ---------- */
.seasons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.season-card { padding: 24px; border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-card); }
.season-card h3 { font: 600 17px var(--sans); margin: 0 0 4px; }
.season-card .season-months { font: italic 14px var(--serif); color: var(--terracotta); margin: 0 0 10px; }
.season-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.season-card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.season-card li { font-size: 14px; color: var(--muted); padding: 3px 0; }
.season-card li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.season-card.spring li::before { background: #8DB580; }
.season-card.summer li::before { background: #D4A843; }
.season-card.autumn li::before { background: #C46A40; }
.season-card.winter li::before { background: #7EAAB0; }

/* ---------- fun facts ---------- */
.facts-band { padding: 40px 0; background: linear-gradient(160deg, #EAE3CF, #DCE3C7 60%, #CFDDD8); }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.fact-item { display: flex; gap: 14px; align-items: start; }
.fact-item .fact-num { flex: none; font: 500 28px/1 var(--serif); color: var(--terracotta); min-width: 48px; text-align: right; }
.fact-item p { font-size: 15px; color: var(--ink); line-height: 1.5; margin: 0; }
.fact-item strong { font-weight: 600; }

@media (max-width: 640px) {
  .stats-row { gap: 8px 28px; }
  .stats-row .stat-num { font-size: 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .showcase-card { width: 250px; }
  .seasons-grid { grid-template-columns: 1fr; }
}

/* ---------- "Get the app" band, app card, About page ---------- */
.app-band { margin-top: 72px; padding: 64px 0; background: linear-gradient(160deg, #EAE3CF, #DCE3C7 60%, #CFDDD8); }
.app-inner { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: center; }
.phone {
  width: 300px; height: 610px; margin: 0 auto; padding: 12px; border-radius: 48px; background: #2F2E26;
  box-shadow: 0 30px 60px rgba(47, 46, 38, .28), inset 0 0 0 2px #46443A; transform: rotate(-3deg);
}
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--cream); display: flex; flex-direction: column; }
.phone-head { padding: 34px 18px 10px; background: var(--paper); }
.phone-head .eyebrow { font-size: 9px; margin: 0; }
.phone-title { margin: 0; font: 500 26px/1 var(--serif); }
.phone-screen .map-frame { flex: 1; height: auto; border-radius: 0; box-shadow: none; }
.phone-screen .mapboxgl-ctrl-bottom-left, .phone-screen .mapboxgl-ctrl-bottom-right { transform: scale(.75); transform-origin: bottom; }
.app-text h2 { font-size: clamp(30px, 4vw, 44px); }
.app-soon { font-size: 26px; color: var(--terracotta); margin: 10px 0 0; }
.features { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.features li { display: flex; gap: 12px; }
.features strong { display: block; font: 600 15.5px var(--sans); }
.features span { font-size: 14px; color: var(--muted); }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 170px; height: 56px; padding: 0 20px;
  border-radius: 14px; background: var(--ink); color: var(--cream); text-decoration: none; line-height: 1.15;
}
.store-btn small { font-size: 11px; opacity: .8; }
.store-btn span { font: 600 18px var(--sans); }
.store-btn:hover { background: var(--ink-hover); }
.store-btn.soon { background: transparent; color: var(--muted); border: 1.5px dashed rgba(47, 46, 38, .3); cursor: default; }

.app-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow-card); text-decoration: none;
}
.app-card:hover { box-shadow: var(--shadow-lift); }
.app-card strong { display: block; font: 600 15px var(--sans); }
.app-card small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.app-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #C46A40, #A34F2C); }

.about h1 em { font-style: italic; color: var(--green); }
.about h2 { margin: 44px 0 12px; }
.about > p:not(.eyebrow):not(.lead) { font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.rank-list, .checks { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 12px; }
.rank-list li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; }
.rank-list .rank { justify-self: start; margin-top: 3px; }
.checks li { display: flex; gap: 10px; }
.checks svg { stroke: var(--green); margin-top: 3px; }

@media (max-width: 960px) {
  .app-inner { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: 260px; height: 520px; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .rank-list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ========== PREMIUM ENHANCEMENTS ========== */

/* ---------- scroll reveal (only hidden when JS is ready) ---------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.js-ready .reveal.revealed { opacity: 1; transform: none; }
.js-ready .reveal.from-left { transform: translateX(-32px); }
.js-ready .reveal.from-left.revealed { transform: none; }
.js-ready .reveal.from-right { transform: translateX(32px); }
.js-ready .reveal.from-right.revealed { transform: none; }
.js-ready .reveal.scale-in { transform: scale(.92); }
.js-ready .reveal.scale-in.revealed { transform: none; }

/* staggered children */
.js-ready .stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
}
.js-ready .stagger > .revealed { opacity: 1; transform: none; }

/* ---------- enhanced hero ---------- */
.hero { padding: 64px 0 32px; }
.hero-photo { overflow: hidden; border-radius: 32px 32px 32px 8px; }
.hero-photo img {
  transition: transform 0s linear;
  will-change: transform;
}
.hero h1 { font-size: clamp(38px, 5.5vw, 64px); }
.hero .lead { font-size: 19px; }

/* ---------- glowing accent line on section heads ---------- */
.section-head h2 { position: relative; }
.home .section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--terracotta), #D4A843);
}

/* ---------- enhanced stats ribbon ---------- */
.stats-ribbon {
  padding: 48px 0;
  background: linear-gradient(135deg, #2F2E26 0%, #3A3828 50%, #2F2E26 100%);
  position: relative;
  overflow: hidden;
}
.stats-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(180, 90, 51, .12), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(79, 107, 58, .1), transparent 60%);
  pointer-events: none;
}
.stats-row .stat-num {
  background: linear-gradient(180deg, #FBF7EE, #D4C8AA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- enhanced cards ---------- */
.card {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(47, 46, 38, .16);
}
.showcase-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1);
}
.showcase-card:hover {
  transform: translateY(-4px);
}
.showcase-card .card-img img {
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.showcase-card:hover .card-img img {
  transform: scale(1.05);
}
.showcase-card .card-img {
  overflow: hidden;
  border-radius: var(--radius);
}

/* ---------- province cards enhancement ---------- */
.prov-card .prov-img img {
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.prov-card:hover .prov-img img {
  transform: scale(1.06);
}

/* ---------- pull-quote enhancement ---------- */
.pull-quote {
  padding: 72px 0;
  position: relative;
}
.pull-quote::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--border));
  transform: translateX(-50%);
}
.pull-quote::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 48px;
  background: linear-gradient(to top, transparent, var(--border));
  transform: translateX(-50%);
}

/* ---------- enhanced why cards ---------- */
.why-card {
  padding: 32px 24px;
  border-radius: 20px;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(47, 46, 38, .1);
  background: var(--paper);
}
.why-card .why-icon {
  width: 60px;
  height: 60px;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.why-card:hover .why-icon {
  transform: scale(1.1);
}

/* ---------- enhanced season cards ---------- */
.season-card {
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s cubic-bezier(.16,1,.3,1);
  border-top: 3px solid transparent;
}
.season-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(47, 46, 38, .12);
}
.season-card.spring { border-top-color: #8DB580; }
.season-card.summer { border-top-color: #D4A843; }
.season-card.autumn { border-top-color: #C46A40; }
.season-card.winter { border-top-color: #7EAAB0; }

/* ---------- wave divider ---------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin: -1px 0;
  color: var(--cream);
}
.wave-divider.flip { transform: scaleY(-1); }
.wave-divider.to-dark { color: var(--ink); }
.wave-divider.to-gradient { color: #EAE3CF; }

/* ---------- road trip section ---------- */
.trip-section { padding: 56px 0; }
.trip-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.trip-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}
.trip-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trip-body h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.trip-body .lead { font-size: 16px; margin-top: 0; }
.trip-stops {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.trip-stops li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.trip-stops .stop-num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream);
  font: 700 13px var(--sans);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .trip-card { grid-template-columns: 1fr; }
  .trip-photo img { min-height: 220px; max-height: 260px; }
  .trip-body { padding: 28px 24px; }
}

/* ---------- newsletter CTA ---------- */
.newsletter-band {
  padding: 64px 0;
  text-align: center;
  background: linear-gradient(160deg, #2F2E26, #3A3828);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.newsletter-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(180, 90, 51, .15), transparent 70%);
  pointer-events: none;
}
.newsletter-band h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  color: var(--cream);
  position: relative;
}
.newsletter-band p {
  font-size: 17px;
  opacity: .75;
  max-width: 50ch;
  margin: 12px auto 0;
  position: relative;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 28px auto 0;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(251, 247, 238, .2);
  background: rgba(251, 247, 238, .08);
  color: var(--cream);
  font: 400 16px var(--sans);
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(251, 247, 238, .45); }
.newsletter-form input:focus { border-color: var(--terracotta); background: rgba(251, 247, 238, .12); }
.newsletter-form button {
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--terracotta);
  color: var(--cream);
  font: 600 15.5px var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.newsletter-form button:hover { background: #C46A40; }
@media (max-width: 640px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

/* ---------- smooth showcase scrollbar (webkit) ---------- */
.showcase-scroll { cursor: grab; }
.showcase-scroll:active { cursor: grabbing; }

/* ---------- topbar premium glass ---------- */
.topbar {
  background: rgba(251, 247, 238, .82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

/* ---------- footer enhancement (home only) ---------- */
.home .footer {
  background: var(--ink);
  color: var(--cream);
  border-top: none;
  margin-top: 0;
}
.home .footer .logo-visit { color: var(--terracotta); }
.home .footer .logo-name { color: var(--cream); }
.home .footer .muted, .home .footer-links a, .home .footer-small { color: rgba(251, 247, 238, .6); }
.home .footer-links a:hover { color: var(--cream); }
.home .footer-links .eyebrow { color: rgba(251, 247, 238, .4); }
.home .footer-small a { color: rgba(251, 247, 238, .6); }

/* ---------- featured place banner ---------- */
.featured-banner {
  position: relative;
  margin: 56px auto;
  max-width: var(--wrap);
  padding: 0 24px;
}
.featured-inner {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.featured-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-overlay {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.15) 60%, transparent);
  color: #fff;
}
.featured-overlay .eyebrow { color: rgba(255,255,255,.7); }
.featured-overlay h3 { font-size: clamp(24px, 3vw, 34px); color: #fff; margin-bottom: 6px; }
.featured-overlay p { font-size: 16px; color: rgba(255,255,255,.85); margin: 0; max-width: 50ch; }
.featured-overlay .btn {
  margin-top: 16px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
}
.featured-overlay .btn:hover { background: rgba(255,255,255,.3); }

/* ---------- mobile polish (≤ 480px) ---------- */
@media (max-width: 480px) {
  /* nav: tighter spacing, fade-hint on right to signal scroll */
  .topbar-inner { gap: 8px; padding-top: 10px; padding-bottom: 6px; }
  .logo-visit { font-size: 22px; }
  .logo-name { font-size: 21px; }
  .topnav { gap: 2px; -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  .topnav a { font-size: 13px; padding: 6px 8px; }
  .topnav .nav-explore { margin-left: 4px; padding: 6px 10px; }

  /* hero: tighter, bigger impact */
  .hero { padding: 20px 0 16px; }
  .hero .lead { font-size: 16px; }
  .hero-photo img { border-radius: 20px 20px 20px 6px; aspect-ratio: 3 / 2; }
  .hero-credit { font-size: 22px; bottom: 28px; left: 14px; }

  /* search */
  .search { padding: 4px 4px 4px 14px; margin-top: 20px; }
  .search input { height: 40px; font-size: 15px; }

  /* chips: smaller */
  .chips { gap: 6px; margin-top: 16px; }
  .chip { height: 36px; padding: 0 12px; font-size: 13.5px; }

  /* section spacing */
  .section { padding-top: 36px; padding-bottom: 4px; }
  .section-head { margin-bottom: 16px; }

  /* cards */
  .card h3 { font-size: 17px; }
  .card-body { padding: 12px 14px 16px; }

  /* province cards */
  .prov-body, .sec-body { padding: 14px 16px 16px; }

  /* stats ribbon */
  .stats-ribbon { padding: 28px 0; }
  .stats-row { gap: 6px 20px; }
  .stats-row .stat-num { font-size: 24px; }
  .stats-row .stat-label { font-size: 12px; }

  /* pull-quote */
  .pull-quote { padding: 40px 0; }

  /* why section */
  .why-card { padding: 20px 16px; }

  /* showcases */
  .showcase-card { width: 220px; }
  .showcase-card .card-img img { width: 220px; height: 150px; }
  .showcase-card .card-img .placeholder { width: 220px; height: 150px; }

  /* featured banner */
  .featured-banner { margin: 36px auto; padding: 0 16px; }
  .featured-inner { min-height: 240px; border-radius: 20px; }
  .featured-overlay { padding: 24px 20px; }
  .featured-overlay h3 { font-size: 22px; }
  .featured-overlay p { font-size: 14px; }
  .featured-overlay .btn { height: 42px; padding: 0 18px; font-size: 14px; }

  /* facts */
  .facts-band { padding: 28px 0; }

  /* seasons */
  .season-card { padding: 18px 16px; }

  /* app promo */
  .app-band { margin-top: 48px; padding: 40px 0; }
  .phone { width: 220px; height: 440px; padding: 10px; border-radius: 36px; }
  .phone-screen { border-radius: 28px; }
  .app-text h2 { font-size: 26px; }
  .features { gap: 14px 20px; }
  .store-btn { min-width: 140px; height: 48px; padding: 0 16px; }
  .store-btn span { font-size: 16px; }

  /* trip card */
  .trip-body { padding: 20px 18px; }
  .trip-body h3 { font-size: 22px; }
  .trip-photo img { min-height: 180px; max-height: 220px; }

  /* newsletter */
  .newsletter-band { padding: 40px 0; }
  .newsletter-band h2 { font-size: 24px; }
  .newsletter-band p { font-size: 15px; }
  .newsletter-form input { height: 46px; padding: 0 16px; }
  .newsletter-form button { height: 46px; }

  /* footer */
  .footer { margin-top: 48px; padding: 32px 0 24px; }
  .footer-inner { gap: 24px; }
  .footer-small { margin-top: 24px; }

  /* map */
  .map-frame { border-radius: 16px; }

  /* page head */
  .page-head { padding: 24px 16px 16px; }
}

/* ---------- smooth scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { transition: none !important; opacity: 1 !important; transform: none !important; }
  .showcase-card .card-img img, .prov-card .prov-img img { transition: none !important; }
}

/* ---------- category pages (/nova-scotia/waterfalls/) and the links into them ---------- */
.cat-notes { max-width: 62ch; margin: 12px 0 0; color: var(--ink); }
.rank-note { margin: 4px 0 0; max-width: 62ch; font-size: 15px; }
.by-area { margin: 14px 0 0; font-size: 15px; line-height: 1.8; }
.by-area a { color: var(--ink); font-weight: 600; text-decoration: none; }
.by-area a:hover { text-decoration: underline; text-underline-offset: 3px; }
.see-every { margin: 16px 0 0; font-size: 15px; color: var(--muted); max-width: 72ch; }
.see-every a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.see-every a:hover { text-decoration: underline; text-underline-offset: 3px; }
.more-link { margin: 18px 0 0; }
.more-link .link { white-space: normal; }
