
/* ── PAGE HERO ───────────────────────── */
.page-hero {
  min-height: 85vh;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, #040f18 0%, #071e30 30%, #0e3a52 60%, #1a5a78 85%, #2a7a9a 100%);
}

/* ocean wave layers */
.ocean-layers {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

.breadcrumb {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.55);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.breadcrumb a { color: inherit; text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: rgba(240,235,224,0.7); }
.breadcrumb span { opacity: 0.4; }

.page-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  color: #f0ebe0;
  margin-bottom: 0.5rem;
  animation: fadeUp 0.9s ease both;
}
.page-hero-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.45em;
  color: rgba(240,235,224,0.55);
  letter-spacing: 0.1em;
  margin-top: 0.3em;
}

.page-hero-divider {
  width: 50px; height: 1px;
  background: #5ab8d4;
  margin: 1.75rem auto;
}

.page-hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.6);
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.h-stat { text-align: center; }
.h-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #f0ebe0;
  display: block;
  line-height: 1;
}
.h-stat-lbl {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.5);
  display: block;
  margin-top: 0.3rem;
}

/* ── ACCENT COLOR ────────────────────── */
:root {
  --accent: #2a6e82;
  --accent-lt: #5ab8d4;
  --accent-dim: rgba(42, 110, 130, 0.12);
  --rust: #9a5322;
}

/* ── QUICK FACTS ─────────────────────── */
.quick-facts {
  background: var(--ink-soft);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 2rem;
  overflow-x: auto;
}
.quick-facts-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  align-items: center;
  white-space: nowrap;
}
.qf-item { display: flex; flex-direction: column; gap: 0.15rem; flex-shrink: 0; }
.qf-label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(240,235,224,0.5); }
.qf-value { font-size: 0.82rem; color: rgba(240,235,224,0.8); }
.qf-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.08); flex-shrink: 0; }

/* ── MAIN LAYOUT ─────────────────────── */
.page-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .page-main { grid-template-columns: minmax(0, 1fr); }
  .page-sidebar { order: 1; position: static !important; padding-top: 1.5rem; }
  .sidebar-card:has(.toc-nav) { display: none; }
}

/* ── PROSE ───────────────────────────── */
.prose-section { padding-top: 4rem; }
.prose-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.prose-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}
.prose p { font-size: 0.92rem; color: #3a3530; line-height: 1.8; margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 500; color: var(--ink); }
.prose a { color: var(--accent); }
.section-rule { height: 1px; background: var(--border); margin: 2.5rem 0; }

/* ── BEST TIME ───────────────────────── */
.months-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2px;
  margin: 1.5rem 0;
}
@media(max-width:640px) { .months-grid { grid-template-columns: repeat(6,1fr); } }
.month-cell { text-align: center; padding: 0.5rem 0.2rem; }
.month-cell .month-name { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 0.3rem; color: var(--muted); }
.month-cell .month-dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 auto; }
.month-bad  .month-dot { background: rgba(0,0,0,0.1); }
.month-ok   .month-dot { background: rgba(42,110,130,0.35); }
.month-good .month-dot { background: var(--accent); }
.month-peak .month-dot { background: var(--accent-lt); box-shadow: 0 0 0 2px rgba(90,184,212,0.3); }
.month-legend { display: flex; gap: 1.5rem; font-size: 0.68rem; color: var(--muted); flex-wrap: wrap; }
.month-legend span { display: flex; align-items: center; gap: 0.4rem; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ── ISLAND CARDS ────────────────────── */
.islands-list {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  background: var(--border);
}

.island-card {
  background: var(--paper);
  padding: 1.75rem;
  transition: background 0.2s;
}
.island-card:hover { background: var(--warm); }

.island-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.island-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.island-pill {
  font-size: 0.62rem;
  font-weight: 500;
  background: rgba(42,110,130,0.08);
  border: 1px solid rgba(42,110,130,0.22);
  color: var(--accent);
  padding: 0.18rem 0.5rem;
  border-radius: 1px;
  white-space: nowrap;
}
.island-pill.nights { background: rgba(0,0,0,0.04); border-color: var(--border); color: var(--muted); }

.island-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  font-weight: 700;
  color: rgba(42,110,130,0.08);
  flex-shrink: 0;
}

.island-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.15rem;
}
.island-subtitle { font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }

