:root {
  --ink: #211d19;
  --ink-soft: #5f554b;
  --paper: #f8f8f5;
  --paper-deep: #f0eee9;
  --white: #ffffff;
  --saffron: #e3a72f;
  --saffron-soft: #f5d881;
  --chilli: #c9553d;
  --teal: #126f6b;
  --teal-soft: #c8e2dc;
  --leaf: #547d54;
  --blue: #5b84a6;
  --line: rgba(33, 29, 25, 0.18);
  --shadow: 5px 6px 0 rgba(33, 29, 25, 0.92);
  --font-body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font-display: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  background: var(--ink);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  min-height: 76px;
  padding: 0 4vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  background: rgba(246, 239, 229, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 700;
  width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: var(--white);
  border-radius: 50% 50% 45% 45%;
}

.brand-mark svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desktop-nav {
  display: flex;
  gap: clamp(1.2rem, 3vw, 3rem);
}

.desktop-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  position: relative;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 50%;
  right: 50%;
  bottom: -5px;
  background: var(--chilli);
  transition: 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  left: 0;
  right: 0;
}

.header-progress {
  justify-self: end;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}

.progress-ring {
  width: 34px;
  height: 34px;
  padding: 4px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
}

.progress-ring span {
  display: block;
  width: 100%;
  height: 0;
  margin-top: auto;
  background: var(--saffron);
  border-radius: 50%;
  transition: height 300ms ease;
}

.hero {
  min-height: calc(100vh - 76px);
  max-height: 900px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  padding: 5rem 6vw 7rem;
  background:
    radial-gradient(circle at 72% 24%, rgba(227, 167, 47, 0.18), transparent 20rem),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(33, 29, 25, 0.1);
  border-radius: 50%;
  right: 13vw;
  top: 10vh;
}

.hero-sun {
  position: absolute;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  background: var(--saffron-soft);
  right: 15vw;
  top: 13vh;
  opacity: 0.8;
}

.hero-cloud {
  position: absolute;
  width: 150px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  opacity: 0.25;
}

.hero-cloud-one {
  left: 42%;
  top: 14%;
}

.hero-cloud-two {
  right: 2%;
  top: 42%;
  transform: scale(0.7);
}

.hero-copy {
  max-width: 690px;
  z-index: 2;
}

.eyebrow,
.micro-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--teal);
  margin: 0 0 1.1rem;
}

.hero h1,
.section h2,
.trip-strip h2,
.memory-section h2,
.modal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.25;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.55rem, 5.1vw, 5.6rem);
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--chilli);
  font-style: normal;
}

.hero-intro {
  max-width: 600px;
  margin: 1.8rem 0 2.2rem;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.hero-actions,
.memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.65rem 1.25rem;
  border-radius: 4px 18px 4px 18px;
  border: 1.5px solid var(--ink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 4px 5px 0 var(--ink);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-quiet {
  background: transparent;
  color: var(--ink);
}

#surpriseButton em {
  font-family: "Caveat", var(--font-display);
  font-size: 1.3em;
  font-style: italic;
  font-weight: 700;
  color: var(--chilli);
}

.button-outline {
  background: var(--paper);
}

.hero-art {
  align-self: end;
  z-index: 1;
  position: relative;
  height: min(65vh, 610px);
}

.hero-art > svg {
  width: 100%;
  height: 100%;
}

.hero-line-art,
.tuk-tuk {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tuk-tuk {
  fill: var(--paper);
}

.hero-accent {
  fill: var(--chilli);
}

.hero-stamp {
  position: absolute;
  right: 7%;
  top: 14%;
  width: 98px;
  height: 98px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid var(--chilli);
  border-radius: 50%;
  color: var(--chilli);
  font-size: 0.72rem;
  line-height: 1.25;
  transform: rotate(8deg);
}

.hero-stamp::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.hero-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  white-space: nowrap;
}

.hero-marquee i {
  color: var(--chilli);
}

.trip-strip {
  background: var(--ink);
  color: var(--white);
  padding: 1.8rem 5vw;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto auto;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}

.trip-strip .micro-label {
  color: var(--saffron-soft);
  margin-bottom: 0.2rem;
}

.trip-strip h2 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

.trip-stat {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  white-space: nowrap;
}

.trip-stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--saffron-soft);
}

.trip-stat span {
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.85rem;
}

.text-button {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 0.15rem;
  color: inherit;
  background: transparent;
  cursor: pointer;
  width: max-content;
}

.section {
  padding: clamp(5rem, 9vw, 9rem) 5vw;
}

.section-heading {
  max-width: 1380px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 3rem;
  align-items: end;
}

