/* ==========================================================================
   Voyage — Free Travel Guide / Blog Template by uiCookies
   Concept:  A field journal for slow travelers. Atlas grid + wanderlust editorial.
   Palette:  Deep Fir #16302B · Pine #24463F · Sand Paper #F6F2E9
             Golden Ochre #D98A2B · Lagoon Teal #2E7D74 · Stone #7C7566
   Type:     Fraunces (display) + Archivo (body)
   ========================================================================== */

:root {
  --ink:        #16302B;
  --ink-2:      #24463F;
  --pine:       #35594F;
  --paper:      #F6F2E9;
  --paper-2:    #FCFAF3;
  --card:       #FFFFFF;
  --ochre:      #D98A2B;
  --ochre-dk:   #BE7419;
  --teal:       #2E7D74;
  --teal-dk:    #226158;
  --stone:      #7C7566;
  --line:       #E4DDCD;
  --line-dk:    rgba(246,242,233,.14);

  --shadow-sm:  0 1px 2px rgba(22,48,43,.06), 0 6px 18px rgba(22,48,43,.06);
  --shadow-md:  0 10px 34px rgba(22,48,43,.13);
  --shadow-lg:  0 26px 60px rgba(22,48,43,.20);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  --wrap: 1200px;
  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
  font-optical-sizing: auto;
}

p { margin: 0 0 1.1rem; }
a { color: var(--teal-dk); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--ochre-dk); }
img { max-width: 100%; display: block; }
ul { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* Accessibility */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  border-radius: var(--r-sm); font-weight: 600; transition: top .2s ease;
}
.skip-link:focus { top: 16px; color: var(--paper); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; border-radius: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Shared bits ---------- */
.kicker {
  font-family: var(--ff-body);
  font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .22em;
  color: var(--ochre-dk);
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem;
}
.kicker::before {
  content: ""; width: 26px; height: 2px; background: var(--ochre);
  display: inline-block; border-radius: 2px;
}
.kicker--center { justify-content: center; }

.coords {
  font-family: var(--ff-body);
  font-variant-numeric: tabular-nums;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .1em; color: var(--stone);
  text-transform: uppercase;
}

.tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase;
  padding: .34rem .66rem; border-radius: 100px;
  background: rgba(46,125,116,.12); color: var(--teal-dk);
}
.tag--sun { background: rgba(217,138,43,.15); color: var(--ochre-dk); }
.tag--solid { background: var(--ink); color: var(--paper); }

.meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
  font-size: .82rem; color: var(--stone); font-weight: 500;
}
.meta svg { width: 15px; height: 15px; flex: none; opacity: .8; }
.meta-item { display: inline-flex; align-items: center; gap: .38rem; }

.section-head { max-width: 640px; margin: 0 0 2.8rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.section-head p { color: var(--stone); font-size: 1.08rem; margin-bottom: 0; }
.section-head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; max-width: none; flex-wrap: wrap;
}
.section-head--split .head-copy { max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--ff-body); font-weight: 600; font-size: .95rem;
  padding: .85rem 1.5rem; border-radius: 100px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
  text-align: center; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ochre); color: #2A1B06; border-color: var(--ochre); }
.btn-primary:hover { background: var(--ochre-dk); border-color: var(--ochre-dk); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-2); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(22,48,43,.28); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(246,242,233,.4); }
.btn-ghost-light:hover { background: rgba(246,242,233,.1); color: var(--paper); border-color: var(--paper); }
.btn-block { width: 100%; }

.textlink {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; color: var(--ink);
}
.textlink svg { width: 16px; height: 16px; transition: transform .2s ease; }
.textlink:hover { color: var(--ochre-dk); }
.textlink:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(246,242,233,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(22,48,43,.09); background: rgba(246,242,233,.96); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; height: 74px;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--ff-display); font-weight: 600; font-size: 1.5rem;
  color: var(--ink); letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--ochre); border-radius: 50%;
}
.brand .mark svg { width: 20px; height: 20px; }