.island-desc {
  font-size: 0.875rem;
  color: #3a3530;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.island-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}
@media(max-width:480px) { .island-detail-grid { grid-template-columns: 1fr; } }

.island-detail {
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border-lt);
  padding: 0.65rem;
  font-size: 0.8rem;
  color: #3a3530;
  line-height: 1.55;
}
.island-detail strong {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
  font-weight: 400;
}

/* transfer box */
.transfer-box {
  border-left: 2px solid var(--accent);
  background: rgba(42,110,130,0.05);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 0.6rem;
}
.transfer-box strong { color: var(--accent); }
.transfer-box.flight { border-color: #3d6b3d; }
.transfer-box.flight strong { color: #3d6b3d; }
.transfer-box.drive { border-color: var(--rust); }
.transfer-box.drive strong { color: var(--rust); }

/* accommodation grid */
.accom-heading {
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1.25rem 0 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-lt);
}

.accom-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.5rem;
}

.accom-mini {
  background: rgba(42,110,130,0.04);
  border: 1px solid rgba(42,110,130,0.15);
  padding: 0.85rem;
  font-size: 0.8rem;
}
.accom-mini .tier {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
}
.accom-mini .tier.luxury { color: var(--gold); }
.accom-mini .tier.budget { color: var(--muted); }
.accom-mini .tier.ryokan { color: var(--rust); }
.accom-mini .aname {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.accom-mini .adesc { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }

/* ── PRACTICAL GRID ──────────────────── */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 1.5rem;
}
.practical-card { background: var(--paper); padding: 1.5rem; transition: background 0.2s; }
.practical-card:hover { background: var(--warm); }
.practical-card h4 { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.practical-card p { font-size: 0.82rem; color: #3a3530; line-height: 1.65; }

/* ── SIDEBAR ─────────────────────────── */
.page-sidebar { padding-top: 4rem; position: sticky; top: 78px; }
.sidebar-card { background: var(--warm); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1rem; }
.sidebar-card h3 { font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.sidebar-list { list-style: none; }
.sidebar-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--border-lt); font-size: 0.82rem; color: var(--ink); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list .lbl { color: var(--muted); font-size: 0.78rem; }
.sidebar-tip { background: var(--ink); padding: 1.25rem; margin-top: 1rem; }
.sidebar-tip h4 { font-size: 0.58rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-lt); margin-bottom: 0.6rem; }
.sidebar-tip p { font-size: 0.78rem; color: rgba(240,235,224,0.65); line-height: 1.6; }
.toc-nav { list-style: none; }
.toc-nav li a { display: block; font-size: 0.8rem; color: var(--muted); text-decoration: none; padding: 0.45rem 0; border-bottom: 1px solid var(--border-lt); transition: color 0.2s, padding-left 0.2s; }
.toc-nav li a:hover { color: var(--ink); padding-left: 0.4rem; }
.toc-nav li:last-child a { border-bottom: none; }

/* ── RELATED ─────────────────────────── */
.related-section { background: var(--ink); padding: 4rem 2rem; }
.related-inner { max-width: 1100px; margin: 0 auto; }
.related-inner .section-eyebrow { color: var(--gold-lt); font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; }
.related-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; color: #f0ebe0; margin: 0.5rem 0 2rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,0.06); }
@media(max-width:580px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--ink-soft); padding: 1.75rem; text-decoration: none; color: inherit; display: block; transition: background 0.2s; }
.related-card:hover { background: rgba(255,255,255,0.04); }
.related-region { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(240,235,224,0.5); margin-bottom: 0.5rem; }
.related-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 400; color: #f0ebe0; margin-bottom: 0.5rem; line-height: 1.2; }
.related-desc { font-size: 0.82rem; color: rgba(240,235,224,0.6); line-height: 1.6; margin-bottom: 1rem; }
.related-cta { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-lt); display: flex; align-items: center; gap: 0.4rem; transition: gap 0.2s; }
.related-card:hover .related-cta { gap: 0.65rem; }
.related-cta::after { content: '→'; }