.section-heading h2,
.memory-section h2 {
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  letter-spacing: -0.025em;
}

.section-heading > p,
.memory-section > div > p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 540px;
}

.filter-toolbar {
  max-width: 1380px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-filters {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-chip,
.filter-toggle {
  min-height: 43px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.55);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 500;
}

.filter-chip svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-chip[aria-pressed="true"],
.filter-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.search-field {
  flex: 1 1 260px;
  min-width: 220px;
  height: 43px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--ink);
  margin-left: auto;
  padding: 0 0.2rem;
}

.search-field svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #8b7f73;
}

.place-results-row {
  max-width: 1380px;
  margin: 1.4rem auto;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.place-results-row p {
  margin: 0;
}

.section-jump-bar {
  max-width: 1380px;
  margin: -0.25rem auto 1.25rem;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  border: 1px dashed rgba(33, 29, 25, 0.38);
  border-radius: 18px 30px 20px 28px;
  background: rgba(255, 255, 255, 0.52);
}

.section-jump-bar > span {
  margin-right: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-jump-bar a {
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.section-jump-bar a:hover,
.section-jump-bar a:focus-visible {
  border-color: var(--chilli);
  color: var(--chilli);
  transform: rotate(-1deg);
}

.text-button.compact {
  display: none;
}

.text-button.compact.visible {
  display: block;
}

.place-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.place-pagination {
  max-width: 1380px;
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.place-pagination[hidden],
.place-pagination button[hidden] {
  display: none;
}

.place-card {
  --category-color: var(--teal);
  background: rgba(255, 250, 243, 0.75);
  border: 1px solid var(--line);
  border-radius: 5px 32px 5px 32px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.place-card.visited {
  background: color-mix(in srgb, var(--category-color) 8%, var(--white));
}

.place-card.visited::after {
  content: "ไปมาแล้ว ✓";
  position: absolute;
  right: -28px;
  top: 20px;
  width: 120px;
  text-align: center;
  transform: rotate(38deg);
  background: var(--category-color);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem;
}

.place-card-top {
  padding: 1.35rem 1.35rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.category-orb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50% 50% 42% 50%;
  background: color-mix(in srgb, var(--category-color) 18%, var(--white));
  color: var(--category-color);
  transform: rotate(-5deg);
}

.category-orb svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(5deg);
}

.save-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.save-button.saved {
  color: var(--chilli);
  border-color: var(--chilli);
  background: #fff4ed;
}

.place-card-body {
  padding: 1rem 1.35rem 1.2rem;
  flex: 1;
}

.place-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--category-color);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-badge {
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
  background: var(--saffron-soft);
  color: #5a3d04;
  border-radius: 999px;
  padding: 0.15rem 0.48rem;
  letter-spacing: 0;
  text-transform: none;
}

.place-card h3 {
  margin: 0.5rem 0 0.08rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.place-card-body > .place-thai-name {
  margin: 0 0 0.75rem;
  color: var(--category-color);
  font-size: 0.88rem;
  font-weight: 600;
}

.google-rating {
  width: max-content;
  max-width: 100%;
  margin: 0 0 0.8rem;
  padding: 0.28rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid rgba(33, 29, 25, 0.24);
  border-radius: 999px;
  background: #fffdf4;
  color: var(--ink);
  font-size: 0.76rem;
  text-decoration: none;
}

.google-rating > span {
  color: #e5a600;
}

.google-rating small {
  color: var(--ink-soft);
}

.google-rating-live {
  border-style: dashed;
}

.place-card-body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.place-meta {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.place-meta span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.transit-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.transit-badge {
  min-width: 34px;
  height: 20px;
  padding: 0 0.38rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.61rem;
  line-height: 1;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.transit-badge.bts {
  background: #3f9d55;
}

.transit-badge.mrt {
  background: #2d5f9d;
}

.transit-badge.arl {
  background: #a92b3e;
}

.transit-badge.gold {
  background: #9c8019;
}

.try-this {
  margin-top: 1rem;
  padding: 0.8rem 0.9rem;
  display: grid;
  gap: 0.15rem;
  border: 1px dashed color-mix(in srgb, var(--category-color) 55%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--category-color) 6%, #fff);
}

.try-this strong {
  color: var(--category-color);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.try-this span {
  color: var(--ink);
  font-size: 0.79rem;
  line-height: 1.5;
}

.local-voice {
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #f3f2ef;
  position: relative;
}

.local-voice.quote::before {
  content: "“";
  position: absolute;
  right: 0.7rem;
  top: -0.2rem;
  color: var(--saffron);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.local-voice-label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.local-voice q,
.local-voice p {
  display: block;
  margin: 0;
  padding-right: 1rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
}

.local-voice q::before,
.local-voice q::after {
  content: none;
}

.local-voice a {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--category-color);
  font-size: 0.67rem;
  font-weight: 700;
}

.transit-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  background: var(--transit-color, var(--teal));
}

.place-note-preview {
  margin-top: 0.8rem;
  border-left: 2px solid var(--saffron);
  padding-left: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.place-card-footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  border-top: 1px solid var(--line);
}

.place-action {
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.place-action:hover,
.place-action:focus-visible {
  background: color-mix(in srgb, var(--category-color) 10%, transparent);
}

.visit-toggle.active {
  background: var(--ink);
  color: var(--white);
}

.note-button {
  width: 50px;
  border-right: 0;
  font-size: 1rem;
}

.empty-state {
  max-width: 1380px;
  margin: 2rem auto;
  text-align: center;
  border: 1px dashed var(--line);
  padding: 4rem 1rem;
}

.empty-state span {
  font-size: 2.5rem;
}

.empty-state h3 {
  margin: 0.5rem 0 0;
}

.empty-state p {
  margin: 0;
  color: var(--ink-soft);
}

.map-section {
  background: var(--teal);
  color: var(--white);
}

.map-section .eyebrow {
  color: var(--saffron-soft);
}

.map-section .section-heading > p {
  color: rgba(255, 250, 243, 0.74);
}

.map-shell {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 1rem;
}

.map-canvas {
  min-height: 640px;
  position: relative;
  border: 1px solid rgba(255, 250, 243, 0.25);
  border-radius: 5px 36px 5px 36px;
  overflow: hidden;
  background: var(--paper-deep);
}

.bangkok-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  preserveAspectRatio: none;
}

.bangkok-map > rect {
  fill: var(--paper-deep);
}

.map-grid {
  fill: none;
  stroke: rgba(33, 29, 25, 0.06);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.river {
  fill: none;
  stroke: #75a9b9;
  stroke-width: 65;
}

.river-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 2;
  stroke-dasharray: 10 13;
}

.map-roads {
  fill: none;
  stroke: rgba(33, 29, 25, 0.23);
  stroke-width: 5;
  stroke-linecap: round;
}

.map-roads path:nth-child(even) {
  stroke-width: 2;
}

.transit-map-lines {
  pointer-events: none;
}

.transit-map-lines path {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

.transit-map-lines .bts-line {
  stroke: #3f9d55;
}

.transit-map-lines .silom-line {
  stroke: #228d73;
}

.transit-map-lines .mrt-line {
  stroke: #2d5f9d;
}

.transit-stations circle {
  fill: var(--paper-deep);
  stroke-width: 3;
}

.bts-stations circle {
  stroke: #277f3d;
}

.mrt-stations circle {
  stroke: #244f87;
}

.transit-stations text {
  fill: rgba(33, 29, 25, 0.7);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  paint-order: stroke;
  stroke: var(--paper-deep);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.park-shapes {
  fill: #a6c293;
  stroke: #6d9362;
  stroke-width: 2;
}

.district-labels {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.17em;
  font-weight: 700;
  fill: rgba(33, 29, 25, 0.36);
}

.map-ornaments {
  fill: none;
  stroke: rgba(33, 29, 25, 0.28);
  stroke-width: 2;
}

.map-markers {
  position: absolute;
  inset: 0;
}

.map-marker {
  --marker-color: var(--teal);
  position: absolute;
  transform: translate(-50%, -100%);
  width: 42px;
  height: 50px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 5px;
  background: var(--marker-color);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 3px 4px 0 rgba(33, 29, 25, 0.75);
  rotate: -8deg;
  transition: transform 150ms ease, z-index 0s;
  z-index: 2;
}

.map-marker svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  rotate: 8deg;
}

.map-marker:hover,
.map-marker:focus-visible,
.map-marker.active {
  transform: translate(-50%, -100%) scale(1.18);
  z-index: 5;
}

.map-marker.visited::after {
  content: "✓";
  position: absolute;
  right: -7px;
  top: -7px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  rotate: 8deg;
}

.map-marker.is-hidden {
  display: none;
}

.map-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100% - 2rem));
  padding: 1.1rem;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px 22px 4px 22px;
  box-shadow: 5px 6px 0 var(--ink);
  z-index: 10;
}

.map-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.map-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
}

.map-card-thai {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
}

.map-card p {
  margin: 0.45rem 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.map-card a {
  font-size: 0.8rem;
  font-weight: 700;
}

.map-close {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.map-legend {
  border: 1px solid rgba(255, 250, 243, 0.25);
  border-radius: 4px 24px 4px 24px;
  padding: 1.4rem;
  align-self: start;
}

.map-legend .micro-label {
  color: var(--saffron-soft);
}

#mapLegend {
  display: grid;
  gap: 0.9rem;
}

.transit-legend {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 250, 243, 0.22);
}

.transit-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.line-swatch {
  width: 26px;
  height: 5px;
  display: inline-block;
  border-radius: 999px;
}

.bts-swatch {
  background: #62c977;
}

.mrt-swatch {
  background: #6f9bd2;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 250, 243, 0.9);
  font-size: 0.85rem;
}

.legend-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--legend-color);
}

.legend-icon svg {
  width: 17px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-tip {
  border-top: 1px solid rgba(255, 250, 243, 0.22);
  padding-top: 1rem;
  margin: 1.2rem 0 0;
  color: rgba(255, 250, 243, 0.64);
  font-size: 0.75rem;
}

.map-tip span {
  color: var(--saffron-soft);
}

.clusters-section {
  background: #efe3d5;
}

.cluster-list {
  max-width: 1380px;
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.cluster-card {
  display: grid;
  grid-template-columns: 80px minmax(220px, 0.8fr) minmax(330px, 1.4fr) auto;
  gap: 2rem;
  align-items: center;
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.cluster-number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--chilli);
}

.cluster-title h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0;
}

.cluster-title p {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.cluster-stops {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.cluster-stops span:not(.cluster-arrow) {
  border-bottom: 1px dotted var(--line);
}

.cluster-arrow {
  color: var(--chilli);
}

.cluster-open {
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: 150ms ease;
}

.cluster-open:hover,
.cluster-open:focus-visible {
  background: var(--ink);
  color: white;
  transform: rotate(45deg);
}

.memory-section {
  min-height: 520px;
  padding: 6rem 5vw;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--saffron-soft);
}

.memory-section > div:not(.memory-decoration) {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.memory-section .eyebrow {
  color: #7c5200;
}

.memory-section > div > p {
  margin: 1.2rem auto 2rem;
}

.memory-actions {
  justify-content: center;
}

.memory-decoration {
  position: absolute;
  width: 250px;
  color: rgba(33, 29, 25, 0.35);
}

.memory-decoration svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-decoration-left {
  left: 3vw;
  bottom: 1rem;
}

.memory-decoration-right {
  right: 2vw;
  top: 2rem;
}

footer {
  background: var(--ink);
  color: var(--white);
  padding: 1.4rem 5vw;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

footer p {
  margin: 0;
}

.footer-playful em {
  font-family: "Caveat", var(--font-display);
  font-size: 1.35em;
  font-style: italic;
  font-weight: 700;
  color: var(--saffron-soft);
}

.modal {
  width: min(620px, calc(100% - 2rem));
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 5px 30px 5px 30px;
  padding: 0;
  box-shadow: 9px 10px 0 var(--ink);
}

.modal::backdrop {
  background: rgba(33, 29, 25, 0.58);
  backdrop-filter: blur(3px);
}

.modal form {
  padding: 1.7rem;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.modal-heading .eyebrow {
  margin-bottom: 0.4rem;
}

.modal h2 {
  font-size: 1.8rem;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

.modal label {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.modal input,
.modal textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem;
  border-radius: 3px 12px 3px 12px;
  outline: 0;
  font-weight: 400;
}

.modal input:focus,
.modal textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18, 111, 107, 0.13);
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal menu {
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
}

.place-modal > form > p {
  color: var(--ink-soft);
}

.toast {
  position: fixed;
  z-index: 100;
  bottom: 1.2rem;
  left: 50%;
  transform: translate(-50%, calc(100% + 3rem));
  background: var(--ink);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  transition: transform 200ms ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 5rem;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-art {
    height: 520px;
    width: min(760px, 100%);
    margin: -1rem auto 0;
  }

  .trip-strip {
    grid-template-columns: 1fr auto auto;
  }

  .trip-strip .text-button {
    grid-column: 1 / -1;
  }

  .place-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluster-card {
    grid-template-columns: 55px 0.8fr 1.4fr auto;
    gap: 1rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 64px;
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .brand {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .desktop-nav,
  #headerProgressText {
    display: none;
  }

  .hero {
    padding: 4rem 1.2rem 5rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 4rem);
  }

  .hero-intro {
    margin: 1.2rem 0 1.6rem;
  }

  .hero-art {
    height: 370px;
    width: 125%;
    margin-left: -13%;
  }

  .hero-stamp {
    width: 80px;
    height: 80px;
    right: 10%;
    top: 4%;
  }

  .hero-marquee {
    justify-content: flex-start;
    overflow: hidden;
    padding-left: 1rem;
  }

  .trip-strip {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem 1.2rem;
    gap: 1rem;
  }

  .trip-strip > div:first-child,
  .trip-strip .text-button {
    grid-column: 1 / -1;
  }

  .section {
    padding: 5rem 1.2rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .section-heading h2,
  .memory-section h2 {
    font-size: clamp(2.1rem, 10vw, 3.2rem);
  }

  .filter-toolbar {
    align-items: stretch;
  }

  .category-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .filter-chip {
    justify-content: center;
    padding: 0.4rem 0.6rem;
  }

  .search-field {
    order: 2;
    width: 100%;
  }

  .filter-toggle {
    order: 3;
    width: max-content;
  }

  .place-grid {
    grid-template-columns: 1fr;
  }

  .place-card {
    min-height: 280px;
  }

  .map-shell {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    min-height: 520px;
  }

  .map-legend {
    display: none;
  }

  .map-marker {
    width: 36px;
    height: 43px;
  }

  .map-marker svg {
    width: 19px;
  }

  .cluster-card {
    grid-template-columns: 42px 1fr auto;
    align-items: start;
    padding: 1.35rem 0;
  }

  .cluster-title {
    grid-column: 2;
  }

  .cluster-stops {
    grid-column: 2 / -1;
  }

  .cluster-open {
    grid-column: 3;
    grid-row: 1;
  }

  .memory-section {
    min-height: 560px;
    padding: 6rem 1.2rem;
  }

  .memory-decoration {
    width: 150px;
  }

  .memory-decoration-left {
    left: -30px;
  }

  .memory-decoration-right {
    right: -30px;
  }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal form {
    padding: 1.25rem;
  }
}

/* Language, transit and shared-list controls */
.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 38px;
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 2px 2px 0 rgba(33, 29, 25, 0.85);
}

.language-toggle i {
  width: 1px;
  height: 15px;
  background: var(--line);
}

.language-option {
  opacity: 0.45;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.language-option.active {
  opacity: 1;
  color: var(--chilli);
}

.header-progress {
  cursor: default;
}

.transit-filter-panel,
.to-visit-panel {
  max-width: 1380px;
  margin: 0 auto 1rem;
  border: 1.5px solid rgba(33, 29, 25, 0.72);
  border-radius: 26px;
  background: #fff;
  box-shadow: 3px 4px 0 rgba(33, 29, 25, 0.88);
}

.transit-filter-panel {
  display: grid;
  grid-template-columns: minmax(175px, 0.22fr) 1fr;
  gap: 1rem;
  padding: 1rem;
}

.transit-filter-heading,
.to-visit-copy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.transit-filter-heading strong,
.transit-filter-heading small {
  display: block;
}

.transit-filter-heading small {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.transit-filter-icon,
.to-visit-heart {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 45% 55% 47% 53%;
  background: #f7d766;
  font-size: 1.35rem;
  font-weight: 700;
  transform: rotate(-3deg);
}

.transit-filter-controls {
  min-width: 0;
  display: grid;
  gap: 0.72rem;
}

.transit-system-filters,
.station-filters {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.1rem 0.15rem 0.35rem;
}

.transit-chip,
.station-chip {
  flex: 0 0 auto;
  min-height: 35px;
  border: 1px solid rgba(33, 29, 25, 0.35);
  border-radius: 999px;
  background: #fafaf8;
  color: var(--ink);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.transit-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.line-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #777;
}

.system-bts .line-dot { background: #53a563; }
.system-mrt .line-dot { background: #3775b9; }
.system-arl .line-dot { background: #a23a47; }
.system-gold .line-dot { background: #c2a231; }

.transit-chip[aria-pressed="true"],
.station-chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 2px 2px 0 #f0a851;
}

.station-chip small {
  margin-right: 0.32rem;
  opacity: 0.62;
  font-size: 0.62rem;
}

.to-visit-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 1.15rem;
  background-color: #fff7da;
  background-image: radial-gradient(rgba(33, 29, 25, 0.11) 0.7px, transparent 0.7px);
  background-size: 13px 13px;
}

.to-visit-copy .micro-label,
.to-visit-copy h3 {
  margin: 0;
}

.to-visit-copy h3 {
  font-size: 1.05rem;
}

.to-visit-heart {
  background: #ffb8bd;
}

.to-visit-preview {
  min-width: 0;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.2rem 0.1rem;
}

.to-visit-preview > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.to-visit-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 37px;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8rem;
}

.to-visit-pill span,
.to-visit-pill svg {
  width: 17px;
  height: 17px;
}

.to-visit-pill svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.to-visit-pill b {
  color: var(--chilli);
}

.to-visit-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}

.compact-button {
  min-height: 40px;
  padding: 0.42rem 0.9rem;
  white-space: nowrap;
}

.compact-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
}

.add-place-details {
  position: relative;
}

.add-place-details summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0.42rem 0.85rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  list-style: none;
}

.add-place-details summary::-webkit-details-marker { display: none; }

.add-place-form {
  width: min(540px, calc(100vw - 2.5rem));
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.75rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 5px 6px 0 var(--ink);
}

.add-place-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.add-place-form input,
.add-place-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafaf8;
  padding: 0.5rem 0.7rem;
}

.add-place-form .wide-field,
.add-place-form .button {
  grid-column: 1 / -1;
}

/* Cleaner Excalidraw-like Bangkok illustration */
.excalidraw-scene {
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.excalidraw-scene .rough-under {
  transform: translate(1.5px, 1.2px);
  opacity: 0.28;
  stroke-width: 2.2;
}

.excalidraw-scene .hatch-pink { fill: url(#hatchPink); }
.excalidraw-scene .hatch-mint { fill: url(#hatchMint); }
.excalidraw-scene .hatch-blue { fill: url(#hatchBlue); }
.excalidraw-scene .hatch-gold { fill: url(#hatchGold); }
.excalidraw-scene .paper-fill { fill: #fbfbfa; }
.excalidraw-scene .travel-line { stroke-width: 2; stroke-dasharray: 7 9; }
.excalidraw-scene .route-dot { fill: #fbfbfa; stroke-width: 2; }
.excalidraw-scene .prang-detail { stroke-width: 1.6; opacity: 0.7; }
.excalidraw-scene .steam-line { stroke-width: 2.3; }
.excalidraw-scene .coffee-bean { fill: #dba47d; }
.excalidraw-scene .halo-line { stroke: #dfaa33; stroke-width: 2; stroke-dasharray: 6 7; }
.excalidraw-scene .motion-mark { stroke-width: 2; stroke-dasharray: 2 8; }
.excalidraw-scene .spark-mark { fill: #ffdf54; stroke: #e77f28; }

@media (max-width: 900px) {
  .to-visit-panel {
    grid-template-columns: 1fr auto;
  }

  .to-visit-preview {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 760px) {
  .header-actions { gap: 0.4rem; }
  .language-toggle { min-height: 34px; padding-inline: 0.48rem; }
  .header-progress { gap: 0.35rem; }
  .transit-filter-panel { grid-template-columns: 1fr; }
  .to-visit-panel { grid-template-columns: 1fr; align-items: stretch; }
  .to-visit-preview,
  .to-visit-actions { grid-column: auto; grid-row: auto; }
  .to-visit-actions { flex-wrap: wrap; }
  .add-place-form { position: fixed; left: 1.25rem; right: 1.25rem; top: 20%; width: auto; max-height: 70vh; overflow-y: auto; }
}

@media (max-width: 430px) {
  .brand > span:last-child { font-size: 0.78rem; }
  .progress-ring { width: 29px; height: 29px; }
  .add-place-form { grid-template-columns: 1fr; }
  .add-place-form label,
  .add-place-form .button { grid-column: 1; }
}

@media (max-width: 430px) {
  .category-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions,
  .hero-actions .button,
  .memory-actions,
  .memory-actions .button {
    width: 100%;
  }

  .trip-stat {
    display: grid;
    gap: 0;
  }

  .place-card-footer {
    grid-template-columns: 1fr 1fr 48px;
  }

  .place-action {
    padding-inline: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Ink-and-paper visual direction, inspired by friendly explanatory drawings. */
body {
  background-color: #fafaf8;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 0 rgba(33, 29, 25, 0.08);
}

.hero {
  background-color: #fbfbfa;
  background-image: radial-gradient(rgba(33, 29, 25, 0.115) 0.8px, transparent 0.8px);
  background-size: 15px 15px;
}

.hero::before,
.hero-sun,
.hero-cloud {
  display: none;
}

.hero h1,
.section-heading h2,
.memory-section h2,
.modal h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.hero h1 {
  line-height: 1.15;
}

.hero h1 em {
  font-family: "Caveat", var(--font-display);
  font-style: italic;
  font-size: 1.08em;
  font-weight: 700;
  color: var(--chilli);
  position: relative;
  display: inline;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.12em;
  border-radius: 50%;
  background: var(--saffron);
  transform: rotate(-1deg);
  z-index: -1;
}

.eyebrow em {
  font-family: inherit;
  font-style: italic;
  font-weight: 700;
  text-transform: none;
  color: var(--chilli);
}

#map-title {
  font-family: "Caveat", var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.015em;
  transform: rotate(-1deg);
  transform-origin: left center;
}

#clusters-title em {
  font-family: "Caveat", var(--font-display);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--chilli);
  white-space: nowrap;
}

#tripDisplayName {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

#tripDisplayName em {
  font-family: "Caveat", var(--font-display);
  font-style: italic;
  font-size: 1.35em;
  color: var(--saffron);
}

@media (max-width: 760px) {
  #clusters-title em {
    white-space: normal;
  }
}

.hero-art {
  max-width: 730px;
}

.doodle-scene {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.doodle-fill-mint {
  fill: #bbebca;
}

.doodle-fill-orange {
  fill: #ffb56b;
}

.doodle-fill-blue {
  fill: #c5e7ff;
}

.doodle-fill-pink {
  fill: #ffb2b8;
}

.doodle-fill-saffron {
  fill: #f3bd46;
}

.doodle-halo {
  fill: none;
  stroke: #e3a72f;
  stroke-width: 3;
  stroke-dasharray: 7 9;
}

.doodle-cloud {
  fill: #f8f8f5;
  stroke: #459cff;
}

.doodle-spark {
  fill: #ffe35f;
  stroke: #ef8b27;
}

.doodle-dash {
  stroke-width: 2;
  stroke-dasharray: 7 8;
}

.doodle-steam {
  stroke-width: 3;
}

.doodle-temple {
  fill: url(#doodleHatch);
  stroke-width: 3;
}

.doodle-arms {
  stroke-width: 3;
}

.hero-stamp {
  background: #fff;
  border-radius: 46% 54% 49% 51%;
  box-shadow: 3px 3px 0 var(--chilli);
}

.button,
.filter-chip,
.filter-toggle,
.map-legend,
.modal,
.modal input,
.modal textarea {
  border-radius: 18px;
}

.button {
  border-radius: 999px;
  padding-inline: 1.45rem;
}

.brand-mark,
.progress-ring,
.save-button,
.icon-button,
.cluster-open {
  border-radius: 50%;
}

.search-field {
  height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.button:hover,
.button:focus-visible {
  box-shadow: 4px 5px 0 var(--ink);
}

.places-section {
  background: #fff;
}

.places-section,
.map-section,
.clusters-section {
  position: relative;
  overflow: hidden;
}

.section-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.18;
  filter: url(#inkWobble);
}

.section > *:not(.section-doodle) {
  position: relative;
  z-index: 1;
}

.doodle-tuktuk-margin {
  width: 230px;
  right: -45px;
  top: 34px;
  color: var(--ink);
  transform: rotate(4deg);
}

.doodle-prang-margin {
  width: 180px;
  left: -28px;
  top: 20px;
  color: var(--white);
  opacity: 0.22;
  transform: rotate(-2deg);
}

.doodle-lotus-margin {
  width: 240px;
  right: -30px;
  top: 45px;
  color: var(--ink);
  transform: rotate(6deg);
}

.place-card {
  background: #fff;
  border-color: rgba(33, 29, 25, 0.42);
  border-radius: 28px;
}

.place-card:hover {
  box-shadow: 5px 6px 0 var(--ink);
}

.category-orb {
  border: 2px solid currentColor;
  border-radius: 46% 54% 48% 52%;
  filter: url(#inkWobble);
}

.map-canvas,
.map-card {
  border-radius: 30px;
}

.map-canvas {
  box-shadow: 7px 8px 0 rgba(33, 29, 25, 0.55);
}

.bangkok-map {
  filter: url(#inkWobble);
}

.map-marker {
  border-radius: 52% 48% 52% 18%;
}

.clusters-section {
  background-color: #fbfbfa;
  background-image: radial-gradient(rgba(33, 29, 25, 0.09) 0.75px, transparent 0.75px);
  background-size: 16px 16px;
}

.cluster-list {
  display: grid;
  gap: 1rem;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.cluster-card {
  padding: 1.5rem clamp(1.1rem, 2.5vw, 2rem);
  border: 1.5px solid var(--ink);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 4px 5px 0 rgba(33, 29, 25, 0.9);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cluster-card:hover {
  transform: translateY(-3px) rotate(-0.15deg);
  box-shadow: 6px 8px 0 rgba(33, 29, 25, 0.9);
}

.cluster-card:nth-child(even):hover {
  transform: translateY(-3px) rotate(0.15deg);
}

.cluster-title h3 {
  font-weight: 700;
}

.memory-section {
  background-color: #ffd96a;
  background-image: radial-gradient(rgba(33, 29, 25, 0.11) 0.75px, transparent 0.75px);
  background-size: 17px 17px;
}

.modal {
  border-radius: 30px;
}

.modal input,
.modal textarea {
  border-radius: 14px;
}

.map-legend {
  border-radius: 24px;
}

.map-card {
  box-shadow: 4px 5px 0 var(--ink);
}

.place-action:first-child {
  border-bottom-left-radius: 27px;
}

.place-action:last-child {
  border-bottom-right-radius: 27px;
}

.memory-decoration svg,
.hero-art svg {
  overflow: visible;
}

@media (max-width: 760px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    order: 2;
  }

  .hero-art {
    order: 1;
    height: 330px;
    margin-top: -2rem;
    margin-bottom: 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.6rem);
  }

  .section-doodle {
    width: 130px;
    opacity: 0.11;
  }
}

/* Keep the rough drawing treatment authoritative after the legacy visual rules. */
.doodle-scene.excalidraw-scene {
  stroke-width: 3;
}

.doodle-scene.excalidraw-scene .rough-under {
  transform: translate(1.5px, 1.2px);
  opacity: 0.28;
  stroke-width: 2.2;
}

.doodle-scene.excalidraw-scene .hatch-pink { fill: url(#hatchPink); }
.doodle-scene.excalidraw-scene .hatch-mint { fill: url(#hatchMint); }
.doodle-scene.excalidraw-scene .hatch-blue { fill: url(#hatchBlue); }
.doodle-scene.excalidraw-scene .hatch-gold { fill: url(#hatchGold); }
.doodle-scene.excalidraw-scene .paper-fill { fill: #fbfbfa; }

/* 7-Eleven snack side quest */
.snacks-section {
  position: relative;
  overflow: hidden;
  background-color: #eef8f4;
  background-image: radial-gradient(rgba(33, 29, 25, 0.1) 0.75px, transparent 0.75px);
  background-size: 15px 15px;
}

.snack-heading {
  align-items: center;
}

.snack-heading > div:last-child {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
}

#snacks-title em {
  font-family: "Caveat", var(--font-display);
  font-style: italic;
  color: var(--chilli);
}

.snack-progress {
  display: inline-flex;
  padding: 0.38rem 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: #f7d766;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 0.8rem;
}

.snack-doodle {
  width: 245px;
  position: absolute;
  top: 18px;
  right: -28px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.14;
  filter: url(#inkWobble);
  transform: rotate(4deg);
}

.snack-bag-fill { fill: #f4c558; }
.snack-packet { fill: #ffb8bd; }
.snack-spark { fill: #c7e7f8; }

.snack-grid {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.snack-card {
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 3px 4px 0 var(--ink);
  transform: rotate(var(--snack-tilt));
  transition: transform 160ms ease, background 160ms ease;
}

.snack-card:hover {
  transform: translateY(-3px) rotate(0deg);
}

.snack-card.tried {
  background: #fff2b8;
}

.snack-toggle {
  width: 100%;
  min-height: 210px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 0.7rem;
  position: relative;
  padding: 1.2rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.snack-check {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  border: 1.5px solid var(--ink);
  border-radius: 45% 55% 46% 54%;
  background: #fff;
  font-weight: 800;
}

.snack-card.tried .snack-check {
  background: var(--teal);
  color: #fff;
}

.snack-emoji {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ink);
  border-radius: 47% 53% 50% 46%;
  background: #fff;
  font-size: 1.65rem;
  transform: rotate(-3deg);
}

.snack-card-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
  padding-right: 1.35rem;
}

.snack-card-copy strong {
  font-size: 1.08rem;
  line-height: 1.25;
}

.snack-card-copy small {
  color: var(--chilli);
  font-weight: 600;
}

.snack-card-copy > span {
  grid-column: 1 / -1;
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.snack-card-copy b {
  width: max-content;
  margin-top: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #c7e7f8;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.snack-card > a {
  display: block;
  padding: 0.6rem 1.2rem;
  border-top: 1px dashed rgba(33, 29, 25, 0.35);
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 600;
  text-align: right;
  text-decoration: none;
}

@media (max-width: 980px) {
  .snack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .snack-doodle { width: 145px; opacity: 0.08; }
  .snack-grid { grid-template-columns: 1fr; }
  .snack-toggle { min-height: 0; }
}