.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-menu a {
  font-size: .96rem; font-weight: 500; color: var(--ink);
  position: relative; padding: .3rem 0;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ochre); transition: width .22s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-menu a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; border: 1.5px solid var(--line);
  color: var(--ink); cursor: pointer; transition: all .18s ease;
}
.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 991px) {
  .nav-menu { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: var(--r-sm);
    background: var(--ink); border: none; color: var(--paper); cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
  .mobile-nav {
    position: fixed; inset: 0; z-index: 1500;
    background: var(--ink); color: var(--paper);
    padding: 5rem 2rem 2rem;
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column;
  }
  .mobile-nav.open { transform: translateX(0); }
  .mobile-nav a { color: var(--paper); font-family: var(--ff-display); font-size: 1.9rem; padding: .55rem 0; border-bottom: 1px solid var(--line-dk); }
  .mobile-nav a:hover { color: var(--ochre); }
  .mobile-nav .btn { margin-top: 1.6rem; }
  .mobile-close {
    position: absolute; top: 1.4rem; right: 1.4rem;
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-dk);
    background: transparent; color: var(--paper); cursor: pointer; display: grid; place-items: center;
  }
  .mobile-close svg { width: 22px; height: 22px; }
}
.mobile-nav { display: none; }
@media (max-width: 991px) { .mobile-nav { display: flex; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,29,26,.35) 0%, rgba(15,29,26,.55) 55%, rgba(15,29,26,.9) 100%),
    linear-gradient(90deg, rgba(15,29,26,.6) 0%, rgba(15,29,26,.15) 60%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding: clamp(6rem, 12vw, 9rem) 0 clamp(3rem, 6vw, 4.5rem);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper); background: rgba(246,242,233,.14);
  border: 1px solid rgba(246,242,233,.22);
  padding: .45rem .9rem; border-radius: 100px; margin-bottom: 1.6rem;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ochre); }
.hero h1 {
  color: var(--paper);
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 600; max-width: 15ch; margin-bottom: 1.1rem;
}
.hero h1 em { font-style: italic; font-weight: 300; color: var(--ochre); }
.hero-lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: rgba(246,242,233,.9); max-width: 46ch; margin-bottom: 2.1rem;
}

