/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --primary:       #4A9382;
  --primary-dark:  #3a7568;
  --accent:        #F5A623;
  --bg:            #F2F5F4;
  --card-bg:       #FFFFFF;
  --text:          #2D3748;
  --text-muted:    #718096;
  --warning-bg:    #FEF3DC;
  --warning-border:#F5A623;
  --border:        #E4EBE8;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.10);
  --radius:        14px;
  --radius-sm:     8px;

  /* category left-border colors */
  --cat-kids:   #4A9382;
  --cat-food:   #E07B39;
  --cat-hood:   #5B8DD9;
  --cat-shop:   #9B6DCA;

  --font-head: 'Nunito', sans-serif;
  --font-body: 'Lato', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute; left: -9999px;
  &:focus { left: 1rem; top: 1rem; z-index: 999; background: #fff; padding: .5rem 1rem; border-radius: var(--radius-sm); }
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 1.25rem 1rem 1rem;
  text-align: center;
}
.site-header h1 {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.site-header .trip-meta {
  font-size: .85rem;
  opacity: .88;
  margin-top: .3rem;
}

/* ── Day Nav ──────────────────────────────────────────────── */
.day-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.day-nav {
  display: flex;
  overflow-x: auto;
  gap: .4rem;
  padding: .65rem 1rem;
  scrollbar-width: none;
}
.day-nav::-webkit-scrollbar { display: none; }

.day-nav a {
  flex: 0 0 auto;
  padding: .35rem .9rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--border);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
  text-decoration: none;
}
.day-nav a:hover { background: var(--bg); border-color: var(--primary); }
.day-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Page Layout ──────────────────────────────────────────── */
.page-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 1rem .85rem 3rem;
}

/* ── Key Flags ────────────────────────────────────────────── */
.key-flags {
  background: var(--warning-bg);
  border: 1.5px solid var(--warning-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.key-flags-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .65rem;
}
.key-flags-header h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: #92560a;
}
.key-flags ol {
  padding-left: 1.2rem;
  font-size: .88rem;
  color: #6b4a0d;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.key-flags li { line-height: 1.5; }
.key-flags a { color: #92560a; font-weight: 700; }
.pill {
  display: inline-block;
  background: rgba(245,166,35,.22);
  color: #7a4a0a;
  border-radius: 10px;
  padding: 0 .45rem;
  font-size: .78rem;
  font-weight: 700;
}

/* ── Day Section ──────────────────────────────────────────── */
.day-section {
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--card-bg);
}

/* accordion trigger */
.day-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .85rem 1rem;
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.day-section__header:active { filter: brightness(.92); }

.day-title-block { flex: 1; min-width: 0; }
.day-title-block h2 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}
.day-meta {
  font-size: .78rem;
  opacity: .85;
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-chevron {
  flex: 0 0 20px;
  font-size: 1.1rem;
  transition: transform .25s;
  opacity: .85;
}
.day-section--open .day-chevron { transform: rotate(180deg); }

/* accordion body */
.day-section__body {
  display: none;
}
.day-section--open .day-section__body {
  display: block;
}

/* ── Stop Card ────────────────────────────────────────────── */
.stop {
  padding: .9rem 1rem .9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--border);
  position: relative;
}
.stop:last-child { border-bottom: none; }

/* category accent */
.stop[data-category="kids"]  { border-left-color: var(--cat-kids); }
.stop[data-category="food"]  { border-left-color: var(--cat-food); }
.stop[data-category="hood"]  { border-left-color: var(--cat-hood); }
.stop[data-category="shop"]  { border-left-color: var(--cat-shop); }

.stop__row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .35rem;
}
.stop__icon {
  font-size: 1.15rem;
  flex: 0 0 1.5rem;
  line-height: 1.4;
}
.stop__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}

.stop p, .stop .stop-detail {
  font-size: .88rem;
  color: var(--text-muted);
  margin-top: .3rem;
  line-height: 1.5;
}
.stop a { color: var(--primary); font-weight: 700; }

.stop .bullets {
  margin: .4rem 0 0 .3rem;
  padding-left: 1rem;
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.stop__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .55rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { opacity: .88; text-decoration: none; }
.btn:active { transform: scale(.96); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

/* ── Category Legend ──────────────────────────────────────── */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 12px;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-head);
}
.badge--kids { background: #d6f0ea; color: #2e7062; }
.badge--food { background: #fce6d6; color: #a0461a; }
.badge--hood { background: #d8e8fa; color: #2d5ea0; }
.badge--shop { background: #ede0f9; color: #6b3ca5; }

/* ── Quick Reference ──────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: 1.75rem 0 .75rem;
}
.section-sub {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: -.5rem;
  margin-bottom: .85rem;
}

.quickref {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.qrRow {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.qrRow:last-child { border-bottom: none; }
.qrCat {
  flex: 0 0 60px;
  font-size: .72rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.qrMain { flex: 1; min-width: 0; }
.qrMain strong { font-size: .92rem; }
.qrSub { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.qrActions { display: flex; gap: .5rem; }
.link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
.link:hover { text-decoration: underline; }

/* ── Toast ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: #1a202c;
  color: #fff;
  padding: .55rem 1.25rem;
  border-radius: 24px;
  font-size: .88rem;
  font-weight: 700;
  font-family: var(--font-head);
  pointer-events: none;
  transition: opacity .25s;
  opacity: 1;
  z-index: 999;
}
.toast[hidden] { display: none; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: 2rem;
  padding: 0 1rem;
}

/* ── Misc ─────────────────────────────────────────────────── */
.muted { color: var(--text-muted); font-size: .85rem; }
.tiny  { font-size: .75rem; }
