/* 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", "Fraunces Fallback", 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%; }
}

/* ============================================================
   V2 OVERRIDES — redesign (prototype). Loaded last = wins cascade.
   Goal: tool becomes the app-grade hero, above-the-fold gets colour,
   sections reordered (decision-first), trust line added.
   ============================================================ */

/* 1) Above-the-fold glance: colour-code best / cheapest / avoid */
.glance .cell:nth-child(1) { background: #dcfce7; }
.glance .cell:nth-child(1) .k { color: #15803d; }
.glance .cell:nth-child(2) { background: #dbeafe; }
.glance .cell:nth-child(2) .k { color: #1d4ed8; }
.glance .cell:nth-child(3) { background: #ffedd5; }
.glance .cell:nth-child(3) .k { color: #c2410c; }

/* 2) Planner band — a soft indigo canvas that lifts the tool off the calm page */
.planner-band {
  margin-left: -20px; margin-right: -20px;
  padding: 30px 22px 34px;
  background: radial-gradient(150% 90% at 50% -10%, #ECEFFF 0%, #F5F7FF 46%, #fff 82%);
  border-top: 1px solid #E7EAF7; border-bottom: 1px solid #E7EAF7;
}
.planner-band > h2 { text-align: center; margin-bottom: 4px; }
.planner-band > h2::before {
  content: "\2726  INTERAKTIVES TOOL";
  display: block; font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: .66rem; letter-spacing: .14em; font-weight: 700;
  color: var(--accent-dark); margin-bottom: 9px;
}

/* 3) The tool itself — app-grade card with gradient header + deep lift shadow */
.ptool {
  background: #fff; border: 1px solid #E7EAF7; border-radius: 20px; padding: 18px;
  max-width: 560px; margin: 0 auto;
  box-shadow: 0 30px 64px -26px rgba(79,70,229,.48), 0 10px 24px -12px rgba(30,41,59,.14);
}
.pt-head {
  margin: -18px -18px 16px; padding: 18px 20px; align-items: center;
  background: linear-gradient(135deg, #6B7FE8 0%, #4F46E5 100%);
  border-radius: 20px 20px 0 0;
}
.pt-title { color: #fff; }
.pt-sub { color: rgba(255,255,255,.82); }
.pt-reset { background: rgba(255,255,255,.18); color: #fff; }
.pt-reset:hover { background: rgba(255,255,255,.30); }
.pt-find {
  background: linear-gradient(135deg, #6B7FE8 0%, #4F46E5 100%);
  box-shadow: 0 8px 20px rgba(79,70,229,.32);
}
.pt-find:hover { background: linear-gradient(135deg, #6B7FE8 0%, #4338ca 100%); filter: brightness(1.04); }

/* 4) Methodology / trust line under the heatmap */
.methodology { font-size: .78rem; color: var(--ink-light); margin-top: 14px; font-style: italic; }

@media (max-width: 640px) {
  .planner-band { margin-left: -18px; margin-right: -18px; padding: 24px 16px 28px; }
}

/* ============================================================
   bt2 — redesigned decision tool (v2). Mobile-first app card.
   intro (photo hero + start + month grid) -> 2 question screens
   -> result (big month over photo + stat badges + reason bars + tour CTA)
   ============================================================ */
.planner-band > h2 { display: none; }          /* tool hero carries the title */
.planner-band > h2::before { content: none; }

.bt2 { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid #E7EAF7;
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 64px -26px rgba(79,70,229,.45), 0 10px 24px -12px rgba(30,41,59,.14); }

.bt2-hero { position: relative; min-height: 210px; background-size: cover; background-position: center;
  display: flex; align-items: flex-end; background-color: #4F46E5; }
.bt2-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,56,.10) 0%, rgba(28,28,56,.62) 100%); }
.bt2-hero-in { position: relative; padding: 22px 22px 20px; color: #fff; }
.bt2-eyebrow { font-size: .66rem; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; opacity: .92; margin-bottom: 7px; }
.bt2-htitle { font-family: var(--display); font-size: 1.7rem; line-height: 1.12; font-weight: 600; }
.bt2-hsub { font-size: .92rem; opacity: .93; margin-top: 8px; max-width: 32ch; line-height: 1.45; }

.bt2-pad { padding: 20px; }
.bt2-start { width: 100%; font-size: 1.06rem; font-weight: 700; color: #fff; border: none; border-radius: 14px;
  padding: 17px 20px; background: linear-gradient(135deg, #6B7FE8, #4F46E5); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 12px 26px rgba(79,70,229,.42), inset 0 1px 0 rgba(255,255,255,.22);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  animation: bt2pulse 2.4s ease-in-out infinite; }
.bt2-start:hover { transform: translateY(-2px); filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(79,70,229,.55), inset 0 1px 0 rgba(255,255,255,.28); animation: none; }
.bt2-start:active { transform: translateY(0); box-shadow: 0 6px 16px rgba(79,70,229,.4); }
.bt2-start-ar { font-size: 1.18rem; transition: transform .16s ease; }
.bt2-start:hover .bt2-start-ar { transform: translateX(4px); }
.bt2-start-hint { text-align: center; color: #fff; opacity: .9; font-size: .76rem; font-weight: 600;
  letter-spacing: .02em; margin-top: 9px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
@keyframes bt2pulse {
  0%, 100% { box-shadow: 0 12px 26px rgba(79,70,229,.42), inset 0 1px 0 rgba(255,255,255,.22); }
  50% { box-shadow: 0 14px 34px rgba(79,70,229,.62), 0 0 0 4px rgba(107,127,232,.16), inset 0 1px 0 rgba(255,255,255,.22); }
}
@media (prefers-reduced-motion: reduce) { .bt2-start { animation: none; } }

/* tool placed inside the page hero, directly under H1 + subhead */
.hero-tool { margin: 22px 0 24px; }
/* centered lead heading that frames the tool as the action */
.bt2-lead { font-family: var(--display); font-weight: 600; font-size: 1.45rem; line-height: 1.2;
  text-align: center; color: var(--ink); max-width: 30ch; margin: 0 auto 16px; letter-spacing: -.01em; }
/* intro screen: eyebrow + start button sit ON the photo (functional hero) */
.bt2-introhero { min-height: 240px; }
.bt2-introhero .bt2-hero-in { width: 100%; padding: 22px 22px 22px; }
.bt2-introhero .bt2-start { margin-top: 6px; }
.bt2-or { text-align: center; font-size: .8rem; color: var(--ink-light); margin: 16px 0 12px; }
.bt2-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.bt2-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px;
  border: 1.5px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; transition: border-color .12s, transform .1s; }
.bt2-cell:hover { border-color: var(--accent); transform: translateY(-1px); }
.bt2-cell-mo { font-size: .78rem; font-weight: 700; color: var(--ink); }
.bt2-cell-t { font-size: .66rem; color: var(--ink-light); }
.bt2-cell-dot { width: 8px; height: 8px; border-radius: 50%; }
.bt2-cell-dot.good { background: #16a34a; } .bt2-cell-dot.mid { background: #f59e0b; } .bt2-cell-dot.poor { background: #ef4444; }

.bt2-stepbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.bt2-back { background: none; border: none; color: var(--ink-med); font-size: .85rem; font-weight: 600; cursor: pointer; padding: 4px 0; }
.bt2-back:hover { color: var(--accent-dark); }
.bt2-step { font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--accent-dark); text-transform: uppercase; }
.bt2-q { font-family: var(--display); font-size: 1.5rem; font-weight: 600; line-height: 1.18; margin-bottom: 18px; }
.bt2-opts { display: flex; flex-direction: column; gap: 10px; }
.bt2-opt { font: inherit; font-size: 1rem; font-weight: 600; text-align: left; padding: 16px 18px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color .12s, background .12s, transform .1s; }
.bt2-opt:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

.bt2-rhero { min-height: 240px; }
.bt2-bigmonth { font-family: var(--display); font-size: 3.2rem; line-height: 1; font-weight: 600; margin: 2px 0 14px; }
.bt2-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.bt2-badge { background: rgba(255,255,255,.93); color: var(--ink); border-radius: 11px; padding: 8px 12px;
  font-size: .68rem; line-height: 1.15; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.bt2-badge b { font-size: .98rem; }
.bt2-why { font-family: var(--display); font-size: 1.18rem; font-weight: 600; margin-bottom: 14px; }
.bt2-bars { display: grid; gap: 9px; margin-bottom: 16px; }
.bt2-bar-row { display: grid; grid-template-columns: 88px 1fr 58px; align-items: center; gap: 9px; font-size: .82rem; }
.bt2-bar-l { color: var(--ink-med); }
.bt2-bar { height: 8px; background: var(--bg-softer); border-radius: 4px; overflow: hidden; }
.bt2-bar > span { display: block; height: 100%; border-radius: 4px; }
.bt2-bar .t-good { background: #16a34a; } .bt2-bar .t-mid { background: #f59e0b; } .bt2-bar .t-bad { background: #ef4444; }
.bt2-bar-v { font-weight: 600; color: var(--ink); text-align: right; }
.bt2-vibe { font-size: .92rem; color: var(--ink-med); margin: 0 0 14px; line-height: 1.55; }
.bt2-warn { background: #fff7ed; color: #9a3412; border-radius: 10px; padding: 9px 12px; font-size: .82rem; margin-bottom: 10px; }
.bt2-evs { font-size: .82rem; color: var(--ink-med); margin-bottom: 16px; }
.bt2-evs span { font-weight: 700; color: var(--ink); }
.bt2-evs a { color: var(--accent-dark); text-decoration: none; }
.bt2-cta { display: block; text-align: center; background: linear-gradient(135deg, #6B7FE8, #4F46E5); color: #fff;
  font-weight: 700; font-size: 1rem; padding: 16px; border-radius: 14px; text-decoration: none; box-shadow: 0 10px 24px rgba(79,70,229,.3); }
.bt2-cta:hover { filter: brightness(1.04); color: #fff; }
.bt2-planb { text-align: center; font-size: .85rem; color: var(--ink-med); margin-top: 14px; }
.bt2-planb a { color: var(--accent-dark); font-weight: 600; text-decoration: none; }
.bt2-restart { display: block; margin: 16px auto 0; background: none; border: none; color: var(--ink-light); font-size: .82rem; font-weight: 600; cursor: pointer; }
.bt2-staticwrap { padding: 0 20px 20px; }

/* desktop: photo + controls side by side for intro & result */
@media (min-width: 720px) {
  .bt2 { max-width: 760px; }
  .bt2-screen[hidden] { display: none; }
  .bt2-intro:not([hidden]), #bt2-result:not(:empty) { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .bt2-intro .bt2-hero, #bt2-result .bt2-hero { min-height: 100%; }
  .bt2-htitle { font-size: 1.9rem; }
  .bt2-bigmonth { font-size: 3.6rem; }
}

/* ---- bt2 sliders (segmented 3-way controls) ---- */
.bt2-sliders { display: flex; flex-direction: column; gap: 17px; margin-bottom: 22px; }
.bt2-sl-h { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.bt2-sl-ic { font-size: 1.1rem; line-height: 1; }
.bt2-sl-l { font-size: .95rem; font-weight: 600; color: var(--ink); }
.bt2-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; background: var(--bg-softer); padding: 4px; border-radius: 12px; }
.bt2-seg-b { font: inherit; font-size: .8rem; font-weight: 600; color: var(--ink-light); background: transparent; border: none; border-radius: 9px; padding: 11px 5px; cursor: pointer; transition: background .12s, color .12s, box-shadow .12s; line-height: 1.15; }
.bt2-seg-b:hover { color: var(--ink-med); }
.bt2-seg-b.is-on { background: #fff; color: var(--accent-dark); box-shadow: 0 2px 7px rgba(30,41,59,.13); }
.bt2-next, .bt2-go { width: 100%; font-size: 1rem; font-weight: 700; color: #fff; border: none; border-radius: 14px; padding: 15px; cursor: pointer; background: linear-gradient(135deg, #6B7FE8, #4F46E5); box-shadow: 0 10px 24px rgba(79,70,229,.3); }
.bt2-next:hover, .bt2-go:hover { filter: brightness(1.04); }

/* ---- Tour CTAs: one in-flow button + a slim dismissible sticky (reveals after #overview) ---- */
.tour-cta-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  background: linear-gradient(135deg, #6B7FE8, #4F46E5); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 10px 24px rgba(79,70,229,.3); transition: filter .14s, transform .14s; }
.tour-cta-btn:hover { filter: brightness(1.05); transform: translateY(-1px); color: #fff; }

.tour-sticky { position: fixed; z-index: 200; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 46px 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(30,41,59,.10);
  animation: stickyIn .26s ease-out; }
.tour-sticky[hidden] { display: none; }
.tour-sticky-link { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, #6B7FE8, #4F46E5);
  color: #fff; font-weight: 700; font-size: .95rem; padding: 12px 22px; border-radius: 11px; text-decoration: none;
  box-shadow: 0 8px 20px rgba(79,70,229,.32); }
.tour-sticky-link:hover { filter: brightness(1.05); color: #fff; }
.tour-sticky-ic { font-size: 1.05rem; line-height: 1; }
.tour-sticky-ar { transition: transform .16s; }
.tour-sticky-link:hover .tour-sticky-ar { transform: translateX(3px); }
.tour-sticky-x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--ink-light); cursor: pointer; padding: 4px 10px; }
.tour-sticky-x:hover { color: var(--ink); }
@keyframes stickyIn { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (min-width: 720px) {
  .tour-sticky { left: auto; right: 24px; bottom: 24px; border: 1px solid var(--line); border-radius: 16px;
    padding: 8px 42px 8px 10px; padding-bottom: 8px; box-shadow: var(--shadow-lg); }
}
@media (prefers-reduced-motion: reduce) { .tour-sticky { animation: none; } }

/* ---- Tour route map embedded in the tour-timing section ---- */
.tour-map { display: block; margin: 22px 0 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); line-height: 0;
  transition: transform .16s ease, box-shadow .16s ease; }
.tour-map:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(30,41,59,.28); }
.tour-map img { width: 100%; height: auto; display: block; }
.tour-map-cap { font-size: .84rem; color: var(--ink-light); text-align: center; margin: 10px 0 0; }

/* ============================================================
   PAGESPEED FIXES (loaded last = win cascade)
   - WCAG AA contrast (>=4.5:1) on the semantic score/avoid colours
   - CLS: the no-JS static fallback must not paint then get hidden by JS
   ============================================================ */
/* White-text badges/pills: darken backgrounds so white reaches 4.5:1
   (#16a34a 3.29 -> #15803d 5.0 | #f59e0b 2.14 -> #b45309 5.0 | #ef4444 3.74 -> #dc2626 4.8) */
.ws-badge.good, .ws-pill.good { background: #15803d; }
.ws-badge.mid,  .ws-pill.mid  { background: #b45309; }
.ws-badge.poor, .ws-pill.poor { background: #dc2626; }
/* Green text on white (3.29 -> 5.0) */
.tag-free { color: #15803d; }
/* Avoid heading: warn orange on cream (3.35 -> 4.9) */
.avoid-block h2 { color: #c2410c; }

/* The bt2 static list is a NO-JS / crawler fallback. With JS it is hidden by
   script AFTER first paint -> that removal shifts the page (CLS). Hide it up
   front so JS users never see the shift; <noscript> re-shows it for no-JS. */
#bt2-static { display: none; }