/* Search card */
.search-card {
  background: rgba(252,250,243,.97);
  border-radius: var(--r-md);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: .6rem; max-width: 760px;
}
.search-field { display: flex; flex-direction: column; gap: .25rem; text-align: left; padding: .35rem .5rem; }
.search-field label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--stone);
  display: inline-flex; align-items: center; gap: .35rem;
}
.search-field label svg { width: 14px; height: 14px; color: var(--teal-dk); }
.search-field input, .search-field select {
  border: none; background: transparent; font-family: var(--ff-body);
  font-size: 1rem; font-weight: 500; color: var(--ink); padding: .15rem 0; width: 100%;
}
.search-field input::placeholder { color: #A79F8E; }
.search-field:focus-within { outline: none; }
.search-field select { cursor: pointer; }
.search-divider { width: 1px; background: var(--line); align-self: stretch; margin: .3rem 0; }
.search-card .btn { align-self: stretch; }

.hero-trending {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem;
  margin-top: 1.6rem; font-size: .9rem;
}
.hero-trending .lbl { color: rgba(246,242,233,.7); font-weight: 600; letter-spacing: .04em; }
.chip {
  color: var(--paper); border: 1px solid rgba(246,242,233,.3);
  padding: .34rem .85rem; border-radius: 100px; font-size: .85rem; font-weight: 500;
  transition: all .18s ease;
}
.chip:hover { background: var(--ochre); border-color: var(--ochre); color: #2A1B06; }

.hero-stats {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 2.4rem;
  border-top: 1px solid rgba(246,242,233,.18);
  padding: 1.6rem 0 0; margin-top: 2.4rem;
}
.hero-stats .num { font-family: var(--ff-display); font-size: 2rem; font-weight: 600; color: var(--paper); line-height: 1; }
.hero-stats .lbl { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(246,242,233,.7); margin-top: .35rem; }

@media (max-width: 720px) {
  .search-card { grid-template-columns: 1fr; }
  .search-divider { display: none; }
  .search-field { border-bottom: 1px solid var(--line); }
  .search-field:last-of-type { border-bottom: none; }
}

/* ==========================================================================
   Featured Destinations — asymmetric magazine grid
   ========================================================================== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 1.4rem;
}
.dest-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
  min-height: 260px;
}
.dest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dest-card .frame {
  position: relative; background: var(--ink-2); overflow: hidden; flex: 1 1 auto; min-height: 180px;
}
.dest-card .frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.dest-card:hover .frame img { transform: scale(1.06); }
.dest-card .frame .tag { position: absolute; top: 14px; left: 14px; background: rgba(252,250,243,.94); }
.dest-card .body { padding: 1.15rem 1.25rem 1.35rem; }
.dest-card .body h3 { font-size: 1.28rem; margin-bottom: .5rem; }
.dest-card .body h3 a { color: var(--ink); }
.dest-card .body h3 a:hover { color: var(--ochre-dk); }

/* Feature (tall) card overlays text on image */
.dest-card--feature {
  grid-row: span 2; min-height: 520px; color: var(--paper);
}
.dest-card--feature .frame { position: absolute; inset: 0; }
.dest-card--feature .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,26,0) 30%, rgba(15,29,26,.85) 100%);
}
.dest-card--feature .body {
  position: relative; z-index: 2; margin-top: auto; padding: 1.6rem 1.6rem 1.8rem;
}
.dest-card--feature .body h3 { font-size: clamp(1.7rem, 2.4vw, 2.2rem); }
.dest-card--feature .body h3 a { color: var(--paper); }
.dest-card--feature .body h3 a:hover { color: var(--ochre); }
.dest-card--feature .body p { color: rgba(246,242,233,.85); margin-bottom: .9rem; }
.dest-card--feature .coords { color: rgba(246,242,233,.75); }
.dest-card--feature .frame .tag { background: var(--ochre); color: #2A1B06; }

.dest-card .card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line);
}
.dest-card--feature .card-foot { border-color: rgba(246,242,233,.22); }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .dest-card--feature { grid-row: span 2; grid-column: span 2; min-height: 420px; }
}
@media (max-width: 620px) {
  .featured-grid { grid-template-columns: 1fr; }
  .dest-card--feature { grid-column: span 1; min-height: 380px; }
}

/* ==========================================================================
   Latest Guides — feed rows
   ========================================================================== */
.guides { background: var(--paper-2); }
.guide-list { display: flex; flex-direction: column; gap: 0; }
.guide-row {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 1.8rem; align-items: center;
  padding: 1.8rem 0; border-top: 1px solid var(--line);
}
.guide-row:last-child { border-bottom: 1px solid var(--line); }
.guide-thumb {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--ink-2);
}
.guide-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.guide-row:hover .guide-thumb img { transform: scale(1.05); }
.guide-thumb .num {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-display); font-size: .95rem; font-weight: 600;
  background: rgba(15,29,26,.72); color: var(--paper);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
}
.guide-body h3 { font-size: 1.55rem; margin-bottom: .5rem; }
.guide-body h3 a { color: var(--ink); }
.guide-body h3 a:hover { color: var(--ochre-dk); }
.guide-body p { color: var(--stone); margin-bottom: .8rem; }
.guide-tags { display: flex; gap: .5rem; margin-bottom: .7rem; flex-wrap: wrap; }
.guide-cta { text-align: right; white-space: nowrap; }
.guide-cta .arrow-round {
  width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink); transition: all .2s ease; margin-left: auto;
}
.guide-row:hover .arrow-round { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.guide-cta .arrow-round svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .guide-row { grid-template-columns: 180px 1fr; }
  .guide-cta { display: none; }
}
@media (max-width: 560px) {
  .guide-row { grid-template-columns: 1fr; gap: 1rem; }
  .guide-thumb { aspect-ratio: 16 / 9; }
}

/* ==========================================================================
   Popular Regions
   ========================================================================== */
