:root {
  --black: #000000;
  --ink: #1D1D1F;
  --gray: #6E6E73;
  --mist: #F5F5F7;
  --line: #D2D2D7;
  --white: #FFFFFF;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-pad: max(calc(var(--safe-bottom) - 16px), 6px);
  --nav-h: calc(46px + var(--nav-pad));
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, "Noto Sans Thai", "Leelawadee UI", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--black); }
body {
  background: var(--black);
  color: var(--ink);
  font: 400 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { display: block; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

#app {
  position: relative;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--white);
}
.demo-note { display: none; }

@media (min-width: 520px) {
  .demo-note {
    position: fixed;
    right: 14px;
    bottom: 4px;
    z-index: 6;
    display: block;
    margin: 0;
    color: var(--gray);
    font-size: 11px;
  }
}

@media (min-width: 760px) and (max-width: 1023px) {
  .head, .sub, .search, .tabs, .carousel, .section-head, .pills, .plan-list, .save-row,
  .stats, .team-note, .place-actions, .lens-card {
    width: 100%;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }
  .lens-card { right: 0; left: 0; }
}

.pc-only, .start-btn, .nav-label, .nav-brand { display: none; }

.screen { position: relative; min-height: 100dvh; }
#app[data-enter] .screen { animation: enter .22s ease both; }
@keyframes enter { from { opacity: 0; } }
.welcome, .lens-page, .driver { position: fixed; inset: 0; min-height: 0; overflow: hidden; }
.has-nav .scroll { padding-bottom: calc(var(--nav-h) + 24px); }

/* Welcome */
.welcome { background: var(--black) url("assets/img/river-hero.webp") center / cover; color: var(--white); text-align: center; }
.welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, .64), rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .78));
}
.welcome-copy { position: absolute; top: calc(66px + var(--safe-top)); left: 24px; right: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 600; }
.brand svg { width: 24px; height: 24px; }
.welcome h1 { margin-top: 28px; font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -.6px; }
.welcome p { margin-top: 10px; font-size: 14px; }
.welcome-foot {
  position: absolute;
  bottom: calc(22px + var(--safe-bottom));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.swipe {
  position: relative;
  width: 76px;
  height: 164px;
  border-radius: 38px;
  background: rgba(255, 255, 255, .26);
  touch-action: none;
}
.swipe svg { position: absolute; top: 18px; left: 25px; width: 26px; height: 26px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-6px); opacity: .55; } }
.go {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  touch-action: none;
}
.powered { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-size: 12px; }
.powered img { width: 68px; height: 68px; object-fit: contain; }

