/* best-time.css — shared stylesheet for /best-time/ pages (cached across all cities).
   Design tokens match /tour/ and /attraction/ for a consistent site look. */
:root {
  --accent: #6B7FE8;
  --accent-dark: #4F46E5;
  --accent-soft: #EEF2FF;
  --ink: #1e293b;
  --ink-med: #475569;
  --ink-light: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-softer: #f1f5f9;
  --ok: #16a34a;
  --warn: #ea580c;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-lg: 0 10px 30px -8px rgba(30, 41, 59, .18), 0 4px 10px -4px rgba(30, 41, 59, .10);
  --display: "Fraunces", Georgia, 'Times New Roman', serif;
  /* semantic heat scale (green = great .. red = rough), used in the heatmap */
  --lv1: #dcfce7; --lv2: #ecfccb; --lv3: #fef9c3; --lv4: #ffedd5; --lv5: #fee2e2;
  --lv1-i: #15803d; --lv2-i: #4d7c0f; --lv3-i: #a16207; --lv4-i: #c2410c; --lv5-i: #b91c1c;
}

* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* === Site header (matches /tour/ and /attraction/) === */
header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 100; }
.header-container { max-width: 880px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 700; }
.logo-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.logo-text { background: linear-gradient(135deg,#B8D4FF 0%,#6B7FE8 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.desktop-nav { display: none; align-items: center; gap: 22px; }
.desktop-nav a { color: var(--ink-med); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.desktop-nav a:hover { color: var(--accent); }
.lang-selector-wrapper { position: relative; }
.lang-selector { appearance: none; -webkit-appearance: none; background: var(--bg-softer); border: 1px solid var(--line); border-radius: 8px; padding: 8px 30px 8px 12px; font-size: 14px; color: var(--ink-med); cursor: pointer; }
.lang-selector-arrow { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; pointer-events: none; color: var(--ink-med); }
.nav-download-btn { background: linear-gradient(135deg,#B8D4FF 0%,#6B7FE8 100%); color: #fff !important; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.nav-download-btn:hover { opacity: .9; }
.mobile-menu-btn { display: flex; background: none; border: none; cursor: pointer; padding: 6px; color: var(--ink-med); }
.menu-icon { width: 24px; height: 24px; }
.hidden { display: none; }
.mobile-menu { display: none; background: #fff; border-top: 1px solid var(--line); }
.mobile-menu.active { display: block; }
.mobile-menu-items { padding: 14px 20px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-link { padding: 11px 14px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; border-radius: 8px; }
.mobile-menu-link:hover { background: var(--bg-softer); }
.mobile-download-btn { background: linear-gradient(135deg,#B8D4FF 0%,#6B7FE8 100%); color: #fff; padding: 13px 14px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; text-align: center; }
.mobile-lang-wrapper { padding: 6px 0 0; }
.mobile-lang-selector { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; color: var(--ink-med); background: var(--bg-soft); }
@media (min-width: 768px) { .desktop-nav { display: flex; } .mobile-menu-btn { display: none; } }
section { padding: 40px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h2 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 16px; letter-spacing: -.018em; }
h3 { font-size: 1.15rem; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 14px; color: var(--ink-med); }
a { color: var(--accent-dark); }

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; color: var(--ink-light); padding-top: 14px; padding-bottom: 14px; }
.breadcrumbs a { color: var(--ink-light); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); }

/* Hero */
.bt-hero { padding-top: 36px; padding-bottom: 30px; border-top: none; }
.bt-hero h1 { font-size: 2.3rem; line-height: 1.15; margin: 0 0 12px; letter-spacing: -.02em; }
.bt-hero .subhead { font-size: 1.08rem; color: var(--ink-med); max-width: 640px; }
.bt-hero .reviewed { font-size: .8rem; color: var(--ink-light); margin-top: 10px; }

/* At a glance card */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 4px; }
.glance .cell { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; }
.glance .cell .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); font-weight: 700; }
.glance .cell .v { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-top: 4px; }

/* Quick answer */
.quick-answer { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.quick-answer p { font-size: 1.12rem; color: var(--ink); margin: 0; }
.quick-answer strong { color: var(--ink); }

/* Heatmap table */
.heatmap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.heatmap { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
table.heatmap th, table.heatmap td { padding: 9px 8px; text-align: center; border-bottom: 1px solid var(--line); }
table.heatmap th { font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-light); font-weight: 700; }
table.heatmap td.mon { text-align: left; font-weight: 600; }
table.heatmap td.mon a { text-decoration: none; color: var(--accent-dark); }
table.heatmap tr.is-best { background: #f0fdf4; }
table.heatmap tr.is-avoid { background: #fff7ed; }
.bar { display: inline-block; width: 54px; height: 8px; border-radius: 4px; background: var(--bg-softer); position: relative; vertical-align: middle; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.bar.crowd > span { background: #f59e0b; }
.bar.price > span { background: #ef4444; }
.chip { display: inline-block; font-size: .72rem; padding: 2px 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-dark); white-space: nowrap; }

/* Season cards */
.season-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.season-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); background: var(--bg); }
.season-card .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-dark); font-weight: 700; }
.season-card .mo { font-size: 1.1rem; font-weight: 700; margin: 4px 0 6px; }
.season-card p { font-size: .92rem; margin: 0; }

/* Avoid block */
.avoid-block { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 18px 20px; }
.avoid-block h2 { color: var(--warn); font-size: 1.3rem; }
.avoid-block p { margin: 0; color: #7c2d12; }

/* Hero + month photos. SOURCE IMAGES ARE MAX 500px WIDE — never display wider than
   that or they upscale to mush. Cap width 500, center, cover-crop a fixed height. */
.hero-photo { width: 100%; max-width: 500px; height: 250px; object-fit: cover; border-radius: 14px; display: block; margin: 0 auto 18px; }
.m-photo { width: 100%; max-width: 500px; height: 200px; object-fit: cover; border-radius: 12px; display: block; margin: 0 auto 14px; background: var(--bg-softer); }

/* Month sections */
.month { border-top: 1px solid var(--line); padding: 26px 0; scroll-margin-top: 70px; }
.month:first-child { border-top: none; }
.month h3 { font-size: 1.35rem; margin-bottom: 10px; scroll-margin-top: 80px; }
.climate-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 12px; font-size: .86rem; }
.climate-row .stat { display: flex; flex-direction: column; }
.climate-row .stat .lbl { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-light); }
.climate-row .stat .num { font-weight: 600; color: var(--ink); }
.cp-row { display: flex; gap: 24px; margin: 6px 0 12px; font-size: .82rem; align-items: center; }
.cp-row .lbl { color: var(--ink-light); margin-right: 6px; }
.month-events { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.month-events a { text-decoration: none; }

/* Event calendar */
.event-month-group { margin-bottom: 26px; }
.event-month-group > .emg-head { font-size: 1.05rem; font-weight: 700; color: var(--accent-dark); border-bottom: 2px solid var(--accent-soft); padding-bottom: 6px; margin-bottom: 14px; }
.event-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; box-shadow: var(--shadow); background: var(--bg); scroll-margin-top: 80px; }
.event-card .ev-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.event-card .ev-name { font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.event-card .ev-local { font-style: italic; color: var(--ink-light); font-weight: 400; font-size: .95rem; }
.event-card .ev-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.event-card .ev-when { font-size: .84rem; color: var(--ink-med); font-weight: 600; margin: 4px 0 8px; }
.event-card .ev-when .moveable { color: var(--warn); font-weight: 400; font-size: .8rem; }
.event-card p { font-size: .92rem; margin: 0 0 6px; }
.event-card .ev-why { color: var(--ink); }
.event-card .ev-meta { font-size: .78rem; color: var(--ink-light); }
.event-card .ev-meta a { color: var(--accent-dark); }
.tag-free { color: var(--ok); font-weight: 600; }

/* FAQ — always visible, never an accordion */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { margin: 0; }

/* Bridge */
.bridge { background: linear-gradient(135deg, var(--accent-soft), #fff); }
.bridge h2 { font-size: 1.5rem; }
.bridge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.bridge-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.bridge-card h3 { margin-bottom: 6px; }
.bridge-card p { font-size: .9rem; }
.bridge-card a { display: inline-block; margin-top: 8px; font-weight: 600; text-decoration: none; }

/* App CTA */
.app-cta { text-align: center; background: var(--accent-dark); color: #fff; border-radius: var(--radius); padding: 30px 24px; }
.app-cta h2 { color: #fff; }
.app-cta p { color: #e0e7ff; max-width: 520px; margin: 0 auto 18px; }
.app-cta .btn { display: inline-block; background: #fff; color: var(--accent-dark); font-weight: 700; padding: 12px 26px; border-radius: 8px; text-decoration: none; }

/* Related pills */
.related-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.related-city-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 8px 14px; text-decoration: none; color: var(--ink-med); font-size: .9rem; }
.related-city-pill:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Footer */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 26px 0; font-size: .85rem; color: var(--ink-light); }
footer a { color: var(--ink-med); text-decoration: none; }

/* === Trip-timing tool: an interactive decision tool, not a chip filter === */
.ptool { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); }
.pt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pt-title { font-family: var(--display); font-size: 1.22rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pt-sub { font-size: .85rem; color: var(--ink-light); margin-top: 3px; }
.pt-reset { flex-shrink: 0; font-size: .8rem; font-weight: 600; color: var(--accent-dark); background: var(--accent-soft); border: none; border-radius: 999px; padding: 7px 13px; cursor: pointer; white-space: nowrap; }
.pt-reset:hover { background: #e0e7ff; }
/* live month grid (the canvas that greys out / glows) */
.pt-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.pt-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 8px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; transition: transform .1s, box-shadow .12s, border-color .12s, opacity .15s; }
.pt-cell-mo { font-size: .82rem; font-weight: 700; color: var(--ink); }
.pt-cell-t { font-size: .7rem; color: var(--ink-light); }
.pt-cell-bar { width: 18px; height: 26px; background: var(--bg-softer); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; }
.pt-cell-bar i { width: 100%; display: block; border-radius: 3px; }
.pt-cell-bar i.good { background: #16a34a; } .pt-cell-bar i.mid { background: #f59e0b; } .pt-cell-bar i.poor { background: #ef4444; }
.pt-cell:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(79,70,229,.13); }
.pt-cell.picked { border-color: var(--accent-dark); box-shadow: 0 0 0 2px var(--accent-dark); }
.pt-cell.greyed { opacity: .3; }
.pt-cell.glow { border-color: #f59e0b; background: #fffbeb; box-shadow: 0 0 0 2px #fbbf24, 0 6px 16px rgba(245,158,11,.25); }
/* guided flow */
.pt-flow { margin-top: 12px; }
.pt-find { width: 100%; font-size: .95rem; font-weight: 700; color: #fff; background: var(--accent-dark); border: none; border-radius: 12px; padding: 13px; cursor: pointer; box-shadow: 0 6px 16px rgba(79,70,229,.28); transition: background .12s; }
.pt-find:hover { background: #4338ca; }
.pt-q { margin-top: 12px; }
.pt-q-t { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.pt-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pt-opt { font: inherit; font-size: .92rem; font-weight: 600; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; transition: transform .1s, border-color .12s, background .12s; }
.pt-opt:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.pt-grey-note { font-size: .76rem; color: var(--ink-light); margin-top: 9px; }
/* verdict card — shows the reasoning so it isn't a black box */
.pt-verdict { margin-top: 14px; }
.pt-lead { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--accent-dark); margin-bottom: 8px; }
.pt-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.pt-card.v-great { border-top-color: #16a34a; } .pt-card.v-good { border-top-color: #2563eb; } .pt-card.v-tough { border-top-color: #ea580c; }
.pt-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pt-badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; }
.v-great .pt-badge { background: #dcfce7; color: #15803d; } .v-good .pt-badge { background: #dbeafe; color: #1d4ed8; } .v-tough .pt-badge { background: #ffedd5; color: #c2410c; }
.pt-card-mo { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.pt-card-temp { font-size: .85rem; color: var(--ink-light); margin-left: auto; }
.pt-math { display: grid; gap: 7px; margin-bottom: 12px; }
.pt-bar-row { display: grid; grid-template-columns: 80px 1fr 62px; align-items: center; gap: 9px; font-size: .8rem; }
.pt-bar-l { color: var(--ink-med); }
.pt-bar { height: 8px; background: var(--bg-softer); border-radius: 4px; overflow: hidden; }
.pt-bar > span { display: block; height: 100%; border-radius: 4px; }
.pt-bar .t-good { background: #16a34a; } .pt-bar .t-mid { background: #f59e0b; } .pt-bar .t-bad { background: #ef4444; }
.pt-bar-v { font-weight: 600; color: var(--ink); text-align: right; }
.pt-vibe { font-size: .92rem; color: var(--ink); font-style: italic; margin: 0 0 10px; }
.pt-warn { font-size: .85rem; background: #fff7ed; color: #9a3412; border-radius: 8px; padding: 8px 11px; margin-bottom: 10px; }
.pt-evs { font-size: .85rem; color: var(--ink-med); margin-bottom: 12px; }
.pt-evs span { font-weight: 600; } .pt-evs a { text-decoration: none; }
/* the live-AI-guide-as-the-fix block (dark, stands out as the pitch) */
.pt-pro { background: linear-gradient(180deg, #1e1b4b, #312e81); border-radius: 12px; padding: 14px 16px; }
.pt-pro-h { font-size: .8rem; font-weight: 700; color: #fde68a; margin-bottom: 6px; }
.pt-pro p { font-size: .88rem; color: #dfe3f7; margin: 0 0 12px; }
.pt-cta { display: inline-block; background: #fff; color: var(--accent-dark); font-weight: 700; font-size: .88rem; padding: 10px 18px; border-radius: 9px; text-decoration: none; }
.pt-cta:hover { background: #eef2ff; }
.pt-cta-note { display: block; font-size: .74rem; color: #a5b4fc; margin-top: 8px; }
.pt-planb { font-size: .85rem; color: var(--ink-med); margin-top: 12px; }
.pt-planb a { font-weight: 700; text-decoration: none; }
.pt-see { display: inline-block; margin-top: 12px; font-size: .85rem; font-weight: 600; text-decoration: none; }
.pt-note { font-size: .78rem; color: var(--ink-light); text-align: center; margin-top: 12px; }
/* static SEO/no-JS fallback (JS hides this) */
.pt-static-in { margin-top: 14px; }
.pt-static-in p { font-size: .9rem; }
.pt-static-list { margin: 12px 0 0; padding-left: 18px; }
.pt-static-list li { font-size: .9rem; margin-bottom: 6px; color: var(--ink-med); }

/* Walking score pills/badges */
.ws-pill { display: inline-block; min-width: 24px; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: .82rem; color: #fff; }
.ws-pill.good, .ws-badge.good { background: #16a34a; } .ws-pill.mid, .ws-badge.mid { background: #f59e0b; } .ws-pill.poor, .ws-badge.poor { background: #ef4444; }
.m-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ws-badge { color: #fff; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; }

/* Month extras (vibe, experiences, food, closures) */
.m-extra { font-size: .92rem; margin: 6px 0; padding-left: 10px; border-left: 3px solid var(--line); }
.m-extra .m-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--ink-light); margin-right: 6px; }
.m-extra.vibe { border-left-color: var(--accent); color: var(--ink); font-style: italic; }
.m-extra.exp { border-left-color: #16a34a; }
.m-extra.clos { border-left-color: var(--warn); }
.m-extra.food { border-left-color: #d97706; }
.m-price { font-size: .82rem; color: var(--ink-light); margin: 4px 0; }
.m-events { margin-top: 12px; }
.m-events .m-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; color: var(--ink-light); display: block; margin-bottom: 8px; }

/* Insider list */
.insider-list { list-style: none; padding: 0; }
.insider-list li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); position: relative; font-size: .94rem; }
.insider-list li:before { content: "→"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* Holidays + events tables */
.hol-table, .events-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 480px; }
.hol-table th { text-align: left; font-size: .74rem; text-transform: uppercase; color: var(--ink-light); padding: 8px; border-bottom: 1px solid var(--line); }
.hol-table td, .events-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hol-d, .ev-when-c { white-space: nowrap; font-weight: 600; color: var(--accent-dark); }
.hol-n, .events-table a { font-weight: 600; }
.events-table a { text-decoration: none; color: var(--ink); }
.ev-what-c { color: var(--ink-med); font-size: .85rem; }

/* Guide compare USP */
.guide-compare { background: linear-gradient(135deg, #fff, var(--accent-soft)); border-radius: var(--radius); padding: 28px 24px; }
.gc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 20px; }
.gc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.gc-card h3 { font-size: 1.02rem; margin-bottom: 6px; color: var(--accent-dark); }
.gc-card p { font-size: .9rem; margin: 0; }
.gc-btn { display: inline-block; background: var(--accent-dark); color: #fff; font-weight: 700; padding: 12px 26px; border-radius: 8px; text-decoration: none; }

/* Family block */
.family { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 22px; }
.family p { font-size: 1rem; color: var(--ink); }
.fam-link a { font-weight: 600; text-decoration: none; }

/* === Table of contents: sticky horizontal jump-nav === */
.toc { position: sticky; top: 0; z-index: 15; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.toc-inner { max-width: 880px; margin: 0 auto; padding: 0 20px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.toc-inner::-webkit-scrollbar { display: none; }
.toc-inner a { flex: 0 0 auto; padding: 13px 0; margin-right: 18px; font-size: .85rem; font-weight: 600; color: var(--ink-med); text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.toc-inner a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
/* anchor jumps clear the sticky toc */
section[id], .month[id], .event-card[id] { scroll-margin-top: 60px; }

/* === Heatmap: color-coded level cells (green = easy .. red = rough) === */
.heatmap td.hm-lvl { padding: 7px 6px; }
.hm-lvl .dots { font-size: .6rem; letter-spacing: 1.5px; color: inherit; }
.hm-lvl.lv1 { background: var(--lv1); color: var(--lv1-i); }
.hm-lvl.lv2 { background: var(--lv2); color: var(--lv2-i); }
.hm-lvl.lv3 { background: var(--lv3); color: var(--lv3-i); }
.hm-lvl.lv4 { background: var(--lv4); color: var(--lv4-i); }
.hm-lvl.lv5 { background: var(--lv5); color: var(--lv5-i); }
table.heatmap tr.is-best td.mon { box-shadow: inset 3px 0 0 var(--ok); }
table.heatmap tr.is-avoid td.mon { box-shadow: inset 3px 0 0 var(--warn); }

/* === Event calendar: scannable year timeline, grouped by month === */
.evt-timeline { display: grid; gap: 16px; }
.evt-group { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.evt-mon { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--accent-dark); padding-top: 9px; }
.evt-rows { display: grid; gap: 7px; }
.evt-row { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink); transition: border-color .12s, box-shadow .12s, transform .1s; }
.evt-row:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.evt-date { flex: 0 0 auto; min-width: 58px; font-size: .8rem; font-weight: 700; color: var(--accent-dark); }
.evt-date .moveable { color: var(--warn); cursor: help; font-weight: 700; }
.evt-name { flex: 1; min-width: 0; font-weight: 600; font-size: .94rem; }
.evt-tag { flex: 0 0 auto; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg-softer); color: var(--ink-med); white-space: nowrap; }
.evt-tag.t-religious, .evt-tag.t-national_holiday { background: #ede9fe; color: #6d28d9; }
.evt-tag.t-carnival, .evt-tag.t-pride, .evt-tag.t-festival { background: #fce7f3; color: #be185d; }
.evt-tag.t-food_wine { background: #fef3c7; color: #b45309; }
.evt-tag.t-music, .evt-tag.t-art_culture, .evt-tag.t-film { background: #e0e7ff; color: #4338ca; }
.evt-tag.t-museum_night, .evt-tag.t-light { background: #e0f2fe; color: #0369a1; }
.evt-tag.t-seasonal_nature { background: #dcfce7; color: #15803d; }
.evt-tag.t-sport { background: #ffedd5; color: #c2410c; }
.evt-tag.t-christmas_market { background: #fee2e2; color: #b91c1c; }
.event-card .ev-window { font-size: .8rem; color: var(--ink-light); margin: -2px 0 8px; }

/* === Best time by traveller type === */
.traveler-intro { max-width: 640px; }
.trav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 14px; margin-top: 18px; }
.trav-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--bg); box-shadow: var(--shadow); }
.trav-card:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.trav-head { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.trav-i { font-size: 1.35rem; line-height: 1; }
.trav-label { font-family: var(--display); font-size: 1.12rem; font-weight: 600; }
.trav-mo { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.trav-m { font-size: .72rem; font-weight: 700; color: var(--accent-dark); background: var(--accent-soft); padding: 3px 9px; border-radius: 6px; }
.trav-card p { font-size: .9rem; margin: 0; color: var(--ink-med); }
.trav-link { margin-top: 11px; font-size: .85rem; font-weight: 600; text-decoration: none; }

@media (max-width: 640px) {
  section { padding: 30px 0; }
  .bt-hero h1 { font-size: 1.7rem; }
  h2 { font-size: 1.42rem; }
  .hero-photo { height: 190px; }
  .m-photo { height: 160px; }
  .glance { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .glance .cell { padding: 11px 10px; text-align: center; }
  .glance .cell .v { font-size: .82rem; }
  .season-grid, .bridge-grid, .gc-grid { grid-template-columns: 1fr; }
  .dm-grid { grid-template-columns: 1fr; }
  .trav-grid { grid-template-columns: 1fr; }
  .evt-group { grid-template-columns: 64px 1fr; gap: 9px; }
  .evt-mon { font-size: .92rem; padding-top: 11px; }
  .evt-row { padding: 9px 11px; gap: 8px; flex-wrap: wrap; }
  .evt-date { min-width: 52px; }
  .evt-name { flex: 1 1 auto; }
  .pt-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .pt-opts { grid-template-columns: 1fr; }
  .pt-bar-row { grid-template-columns: 72px 1fr 54px; gap: 7px; }
  .pt-card-temp { margin-left: 0; width: 100%; }
}