.regions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.region-card {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  aspect-ratio: 3 / 4; background: var(--ink-2); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.region-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.region-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,26,.05) 30%, rgba(15,29,26,.82) 100%);
}
.region-card:hover img { transform: scale(1.07); }
.region-body { position: relative; z-index: 2; padding: 1.3rem; }
.region-body h3 { color: var(--paper); font-size: 1.4rem; margin-bottom: .25rem; }
.region-body .count { font-size: .82rem; color: rgba(246,242,233,.82); font-weight: 600; letter-spacing: .05em; }
.region-body .count b { color: var(--ochre); }
.region-card .go {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(246,242,233,.16); border: 1px solid rgba(246,242,233,.3);
  display: grid; place-items: center; color: var(--paper); transition: all .2s ease;
}
.region-card:hover .go { background: var(--ochre); border-color: var(--ochre); color: #2A1B06; }
.region-card .go svg { width: 18px; height: 18px; }

@media (max-width: 900px) { .regions-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .regions-grid { grid-template-columns: 1fr; } .region-card { aspect-ratio: 16/10; } }

/* ==========================================================================
   Plan Your Trip band (dark, atlas grid)
   ========================================================================== */
.plan {
  background: var(--ink); color: var(--paper); position: relative; overflow: hidden;
}
.plan::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,242,233,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,242,233,.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 55%, transparent 100%);
}
.plan .wrap { position: relative; z-index: 2; }
.plan .section-head h2 { color: var(--paper); }
.plan .section-head p { color: rgba(246,242,233,.8); }
.plan .kicker { color: var(--ochre); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1rem; }
.plan-step {
  background: rgba(246,242,233,.05); border: 1px solid rgba(246,242,233,.12);
  border-radius: var(--r-md); padding: 2rem 1.7rem; transition: all .22s ease;
}
.plan-step:hover { background: rgba(246,242,233,.09); transform: translateY(-4px); }
.plan-step .step-icon {
  width: 54px; height: 54px; border-radius: 14px; background: rgba(217,138,43,.16);
  color: var(--ochre); display: grid; place-items: center; margin-bottom: 1.2rem;
}
.plan-step .step-icon svg { width: 26px; height: 26px; }
.plan-step .step-no { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ochre); font-weight: 700; }
.plan-step h3 { color: var(--paper); font-size: 1.35rem; margin: .35rem 0 .5rem; }
.plan-step p { color: rgba(246,242,233,.78); font-size: .96rem; margin-bottom: 0; }
.plan-cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

@media (max-width: 820px) { .plan-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   About the Author
   ========================================================================== */
.author { background: var(--paper); }
.author-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.author-portrait { position: relative; }
.author-portrait .photo {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--ink-2); box-shadow: var(--shadow-md);
}
.author-portrait .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.author-portrait .pin {
  position: absolute; bottom: -18px; left: -18px;
  background: var(--card); border-radius: var(--r-md); padding: .9rem 1.15rem;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .7rem;
}
.author-portrait .pin svg { width: 26px; height: 26px; color: var(--ochre); flex: none; }
.author-portrait .pin .t { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.author-portrait .pin .v { font-family: var(--ff-display); font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.author-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.author-copy .signature {
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: 1.9rem; color: var(--teal-dk); margin: 1.2rem 0 .2rem;
}
.author-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; margin: 1.8rem 0; }
.author-stats .num { font-family: var(--ff-display); font-size: 2.2rem; font-weight: 600; color: var(--ink); line-height: 1; }
.author-stats .lbl { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); margin-top: .35rem; }
.author-social { display: flex; gap: .6rem; }
.author-social a {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; color: var(--ink);
}
.author-social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.author-social svg { width: 19px; height: 19px; }

@media (max-width: 820px) {
  .author-grid { grid-template-columns: 1fr; }
  .author-portrait { max-width: 420px; }
}

/* ==========================================================================
   Newsletter (Dispatch)
   ========================================================================== */