/* Shared header */
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(20px + var(--safe-top)) 24px 0; }
.head h1 { font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
.sub { padding: 2px 24px 0; color: var(--gray); }
.actions { display: flex; gap: 8px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mist);
  font-size: 13px;
  font-weight: 600;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* Language */
.flag { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 16px; line-height: 1; }
.welcome-lang { position: absolute; top: calc(16px + var(--safe-top)); right: 16px; z-index: 2; }
.welcome-lang .lang-btn {
  background: rgba(255, 255, 255, .2);
  color: var(--white);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.nav-lang { display: none; }
.lang-layer { position: fixed; inset: 0; z-index: 20; }
.lang-menu {
  position: absolute;
  width: 216px;
  padding: 6px;
  overflow-y: auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 12px 36px rgba(0, 0, 0, .18);
  transform-origin: top right;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  animation: menuIn .16s ease-out both;
}
@keyframes menuIn { from { opacity: 0; transform: scale(.94) translateY(-4px); } }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  text-align: start;
}
.lang-option:hover, .lang-option:focus-visible { background: var(--mist); outline: none; }
.lang-name { flex: 1; min-width: 0; white-space: nowrap; }
.lang-option svg { flex: none; width: 14px; height: 14px; }
.lang-option[aria-checked="true"] { font-weight: 600; }
[dir="rtl"] .nav, [dir="rtl"] .map, [dir="rtl"] .carousel { direction: ltr; }
[dir="rtl"] :is(h1, h2, h3, p, strong, span) { unicode-bidi: plaintext; }

/* Discover */
.search { padding: 12px 24px 0; }
.search input {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 23px;
  background: var(--mist);
  color: var(--ink);
  font: 400 16px var(--font);
}
.tabs { display: flex; gap: 26px; padding: 16px 24px 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; min-height: 44px; padding-top: 10px; color: var(--gray); white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tab[aria-selected="true"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}
.carousel {
  display: flex;
  gap: 16px;
  padding: 8px 24px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 24px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  flex: 0 0 246px;
  height: 350px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--black);
  scroll-snap-align: start;
  text-align: left;
}
.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card.solid { display: grid; place-items: center; color: var(--white); }
.card.solid > svg { width: 72px; height: 72px; margin-bottom: 50px; }
.caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.caption strong { display: block; overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.caption span { display: block; color: var(--gray); font-size: 12px; }
.badge {
  position: absolute;
  right: 22px;
  bottom: 72px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 500;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.section-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 8px; }
.section-head h2 { font-size: 18px; font-weight: 600; }
.pills { display: flex; gap: 9px; padding: 0 24px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  display: flex;
  flex: 0 0 168px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  background: var(--mist);
  text-align: left;
}
.thumb {
  display: grid;
  flex: 0 0 64px;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 28px; height: 28px; }
.pill strong { display: block; color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; }
.pill span { display: block; color: var(--gray); font-size: 12px; }
.empty { padding: 28px 24px; color: var(--gray); text-align: center; }

/* Navigation */
.nav {
  --tab: 0;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--nav-h);
  padding-bottom: var(--nav-pad);
  border-radius: 24px 24px 0 0;
  background: rgba(245, 245, 247, .88);
  box-shadow: 0 -.5px 0 rgba(0, 0, 0, .12);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.nav-indicator {
  position: absolute;
  top: -9px;
  left: 0;
  display: grid;
  place-items: center;
  width: 25%;
  height: 44px;
  transform: translateX(calc(var(--tab) * 100%));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
}
.nav-indicator::before {
  content: "";
  grid-area: 1 / 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--mist), 0 0 0 4px rgba(17, 17, 17, .22);
}
.nav.moved .nav-indicator::before { animation: squish .45s ease; }
.nav.moved .nav-indicator::after {
  content: "";
  grid-area: 1 / 1;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  animation: ripple .6s ease-out both;
}
@keyframes squish {
  35% { transform: scale(1.1, .92); }
}
@keyframes ripple {
  from { opacity: .35; transform: scale(1); }
  to { opacity: 0; transform: scale(1.5); }
}
.tab-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 46px;
  color: var(--gray);
  transition: color .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
.tab-btn svg { width: 22px; height: 22px; }
.tab-btn:active svg { transform: scale(.82); }
.tab-btn[aria-current="page"] { color: var(--white); transform: translateY(-10px); }
.tab-btn[aria-current="page"] svg { width: 18px; height: 18px; }
.nav.moved .tab-btn[aria-current="page"] svg { animation: tabPop .55s ease both; }
@keyframes tabPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.nav button.nav-brand { display: none; }
.count {
  position: absolute;
  top: 3px;
  left: calc(50% + 5px);
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  animation: tabPop .5s ease both;
}

/* Place */
.place { background: var(--white); }
.hero {
  --hero-h: min(462px, 60dvh);
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: var(--black);
  color: var(--white);
}
.hero.solid { display: grid; place-items: center; }
.hero.solid > svg { width: 110px; height: 110px; }
.hero::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
}
.hero-title { position: absolute; left: 28px; right: 90px; bottom: 36px; z-index: 1; }
.hero-title h1 { font-size: 30px; font-weight: 600; line-height: 1.15; }
.hero-title p { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.hero-title svg { flex: none; width: 12px; height: 15px; }
.glass {
  position: absolute;
  top: calc(16px + var(--safe-top));
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .32);
  color: var(--white);
}
.glass svg { width: 20px; height: 20px; }
.glass.left { left: 24px; }
.glass.right { right: 24px; }
.glass[aria-pressed="true"] svg { fill: currentColor; }
.gallery { position: absolute; top: calc(min(462px, 60dvh) - 252px); right: 21px; z-index: 3; display: grid; gap: 14px; }
.gallery button {
  width: 58px;
  height: 58px;
  border: 3px solid var(--white);
  overflow: hidden;
  border-radius: 14px;
  background: var(--black);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery button[aria-pressed="true"] { border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 42px 24px 0; }
.stat { padding: 12px 6px; border-radius: 16px; background: var(--mist); text-align: center; }
.stat span { display: block; color: var(--gray); font-size: 12px; }
.stat strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.team-note { padding: 18px 24px 0; }
.team-note h2 { font-size: 16px; font-weight: 600; }
.team-note p { margin-top: 4px; color: var(--gray); line-height: 21px; }
.place-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: 1.45fr 1fr 68px;
  align-items: center;
  gap: 10px;
  padding: 18px 24px calc(18px + var(--safe-bottom));
  background: linear-gradient(rgba(255, 255, 255, 0), var(--white) 26%);
}
.soft-btn {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 28px;
  background: var(--mist);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.circle-btn {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
}
.circle-btn svg { width: 24px; height: 24px; }
.circle-btn[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Lens */
.map { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.map > svg, .lens-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lens {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--white), 0 18px 44px rgba(0, 0, 0, .3);
  cursor: grab;
}
.lens-map { position: absolute; top: 0; left: 0; }
.pin {
  position: absolute;
  width: 62px;
  height: 62px;
  margin: -31px 0 0 -31px;
  border: 3px solid var(--white);
  overflow: hidden;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
}
.pin img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pin svg { position: static; width: 28px; height: 28px; margin: 14px 0 0 14px; }
.lens-head { position: absolute; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none; }
.lens-card { position: absolute; left: 16px; right: 16px; bottom: calc(var(--nav-h) + 20px); z-index: 3; }
.lens-card .pill { width: 100%; background: var(--white); box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.lens-card .hint { padding: 14px 20px; border-radius: 26px; background: var(--white); color: var(--gray); text-align: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }

/* Driver */
.driver { padding: calc(20px + var(--safe-top)) 24px calc(24px + var(--safe-bottom)); overflow-y: auto; background: var(--black); color: var(--white); }
.driver .glass { position: static; background: rgba(255, 255, 255, .14); }
.driver-photo { width: 132px; height: 132px; margin-top: 28px; border: 4px solid var(--white); border-radius: 50%; object-fit: cover; }
.driver-copy { margin-top: 24px; }
.driver-copy .ask { font-size: 20px; opacity: .8; }
.driver-copy h1 { margin-top: 4px; font-size: clamp(38px, 12vw, 52px); font-weight: 600; line-height: 1.25; }
.driver-copy .address { margin-top: 10px; font-size: 21px; line-height: 32px; white-space: pre-line; }
.driver-copy .en { margin-top: 10px; opacity: .72; }
.driver-foot { margin-top: 36px; text-align: center; }
.white-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 60px;
  border-radius: 30px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.tel { display: inline-block; margin-top: 12px; padding: 10px; font-size: 13px; opacity: .8; }

/* Plan */
.plan-list { display: grid; gap: 12px; padding: 18px 24px 0; }
.plan-item { position: relative; }
.plan-item .pill { width: 100%; padding-right: 92px; }
.number {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--white);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}
.plan-tools { position: absolute; top: 50%; right: 10px; display: flex; gap: 2px; transform: translateY(-50%); }
.tool { display: grid; place-items: center; width: 34px; height: 44px; color: var(--gray); }
.tool:disabled { opacity: .3; cursor: default; }
.tool svg { width: 18px; height: 18px; }
.add-place {
  display: grid;
  place-items: center;
  min-height: 60px;
  border: 1.5px dashed var(--line);
  border-radius: 20px;
  color: var(--gray);
  font-size: 13px;
  font-weight: 600;
}
.save-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px 24px 0; }
.save-row h2 { font-size: 18px; font-weight: 600; }
.save-row p { color: var(--gray); font-size: 12px; }
.circle-btn:disabled { background: var(--line); color: var(--gray); cursor: default; }

/* PC version */
@media (min-width: 1024px) {
  .nav {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    height: 76px;
    padding: 0 max(32px, calc((100% - 1200px) / 2));
    border-bottom: .5px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, .86);
    box-shadow: none;
  }
  .nav-indicator { display: none; }
  .nav .tab-btn[aria-current="page"] svg { width: 20px; height: 20px; }
  .nav .tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    height: 44px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 22px;
    background: none;
    box-shadow: none;
    color: var(--gray);
    font-weight: 500;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav .tab-btn:hover { background: var(--mist); }
  .nav .tab-btn[aria-current="page"],
  .nav .tab-btn[aria-current="page"]:hover { background: var(--ink); color: var(--white); transform: none; }
  .nav svg { width: 20px; height: 20px; }
  .nav-label { display: inline; }
  .nav button.nav-brand {
    order: -1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
  }
  .nav-brand svg { width: 26px; height: 26px; }
  .count { position: static; animation: none; }
  .pc-only { display: block; }
  .nav-lang { display: block; margin-inline-start: 8px; }
  .discover-page .head .lang-btn { display: none; }

  .has-nav .scroll { padding-bottom: 56px; }
  .head { padding-top: 0; }
  .glass, .glass.left, .glass.right { top: 20px; }
  .head h1 { font-size: 40px; }
  .sub { font-size: 16px; }

  /* Welcome */
  .welcome { background: var(--black); text-align: left; }
  .welcome::before {
    inset: 0 0 0 46%;
    background: url("assets/img/river-hero.webp") center / cover;
  }
  .welcome-copy {
    top: 50%;
    right: auto;
    left: max(48px, 6vw);
    width: 36vw;
    transform: translateY(-50%);
  }
  .welcome h1 { font-size: clamp(48px, 5.2vw, 78px); line-height: 1.12; }
  .welcome p { margin-top: 16px; font-size: 18px; opacity: .88; }
  .brand { font-size: 22px; }
  .start-btn {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    margin-top: 32px;
    padding: 0 32px;
    border-radius: 28px;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
  }
  .welcome-foot { right: auto; bottom: 28px; left: max(48px, 6vw); align-items: flex-start; }
  .swipe { display: none; }

  /* Discover */
  .discover-page .scroll { padding-top: 116px; }
  .discover-page .head, .discover-page .search, .discover-page .tabs, .discover-page #results,
  .discover-page .section-head, .discover-page .pills {
    width: 100%;
    max-width: 1264px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 32px;
    padding-left: 32px;
  }
  .discover-page .tabs { padding-top: 24px; overflow: visible; }
  .discover-page .tab { font-size: 15px; }
  .carousel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 16px 0 0;
    overflow: visible;
  }
  .card { flex: none; width: 100%; height: auto; aspect-ratio: 246 / 330; transition: transform .2s; }
  .card:hover { transform: translateY(-4px); }
  .section-head { padding-top: 40px; padding-bottom: 14px; }
  .pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; overflow: visible; }
  .pill { flex: none; width: 100%; }
  .pill:hover { background: var(--line); }

  /* Place */
  .place .scroll {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    column-gap: 56px;
    max-width: 1264px;
    margin: 0 auto;
    padding: 108px 32px 40px;
  }
  .hero {
    grid-column: 1;
    grid-row: 1 / 5;
    height: min(620px, calc(100dvh - 250px));
    min-height: 420px;
    border-radius: 40px;
  }
  .glass, .glass.left, .glass.right { top: 20px; }
  .hero-title { right: 32px; }
  .hero-title h1 { font-size: 40px; }
  .gallery { position: static; grid-column: 1; grid-row: 5; display: flex; gap: 12px; padding-top: 16px; }
  .gallery button { width: 76px; height: 76px; }
  .stats { grid-column: 2; grid-row: 1; padding: 0; }
  .team-note { grid-column: 2; grid-row: 2; padding: 32px 0 0; }
  .team-note h2 { font-size: 20px; }
  .team-note p { font-size: 16px; line-height: 1.6; }
  .place-actions { position: static; grid-column: 2; grid-row: 3; padding: 32px 0 0; background: none; }

  /* Lens */
  .lens-page { background: var(--white); }
  .map { top: 76px; right: 420px; bottom: 0; left: 0; }
  .lens-head { top: 76px; right: 0; left: auto; width: 420px; }
  .lens-head .head { padding: 44px 32px 0; }
  .lens-head .sub { padding: 6px 32px 0; }
  .lens-card { top: 240px; right: 32px; bottom: auto; left: auto; width: 356px; }
  .lens-card .pill { background: var(--mist); box-shadow: none; }
  .lens-card .hint { background: var(--mist); box-shadow: none; }

  /* Plan */
  .plan-page .scroll {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-rows: auto auto 1fr;
    column-gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 116px 32px 56px;
  }
  .plan-page .head, .plan-page .sub, .plan-page .plan-list { grid-column: 1; padding-right: 0; padding-left: 0; }
  .plan-page .plan-list { align-content: start; padding-top: 28px; }
  .save-row {
    position: sticky;
    top: 100px;
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: start;
    padding: 28px;
    border-radius: 32px;
    background: var(--mist);
  }

  /* Driver */
  .driver {
    display: grid;
    grid-template-columns: 300px minmax(0, 560px);
    grid-template-rows: auto auto;
    place-content: center;
    column-gap: 56px;
    padding: 40px;
  }
  .driver .glass { position: fixed; top: 28px; left: 28px; }
  .driver-photo { grid-row: 1 / 3; width: 300px; height: 300px; margin: 0; align-self: center; }
  .driver-copy { margin: 0; }
  .driver-copy h1 { font-size: 64px; }
  .driver-foot { width: 340px; }

  button:hover { opacity: .92; }
}

/* Toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: 118px;
  z-index: 20;
  max-width: calc(100% - 48px);
  padding: 10px 18px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  width: max-content;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: .2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

#print { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  @page { size: A4; margin: 16mm 18mm 10mm; }
  html, body { display: block; height: auto; overflow: visible; background: #fff !important; }
  #app, #toast, .demo-note { display: none !important; }
  #print { display: block; color: #1D1D1F; font: 400 10pt/1.5 var(--font); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdf-head { margin-bottom: 13mm; }
  .pdf-head .brand { color: #6E6E73; font-size: 9pt; font-weight: 500; gap: 1.5mm; }
  .pdf-head .brand svg { width: 3.8mm; height: 3.8mm; }
  .pdf-head h1 { margin-top: 7mm; font-size: 30pt; font-weight: 700; line-height: 1.08; letter-spacing: -.5pt; }
  .pdf-head p { margin-top: 2mm; color: #6E6E73; font-size: 10pt; }
  .pdf-stop { display: flex; gap: 9mm; margin-bottom: 9mm; break-inside: avoid; page-break-inside: avoid; }
  .pdf-photo { display: grid; flex: none; place-items: center; width: 50mm; height: 50mm; overflow: hidden; border-radius: 3mm; background: #F5F5F7; color: #1D1D1F; }
  .pdf-photo img { width: 100%; height: 100%; object-fit: cover; }
  .pdf-photo > svg { width: 12mm; height: 12mm; }
  .pdf-info { flex: 1; min-width: 0; }
  [dir="rtl"] .pdf-number { unicode-bidi: normal; }
  .pdf-number { display: block; color: #6E6E73; font-size: 8pt; font-weight: 500; letter-spacing: .6pt; }
  .pdf-info h2 { margin-top: .5mm; font-size: 15pt; font-weight: 600; line-height: 1.2; letter-spacing: -.1pt; }
  .pdf-area { color: #6E6E73; font-size: 9.500pt; }
  .pdf-note { margin-top: 2.5mm; }
  .pdf-facts { display: flex; flex-wrap: wrap; gap: .5mm 5mm; margin: 2.5mm 0 0; padding: 0; font-size: 8.500pt; font-weight: 500; list-style: none; }
  .pdf-facts span { color: #6E6E73; font-weight: 400; }
  .pdf-address { margin-top: 1mm; color: #6E6E73; font-size: 8.500pt; }
  .pdf { width: 100%; border-collapse: collapse; }
  .pdf td { padding: 0; }
  .pdf-foot-space { height: 24mm; }
  .pdf-foot { position: fixed; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center; gap: 3mm; height: 18mm; color: #6E6E73; font-size: 8pt; letter-spacing: .1pt; }
  .pdf-foot img { width: 18mm; height: auto; }
}