/* ─── MOBILE OVERRIDES (injected) ─── */
@media (max-width: 768px) {
  .page-hero         { padding: 5rem 1rem 3rem !important; min-height: 65vh; }
  .page-hero-content { max-width: 100% !important; }
  .page-hero-title   { font-size: clamp(2rem, 9vw, 3rem) !important; }
  .page-hero-sub     { font-size: 0.8rem; }
  .hero-stats        { gap: 1.5rem; }
  .h-stat-lbl        { font-size: 0.68rem !important; letter-spacing: 0.16em !important; }

  .quick-facts       { padding: 0.9rem 1rem !important; }
  .quick-facts-inner { white-space: normal !important; flex-wrap: wrap !important; gap: 0.75rem 1.25rem !important; }
  .qf-divider        { display: none !important; }
  .qf-item           { flex: 1 1 42%; min-width: 110px; }
  .qf-label          { font-size: 0.68rem !important; }
  .qf-value          { font-size: 0.9rem !important; }

  .page-main         { padding: 0 1rem 3rem !important; gap: 2rem !important; grid-template-columns: minmax(0, 1fr) !important; }
  .page-content      { min-width: 0 !important; }
  .prose-section     { padding-top: 2rem !important; }
  .prose-title       { font-size: clamp(1.3rem, 5vw, 1.75rem) !important; }
  .prose p           { font-size: 1rem !important; line-height: 1.75 !important; }
  .section-rule      { margin: 2rem 0 !important; }

  .day-card { padding: 8px !important; }
  .hike-card, .island-card, .city-card { padding: 1.1rem !important; }
  .day-top, .hike-top, .island-top, .city-top     { flex-direction: column !important; gap: 0.6rem !important; }
  .day-title, .hike-name, .island-name, .city-name { font-size: 1.15rem !important; }

  .day-detail-grid, .hike-detail-grid,
  .island-detail-grid, .city-detail-grid { grid-template-columns: 1fr !important; gap: 0.4rem !important; }

  .practical-grid    { grid-template-columns: 1fr !important; }
  .related-grid      { grid-template-columns: 1fr !important; }
  .related-section   { padding: 2.5rem 1rem !important; }

  .page-sidebar      { padding-top: 1.25rem !important; }
  .sidebar-card      { padding: 1rem !important; }

  .table-scroll      { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .camp-table, .transit-table { min-width: 520px; }

  .months-grid       { grid-template-columns: repeat(6,1fr) !important; }
}

@media (max-width: 560px) {
  .page-hero         { padding: 4.5rem 0.875rem 2.5rem !important; min-height: 60vh !important; }
  .page-hero-title   { font-size: clamp(1.75rem, 9vw, 2.5rem) !important; }
  .page-hero-title em { font-size: 0.38em !important; letter-spacing: 0.04em !important; }
  .page-hero-sub     { font-size: 0.72rem !important; letter-spacing: 0.08em !important; }
  .breadcrumb        { font-size: 0.7rem; gap: 0.3rem; }

  .quick-facts       { padding: 0.75rem 0.875rem !important; }
  .quick-facts-inner { gap: 0.6rem 1rem !important; }
  .qf-item           { flex: 1 1 100% !important; min-width: 0 !important; }

  .page-main         { padding: 0 0.875rem 2rem !important; }

  .day-card { padding: 8px !important; }
  .hike-card, .island-card, .city-card { padding: 0.875rem !important; }
  .day-title, .hike-name, .island-name, .city-name { font-size: 1.12rem !important; }
  .island-desc       { font-size: 0.9rem !important; }
  .island-pill       { font-size: 0.68rem !important; }

  .hero-stats        { gap: 1rem; }
  .h-stat-num        { font-size: 1.5rem !important; }
  .h-stat-lbl        { font-size: 0.68rem !important; letter-spacing: 0.15em !important; }

  .ferry-box         { font-size: 0.82rem !important; padding: 0.6rem 0.75rem !important; }
  .island-detail strong { font-size: 0.68rem !important; }
  .sidebar-tip h4    { font-size: 0.68rem !important; }
  .accom-mini .tier  { font-size: 0.68rem !important; }

  .accom-mini-grid   { grid-template-columns: 1fr !important; }

  .related-card      { padding: 1.25rem !important; }
  .related-name      { font-size: 1.1rem !important; }
}

@media (max-width: 400px) {
  .page-hero-sub     { font-size: 0.76rem !important; }
  .breadcrumb        { font-size: 0.72rem !important; }
  .qf-label          { font-size: 0.7rem !important; }
  .qf-value          { font-size: 0.88rem !important; }
  .prose p           { font-size: 0.98rem !important; }
  .day-title, .hike-name, .island-name, .city-name { font-size: 1.16rem !important; }
  .island-desc       { font-size: 0.92rem !important; }
  .island-pill       { font-size: 0.7rem !important; }
  .ferry-box         { font-size: 0.84rem !important; }
}