.dispatch { background: var(--paper-2); }
.dispatch-card {
  background: var(--ochre);
  border-radius: var(--r-lg); padding: clamp(2.4rem, 5vw, 4rem);
  position: relative; overflow: hidden; color: #2A1B06;
}
.dispatch-card::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%; border: 44px solid rgba(42,27,6,.07);
}
.dispatch-inner { position: relative; z-index: 2; max-width: 620px; }
.dispatch-card .kicker { color: #6E4611; }
.dispatch-card .kicker::before { background: #6E4611; }
.dispatch-card h2 { color: #2A1B06; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.dispatch-card p { color: #4A360F; font-size: 1.06rem; }
.dispatch-form { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.dispatch-form input {
  flex: 1 1 260px; border: 1.5px solid rgba(42,27,6,.25); background: rgba(255,255,255,.7);
  border-radius: 100px; padding: .9rem 1.3rem; font-family: var(--ff-body); font-size: 1rem; color: var(--ink);
}
.dispatch-form input::placeholder { color: #7A6438; }
.dispatch-form input:focus { outline: none; border-color: var(--ink); background: #fff; }
.dispatch-note { font-size: .82rem; color: #6E4611; margin: 1rem 0 0; display: flex; align-items: center; gap: .45rem; }
.dispatch-note svg { width: 15px; height: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(246,242,233,.72); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,242,233,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,242,233,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.site-footer .wrap { position: relative; z-index: 2; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; padding: clamp(3.5rem, 6vw, 5rem) 0 3rem; }
.footer-brand .brand { color: var(--paper); margin-bottom: 1.1rem; }
.footer-brand .brand:hover { color: var(--paper); }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-social { display: flex; gap: .55rem; margin-top: 1.3rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-dk); display: grid; place-items: center; color: var(--paper); }
.footer-social a:hover { background: var(--ochre); border-color: var(--ochre); color: #2A1B06; }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: var(--paper); font-size: .82rem; font-family: var(--ff-body); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.footer-col a { color: rgba(246,242,233,.72); font-size: .95rem; }
.footer-col a:hover { color: var(--ochre); }
.footer-recent { display: flex; gap: .8rem; margin-bottom: 1rem; align-items: center; }
.footer-recent img { width: 60px; height: 60px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.footer-recent .rt { font-size: .9rem; color: var(--paper); font-weight: 500; line-height: 1.4; }
.footer-recent .rd { font-size: .76rem; color: rgba(246,242,233,.55); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line-dk); font-size: .86rem;
}
.footer-bottom a { color: var(--ochre); }
.footer-bottom .credit { color: rgba(246,242,233,.6); }

@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   POST PAGE — Destination guide
   ========================================================================== */
.post-cover {
  position: relative; color: var(--paper); background: var(--ink);
  min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden;
}
.post-cover .cover-media { position: absolute; inset: 0; }
.post-cover .cover-media img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .cover-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,29,26,.25) 0%, rgba(15,29,26,.5) 50%, rgba(15,29,26,.92) 100%);
}
.post-cover .wrap { position: relative; z-index: 2; padding-top: 5rem; padding-bottom: 3rem; }
.post-breadcrumb { font-size: .85rem; color: rgba(246,242,233,.75); margin-bottom: 1.3rem; }
.post-breadcrumb a { color: rgba(246,242,233,.75); }
.post-breadcrumb a:hover { color: var(--ochre); }
.post-cover h1 { color: var(--paper); font-size: clamp(2.3rem, 5vw, 4rem); max-width: 20ch; margin-bottom: 1.1rem; }
.post-cover .post-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; align-items: center; color: rgba(246,242,233,.9); font-size: .9rem; }
.post-cover .post-meta .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(246,242,233,.4); }
.post-cover .post-meta .meta-item svg { color: var(--ochre); }

.post-body { padding: clamp(3rem, 6vw, 5rem) 0; }
.post-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.post-main { max-width: 760px; }
.post-main .lead-para {
  font-size: 1.28rem; line-height: 1.6; color: var(--ink); font-weight: 500;
  border-left: 3px solid var(--ochre); padding-left: 1.3rem; margin-bottom: 2rem;
}
.post-main h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 2.4rem 0 1rem; }
.post-main h3 { font-size: 1.35rem; margin: 1.8rem 0 .6rem; }
.post-main p { color: #3B4742; }

/* Facts sidebar */
.post-aside { position: sticky; top: 96px; }
.facts-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.facts-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: .5rem; }
.facts-card h3 svg { width: 20px; height: 20px; color: var(--ochre); }
.facts-list { list-style: none; padding: 0; }
.facts-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.facts-list li:last-child { border-bottom: none; }
.facts-list .k { color: var(--stone); font-weight: 500; }
.facts-list .v { color: var(--ink); font-weight: 600; text-align: right; }
.aside-cta { margin-top: 1.2rem; }

/* Itinerary timeline */
.itinerary { margin: 1.5rem 0 1rem; }
.day {
  position: relative; padding-left: 2.6rem; padding-bottom: 2rem;
  border-left: 2px dashed var(--line);
}
.day:last-child { border-left-color: transparent; padding-bottom: 0; }
.day::before {
  content: ""; position: absolute; left: -9px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: var(--ochre);
  border: 3px solid var(--paper); box-shadow: 0 0 0 2px var(--ochre);
}
.day-label { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ochre-dk); font-weight: 700; }
.day h3 { margin: .2rem 0 .8rem; font-size: 1.5rem; }
.stop { display: flex; gap: 1rem; padding: .6rem 0; }
.stop .time {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--teal-dk);
  font-size: .9rem; flex: none; width: 68px; padding-top: .15rem;
}
.stop .st-body { border-left: 1px solid var(--line); padding-left: 1rem; }
.stop .st-body strong { color: var(--ink); display: block; margin-bottom: .15rem; }
.stop .st-body p { margin: 0; font-size: .95rem; color: #4A564F; }

/* Tips callout */
.tips {
  background: rgba(46,125,116,.08); border: 1px solid rgba(46,125,116,.2);
  border-radius: var(--r-md); padding: 1.8rem; margin: 2rem 0;
}
.tips h3 { display: flex; align-items: center; gap: .6rem; color: var(--teal-dk); margin-bottom: 1rem; }
.tips h3 svg { width: 22px; height: 22px; }
.tips ul { list-style: none; padding: 0; display: grid; gap: .8rem; }
.tips li { display: flex; gap: .7rem; font-size: .97rem; color: #33403B; }
.tips li svg { width: 18px; height: 18px; color: var(--teal); flex: none; margin-top: .2rem; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin: 1.4rem 0; }
.gallery-grid a {
  position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1 / 1; background: var(--ink-2);
  display: block;
}
.gallery-grid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr 1fr; } .gallery-grid a:first-child { grid-column: span 2; } }

/* Static map placeholder */
.mapblock {
  position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line);
  background: #E7E2D3;
  background-image:
    linear-gradient(rgba(53,89,79,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,89,79,.10) 1px, transparent 1px),
    linear-gradient(rgba(53,89,79,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53,89,79,.05) 1px, transparent 1px);
  background-size: 90px 90px, 90px 90px, 18px 18px, 18px 18px;
  min-height: 300px; margin: 1.4rem 0;
}
.mapblock .route {
  position: absolute; inset: 0;
}
.mapblock .map-pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.mapblock .map-pin svg { width: 30px; height: 30px; color: var(--ochre-dk); filter: drop-shadow(0 3px 4px rgba(22,48,43,.3)); }
.mapblock .map-pin .lbl {
  background: var(--ink); color: var(--paper); font-size: .68rem; font-weight: 600;
  padding: .18rem .5rem; border-radius: 4px; margin-top: -4px; white-space: nowrap;
}
.mapblock .map-note {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(252,250,243,.9); padding: .4rem .8rem; border-radius: 100px;
  font-size: .74rem; font-weight: 600; color: var(--stone); letter-spacing: .04em;
}

/* Author box (post) */
.post-author {
  display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.8rem; margin: 2.5rem 0;
}
.post-author img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; }
.post-author .pa-body { flex: 1 1 260px; }
.post-author .pa-name { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.post-author .pa-role { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ochre-dk); font-weight: 700; margin-bottom: .5rem; }
.post-author p { font-size: .95rem; color: var(--stone); margin: 0; }

/* Related guides */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 1.6rem; }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; max-width: 480px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .related-grid { grid-template-columns: 1fr; } }

/* Reveal animation — progressive enhancement: visible unless JS opts in */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1 !important; transform: none !important; } }
