/* Inter (the owner's choice, 20/10/2026; SIL Open Font License, /fonts/Inter-LICENSE.txt), kept on the site
   because the policy lets fonts come only from here. One variable file per script, each loaded only when
   a page uses its letters: Latin, Vietnamese, Cyrillic (Russian). Korean uses the font the device has. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-vietnamese-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301,
    U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --font:
    'Inter', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', 'Noto Sans CJK KR', system-ui,
    -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Public site layout. Colours come only from the theme variables in /shared/base.css. */
html,
body {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
}
.bar {
  flex: none;
  z-index: 3;
}
/* The menu is the rail on the left (computer) or the bar along the bottom (phone), both
   from .tabbar; the old top bar only keeps the language and account boxes the code fills. */
.bar {
  display: none !important;
}
.nav {
  display: flex;
  gap: 4px;
}
.bar .brand b {
  color: var(--brand-red);
}
.bar .brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bar .brand img {
  flex: none;
  border-radius: 8px;
}
.nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--color-text);
  text-decoration: none;
}
.who {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  --place-panel-width: min(420px, 52%);
}
.map {
  position: absolute;
  inset: 0;
}
.map-tools {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.map-tools > * {
  pointer-events: auto;
}
.map-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-small);
  white-space: nowrap;
  font-size: 0.9rem;
}
/* The number of places shown is no longer drawn (the owner removed it); filters still count. */
#pin-count {
  display: none !important;
}
.filter-box {
  position: relative;
}
#filter-toggle.on {
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}
.filter-panel {
  position: absolute;
  top: 50px;
  left: 0;
  width: 240px;
  display: grid;
  gap: 4px;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  cursor: pointer;
}
.filter-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}
/* The kinds of place, down the right side of the map. */
.kind-dock {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-small);
}
.kind-dock button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.kind-dock svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.kind-dock button:hover {
  background: var(--color-bg);
}
.kind-dock button[aria-pressed='true'] {
  background: var(--color-notice-bg);
  color: var(--color-primary);
}
.kind-dock:not(.expanded) > button:not(#kind-menu) {
  display: none;
}
.kind-dock.expanded {
  z-index: 10003;
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
}
.kind-dock.expanded > button:not(#kind-menu) {
  width: min(240px, calc(100vw - 48px));
  min-height: 44px;
  height: auto;
  justify-content: flex-start;
  padding: 8px 12px;
  line-height: 1.25;
}
.kind-dock.expanded svg {
  flex: 0 0 22px;
}
.kind-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.kind-dock #kind-menu {
  position: relative;
  margin-left: auto;
}
.kind-dock #kind-menu.kind-active::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}
.kind-dock button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
/* "Near me" and "choose a spot", bottom left. */
.map-actions {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.map-actions .button {
  box-shadow: var(--shadow-small);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.rail-brand,
.rail-who,
.rail-avatar {
  display: none;
}
.search {
  position: relative;
  flex: 0 1 420px;
}
.search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  box-shadow: var(--shadow-small);
}
.search-results {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  max-height: 60vh;
  overflow: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
}
.search-results .group {
  margin: 8px 8px 4px;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.result {
  display: block;
  width: 100%;
  min-height: 44px;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}
.result:hover,
.result:focus-visible {
  background: var(--color-bg);
}
/* A place found by name: its picture, name, address and price (20/10/2026). */
.result-place {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.result-pic {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-notice-bg);
}
.result-pic.none {
  display: grid;
  place-items: center;
  color: var(--color-muted);
}
.result-pic.none svg {
  width: 24px;
  height: 24px;
}
.result-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.result-text strong,
.result-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-text small {
  color: var(--color-muted);
  font-size: 0.8rem;
}
.result-price {
  font-size: 0.85rem;
  font-weight: 600;
}
.result-star {
  align-self: start;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  overflow: auto;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  padding: var(--space);
  z-index: 4;
  box-shadow: -6px 0 18px rgb(0 0 0 / 12%);
}
.close {
  float: right;
  font-size: 1.4rem;
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(92vw, 560px);
  background: var(--color-text);
  color: var(--color-bg);
  padding: 12px 16px;
  border-radius: var(--radius);
  z-index: 5;
}
.toast a {
  color: inherit;
  font-weight: 600;
}
.eyebrow {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.place h1 {
  margin: 4px 0 8px;
  font-size: 1.5rem;
}
.lead {
  margin-top: 0;
}
.place section h3 {
  margin: 18px 0 6px;
  font-size: 1rem;
}
.place dl {
  margin: 0;
}
.place .row {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.place dt {
  color: var(--color-muted);
}
.place dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.hours-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.item-list {
  margin: 0;
  padding-left: 18px;
}
.badge.warn {
  display: inline-block;
  background: var(--color-notice-bg);
  color: var(--color-notice-text);
  padding: 4px 10px;
  border-radius: 999px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.actions.sticky {
  position: sticky;
  bottom: calc(-1 * var(--space));
  background: var(--color-surface);
  padding: 12px 0;
  margin-bottom: 0;
  border-top: 1px solid var(--color-border);
}
.small {
  font-size: 0.85rem;
}
.choices {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.templates {
  display: grid;
  gap: 8px;
}
.template {
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}
.swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch);
  flex: none;
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.place-form .section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin: 0 0 12px;
  padding: 8px 12px 12px;
}
.place-form legend {
  font-weight: 700;
  padding: 0 4px;
}
.field {
  margin-top: 10px;
}
.field-label,
.place-form label[for] {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.hint {
  display: block;
  font-weight: 400;
}
.required {
  color: var(--color-danger);
}
.place-form input[type='text'],
.place-form input[type='url'],
.place-form input[type='number'],
.place-form input[type='time'],
.place-form input[type='date'],
.place-form textarea,
.place-form select {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.check {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check input {
  width: 20px;
  height: 20px;
}
.hours-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
}
.hours-bulk {
  margin-block: 12px 20px;
}
.hours-picker {
  min-width: 0;
}
.hours-day-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.hours-day-heading > span {
  flex: 1;
  min-width: 0;
}
.hours-day-heading .button {
  padding-inline: 8px;
}
.hours-rest {
  min-height: 44px;
}
.hours .hours-rest[aria-pressed='true'] {
  border-color: var(--color-primary);
  box-shadow: inset 0 -2px var(--color-primary);
}
.hours-shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin-block: 8px;
}
.hours-time {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.hours-time > span {
  font-size: 13px;
}
.hours .time-trigger {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  text-align: left;
  justify-content: flex-start;
  font-variant-numeric: tabular-nums;
}
.time-field {
  position: relative;
  min-width: 0;
}
.time-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(280px, calc(100vw - 64px));
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
}
.hours-time + .hours-time .time-panel {
  left: auto;
  right: 0;
}
.time-panel-title {
  margin: 0 0 8px;
  font-size: 14px;
}
.time-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.time-columns label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.time-column {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.time-wheel {
  display: none;
}
@media (max-width: 600px) {
  .contribution-authoring-body:has(.time-panel:not([hidden])) {
    position: relative;
    z-index: 1001;
    overflow: visible;
  }
  .with-main-menu:has(.time-panel:not([hidden])) .main-menu-portal {
    visibility: hidden;
  }
  .hours .time-panel,
  .hours-time + .hours-time .time-panel {
    position: fixed;
    z-index: 1000;
    inset: auto 0 0;
    width: 100%;
    max-height: min(90dvh, 560px);
    overflow-y: auto;
    padding: 20px 16px max(16px, env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    box-shadow: 0 0 0 100vmax rgb(0 0 0 / 40%);
    animation: time-sheet-in 220ms ease-out;
  }
  .time-desktop-select {
    display: none !important;
  }
  .time-wheel {
    display: block;
    height: 220px;
    overflow-y: auto;
    padding-block: 88px;
    box-sizing: border-box;
    scroll-snap-type: y mandatory;
    touch-action: pan-y;
    overscroll-behavior: contain;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
  }
  .time-wheel-option {
    display: block;
    width: 100%;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    scroll-snap-align: center;
  }
  .time-wheel-option[aria-pressed='true'] {
    background: var(--color-bg);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
@keyframes time-sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hours .time-panel {
    animation: none;
  }
}
.time-columns select {
  width: 100%;
  min-height: 44px;
  font: inherit;
}
.time-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.time-actions .button {
  min-height: 44px;
  padding-inline: 8px;
}
.time-panel [hidden] {
  display: none;
}
.hours-remove {
  min-height: 44px;
  padding-inline: 8px;
}
.hours-apply {
  min-height: 44px;
  margin-top: 12px;
}
.hours .hours-row.hours-day {
  display: block;
  margin-block: 16px;
}
.hours [hidden] {
  display: none !important;
}
@media (max-width: 600px) {
  .hours-shift {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .hours-remove {
    grid-column: 1 / -1;
    justify-self: end;
  }
  .hours-apply {
    width: 100%;
  }
}
.item-row {
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  display: grid;
  gap: 6px;
}
.item-cell span {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.field-error {
  margin: 4px 0 0;
}
.history {
  padding-left: 20px;
}
.history li {
  margin-bottom: 14px;
}
.place-history-page {
  padding: 20px 16px 28px;
  overflow-wrap: anywhere;
}
.place-history-header {
  padding-right: 48px;
}
.place-history-header h1 {
  margin: 12px 0 20px;
  font-size: 24px;
  line-height: 1.3;
}
.history-back {
  min-height: 44px;
  min-width: 44px;
}
.place-history-page .history {
  list-style: none;
  display: grid;
  gap: 12px;
  padding: 0;
}
.place-history-page .history > li {
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.place-history-page .history > li > span {
  display: block;
  margin: 6px 0;
  color: var(--color-muted);
  font-size: 13px;
}
.place-history-page .history .button {
  min-height: 44px;
}
.place-history-page .diff-box {
  max-width: 100%;
  overflow-x: auto;
}
.place-history-page .diff {
  table-layout: fixed;
}
.diff {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 0.9rem;
}
.diff th,
.diff td {
  border: 1px solid var(--color-border);
  padding: 6px;
  vertical-align: top;
  text-align: left;
}
/* The current page in the menu. */
.nav a[aria-current] {
  color: var(--color-primary);
  font-weight: 600;
}
/* The bottom bar exists only on phones. */
.tabbar {
  display: none;
}
.me-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.grabber {
  display: none;
}

/* The card over a tapped pin, like the first NhaTrang.Wiki. */
/* Above the photo cards, whose z-index runs from 100 up (the one with most posts on top). */
.maplibregl-popup {
  z-index: 10000;
}
.pin-popup .maplibregl-popup-content {
  width: min(280px, 78vw);
  padding: 12px;
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow);
  font: 15px/1.45 var(--font);
}
.pin-popup .maplibregl-popup-tip {
  border-top-color: var(--color-surface);
}
.pin-popup .maplibregl-popup-close-button {
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: var(--color-muted);
  z-index: 1;
}
.pin-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--color-bg);
}
.pin-card .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 28px 2px 0;
  font-size: 12px;
  color: var(--color-muted);
}
.type-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pin-color);
}
.pin-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}
.pin-dishes,
.pin-facts {
  margin: 4px 0 0;
  font-size: 13px;
}
.pin-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  color: var(--color-muted);
}
.pin-facts .open {
  color: var(--color-primary);
  font-weight: 600;
}
.pin-facts .closed {
  color: var(--color-danger);
}
.pin-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.pin-card .actions .button {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 0 10px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
/* The chosen spot (contributing, or an address found by search): ink, larger than a place
   pin, a label above and a ring at the tip, so it is never mistaken for a place. */
.spot-pin {
  /* No position here: MapLibre places markers with position: absolute (its own class);
     overriding it stacked the cards one after another, drifting off their places. */
  width: 36px;
  height: 48px;
  cursor: grab;
  z-index: 2;
}
.spot-pin svg {
  display: block;
  filter: drop-shadow(0 3px 4px rgb(0 0 0 / 35%));
}
.spot-pin path {
  fill: var(--color-text);
  stroke: #ffffff;
  stroke-width: 2;
}
.spot-pin circle {
  fill: #ffffff;
}
.spot-label {
  position: absolute;
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-text);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--shadow-small);
}
.spot-label:empty {
  display: none;
}
.spot-ring {
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 22px;
  height: 12px;
  margin-left: -11px;
  border-radius: 50%;
  border: 2px solid var(--color-text);
  animation: spot-ring 1.6s ease-out infinite;
}
@keyframes spot-ring {
  from {
    transform: scale(0.6);
    opacity: 1;
  }
  to {
    transform: scale(1.8);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot-ring {
    animation: none;
  }
}
.spot-pin.searched {
  cursor: pointer;
}
/* While a spot is being chosen: a crosshair says "click where", place pins step back. */
.map.picking .maplibregl-canvas {
  cursor: crosshair;
}
.map.picking .photo-pin {
  opacity: 0.45;
  pointer-events: none;
}
.searched-card .button {
  margin-top: 8px;
  width: 100%;
}
/* A place with a photo is a photo card close in (the owner's model: the Photos map of an
   iPhone): the photo in a thick white frame, rounded, a white tail on the exact spot, and the
   number of photos, videos and reviews in the bottom left corner. */
/* The cards' z-index (100 and up) stays inside the map, so Khám phá and other screens drawn over
   the map are not crossed by them. */
#map {
  isolation: isolate;
}
.photo-pin {
  /* No position here: MapLibre places markers with position: absolute (its own class);
     overriding it stacked the cards one after another, drifting off their places. */
  --photo-pin-size: var(--pin-size, 72px);
  --photo-pin-border: var(--pin-width, 4px);
  width: var(--photo-pin-size);
  height: calc(var(--photo-pin-size) + 9px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgb(16 34 29 / 35%));
}
.photo-pin-frame {
  display: flex;
  width: 100%;
  height: var(--photo-pin-size);
  overflow: hidden;
  border: var(--photo-pin-border) solid var(--pin-border, var(--pin-color));
  border-radius: var(--pin-radius, 14px);
  background: var(--pin-gradient, var(--pin-color)) border-box;
  box-shadow: var(--pin-glow, none);
}
.photo-pin-photo {
  position: relative;
  flex: 1;
  min-width: 0;
  background: var(--map-marker-surface);
}
.photo-pin-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-pin-category {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: calc(var(--photo-pin-size) * 0.38);
  height: calc(var(--photo-pin-size) * 0.3);
  padding-bottom: 4px;
  color: var(--photo-pin-category-ink);
  background: var(--pin-tail, var(--pin-color));
  border-radius: 50% 50% 0 0 / 45% 45% 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 50% 100%, 0 58%);
  transform: translateX(-50%);
  pointer-events: none;
}
.photo-pin-category svg {
  display: block;
  width: calc(var(--photo-pin-size) * 0.22);
  height: calc(var(--photo-pin-size) * 0.22);
}
.photo-pin-rating {
  display: grid;
  flex: 0 0 clamp(16px, calc(var(--photo-pin-size) * 0.25), 22px);
  grid-template-rows: repeat(5, minmax(0, 1fr)) auto;
  justify-items: center;
  padding: 3px 2px 4px 1px;
  background: var(--photo-pin-rating-surface);
  color: var(--photo-pin-rating-ink);
  pointer-events: none;
}
.photo-pin-star {
  position: relative;
  width: auto;
  height: 100%;
  aspect-ratio: 1;
  color: var(--photo-pin-star-full);
}
.photo-pin-star.partial > svg:first-child,
.photo-pin-star.empty {
  color: var(--photo-pin-star-empty);
}
.photo-pin-star svg {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-pin-star path {
  fill: currentColor;
  stroke: none;
}
.photo-pin-star-fill {
  position: absolute;
  inset: 0;
  clip-path: inset(0 var(--photo-pin-star-crop) 0 0);
}
.photo-pin-score {
  font-size: clamp(8px, calc(var(--photo-pin-size) * 0.15), 12px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
}
.photo-count {
  position: absolute;
  left: 5px;
  bottom: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 1px 3px rgb(0 0 0 / 70%),
    0 0 6px rgb(0 0 0 / 45%);
  pointer-events: none;
}
.photo-pin.selected .photo-pin-frame {
  transform: scale(1.08);
}

@media (max-width: 760px) {
  /* Phones: the map fills the screen; the five places live in the bottom bar. */
  .bar {
    display: none;
  }
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    height: calc(60px + env(safe-area-inset-bottom));
    padding: 0 4px env(safe-area-inset-bottom);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 60px;
    color: var(--color-muted);
    text-decoration: none;
    font-size: 11px;
  }
  .tabbar svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
  .tabbar a[aria-current] {
    color: var(--color-primary);
    font-weight: 600;
  }
  /* "Ăn gì?": the big round button, within reach of the thumb. */
  .tabbar .tab-eat svg {
    width: 46px;
    height: 46px;
    padding: 10px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--color-primary);
    fill: var(--color-on-primary);
    box-shadow: 0 4px 12px rgb(16 34 29 / 28%);
  }
  .panel {
    top: auto;
    left: 0;
    width: 100%;
    max-height: 78%;
    border-left: 0;
    border-top: 1px solid var(--color-border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 18px rgb(0 0 0 / 18%);
    padding-top: 22px;
  }
  .grabber {
    display: block;
    position: absolute;
    top: 8px;
    left: 50%;
    width: 40px;
    height: 5px;
    margin-left: -20px;
    border-radius: 3px;
    background: var(--color-border);
  }
  .map-tools {
    flex-wrap: wrap;
  }
  .search {
    flex: 1 1 auto;
  }
  #locate {
    flex: none;
  }
  .toast {
    bottom: 16px;
  }
}
.site-notice {
  margin: 0;
  padding: 8px var(--space);
  background: var(--color-notice-bg);
  color: var(--color-notice-text);
  text-align: center;
}
.reviews {
  display: grid;
  gap: 18px;
}
.review h3 {
  margin: 8px 0 4px;
}
.video {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.video video,
.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster {
  padding: 0;
  border: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: none;
}
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 60%);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}
.eat-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
}
.eat-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.eat-card h3 {
  margin: 4px 0;
}
.place-videos {
  margin-top: 18px;
}

/* ---------- contributing in five steps (contribute.js) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.steps {
  display: flex;
  gap: 6px;
  margin: 0 40px 10px 0;
  padding: 0;
  list-style: none;
}
.steps li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}
.steps li.done,
.steps li.current {
  background: var(--color-primary);
}
.wizard h2 {
  margin: 2px 0 12px;
}
.tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-notice-bg);
  color: var(--color-notice-text);
}
.tip p {
  margin: 0;
  flex: 1;
}
.wizard-actions {
  position: sticky;
  bottom: calc(-1 * var(--space));
  display: flex;
  gap: 8px;
  margin: 16px calc(-1 * var(--space)) calc(-1 * var(--space));
  padding: 12px var(--space);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.wizard-actions .primary {
  margin-left: auto;
  min-width: 40%;
}
.choose {
  display: grid;
  gap: 10px;
}
.big-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-weight: 600;
  cursor: pointer;
}
.big-icon {
  font-size: 1.6rem;
}
.dropzone {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 96px;
  padding: 12px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
}
.dropzone.over {
  border-color: var(--color-primary);
  background: var(--color-bg);
}
@media (max-width: 760px) {
  /* A phone has no files to drop. */
  .dropzone {
    display: none;
  }
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg);
}
.thumb.first {
  outline: 3px solid var(--color-primary);
}
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thumb-status {
  position: absolute;
  inset: auto 0 0;
  padding: 4px 6px;
  font-size: 12px;
  background: var(--color-surface);
}
.thumb-status.error {
  color: var(--color-danger);
}
.thumb-tools {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  gap: 2px;
}
.thumb-tools .button {
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  background: var(--color-surface);
}
.cover-pick {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}
.cover-preview {
  width: 120px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 8px;
}
.where {
  display: grid;
  gap: 8px;
}
.where input,
.new-place input,
.new-place select,
.more textarea,
.more input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.where-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choices {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.button.choice {
  justify-content: flex-start;
  text-align: left;
}
.new-place {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
}
.more {
  display: grid;
  gap: 8px;
}
.field-label {
  font-weight: 600;
  margin-top: 6px;
}
.price-row {
  display: flex;
  gap: 8px;
}
button.chip {
  font: inherit;
  background: var(--color-surface);
  cursor: pointer;
}
.chip.on {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.chip.quiet {
  color: var(--color-muted);
}
.post-preview {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.post-preview-media {
  position: relative;
  background: var(--color-text);
}
.post-preview-media img,
.post-preview-media video {
  display: block;
  width: 100%;
  max-height: 52vh;
  object-fit: cover;
}
.post-preview > :not(.post-preview-media) {
  margin: 8px 12px;
}
.count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 12px;
}
.caption {
  white-space: pre-line;
}
.publish-progress {
  margin-top: 10px;
}
.intro {
  text-align: center;
  padding: 8px 4px 0;
}
.intro-art {
  font-size: 3.4rem;
  margin: 8px 0;
}
.intro-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.intro-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
}
.intro-dots span.on {
  background: var(--color-primary);
}
/* Feed cards (Khám phá, a place's photos and videos) */
.byline,
.source {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 14px;
}
.byline .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.source .badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--color-notice-bg);
  color: var(--color-notice-text);
}
.photos-box {
  position: relative;
}
.photos {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 4px;
  border-radius: var(--radius);
}
.photos img {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  scroll-snap-align: center;
}
@media (max-width: 760px) {
  /* While choosing the position, the steps shrink so the map shows. */
  .panel.peek {
    max-height: 46%;
  }
}

/* ---------- Khám phá: the full-screen vertical feed (reels.js).
   The video stage is always dark, whatever the theme, so its colours are fixed here. */
.reels-screen {
  --reel-stage: #000;
  --reel-ink: #fff;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--reel-stage);
  color: var(--reel-ink);
}
.reels {
  height: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.reels::-webkit-scrollbar {
  display: none;
}
.reels:focus {
  outline: none;
}
.reel {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}
.reels > .loading-view--post {
  height: 100%;
  min-height: 100%;
  padding: 72px 20px 24px;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--color-bg);
}
.reels > .loading-view--post > .loading-view__surface {
  height: calc(100% - 42px);
  grid-template-rows: minmax(0, 1fr) auto auto;
}
.reels > .loading-view--post .loading-shape--media {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.eat-dialog .slot-scene > .loading-view {
  max-width: 34ch;
  margin: auto;
  padding: 40px 24px;
}
/* Shown when the browser refused sound before the first touch. */
.reel-unmute {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 70%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.reel-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.reel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.reel-photos {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.reel-photos img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}
.reel-dots {
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0;
}
.reel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 45%);
}
.reel-dots span.on {
  background: #fff;
}
.reel-sound,
.reel-heart {
  position: absolute;
  font-size: 2.6rem;
  pointer-events: none;
  text-shadow: 0 2px 12px rgb(0 0 0 / 50%);
}
.reel-heart {
  font-size: 6rem;
  color: #ff3b5c;
  opacity: 0;
}
.reel-heart.pop {
  animation: heart-pop 0.8s ease-out;
}
@keyframes heart-pop {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  20% {
    opacity: 1;
    transform: scale(1.15);
  }
  60% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.3) translateY(-30px);
  }
}
/* Text over pictures stays readable on any picture. */
.reel-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 76px 16px 14px;
  background: linear-gradient(transparent, rgb(0 0 0 / 70%));
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
}
.reel-info a {
  color: #fff;
}
.reel-source,
.reel-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 6px;
  font-weight: 600;
}
.reel-source .badge {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: #555;
  text-shadow: none;
}
.platform-facebook .badge {
  background: #1877f2;
}
.platform-tiktok .badge {
  background: #111;
  box-shadow: inset 0 0 0 1px #25f4ee;
}
.platform-instagram .badge {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}
.reel-original {
  font-weight: 400;
  font-size: 13px;
}
.reel-by .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #fff;
}
.reel-by .avatar.blank {
  display: inline-block;
  background: #888;
}
.reel-caption {
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
  cursor: pointer;
}
.reel-caption.open {
  display: block;
}
.reel-places {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.reel-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 45%);
  font-size: 14px;
  text-shadow: none;
}
.reel-chip a {
  text-decoration: none;
}
.reel-time {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: 600 12px var(--font);
  cursor: pointer;
}
.reel-dishes {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.9;
}
.reel-rail {
  position: absolute;
  z-index: 1;
  right: 6px;
  bottom: 18px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.reel-rail button,
.reel-rail a {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 56px;
  min-height: 52px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: 600 12px var(--font);
  text-decoration: none;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
  cursor: pointer;
}
.rail-icon {
  display: block;
  line-height: 0;
}
.rail-icon .ios-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 1px 3px rgb(0 0 0 / 55%));
}
.rail-like[aria-pressed='true'] .rail-icon {
  color: var(--brand-red);
}
.card-save[aria-pressed='true'] svg {
  color: var(--brand-red);
}
.pd-price-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  justify-content: space-between;
}
.pd-price-contact > p {
  margin: 0;
}
.pd-price-contact .pd-phone-reveal {
  min-height: 44px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.pd-phone-reveal.is-revealed {
  user-select: text;
}
.reels-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: linear-gradient(rgb(0 0 0 / 55%), transparent);
}
.segment {
  display: inline-flex;
  border-radius: 999px;
  background: rgb(0 0 0 / 40%);
  padding: 3px;
}
.segment button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #fff;
  font: 600 13px var(--font);
  cursor: pointer;
}
.segment button[aria-pressed='true'] {
  background: #fff;
  color: #000;
}
.reels-place {
  display: flex;
  gap: 10px;
  margin: 0;
  font-weight: 600;
}
.reels-place a {
  color: #fff;
  font-weight: 400;
}
.reels-close {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.8rem;
  text-decoration: none;
}
.reels-empty {
  padding: 120px 24px;
  text-align: center;
}
/* Comments, reports and sign-in open in a sheet over the feed, in the site's colours. */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  max-height: 72%;
  overflow: auto;
  padding: 24px var(--space) var(--space);
  border-radius: 18px 18px 0 0;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 -6px 18px rgb(0 0 0 / 30%);
}
.sheet .grabber {
  display: block;
  position: absolute;
  top: 8px;
  left: 50%;
  width: 40px;
  height: 5px;
  margin-left: -20px;
  border-radius: 3px;
  background: var(--color-border);
}
.sheet-close {
  float: right;
  font-size: 1.4rem;
}
.sheet textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.sheet-menu {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.comments,
.replies {
  list-style: none;
  margin: 0;
  padding: 0;
}
.replies {
  margin-left: 22px;
}
.comment {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.comment p {
  margin: 2px 0;
  white-space: pre-line;
}
.comment-tools {
  display: flex;
  gap: 14px;
}
.link {
  padding: 0;
  min-height: 32px;
  border: 0;
  background: none;
  color: var(--color-muted);
  font: 13px var(--font);
  cursor: pointer;
}
.comment-form {
  position: sticky;
  bottom: calc(-1 * var(--space));
  display: grid;
  gap: 6px;
  padding: 10px 0 0;
  background: var(--color-surface);
}
@media (min-width: 761px) {
  /* On a computer the feed is a phone-shaped column in the middle of a dark stage. */
  .reels-screen .reels {
    width: min(440px, 100%);
    margin: 0 auto;
  }
  .reels-screen .sheet,
  .reels-screen .reels-top {
    width: min(440px, 100%);
    margin: 0 auto;
  }
  .reels-screen .reels-top {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
}

/* ---------- "Hôm nay ăn gì?": the slot-machine roulette of the first site (eat.js) */
.food-game h2 {
  margin-bottom: 10px;
}
.prefs-toggle {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 13px;
  background: var(--color-bg);
  border: 0;
}
.food-preferences {
  margin-top: 8px;
}
.prefs-title {
  margin: 12px 0 0;
}
.food-pref-group {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}
.food-pref-group h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.chip[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.food-roulette {
  text-align: center;
  padding-top: 10px;
}
.food-roulette .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--color-muted);
}
.slot-scene {
  --slot-width: 148px;
  position: relative;
  height: 220px;
  margin: 8px -16px;
  overflow: hidden;
}
.slot-track {
  position: absolute;
  top: 30px;
  left: 50%;
  display: flex;
  gap: 12px;
  will-change: transform;
}
.slot-track.is-idle {
  animation: slot-hello 4s ease-in-out infinite;
}
@keyframes slot-hello {
  0%,
  100% {
    translate: -8px 0;
  }
  50% {
    translate: 8px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .slot-track.is-idle {
    animation: none;
  }
}
.slot-card {
  flex: 0 0 var(--slot-width);
  width: var(--slot-width);
  height: 170px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  text-align: left;
  overflow: hidden;
}
.slot-card img,
.slot-card .cover-glyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--color-bg);
  font-size: 2rem;
}
.slot-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.slot-card small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot-selection {
  position: absolute;
  top: 26px;
  left: 50%;
  width: calc(var(--slot-width) + 8px);
  height: 178px;
  transform: translateX(-50%);
  border: 2px solid var(--color-primary);
  border-radius: 18px;
  pointer-events: none;
  box-shadow: 0 8px 24px rgb(183 72 47 / 12%);
}
.slot-pointer {
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  font-size: 20px;
}
.slot-empty {
  margin: 90px 20px;
}
.spin-status {
  min-height: 24px;
  margin: 4px 0 12px;
  font-size: 13px;
}
.spin-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  font-size: 17px;
  padding: 0 20px;
  box-shadow: 0 8px 20px rgb(183 72 47 / 15%);
}
.spin-button span:last-child {
  font-size: 24px;
}
.spin-note {
  margin: 10px 8px 0;
}
.food-celebration {
  text-align: center;
  padding: 14px 0 16px;
}
.food-celebration .eyebrow {
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 1px;
}
.food-celebration h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 6px 0 0;
}
.food-celebration h2:focus {
  outline: none;
}
.compact-food-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-bg);
}
.compact-food-cover {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
}
.compact-food-cover img,
.compact-food-cover .cover-glyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 1.8rem;
}
.compact-food-result p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--color-muted);
}
.food-result-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.food-result-actions > * {
  flex: 1;
}
.compact-food-suggestions {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.compact-food-suggestions h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--color-muted);
}
.compact-food-suggestions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 6px 0;
  color: var(--color-text);
  text-decoration: none;
}
.compact-food-suggestions small {
  display: block;
  font-size: 11px;
  color: var(--color-muted);
}
/* The popup in the middle of the screen. */
.eat-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100% - 24px));
  max-height: min(860px, calc(100dvh - 32px));
  padding: 20px;
  border: 0;
  border-radius: 22px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
  overflow: auto;
  overscroll-behavior: contain;
}
.eat-dialog[open] {
  animation: eat-open 0.2s ease-out;
}
@keyframes eat-open {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
}
.eat-dialog::backdrop {
  background: rgb(16 34 29 / 45%);
}
.eat-dialog > .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}
.eat-dialog .food-game > h2 {
  padding-right: 44px;
}
.eat-congrats-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.eat-congrats-heading > div:last-child,
.eat-dialog .compact-food-result > div:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.eat-dialog .food-result-actions {
  flex-wrap: wrap;
}
.eat-dialog .food-result-actions > .button {
  min-height: 44px;
  flex-basis: 120px;
}
.eat-dialog .eat-nearest[hidden] {
  display: none;
}
.food-result {
  position: relative;
  min-width: 0;
}
/* Optional suggestions follow the compact result inside the same popup. */
.eat-nearest {
  margin-top: 4px;
  border-top: 0;
}
.eat-nearest h3 {
  font-size: 16px;
  color: var(--color-text);
}
.eat-nearest a {
  justify-content: flex-start;
  border-bottom: 1px solid var(--color-border);
}
.eat-nearest a > span:nth-of-type(2),
.eat-nearest a > span:not(.cover-glyph):not([aria-hidden]) {
  flex: 1;
}
.eat-nearest img,
.eat-nearest .cover-glyph {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--color-bg);
  font-size: 1.5rem;
}
/* The congratulation stays in the popup's normal flow. */
.eat-congrats {
  position: relative;
  margin-top: 12px;
  animation: eat-open 0.25s ease-out;
}
.eat-congrats-card {
  position: relative;
  width: 100%;
  padding: 14px;
  text-align: left;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: none;
  animation: eat-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes eat-pop {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
}
.eat-congrats-card .eyebrow {
  margin: 0;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 13px;
}
.eat-congrats-lead {
  margin: 6px 0 0;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--color-muted);
}
.eat-congrats-card h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
}
.eat-congrats-card h2:focus {
  outline: none;
}
.eat-congrats-card .compact-food-result {
  text-align: left;
}
.eat-congrats-card > .button.quiet {
  margin-top: 10px;
  width: 100%;
}
.eat-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.eat-confetti i {
  position: absolute;
  top: -12px;
  left: calc(var(--i) * 5.5% + 2%);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: hsl(calc(var(--i) * 47) 75% 55%);
  animation: eat-fall calc(1.6s + var(--i) * 0.06s) ease-in calc(var(--i) * 0.04s) forwards;
}
@keyframes eat-fall {
  to {
    transform: translateY(560px) rotate(calc(var(--i) * 80deg));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eat-confetti {
    display: none;
  }
  .eat-dialog[open],
  .eat-congrats,
  .eat-congrats-card {
    animation: none;
  }
}
.me-links {
  margin-top: 18px;
}
.delete-account {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.delete-account summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--color-danger);
  cursor: pointer;
}
.delete-account input[type='text'] {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 10px 0;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
.button.danger {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: var(--color-on-primary);
}
.button.danger:disabled {
  opacity: 0.45;
}
/* Terms and privacy pages */
.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px var(--space) 64px;
  line-height: 1.6;
}
.policy h1 {
  margin-bottom: 4px;
}
.policy h2 {
  margin-top: 28px;
}
.policy .lang-switch {
  display: flex;
  gap: 12px;
}

/* Computers: the old version's layout. The menu is a rail down the left side (the name on
   top, the account at the bottom); the map fills the rest in a rounded frame with the
   search, the count and the filters on it; a place's details float on the left of the map. */
@media (min-width: 761px) {
  body {
    padding-left: 84px;
  }
  .tabbar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 6;
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px 8px 16px;
    background: var(--color-bg);
  }
  .rail-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 60px;
    margin-bottom: 14px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: var(--color-text);
    text-decoration: none;
  }
  .rail-brand img {
    display: block;
    flex: none;
    border-radius: 10px;
  }
  .rail-brand b {
    display: block;
    color: var(--brand-red);
    text-align: center;
  }
  .tabbar a:not(.rail-brand) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    border-radius: 14px;
    color: var(--color-text);
    text-decoration: none;
    font-size: 11px;
    text-align: center;
  }
  /* Not on the chosen one: this rule weighs more and turned it white on white. */
  .tabbar a:not(.rail-brand):not([aria-current]):hover {
    background: var(--color-surface);
  }
  .tabbar svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
  .tabbar a[aria-current] {
    background: var(--color-text);
    color: var(--color-bg);
    font-weight: 600;
  }
  .tabbar .tab-eat {
    color: var(--color-primary);
  }
  .tabbar .tab-eat[aria-current] {
    background: var(--color-primary);
    color: var(--color-on-primary);
  }
  /* The account at the very bottom. */
  .tabbar a[href='#me'] {
    margin-top: auto;
  }
  .tabbar a[href='#me'] > span[data-i18n] {
    display: none;
  }
  .tabbar a[href='#me'].signed-in > svg {
    display: none;
  }
  .rail-who {
    display: block;
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rail-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-notice-bg);
    color: var(--color-text);
    font-size: 13px;
    font-weight: 700;
  }
  .stage {
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: 0;
  }
  .map-tools {
    right: 84px;
  }
  .panel {
    top: 68px;
    left: 12px;
    right: auto;
    bottom: 68px;
    width: min(440px, calc(100% - 120px));
    border: 1px solid var(--color-border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
}
@media (max-width: 760px) {
  .tabbar .rail-brand {
    display: none;
  }
  .map-actions {
    bottom: 34px;
  }
  .kind-dock {
    top: 116px;
    padding: 4px;
  }
  .kind-dock button {
    width: 38px;
    height: 38px;
  }
  .map-tools #pin-count {
    order: 2;
  }
}

/* ---------- Đóng góp in a popup (contribute.js), shaped like a "new post" window. */
.add-dialog {
  width: min(720px, calc(100% - 24px));
  height: min(780px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
  overflow: hidden;
}
.add-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: eat-open 0.2s ease-out;
}
.add-dialog::backdrop {
  background: rgb(16 34 29 / 55%);
}
.add-dialog.over {
  outline: 3px dashed var(--color-primary);
  outline-offset: -8px;
}
.add-head {
  display: grid;
  grid-template-columns: 64px 1fr 96px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border);
}
.add-head h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
}
.add-head-button {
  min-height: 52px;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.add-next {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.add-next:disabled {
  color: var(--color-muted);
  cursor: default;
}
.add-steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 16px 0;
  list-style: none;
}
.add-steps li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}
.add-steps li.done,
.add-steps li.current {
  background: var(--color-primary);
}
.add-where-line {
  margin: 8px 16px 0;
  font-size: 13px;
  color: var(--color-muted);
}
.linkish {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.add-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding: 12px 16px 20px;
}
.add-title {
  margin: 4px 0 14px;
  font-size: 20px;
}
.add-sub {
  margin: 18px 0 10px;
  font-size: 14px;
  color: var(--color-muted);
}
/* Step 1: the kinds of place as big tiles. */
.kind-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.kind-tile {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.kind-tile svg {
  width: 40px;
  height: 40px;
  fill: var(--kind-color);
}
.kind-tile:hover,
.kind-tile.on {
  border-color: var(--kind-color);
  box-shadow: inset 0 0 0 1px var(--kind-color);
}
/* Step 2: the drop area, then the library. */
.add-drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 420px;
  border: 2px dashed var(--color-border);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
}
.add-drop strong {
  font-size: 20px;
  font-weight: 500;
}
.add-drop-icon {
  width: 96px;
  height: 78px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 78' fill='none' stroke='%23243d37' stroke-width='3' stroke-linejoin='round'%3E%3Crect x='4' y='14' width='52' height='46' rx='8' transform='rotate(-8 30 37)'/%3E%3Cpath d='M10 52l14-14 10 10 8-8 12 12'/%3E%3Ccircle cx='38' cy='28' r='4'/%3E%3Crect x='40' y='20' width='52' height='54' rx='8' fill='%23fff'/%3E%3Cpath d='M60 36v22l18-11z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.add-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.add-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg);
}
.add-item img,
.add-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.add-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.add-status {
  position: absolute;
  inset: auto 0 0;
  padding: 6px 8px;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 12px;
}
.add-status.error {
  background: var(--color-danger);
}
.add-remove {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 65%);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.add-more label {
  display: grid;
  place-items: center;
  height: 100%;
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  font-size: 40px;
  color: var(--color-muted);
  cursor: pointer;
}
.add-camera {
  margin-top: 12px;
  align-self: flex-start;
}
@media (min-width: 761px) {
  /* A computer has no camera to open from here. */
  .add-camera {
    display: none;
  }
}
/* Step 3: the form. */
.add-form {
  display: grid;
  gap: 14px;
}
.add-field {
  display: grid;
  gap: 6px;
}
.add-field > span {
  font-size: 13px;
  font-weight: 600;
}
.add-field input,
.add-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}
/* Step 4: long lists of choices to tick. */
.add-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.add-group h4 {
  margin: 0 0 8px;
  font-size: 15px;
}
.add-group input[type='search'] {
  width: 100%;
  min-height: 40px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}
.chip.tick[aria-pressed='true']::before {
  content: '✓ ';
}
/* Step 5: the summary. */
.add-summary {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--color-bg);
}
.add-summary-art {
  flex: 0 0 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-border);
}
.add-summary-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.add-summary p {
  margin: 4px 0 0;
}
/* The chosen spot of the old version: a round blue "+" pin with its card above it. */
.pick-pin {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #1f6fe0;
  color: #fff;
  font:
    700 26px/1 system-ui,
    sans-serif;
  box-shadow: 0 4px 14px rgb(16 34 29 / 35%);
  cursor: grab;
}
.pick-popup .maplibregl-popup-content {
  padding: 16px 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.pick-card strong {
  display: block;
  font-size: 15px;
}
.pick-address {
  margin: 8px 0 2px;
  font-weight: 600;
}
.pick-coords {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
}
.pick-hint {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--color-muted);
}
.pick-card .actions {
  display: flex;
  gap: 8px;
}
/* ---------- the sign-in popup */
.signin-dialog {
  width: min(420px, calc(100% - 24px));
  padding: 32px 28px 24px;
  border: 0;
  border-radius: 24px;
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
}
.signin-dialog[open] {
  animation: eat-open 0.2s ease-out;
}
.signin-dialog::backdrop {
  background: rgb(16 34 29 / 55%);
  backdrop-filter: blur(2px);
}
.signin-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 22px;
  cursor: pointer;
}
.signin-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.signin-brand img {
  display: block;
  flex: none;
  border-radius: 10px;
}
.signin-brand b {
  color: var(--brand-red);
}
@media (max-width: 360px) {
  .signin-brand {
    gap: 8px;
    font-size: 18px;
  }
  .signin-brand img {
    width: 32px;
    height: 32px;
  }
}
.signin-dialog h2 {
  margin: 14px 0 6px;
  font-size: 22px;
}
.signin-lead {
  margin: 0 0 16px;
  color: var(--color-muted);
}
.signin-points {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px 16px;
  list-style: none;
  text-align: left;
  border-radius: 14px;
  background: var(--color-bg);
}
.signin-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}
.signin-google:hover {
  background: #f8f9fa;
}
.signin-g {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.signin-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--color-muted);
}
.signin-legal {
  margin: 8px 0 0;
  font-size: 12px;
}
.signin-legal a {
  color: var(--color-muted);
}
@media (max-width: 760px) {
  .add-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    max-width: none;
    margin: 0;
    border-radius: 0;
  }
  .add-drop {
    min-height: 300px;
  }
  .add-library {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* The visitor's own position ("Vị trí của tôi"). */
.me-dot {
  /* No position here: MapLibre places markers with position: absolute (its own class);
     overriding it stacked the cards one after another, drifting off their places. */

  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #1a73e8;
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}
.me-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgb(26 115 232 / 35%);
  animation: me-pulse 2s ease-out infinite;
}
@keyframes me-pulse {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .me-dot::after {
    animation: none;
  }
}

/* iOS-style icons in Khám phá (public/web/ios-icons.js). */
.ios-icon {
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.18em;
}
.reel-heart .ios-icon {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 4px 14px rgb(0 0 0 / 45%));
}
.reel-sound .ios-icon {
  width: 56px;
  height: 56px;
  padding: 12px;
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: #fff;
}
.reels-close .ios-icon,
.sheet-close .ios-icon {
  width: 24px;
  height: 24px;
}
.reel-unmute {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reel-views {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: 0.85;
}
/* Comments: an avatar, the name and time, the text; the original post's ones read only. */
.comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.comment-avatar {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-notice-bg);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--color-text);
}
.comment-main {
  flex: 1;
  min-width: 0;
}
.comment-main > p {
  margin: 2px 0;
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 13px;
}
.comment-image {
  display: block;
  max-width: min(220px, 100%);
  max-height: 300px;
  margin-top: 6px;
  border-radius: 14px;
  object-fit: cover;
}
.comment-likes {
  font-size: 12px;
  color: var(--color-muted);
}
.comment-likes .ios-icon {
  color: #ff3040;
}

/* ---------- Profiles (phase T1): "Tôi", #u/<id>, the editor */
.profile-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 16px;
  align-items: center;
  padding-top: 8px;
}
.profile-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-bg);
}
.profile-avatar.is-initials {
  display: grid;
  place-items: center;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 30px;
  font-weight: 700;
}
.profile-avatar.is-large {
  width: 112px;
  height: 112px;
  font-size: 40px;
}
.profile-who {
  min-width: 0;
}
.profile-name {
  margin: 0;
  font-size: 1.35rem;
  overflow-wrap: anywhere;
}
.profile-staff {
  margin: 2px 0 0;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
}
.profile-bio {
  margin: 6px 0 2px;
  overflow-wrap: anywhere;
}
.profile-who .small {
  margin: 4px 0 0;
}
.profile-numbers {
  clear: both;
  margin-top: 14px !important;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 10px 0;
  list-style: none;
  border-block: 1px solid var(--color-border);
  text-align: center;
}
.profile-numbers b {
  display: block;
  font-size: 1.15rem;
}
.profile-numbers span {
  color: var(--color-muted);
  font-size: 0.8rem;
}
.profile-actions {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.profile-actions .button {
  flex: 1;
  white-space: nowrap;
  justify-content: center;
  text-align: center;
}
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 10px;
}
.profile-tabs button {
  flex: 1;
  padding: 10px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.profile-tabs button[aria-selected='true'] {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.grid-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: var(--color-bg);
  cursor: pointer;
}
.grid-cell img,
.grid-blank {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grid-mark {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 60%));
}
.grid-mark svg {
  width: 18px;
  height: 18px;
}
.grid-many {
  padding: 0 6px;
  border-radius: 11px;
  background: rgb(0 0 0 / 45%);
  font-size: 12px;
  font-weight: 700;
  filter: none;
}
.grid-cell.is-hidden img {
  filter: grayscale(1) brightness(0.55);
}
.grid-hidden {
  position: absolute;
  inset: auto 0 0;
  padding: 4px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.profile-more {
  display: block;
  margin: 12px auto 0;
}
.profile-empty {
  padding: 28px 8px;
  color: var(--color-muted);
  text-align: center;
}
.profile-grid .profile-empty {
  grid-column: 1 / -1;
}
.profile-empty .button {
  margin-top: 6px;
}
.profile-places {
  display: grid;
  gap: 6px;
}
.profile-place {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text);
  text-decoration: none;
}
.profile-place:hover {
  background: var(--color-bg);
}
.profile-place .badge {
  justify-self: start;
}
.me-settings {
  display: grid;
  gap: 14px;
}
.color-mode-select {
  min-height: 44px;
  min-width: 120px;
}
.color-mode-select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.reel-by-link,
.comment-who {
  color: inherit;
  text-decoration: none;
}
.reel-by-link:hover,
.comment-who:hover {
  text-decoration: underline;
}
.profile-dialog {
  text-align: left;
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.profile-dialog h2 {
  margin: 0 0 12px;
  text-align: center;
}
.profile-label {
  margin: 0 0 8px;
  font-weight: 600;
}
.profile-dialog-avatar {
  display: grid;
  place-items: center;
}
.profile-photo-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 4px;
}
.profile-photo-buttons[hidden] {
  display: none;
}
.cropper {
  display: grid;
  gap: 8px;
  justify-items: center;
}
.cropper[hidden] {
  display: none;
}
.cropper-stage {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #111;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 0 0 3px var(--color-border);
}
.cropper-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.cropper-zoom {
  display: flex;
  gap: 10px;
  align-items: center;
  width: min(260px, 100%);
}
.cropper-zoom input {
  flex: 1;
}
.profile-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.profile-form label {
  display: grid;
  gap: 4px;
}
.profile-form label > span:first-child {
  font-weight: 600;
}
.profile-form input,
.profile-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font: inherit;
  background: var(--color-surface);
  color: var(--color-text);
}
.profile-count {
  justify-self: end;
}
/* Cài đặt → the devices one is signed in on (phase T2) */
.devices-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.devices {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.devices li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.devices li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.devices .badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 12px;
  font-weight: 600;
}
.devices .button {
  flex: none;
}
/* ---------- Points and levels (phase T3) */
.level-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  vertical-align: middle;
  white-space: nowrap;
}
.level-local {
  background: #e3f1ea;
  color: #1f6b4a;
}
.level-gold {
  background: #fbefc9;
  color: #8a5a00;
}
.level-legend {
  background: #b7482f;
  color: #fff;
}
.profile-level {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
}
.reel-by .level-badge,
.comment-head .level-badge {
  margin-left: 6px;
}
.points-sum {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 0 16px;
  text-align: center;
}
.points-sum p {
  margin: 0;
}
.points-big {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.1;
}
.points-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-bg);
}
.points-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--color-primary);
}
.points-how {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
}
.points-how summary {
  font-weight: 600;
  cursor: pointer;
}
.points-how ul,
.points-history,
.board {
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.points-how li,
.points-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}
.points-history li > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.points-history b {
  color: #1f6b4a;
}
.points-history b.minus,
.points-history .is-reversed b {
  color: var(--color-muted);
}
.points-history .is-reversed b {
  text-decoration: line-through;
}
.points-tab h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}
.board li {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
}
.board li.is-me {
  background: var(--color-bg);
}
.board li.muted {
  display: block;
  text-align: center;
}
.board-rank {
  color: var(--color-muted);
  font-weight: 700;
  text-align: center;
}
.board li:nth-child(-n + 3) .board-rank {
  color: var(--color-primary);
}
.board-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.board-avatar.is-initials {
  display: grid;
  place-items: center;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 13px;
  font-weight: 700;
}
.board-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
/* ---------- Directions on the map (Goong) */
.route-box {
  position: absolute;
  z-index: 7;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 10px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 14px 16px 10px;
  border-radius: 18px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 10px 32px rgb(16 34 29 / 28%);
}
@media (min-width: 761px) {
  .route-box {
    top: 80px;
    right: auto;
    bottom: auto;
    width: 360px;
    max-height: calc(100% - 100px);
  }
}
.route-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.route-to {
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.route-close {
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.route-vehicles {
  display: flex;
  gap: 6px;
}
.route-vehicles button {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.route-vehicles button[aria-pressed='true'] {
  border-color: #0b57d0;
  background: #e8f0fe;
  color: #0b57d0;
}
.route-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.route-time {
  color: #0b57d0;
  font-size: 1.5rem;
}
.route-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.route-choices:empty {
  display: none;
}
.route-choice {
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.route-choice.is-chosen {
  border-color: #0b57d0;
  color: #0b57d0;
  font-weight: 600;
}
.route-actions {
  display: flex;
  gap: 8px;
}
.route-actions .button {
  flex: 1;
  justify-content: center;
  text-align: center;
}
.route-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.route-steps[hidden] {
  display: none;
}
.route-steps li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.route-arrow {
  color: #0b57d0;
  font-size: 20px;
  text-align: center;
}
.route-credit {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  text-align: right;
}
.route-from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: -4px 0 0;
}
.route-from .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #0b57d0;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.route-problem {
  display: grid;
  gap: 8px;
}
.route-hint {
  color: #0b57d0;
  font-weight: 600;
}
.maplibregl-canvas.route-picking {
  cursor: crosshair;
}
.route-start-dot {
  width: 18px;
  height: 18px;
  border: 4px solid #0b57d0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 0 0 / 35%);
}
/* A box of the contribution form the checks refused, with why under it. */
.add-field [aria-invalid='true'] {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 2px rgb(163 44 37 / 15%);
}
.field-error {
  color: var(--color-danger);
  font-size: 0.85rem;
}
/* A photo card showing its pictures one a second (pointed at with the mouse). */
.photo-pin.sliding {
  z-index: 2000 !important;
}
.photo-dots {
  position: absolute;
  top: 4px;
  left: 50%;
  display: flex;
  gap: 3px;
  transform: translateX(-50%);
  pointer-events: none;
}
.photo-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(255 255 255 / 55%);
  box-shadow: 0 0 2px rgb(0 0 0 / 50%);
}
.photo-dots i.on {
  background: #fff;
}
.map-load-state {
  position: absolute;
  z-index: 2;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 16px;
  border-radius: var(--radius-control, 8px);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}
/* ---------- A place's page (public/web/place-view.js): pictures first, then what to know */
.panel.wide {
  padding-top: 0;
  overflow-x: hidden;
}
@media (min-width: 761px) {
  .panel.wide {
    width: min(600px, calc(100% - 120px));
  }
}
@media (max-width: 760px) {
  .panel.wide {
    max-height: 92%;
  }
}
/* The close button sits on the pictures. */
.panel.wide > .close {
  position: sticky;
  top: 10px;
  z-index: 3;
  float: right;
  width: 38px;
  height: 38px;
  margin: 10px 0 -48px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 8px rgb(0 0 0 / 20%);
}
.place-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.place-hero {
  margin: 0 calc(-1 * var(--space));
}
.place-hero.is-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 48px 16px 24px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--pin-color) 22%, #fff),
    color-mix(in srgb, var(--pin-color) 8%, #fff)
  );
  color: var(--color-text);
  text-align: center;
}
.place-hero.is-empty p {
  margin: 0;
}
.hero-frame {
  position: relative;
  background: #111;
}
.hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
}
.hero-track::-webkit-scrollbar {
  display: none;
}
.hero-track:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: -3px;
}
.hero-slide {
  position: relative;
  flex: 0 0 100%;
  padding: 0;
  border: 0;
  background: #111;
  scroll-snap-align: start;
  cursor: zoom-in;
}
.hero-slide.is-video {
  cursor: pointer;
}
.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}
.hero-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.hero-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: var(--color-text);
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 2px 8px rgb(0 0 0 / 25%);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.hero-arrow.prev {
  left: 10px;
}
.hero-arrow.next {
  right: 10px;
}
.hero-frame:hover .hero-arrow,
.hero-arrow:focus-visible {
  opacity: 1;
}
@media (hover: none) {
  .hero-arrow {
    display: none;
  }
}
.hero-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px var(--space) 0;
  scrollbar-width: thin;
}
.hero-mini {
  position: relative;
  flex: 0 0 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--color-bg);
  cursor: pointer;
  opacity: 0.7;
}
.hero-mini.on {
  border-color: var(--color-primary);
  opacity: 1;
}
.hero-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-mini.is-video::after {
  content: '▶';
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 0 3px rgb(0 0 0 / 80%);
}
.place-head {
  display: grid;
  gap: 6px;
}
.place-head .eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.85rem;
}
.place-head h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}
.chip-fact {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-bg);
  font-size: 0.85rem;
  font-weight: 600;
}
.chip-fact.open {
  background: #e3f1ea;
  color: #1f6b4a;
}
.chip-fact.closed {
  background: #fbe9e6;
  color: var(--color-danger);
}
.place-address {
  margin: 0;
  color: var(--color-muted);
}
.place-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 8px;
  padding: 10px 0;
  border-block: 1px solid var(--color-border);
}
.place-action {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.place-action:hover {
  background: var(--color-bg);
}
.place-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 18px;
}
.place-action.directions-link .place-action-icon {
  background: var(--color-primary);
  color: var(--color-on-primary);
}
.place-lead {
  margin: 0;
  line-height: 1.55;
}
.place-details section {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.place-details section:last-child {
  border-bottom: 0;
}
.place-details section h3 {
  margin-top: 0;
}
/* A photo full screen */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgb(8 12 11 / 96%);
  color: #fff;
}
.lightbox::backdrop {
  background: rgb(0 0 0 / 70%);
}
.lightbox[open] {
  display: grid;
  place-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: calc(100dvh - 90px);
  object-fit: contain;
}
.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 16%);
  color: #fff;
  cursor: pointer;
}
.lightbox-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 26px;
}
.lightbox-arrow {
  top: 50%;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  font-size: 32px;
}
.lightbox-arrow.prev {
  left: 14px;
}
.lightbox-arrow.next {
  right: 14px;
}
.lightbox-foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgb(0 0 0 / 60%));
}
.lightbox-caption {
  margin: 0;
  font-size: 0.9rem;
}
.lightbox-post {
  color: #fff;
  font-weight: 600;
}
/* The places near an address found by search, in the pin's card. */
.pick-near {
  display: grid;
  gap: 4px;
  margin: 8px 0;
}
.pick-near-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-muted);
}
.pick-near-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}
.pick-near-item:hover {
  background: var(--color-bg);
}
/* The account pages (Tôi, someone's profile, the leaderboard): the whole screen but the menu,
   which stays to go elsewhere (the owner's ask, 20/10/2026): above the bar on a phone, right of
   the rail on a computer. */
.panel.full {
  position: fixed;
  inset: 0 0 var(--menu-bottom, 0) var(--menu-left, 0);
  z-index: 60;
  width: 100%;
  max-height: none;
  padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: panel-full-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.panel.full > .grabber {
  display: none;
}
.panel.full > .close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 22px;
  line-height: 1;
  /* At the right edge of the page's column, not in the far corner of the screen. */
  margin-right: max(0px, calc((100% - 760px) / 2));
}
@media (max-width: 760px) {
  :root {
    --menu-bottom: calc(60px + env(safe-area-inset-bottom));
  }
  html[data-look='thread'] {
    --menu-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .panel.full {
    padding-bottom: 24px;
  }
}
@media (min-width: 761px) {
  :root {
    --menu-left: 84px;
  }
}
.panel.full #panel-body {
  max-width: 760px;
  margin: 0 auto;
}
@keyframes panel-full-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel.full {
    animation: none;
  }
}
/* ---------- Khám phá, 19/10/2026 (the owner's layout) */
/* Pictures and videos whole, the same picture blurred around them. */
.reel-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(28px) brightness(0.55);
  transform: scale(1.2);
  pointer-events: none;
}
.reel-media video {
  position: relative;
  object-fit: contain;
  background: transparent;
}
.reel-photo {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
}
.reel-photos .reel-photo img.reel-picture {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.reel-photos .reel-photo img.reel-backdrop {
  flex: none;
  object-fit: cover;
}
/* The photo fades in over its blurred small copy once it has arrived. */
.reel-photos .reel-photo img.reel-picture {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.reel-photos .reel-photo img.reel-picture.ready {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .reel-photos .reel-photo img.reel-picture {
    transition: none;
  }
}
/* "1/5" in the top right corner, as on Instagram. */
.reel-count {
  position: absolute;
  top: 64px;
  right: 12px;
  z-index: 1;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.reel-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 85%);
  color: #111;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.reel-arrow.prev {
  left: 12px;
}
.reel-arrow.next {
  right: 12px;
}
.reel-media:hover .reel-arrow {
  opacity: 1;
}
@media (hover: none) {
  .reel-arrow {
    display: none;
  }
}

/* Comments on a phone: a tall sheet that slides up over the dimmed feed, like Instagram. */
.sheet-dim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgb(0 0 0 / 45%);
  animation: dim-in 0.25s ease;
}
.sheet {
  z-index: 4;
  animation: sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition: transform 0.15s;
}
.sheet.closing {
  animation: sheet-down 0.22s ease forwards;
}
.sheet.comments-sheet {
  display: flex;
  flex-direction: column;
  height: 82%;
  max-height: 82%;
  padding: 24px 0 0;
  overflow: hidden;
}
.comments-sheet .sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
}
.comments-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.comments-title {
  margin: 0 0 6px;
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  text-align: center;
}
.comments-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px;
  overscroll-behavior: contain;
}
.comments-view .comment-form {
  position: static;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
}
.comment-write {
  display: flex;
  align-items: center;
  gap: 10px;
}
.comment-write textarea {
  flex: 1;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 14px;
  border-radius: 22px;
  resize: none;
}
.comment-write .button {
  flex: none;
  border-radius: 999px;
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes sheet-down {
  to {
    transform: translateY(100%);
  }
}
@keyframes dim-in {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sheet,
  .sheet.closing,
  .sheet-dim {
    animation: none;
  }
}

/* The list and the right-hand column exist only on a computer. */
.reels-rack,
.reels-side {
  display: none;
}
@media (min-width: 1024px) {
  /* Like Facebook: the list on the left, the picture in the middle, the words, the buttons
     and the comments on the right. */
  .reels-screen {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 400px;
  }
  .reels-screen > .reels {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: 100%;
    margin: 0;
  }
  .reels-screen .reels-top,
  .reels-screen .sheet,
  .reels-screen .sheet-dim {
    left: 250px;
    right: 400px;
    width: auto;
    margin: 0;
    transform: none;
  }
  .reels-screen .sheet {
    animation: none;
  }
  .reels-rack {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 8px;
    background: #111;
    border-right: 1px solid #222;
    scrollbar-width: thin;
  }
  .rack-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: #ddd;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }
  .rack-item:hover {
    background: #1d1d1d;
  }
  .rack-item.on {
    background: #262626;
    color: #fff;
  }
  .rack-thumb {
    position: relative;
    width: 64px;
    height: 84px;
    overflow: hidden;
    border-radius: 8px;
    background: #333;
  }
  .rack-item.on .rack-thumb {
    box-shadow: 0 0 0 2px #fff;
  }
  .rack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .rack-mark {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgb(0 0 0 / 60%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
  }
  .rack-mark .ios-icon {
    width: 12px;
    height: 12px;
  }
  .rack-words {
    display: grid;
    gap: 2px;
    min-width: 0;
    font-size: 12px;
  }
  .rack-words strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rack-words span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0.75;
  }
  .reels-side {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--color-surface);
    color: var(--color-text);
    border-left: 1px solid var(--color-border);
  }
  .reels-side .reel-info {
    position: static;
    padding: 18px 16px 10px;
    background: none;
    text-shadow: none;
  }
  .reels-side .reel-info a {
    color: var(--color-text);
  }
  .reels-side .reel-caption {
    -webkit-line-clamp: 6;
  }
  .reels-side .reel-chip {
    background: var(--color-bg);
  }
  .reels-side .reel-source .badge {
    color: #fff;
  }
  .reels-side .reel-rail {
    position: static;
    display: flex;
    justify-content: space-around;
    padding: 6px 8px;
    border-block: 1px solid var(--color-border);
  }
  .reels-side .reel-rail button,
  .reels-side .reel-rail a {
    color: var(--color-text);
    text-shadow: none;
  }
  .reels-side .rail-icon .ios-icon {
    width: 26px;
    height: 26px;
    filter: none;
  }
  .reels-side .comments-title {
    padding-top: 12px;
    text-align: left;
  }
}
/* ---------- "Hôm nay ăn gì?", redesigned 19/10/2026: bigger cards with the dish's picture,
   the one under the pointer bigger still, a stage with light at the middle. */
.slot-scene {
  --slot-width: 150px;
  height: 290px;
  margin: 8px -16px;
  background:
    radial-gradient(60% 80% at 50% 50%, rgb(255 236 214 / 85%), rgb(255 236 214 / 0%) 70%),
    linear-gradient(180deg, #fff8f1, #fdf1e6);
  border-block: 1px solid var(--color-border);
}
/* Fading edges: the eye goes to the middle. */
.slot-scene::before,
.slot-scene::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 22%;
  pointer-events: none;
}
.slot-scene::before {
  left: 0;
  background: linear-gradient(90deg, #fdf3e9, rgb(253 243 233 / 0%));
}
.slot-scene::after {
  right: 0;
  background: linear-gradient(-90deg, #fdf3e9, rgb(253 243 233 / 0%));
}
.slot-track {
  top: 46px;
  align-items: center;
}
.slot-card {
  display: flex;
  flex-direction: column;
  height: 196px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
  transform: scale(0.88);
  opacity: 0.72;
  transition:
    transform 0.12s ease-out,
    opacity 0.12s,
    box-shadow 0.12s;
}
.slot-card.is-near {
  transform: scale(0.95);
  opacity: 0.9;
}
.slot-card.is-center {
  z-index: 1;
  transform: scale(1.16);
  opacity: 1;
  box-shadow: none;
  outline: 2px solid var(--color-primary);
}
.slot-card.is-winner {
  animation: slot-win 0.7s ease-in-out;
}
@keyframes slot-win {
  0%,
  100% {
    transform: scale(1.16);
  }
  40% {
    transform: scale(1.26);
  }
  70% {
    transform: scale(1.12);
  }
}
.slot-art {
  position: relative;
  height: 118px;
  overflow: hidden;
  border-radius: 18px 18px 0 0;
  background: #f4e7da;
}
.slot-card .slot-art img,
.slot-card .slot-art .cover-glyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  font-size: 2.6rem;
  background: none;
}
.slot-words {
  display: grid;
  gap: 2px;
  padding: 8px 10px 10px;
  min-width: 0;
}
.slot-card strong {
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slot-card small {
  margin: 0;
}
.slot-distance {
  justify-self: start;
  margin-top: 2px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 10px;
  font-weight: 700;
}
/* The frame and the pointer: the old ones are replaced by the big centre card. */
.slot-selection {
  display: none;
}
.slot-pointer {
  top: 8px;
  z-index: 3;
  font-size: 22px;
  filter: none;
}
.slot-pointer::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -270px;
  width: 2px;
  height: 0;
}
@media (prefers-reduced-motion: reduce) {
  .slot-card,
  .slot-card.is-winner {
    transition: none;
    animation: none;
  }
}
/* Small dish thumbnail next to the result title. */
.eat-congrats-art {
  width: 64px;
  flex: 0 0 64px;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--color-bg);
  box-shadow: none;
  animation: congrats-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.eat-congrats-art img,
.eat-congrats-art .cover-glyph {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-size: 2rem;
}
@keyframes congrats-pop {
  from {
    transform: scale(0.6) rotate(-6deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .eat-congrats-art {
    animation: none;
  }
}
.food-result-actions .button {
  justify-content: center;
  text-align: center;
}
/* Khám phá on a computer: one fixed frame, upright like a phone video (9:16), in the middle;
   a landscape photo fits inside that frame, the blurred copy filling above and below it. */
@media (min-width: 761px) {
  .reels-screen .reel-media {
    inset: 0 auto;
    left: 50%;
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    transform: translateX(-50%);
  }
}
/* Khám phá on a computer, as the owner drew it (19/10/2026): space on the left, the upright
   frame in the middle with "Hình ảnh, video khác" along its bottom, the comments on the
   right. Absolutely placed parts sit in the frame's grid area. */
@media (min-width: 1024px) {
  .reels-screen {
    grid-template-columns: minmax(0, 1fr) auto minmax(380px, 1.35fr);
    grid-template-rows: 100%;
  }
  .reels-screen > .reels {
    grid-column: 2;
    aspect-ratio: 9 / 16;
    height: 100%;
    max-width: 52vw;
  }
  .reels-screen .reel-media {
    inset: 0;
    left: 0;
    width: 100%;
    transform: none;
  }
  .reels-screen .reels-top,
  .reels-screen .sheet,
  .reels-screen .sheet-dim,
  .reels-screen .reel-unmute {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
  }
  .reels-screen .reels-top,
  .reels-screen .sheet,
  .reels-screen .sheet-dim {
    left: 0;
    right: 0;
  }
  .reels-screen .reels-rack {
    position: absolute;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: block;
    padding: 28px 10px 10px;
    background: linear-gradient(transparent, rgb(0 0 0 / 75%));
    border: 0;
  }
  .rack-title {
    margin: 0 0 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
  }
  .rack-row {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .rack-row::-webkit-scrollbar {
    display: none;
  }
  .reels-rack .rack-item {
    display: block;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 8px;
    background: none;
  }
  .reels-rack .rack-words {
    display: none;
  }
  .reels-rack .rack-thumb {
    display: block;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    opacity: 0.8;
  }
  .reels-rack .rack-item.on .rack-thumb {
    opacity: 1;
    box-shadow: 0 0 0 2px #fff;
  }
  .reels-rack .rack-item:hover .rack-thumb {
    opacity: 1;
  }
  .reels-screen .reels-side {
    grid-column: 3;
  }
  /* "1/5" and the dots clear of the filters; the arrows above the row of pictures. */
  .reels-screen .reel-count,
  .reels-screen .reel-dots {
    top: 112px;
  }
}
/* Khám phá on a computer, like Facebook's photo viewer, in the site's light colours
   (19/10/2026): a light stage with the upright frame in the middle and round arrows on both
   sides, the filters and the close button on top, "Hình ảnh, video khác" along the bottom;
   on the right, a white column with the post, its buttons and its comments. */
.stage-arrow {
  display: none;
}
.reel-when {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}
@media (min-width: 1024px) {
  .reels-screen {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    background: var(--color-bg);
    color: var(--color-text);
  }
  .reels-screen > .reels {
    grid-column: 1 / 2;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
  }
  .reels-screen .reel {
    background: none;
  }
  /* The upright frame, under the filters and above the row of pictures. */
  .reels-screen .reel-media {
    inset: 64px auto auto;
    left: 50%;
    width: auto;
    height: calc(100% - 64px - 112px);
    max-width: calc(100% - 140px);
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 14px;
    background: #111;
    box-shadow: 0 10px 30px rgb(16 34 29 / 18%);
    transform: translateX(-50%);
  }
  .reels-screen .reel-count,
  .reels-screen .reel-dots {
    top: 12px;
  }
  .reels-screen .reels-top,
  .reels-screen .reels-rack,
  .reels-screen .sheet,
  .reels-screen .sheet-dim,
  .reels-screen .reel-unmute,
  .reels-screen .stage-arrow {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }
  .reels-screen .reels-side {
    grid-column: 2 / 3;
  }
  .reels-screen .reels-top {
    background: none;
  }
  .reels-screen .segment {
    background: var(--color-surface);
    box-shadow: 0 1px 4px rgb(16 34 29 / 12%);
  }
  .reels-screen .segment button {
    color: var(--color-text);
  }
  .reels-screen .segment button[aria-pressed='true'] {
    background: var(--color-text);
    color: var(--color-bg);
  }
  .reels-screen .reels-close {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgb(16 34 29 / 12%);
  }
  .reels-screen .reels-place,
  .reels-screen .reels-place a {
    color: var(--color-text);
  }
  .stage-arrow {
    position: absolute;
    top: calc(50% - 50px);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 30px;
    line-height: 1;
    box-shadow: 0 2px 10px rgb(16 34 29 / 18%);
    cursor: pointer;
  }
  .stage-arrow:hover {
    background: var(--color-bg);
  }
  .stage-arrow.prev {
    left: 20px;
  }
  .stage-arrow.next {
    right: 20px;
  }
  /* "Hình ảnh, video khác": a light bar along the bottom of the stage. */
  .reels-screen .reels-rack {
    left: 50%;
    right: auto;
    bottom: 14px;
    width: min(620px, calc(100% - 40px));
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 4px 16px rgb(16 34 29 / 14%);
    transform: translateX(-50%);
  }
  .reels-screen .rack-title {
    color: var(--color-muted);
    text-shadow: none;
  }
  .reels-screen .reels-rack .rack-thumb {
    width: 56px;
    height: 56px;
    opacity: 0.85;
  }
  .reels-screen .reels-rack .rack-item.on .rack-thumb {
    box-shadow: 0 0 0 3px var(--color-primary);
    opacity: 1;
  }
  .reels-screen .reel-unmute {
    top: 80px;
  }
  /* The right-hand column: the post, its buttons, its comments. */
  .reels-screen .reels-side {
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
  }
  .reels-side .reel-by .avatar {
    width: 40px;
    height: 40px;
    border: 0;
  }
  .reels-side .reel-by {
    font-size: 15px;
  }
  .reels-side .reel-rail {
    justify-content: flex-start;
    gap: 6px;
    padding: 4px 10px;
  }
  .reels-side .reel-rail button,
  .reels-side .reel-rail a {
    grid-auto-flow: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
  }
  .reels-side .reel-rail button:hover,
  .reels-side .reel-rail a:hover {
    background: var(--color-bg);
  }
  .reels-side .reel-rail button:last-child {
    margin-left: auto;
  }
  .reels-side .rail-icon .ios-icon {
    width: 22px;
    height: 22px;
  }
  .reels-side .comments > li.muted {
    padding: 48px 16px;
    border: 0;
    color: var(--color-muted);
    font-size: 15px;
    text-align: center;
  }
  .reels-side .comments > li.muted::before {
    content: '💬';
    display: block;
    margin-bottom: 10px;
    font-size: 44px;
  }
  .reels-side .comment-write textarea {
    border: 0;
    background: var(--color-bg);
  }
}
/* 19/10/2026, the owner again: the frame from the top of the stage to the bottom, and
   "Hình ảnh, video khác" small, as a layer over the bottom of the video. */
@media (min-width: 1024px) {
  .reels-screen .reel-media {
    top: 12px;
    height: calc(100% - 24px);
  }
  .reels-screen .reels-rack {
    bottom: 26px;
    width: auto;
    max-width: min(330px, calc(100% - 40px));
    padding: 6px 8px 8px;
    border-radius: 14px;
    background: rgb(12 18 16 / 45%);
    box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
    backdrop-filter: blur(10px);
  }
  .reels-screen .rack-title {
    margin: 0 2px 5px;
    color: rgb(255 255 255 / 85%);
    font-size: 11px;
    font-weight: 600;
  }
  .reels-screen .rack-row {
    gap: 5px;
  }
  .reels-screen .reels-rack .rack-thumb {
    width: 40px;
    height: 40px;
    border-radius: 7px;
    opacity: 0.75;
  }
  .reels-screen .reels-rack .rack-item.on .rack-thumb {
    box-shadow: 0 0 0 2px #fff;
    opacity: 1;
  }
  .reels-screen .reels-rack .rack-mark {
    right: 2px;
    bottom: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
  }
  .reels-screen .reels-rack .rack-mark .ios-icon {
    width: 9px;
    height: 9px;
  }
}
/* "Hình ảnh, video khác": the post's own pictures, a column of small ones (19/10/2026).
   On a phone, a glass layer in the top right corner, under "1/5". */
.reel-thumbs {
  position: absolute;
  top: 98px;
  right: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: calc(100% - 340px);
  overflow-y: auto;
  padding: 5px;
  border-radius: 12px;
  background: rgb(10 14 13 / 38%);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.reel-thumbs::-webkit-scrollbar {
  display: none;
}
.reel-thumb {
  flex: none;
  width: 42px;
  height: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #222;
  opacity: 0.7;
  cursor: pointer;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
.reel-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel-thumb.on {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff;
}
.reel-thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}
@media (min-width: 1024px) {
  /* On a computer, outside the frame: a white column from its top right corner down. */
  .reels-screen .reel {
    container-type: size;
  }
  .reels-screen .reel-thumbs {
    top: 12px;
    right: auto;
    left: calc(50% + min((100cqh - 24px) * 9 / 32, (100cqw - 140px) / 2) + 14px);
    max-height: calc(100% - 24px);
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: 0 4px 16px rgb(16 34 29 / 14%);
    backdrop-filter: none;
  }
  .reels-screen .reel-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    opacity: 0.75;
  }
  .reels-screen .reel-thumb.on {
    box-shadow: 0 0 0 3px var(--color-primary);
    opacity: 1;
  }
}
@media (min-width: 1024px) {
  /* The dots at the bottom of the frame, clear of the filters above it. */
  .reels-screen .reel-dots {
    top: auto;
    bottom: 14px;
  }
}
@media (max-width: 1023px) {
  /* With the column of small photos, "1/5" and the dots would only crowd the corner (and sit
     on the close button and the filters): the column already marks the one showing. */
  .reel:has(.reel-thumbs) .reel-count,
  .reel:has(.reel-thumbs) .reel-dots {
    display: none;
  }
}
/* ---------- The share sheet (public/web/share.js) */
.share-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: 92dvh;
  overflow-y: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
}
.share-dialog[open] {
  animation: eat-open 0.2s ease-out;
}
.share-dialog::backdrop {
  background: rgb(16 34 29 / 50%);
  backdrop-filter: blur(2px);
}
@media (max-width: 760px) {
  /* On a phone: a sheet from the bottom. */
  .share-dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .share-dialog[open] {
    animation: sheet-up 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
}
.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}
.share-head h2 {
  margin: 0;
  font-size: 1.15rem;
}
.share-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
/* What the person receiving the link will see, as the apps draw it. */
.share-preview {
  margin: 4px 18px 14px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg);
}
.share-art {
  aspect-ratio: 1.91 / 1;
  overflow: hidden;
  background: #e9e4dc;
}
.share-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.share-art.is-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
  background: var(--color-surface);
}
.share-art.is-brand img {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  object-fit: contain;
}
.share-art.is-brand b {
  color: var(--color-primary);
}
.share-words {
  display: grid;
  gap: 3px;
  padding: 10px 12px 12px;
}
.share-words small {
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.4px;
}
.share-words strong {
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-words span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 13px;
}
.share-channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 6px;
  padding: 14px 14px 18px;
  border-top: 1px solid var(--color-border);
}
.share-channel {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.share-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-bg);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 3px 10px rgb(16 34 29 / 15%);
  transition: transform 0.12s;
}
.share-channel:hover .share-icon {
  transform: translateY(-2px);
}
.ch-zalo .share-icon {
  background: #0068ff;
}
.ch-messenger .share-icon {
  background: linear-gradient(135deg, #00b2ff, #a033ff 60%, #ff5c87);
}
.ch-facebook .share-icon {
  background: #1877f2;
  font-family: Georgia, serif;
}
.ch-telegram .share-icon {
  background: #229ed9;
}
.ch-x .share-icon {
  background: #111;
}
.ch-email .share-icon {
  background: #6b7280;
}
.ch-more .share-icon {
  background: var(--color-bg);
  color: var(--color-text);
}
.share-link {
  display: flex;
  gap: 8px;
  padding: 0 18px 14px;
}
.share-link input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
}
.share-status {
  margin: -6px 18px 12px;
  color: #1f6b4a;
  font-size: 13px;
  font-weight: 600;
}
/* ---------- Ratings: five stars with a post (contribute.js), the score on a place's page */
.rate-box {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}
.rate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rate-stars {
  display: flex;
  gap: 2px;
}
.rate-stars button {
  padding: 0 2px;
  border: 0;
  background: none;
  color: #d9d4cb;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.1s,
    color 0.1s;
}
.rate-stars button.on {
  color: #f5a524;
}
.rate-stars button:hover {
  transform: scale(1.12);
}
.rate-said {
  font-weight: 700;
  color: #b7791f;
}
.rate-box .small {
  margin: 0;
}
.place-rating {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--color-bg);
}
.place-rating-score {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 88px;
}
.place-rating-score b {
  font-size: 2.2rem;
  line-height: 1;
}
.place-rating-stars {
  color: #f5a524;
  font-size: 15px;
  letter-spacing: 1px;
}
.place-rating-score small {
  color: var(--color-muted);
  font-size: 12px;
}
.place-rating-bars {
  display: grid;
  gap: 3px;
}
.place-rating-bars p {
  display: grid;
  grid-template-columns: 12px 1fr 28px;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
}
.place-rating-bars .rating-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6e1d8;
}
.place-rating-bars .rating-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: #f5a524;
}
.place-rating-bars small {
  color: var(--color-muted);
  text-align: right;
}
.place-rating-few,
.place-rating-none {
  margin: 0;
}
.card-rating {
  color: #b7791f;
  font-weight: 700;
}
.reel-stars {
  color: #f5a524;
  font-size: 13px;
  letter-spacing: 1px;
}
/* The close button of a place's page sits on the pictures without narrowing them (a float
   beside the grid made it narrower), and "Chia sẻ" looks like the other buttons there. */
.panel.wide > .close {
  float: none;
  display: grid;
  place-items: center;
  margin: 10px 0 -48px auto;
}
button.place-action {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.place-rating-bars .rating-bar {
  display: block;
}
/* Five buttons fit on one row of a phone. */
.place-actions {
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
}

/* ---------- S1: posting like Instagram (compose.js) */
.tabbar .tab-new {
  display: none;
}
@media (min-width: 761px) {
  .tabbar .tab-new {
    display: flex;
  }
}
.reels-new {
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}
.reels-new + .reels-close {
  margin-left: 0;
}
.compose-dialog {
  width: min(880px, calc(100% - 24px));
  height: min(820px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
  overflow: hidden;
}
.compose-dialog[open] {
  display: flex;
  flex-direction: column;
  animation: eat-open 0.2s ease-out;
}
.compose-dialog::backdrop {
  background: rgb(16 34 29 / 60%);
}
.compose-dialog.over {
  outline: 3px dashed var(--color-primary);
  outline-offset: -8px;
}
.compose-head {
  display: grid;
  grid-template-columns: 64px 1fr 110px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border);
}
.compose-head h2 {
  margin: 0;
  text-align: center;
  font-size: 16px;
}
.compose-head-button {
  min-height: 52px;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.compose-next {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
}
.compose-next:disabled {
  color: var(--color-muted);
  cursor: default;
}
.compose-steps {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 16px 0;
  list-style: none;
}
.compose-steps li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}
.compose-steps li.done,
.compose-steps li.current {
  background: var(--color-primary);
}
.compose-body {
  flex: 1;
  overflow: auto;
  padding: 14px 16px 22px;
}
.compose-body > div {
  display: grid;
  gap: 12px;
}
.compose-drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 420px;
  border: 2px dashed var(--color-border);
  border-radius: 18px;
  text-align: center;
  cursor: pointer;
}
.compose-drop-icon {
  position: relative;
  width: 72px;
  height: 56px;
  border: 3px solid var(--color-text);
  border-radius: 12px;
}
.compose-drop-icon::after {
  content: '';
  position: absolute;
  inset: 12px 18px;
  border: 3px solid var(--color-text);
  border-radius: 50%;
}
.compose-camera {
  justify-self: start;
}
.compose-stage {
  display: grid;
  place-items: center;
  height: min(52vh, 460px);
  border-radius: 14px;
  background: #111;
  overflow: hidden;
}
.compose-stage img,
.compose-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.compose-strip {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px;
  list-style: none;
  overflow-x: auto;
}
.compose-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--color-bg);
  overflow: hidden;
  cursor: pointer;
}
.compose-thumb.on {
  border-color: var(--color-primary);
}
.compose-thumb img,
.compose-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compose-thumb-n {
  position: absolute;
  top: 3px;
  left: 3px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: rgb(0 0 0 / 60%);
  color: #fff;
  font-size: 11px;
}
.compose-thumb-video {
  position: absolute;
  right: 4px;
  bottom: 2px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 2px #000;
}
.compose-thumb-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  font-size: 12px;
}
.compose-thumb-state.error {
  background: rgb(160 30 30 / 70%);
  font-weight: 700;
}
.compose-wait {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 60px;
  background: linear-gradient(90deg, var(--color-bg), var(--color-border), var(--color-bg));
  background-size: 200% 100%;
  animation: compose-wait 1.2s linear infinite;
}
@keyframes compose-wait {
  to {
    background-position: -200% 0;
  }
}
.compose-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* The frame of the post, the photo dragged inside it. */
.compose-frame {
  position: relative;
  width: min(100%, 420px);
  justify-self: center;
  border-radius: 6px;
  background: #111;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.compose-frame img {
  position: absolute;
  max-width: none;
  pointer-events: none;
}
.compose-frame.whole {
  display: grid;
  place-items: center;
  cursor: default;
}
.compose-frame.whole video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.compose-frame.small {
  width: 120px;
  cursor: default;
}
.compose-frame.small img,
.compose-frame.small canvas {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compose-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / 30%) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 30%) 1px, transparent 1px);
  background-size: 33.34% 33.34%;
}
.compose-zoom {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}
.compose-sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}
.compose-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.compose-filter {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.compose-filter img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
}
.compose-filter.on img {
  border-color: var(--color-primary);
}
.compose-filter.on span {
  font-weight: 700;
}
.compose-cover-pick {
  display: grid;
  grid-template-columns: auto 1fr 64px;
  align-items: center;
  gap: 10px;
}
.compose-cover {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.compose-write-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
}
.compose-mini {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}
.compose-caption {
  width: 100%;
  min-height: 96px;
  resize: vertical;
}
.compose-where h4,
.compose-group h4 {
  margin: 4px 0 8px;
}
.compose-places {
  display: grid;
  gap: 8px;
}
.compose-place-list {
  max-height: 240px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}
.compose-list-title {
  padding: 6px 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-muted);
  text-transform: uppercase;
}
.compose-place {
  display: grid;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: none;
  color: var(--color-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.compose-place:hover {
  background: var(--color-bg);
}
.compose-place-chosen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 700;
}
.compose-map {
  position: relative;
  height: 220px;
  border-radius: 12px;
  background: var(--color-bg);
  overflow: hidden;
}
.compose-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 26px;
  height: 26px;
  margin: -30px 0 0 -13px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
  pointer-events: none;
}
.compose-summary {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: start;
}
.compose-summary-place {
  margin: 0 0 6px;
  font-weight: 700;
}
.compose-resume {
  display: grid;
  gap: 12px;
  justify-items: start;
}
@media (max-width: 760px) {
  .compose-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .compose-drop {
    min-height: 300px;
  }
}

/* ---------- S1: a post's own page (post-view.js) */
.post-page {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.post-main {
  display: grid;
  gap: 16px;
}
.post-media {
  position: relative;
  aspect-ratio: var(--post-ratio, 0.8);
  max-height: 82vh;
  border-radius: 8px;
  background: #111;
  overflow: hidden;
}
.post-strip {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.post-strip::-webkit-scrollbar {
  display: none;
}
.post-slide {
  display: grid;
  flex: 0 0 100%;
  height: 100%;
  place-items: center;
  scroll-snap-align: center;
}
.post-slide img,
.post-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.post-media:not(.free) .post-slide img {
  object-fit: cover;
}
.post-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
  margin: 0;
  pointer-events: none;
}
.post-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 50%);
}
.post-dots span.on {
  background: #fff;
}
.post-arrow {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 85%);
  color: #111;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.post-arrow.prev {
  left: 10px;
}
.post-arrow.next {
  right: 10px;
}
.post-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}
/* Nothing in the column may push it wider than itself (the comment box, long addresses). */
.post-side > *,
.post-page .comment-write textarea {
  min-width: 0;
}
/* The comments sit in the page's column here, not in a sheet: no inner scroll, no centred
   title, no padding of their own. */
.post-page .comments-view {
  display: grid;
  gap: 8px;
}
.post-page .comments-title {
  padding: 0 0 8px;
  font-size: 16px;
  text-align: left;
}
.post-page .comments-scroll {
  padding: 0;
  overflow: visible;
}
.post-page .comments-view .comment-form {
  padding: 10px 0 0;
}
/* "Chỉ đường", "Xem quán", "Muốn đi", "Đã đi" on one line, the two buttons sharing the room. */
.post-place .post-place-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  align-items: center;
}
.post-place .post-place-buttons > .button {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}
.post-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}
.post-head .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.post-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}
.post-who > a:first-child {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.post-where-small {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
}
.post-meta {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--color-muted);
}
.post-menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}
.post-words p {
  margin: 0 0 6px;
}
.post-caption {
  line-height: 1.5;
  white-space: pre-line;
}
.post-dishes {
  font-weight: 600;
  color: var(--color-primary);
}
.post-stars {
  letter-spacing: 2px;
  color: #e0a100;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
  border-bottom: 1px solid var(--color-border);
}
.post-act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}
.post-act svg {
  width: 24px;
  height: 24px;
}
.post-act[aria-pressed='true'] svg {
  color: var(--color-primary);
}
.post-act.post-save {
  margin-left: auto;
  justify-content: flex-end;
}
.post-menu:focus-visible,
.post-act:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 8px;
}
.post-place {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}
.post-map {
  height: 150px;
  border-radius: 10px;
  background: var(--color-bg);
  overflow: hidden;
}
.post-map-pin {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
}
.post-place-text {
  display: grid;
  gap: 3px;
}
.post-place-rating {
  font-size: 14px;
  color: #b07a00;
}
.post-place-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-grid-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.post-tile {
  position: relative;
  aspect-ratio: 1;
  background: var(--color-bg);
  overflow: hidden;
}
.post-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-tile-mark {
  position: absolute;
  top: 6px;
  right: 8px;
  color: #fff;
  text-shadow: 0 1px 3px #000;
}
.post-menu-dialog,
.post-edit {
  width: min(460px, calc(100% - 24px));
  padding: 18px;
  border: 0;
  border-radius: 18px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
}
.post-menu-dialog[open],
.post-edit[open] {
  display: grid;
  gap: 10px;
}
.post-menu-dialog::backdrop,
.post-edit::backdrop {
  background: rgb(16 34 29 / 55%);
}
.post-edit textarea {
  width: 100%;
}
.post-edit h3,
.post-edit h4 {
  margin: 4px 0 0;
}
.post-edit-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.reel-thumb-video {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #222;
  color: #fff;
}
.reel-photo .reel-slide-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .post-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr);
    align-items: start;
  }
  /* The column scrolls with the page (it used to stop at 82vh and cut the comments off). The
     pictures stay in view beside it, level with it: the panel's own padding is the gap. */
  .post-media {
    position: sticky;
    top: 0;
  }
}

.compose-caption,
.post-edit textarea {
  font: inherit;
  line-height: 1.5;
}
.post-head .avatar.blank {
  display: block;
  background: var(--color-border);
}

/* ---------- S2: Khám phá's three tabs (explore.js) */
.explore-page {
  max-width: 960px;
  margin: 0 auto;
}
.explore-tabs {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 0 0 10px;
  padding: 4px 48px 0;
}
.explore-tab {
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  color: var(--color-muted);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.explore-tab[aria-current='page'] {
  border-bottom-color: var(--color-text);
  color: var(--color-text);
}
/* Over the videos: white words on the dark feed. */
.reels-top {
  flex-wrap: wrap;
}
.reels-top .explore-tabs {
  flex-basis: 100%;
  margin: 0;
  padding: 0 44px;
}
.reels-top .explore-tab {
  color: rgb(255 255 255 / 70%);
  text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}
.reels-top .explore-tab[aria-current='page'] {
  border-bottom-color: #fff;
  color: #fff;
}
.explore-chips {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.explore-chips::-webkit-scrollbar {
  display: none;
}
.explore-chips .chip {
  flex: none;
}
/* The grid: three columns of squares; a video takes two rows. */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 3px;
}
.explore-cell {
  position: relative;
  display: block;
  min-height: 0;
  aspect-ratio: 1;
  background: var(--color-bg);
  overflow: hidden;
}
.explore-cell.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.explore-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.explore-cell:hover img {
  transform: scale(1.03);
}
.explore-cell-place {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 8px 6px;
  background: linear-gradient(transparent, rgb(0 0 0 / 55%));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.explore-cell:hover .explore-cell-place,
.explore-cell:focus-visible .explore-cell-place {
  opacity: 1;
}
.explore-sentinel {
  height: 1px;
}
/* "Đang theo dõi": cards like Instagram's home feed. */
.following-feed {
  display: grid;
  gap: 22px;
  max-width: 560px;
  margin: 0 auto;
}
.follow-card {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.follow-card-head {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
}
.follow-card-head .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--color-border);
}
.follow-card-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}
.follow-card-who {
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}
.follow-card-place {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: none;
}
.follow-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: #111;
  overflow: hidden;
}
.follow-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.follow-card-numbers {
  display: flex;
  gap: 16px;
  margin: 0;
}
.follow-card-numbers span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.follow-card-numbers svg {
  width: 20px;
  height: 20px;
}
.follow-card-caption {
  margin: 0;
  white-space: pre-line;
}
/* ---------- S2: the profile */
.profile-numbers {
  grid-template-columns: repeat(4, 1fr);
}
.profile-number {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}
.profile-map {
  height: min(60vh, 460px);
  border-radius: 12px;
  background: var(--color-bg);
  overflow: hidden;
}
.profile-map-pin {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 13px;
  background: var(--pin-color, var(--color-primary));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgb(0 0 0 / 35%);
}
.people-list {
  max-height: 60vh;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}
.people-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  color: var(--color-text);
  text-decoration: none;
}
.people-row:hover {
  background: var(--color-bg);
}
.people-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
span.people-avatar {
  display: grid;
  place-items: center;
  background: var(--color-border);
  font-weight: 700;
}

.explore-tabs {
  position: relative;
}
.explore-new {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

/* ---------- S3: the bell, saving, collections, notifications */
.tabbar .tab-notes {
  display: none;
}
@media (min-width: 761px) {
  .tabbar .tab-notes {
    display: flex;
  }
}
[data-bell] {
  position: relative;
}
[data-bell].has-new::after {
  content: attr(data-count);
  position: absolute;
  top: 2px;
  right: 50%;
  margin-right: -22px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--color-surface);
  border-radius: 9px;
  background: #e8344a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.explore-bell {
  position: absolute;
  left: 40px;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
}
.explore-bell svg {
  width: 24px;
  height: 24px;
}
.explore-bell.has-new::after {
  top: 0;
  right: 0;
  margin-right: 0;
}
.explore-tabs:has(.explore-bell) {
  padding-left: 88px;
}
@media (max-width: 500px) {
  .explore-tabs:has(.explore-bell) {
    justify-content: flex-start;
    gap: 14px;
    padding-right: 52px;
    overflow-x: auto;
  }
}
.post-save {
  margin-left: auto;
}
.post-act[aria-pressed='true'].post-save svg {
  color: var(--color-text);
}
.place-save[aria-pressed='true'] {
  color: var(--color-primary);
  font-weight: 700;
}
.chooser-list {
  display: grid;
  gap: 2px;
  max-height: 46vh;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}
.chooser-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
}
.chooser-new {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.saved-lists {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.list-card {
  display: grid;
  gap: 4px;
  color: var(--color-text);
  text-decoration: none;
}
.list-covers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 1;
  gap: 2px;
  border-radius: 12px;
  background: var(--color-bg);
  overflow: hidden;
}
.list-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.list-covers img:only-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.list-blank {
  display: block;
  grid-column: 1 / 3;
  background: var(--color-border);
}
.collection-page {
  max-width: 900px;
  margin: 0 auto;
}
.collection-head h2 {
  margin: 0;
}
.collection-places {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.collection-place {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  text-decoration: none;
}
.collection-place img,
.collection-place .list-blank {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
}
.collection-place > span:last-child {
  display: grid;
}
.notes-page {
  max-width: 640px;
  margin: 0 auto;
}
.note-head {
  margin: 16px 0 6px;
  font-size: 15px;
}
.notes {
  margin: 0;
  padding: 0;
  list-style: none;
}
.note-link {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
}
.note.unread .note-link {
  background: rgb(232 52 74 / 6%);
}
.note-link:hover {
  background: var(--color-bg);
}
.note-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
span.note-avatar {
  display: grid;
  place-items: center;
  background: var(--color-border);
  font-weight: 700;
}
.note-text {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}
.note-picture {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
}

/* Seven tabs on Tôi (S3): one line, swiped sideways when they do not fit. */
.profile-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.profile-tabs::-webkit-scrollbar {
  display: none;
}
.profile-tabs button {
  flex: 1 0 auto;
  padding-inline: 10px;
  white-space: nowrap;
}

/* ---------- S4: search, hashtags, mentions, dishes */
.explore-search {
  width: 100%;
  margin: 0 0 10px;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}
.find-results {
  display: grid;
  gap: 8px;
}
.find-head {
  margin: 10px 0 4px;
  font-size: 13px;
  color: var(--color-muted);
  text-transform: uppercase;
}
.find-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.find-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 10px;
  color: var(--color-text);
  text-decoration: none;
}
.find-row:hover {
  background: var(--color-bg);
}
.find-row > span:last-child {
  display: grid;
}
.find-icon,
.find-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-border);
  object-fit: cover;
}
.rich-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.reel-caption .rich-link {
  color: #fff;
  text-decoration: underline;
}
.suggest {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--shadow-small, 0 4px 12px rgb(0 0 0 / 12%));
}
.suggest li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.suggest li:hover {
  background: var(--color-bg);
}
.tag-head {
  display: grid;
  gap: 2px;
  margin: 8px 0 14px;
}
.tag-head h2 {
  margin: 0;
}
.dish-head {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}
.dish-picture {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.post-dishes a {
  color: inherit;
  text-decoration: none;
}

/* ---------- S5: the social map and the place page's tabs */
/* Over the photo cards (z-index from 100), under the card of a tapped pin (10000). */
.face-pin {
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 35%);
  overflow: hidden;
}
.face-pin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin-card-cover-link {
  display: block;
}
.place-people {
  margin: 0 0 8px;
}
.place-tabs-box {
  margin-top: 12px;
}
.place-ratings {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.place-rating-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: start;
  padding: 8px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
}
.place-rating-row img,
.place-rating-row .list-blank {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}
.place-rating-row > span:last-child {
  display: grid;
  gap: 2px;
}

/* ---------- S6: check-ins and badges (public/web/checkin-ui.js) */
.visited-mark {
  margin: 0;
  color: var(--color-primary);
  font-weight: 600;
}
.badges {
  margin: 4px 0 12px;
}
.badges h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.badge-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  font-size: 13px;
}
.badge-icon {
  font-size: 18px;
  line-height: 1;
}
.badge-new .badge-list li {
  font-size: 15px;
}
.badge-new .badge-icon {
  font-size: 28px;
}

/* ---------- Q4: pin styles by source or partner plan (src/shared/pin-styles.js). */
.pin-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--pin-tag-bg, #f5b301);
  color: var(--pin-tag-fg, #3b2600);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgb(0 0 0 / 25%);
}
@keyframes pin-pulse {
  0% {
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--pin-glow-colour) 70%, transparent),
      var(--pin-glow);
  }
  70% {
    box-shadow:
      0 0 0 14px transparent,
      var(--pin-glow);
  }
  100% {
    box-shadow:
      0 0 0 0 transparent,
      var(--pin-glow);
  }
}
@keyframes pin-bounce {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
@keyframes pin-ring {
  0% {
    outline: 2px solid color-mix(in srgb, var(--pin-glow-colour) 80%, transparent);
    outline-offset: 0;
  }
  100% {
    outline: 2px solid transparent;
    outline-offset: 12px;
  }
}
@keyframes pin-shine {
  from {
    background-position: 150% 0;
  }
  to {
    background-position: -50% 0;
  }
}
.photo-pin.fx-pulse .photo-pin-frame {
  animation: pin-pulse 1.8s infinite;
}
.photo-pin.fx-bounce .photo-pin-frame {
  animation: pin-bounce 1.6s ease-in-out infinite;
}
.photo-pin.fx-ring .photo-pin-frame {
  animation: pin-ring 1.6s ease-out infinite;
}
.photo-pin.fx-shine::before {
  content: '';
  position: absolute;
  inset: 0 0 9px;
  z-index: 1;
  border-radius: var(--pin-radius, 14px);
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 70%) 45%, transparent 60%);
  background-size: 200% 100%;
  animation: pin-shine 2.2s linear infinite;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .photo-pin.styled .photo-pin-frame,
  .photo-pin.styled::before {
    animation: none !important;
  }
}
.pin-legend {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border: 3px solid;
  border-radius: 4px;
  background: #ddd;
}
.chip-fact.partner {
  background: #fff4d1;
  color: #8a5a00;
  font-weight: 700;
}

/* Phones (the owner's choice, 19/10/2026): five tabs, Bản đồ, Khám phá, Đăng bài (the big round
   button in the middle), Ăn gì?, Tôi. */
@media (max-width: 760px) {
  .tabbar {
    grid-template-columns: repeat(5, 1fr);
  }
  .tabbar .tab-eat svg {
    width: 24px;
    height: 24px;
    padding: 0;
    margin-top: 0;
    border-radius: 0;
    background: none;
    fill: currentColor;
    box-shadow: none;
  }
  .tabbar .tab-new {
    display: flex;
  }
  .tabbar .tab-new svg {
    width: 46px;
    height: 46px;
    padding: 10px;
    margin-top: -18px;
    border-radius: 50%;
    background: var(--color-primary);
    fill: var(--color-on-primary);
    box-shadow: 0 4px 12px rgb(16 34 29 / 28%);
  }
}
.filter-box[hidden] {
  display: none;
}

/* ---------- P1 of docs/PLAN-PLACE-2026-10-20.md: the place card, as drawn with the owner.
   The front photo upright (3:4) with the facts over its foot, then the buttons. */
.pin-popup .maplibregl-popup-content {
  width: 300px;
  padding: 0;
  overflow: hidden;
}
.pin-popup .maplibregl-popup-close-button {
  top: 8px;
  right: 8px;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: #17221f;
}
.pin-card-front {
  position: relative;
  overflow: hidden;
  background: var(--pin-color, #243d37);
}
.pin-card-front .pin-card-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 62vh;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}
/* No photo yet: a short block in the kind's colour, the facts over it as usual. */
.pin-card-front .pin-card-nofront,
.pin-sheet .pin-card-front .pin-card-nofront {
  display: grid;
  place-items: start center;
  aspect-ratio: auto;
  height: 190px;
  padding-top: 18px;
  background: transparent;
  color: rgb(255 255 255 / 85%);
  font-size: 13px;
}
.pin-card-over {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 6px;
  padding: 64px 14px 12px;
  background: linear-gradient(to bottom, rgb(16 34 29 / 0%), rgb(16 34 29 / 82%));
  color: #fff;
  pointer-events: none;
}
.pin-card-over .eyebrow {
  margin: 0;
  color: rgb(255 255 255 / 88%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pin-card .pin-card-over strong {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}
.pin-card-open {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.pin-card-open.open {
  color: #8fe0b2;
}
.pin-card-open.closed {
  color: #ffc9bd;
}
.pin-chips,
.pin-must {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pin-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #17221f;
  font-size: 13px;
  font-weight: 800;
}
.pin-chip small {
  color: #5d6b67;
  font-size: 12px;
  font-weight: 500;
}
.pin-star {
  color: #c98a00;
}
.pin-must {
  font-size: 12px;
  font-weight: 700;
}
.pin-dish {
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(251 238 233 / 95%);
  color: #8f3620;
  font-weight: 600;
}
.pin-card .actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 12px;
}
.pin-card .actions .button {
  min-width: 0;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}
.pin-card .actions .card-details {
  grid-column: 1 / -1;
  min-height: 46px;
  border-color: #2c6bb8;
  background: #2c6bb8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.pin-card .actions .card-save[aria-pressed='true'] {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
/* The phone: the card rises from the bottom above the menu bar, the map and the pin above it
   (sheet.js). It has two stops: the card (low) and the card with the page after it (high). */
.pin-sheet {
  --sheet-chrome-bg: var(--color-text);
  --sheet-chrome-ink: var(--color-surface);
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--menu-bottom, calc(60px + env(safe-area-inset-bottom)));
  z-index: 10002;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 -6px 24px rgb(16 34 29 / 18%);
  /* One layer of its own: the browser's gestures stay out of it and the map gets none of them. */
  touch-action: none;
  overscroll-behavior: contain;
  transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: sheet-up 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
html[data-look='thread'] :is(.pin-sheet, .panel.place-sheet) {
  --sheet-chrome-bg: var(--color-bg);
  --sheet-chrome-ink: var(--color-text);
}
.pin-sheet-chrome {
  position: relative;
  flex: 0 0 64px;
  min-height: 64px;
  background: var(--sheet-chrome-bg);
  color: var(--sheet-chrome-ink);
  border-radius: 20px 20px 0 0;
}
.pin-sheet-chrome .close-control {
  background: var(--sheet-chrome-bg) !important;
  color: var(--sheet-chrome-ink) !important;
  top: 10px;
}
.pin-sheet[data-stage='high'] {
  /* The page scrolls inside; a drag down from its top is the sheet's (sheet.js). */
  touch-action: pan-x pan-y pinch-zoom;
}
.pin-sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.pin-sheet[data-stage='high'] .pin-sheet-scroll {
  overflow-y: auto;
}
/* The card: the photo takes a part of the screen, the buttons under it. */
.pin-sheet .pin-card-front .pin-card-cover {
  aspect-ratio: auto;
  height: min(42dvh, 380px);
  max-height: none;
  transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pin-sheet .pin-card-front .pin-card-nofront {
  height: min(42dvh, 380px);
}
/* Raised: the photo is a band, and the page follows at once. */
.pin-sheet[data-stage='high'] .pin-card-front .pin-card-cover,
.pin-sheet[data-stage='high'] .pin-card-front .pin-card-nofront {
  height: 210px;
}
.pin-sheet[data-stage='high'] .pin-card .card-details {
  display: none;
}
.pin-sheet-rest {
  padding-bottom: 24px;
}
.pin-sheet-wait {
  margin: 0;
  padding: 28px 16px;
  color: var(--color-muted);
  text-align: center;
}
.pin-sheet-wait:empty {
  display: none;
}
.pin-sheet .pd-bare {
  padding-top: 4px;
}
.pin-sheet-grab {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 2;
  width: 40px;
  height: 4px;
  margin-left: -20px;
  border-radius: 2px;
  background: var(--sheet-chrome-ink);
  opacity: 0.5;
}
.pin-sheet-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: #17221f;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
@keyframes sheet-fade {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pin-sheet {
    animation: none;
    transition: none;
  }
}

.pin-count {
  position: absolute;
  right: 12px;
  top: 52px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgb(16 34 29 / 62%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  pointer-events: none;
}
.pin-popup .pin-count {
  top: 48px;
}
.pin-card-more {
  color: rgb(255 255 255 / 85%);
  font-weight: 400;
}
.pin-card .actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ---------- P2 of docs/PLAN-PLACE-2026-10-20.md: the review window (review.js). */
.review-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: min(860px, calc(100dvh - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 24px 60px rgb(16 34 29 / 35%);
}
.review-dialog[open] {
  display: flex;
  flex-direction: column;
}
.review-dialog::backdrop {
  background: rgb(16 34 29 / 45%);
}
.review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid var(--color-border);
}
.review-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.review-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 22px;
  cursor: pointer;
}
.review-body {
  display: grid;
  gap: 18px;
  padding: 16px 18px;
  overflow-y: auto;
}
.review-sec {
  display: grid;
  gap: 10px;
}
.review-sec h3 {
  margin: 0;
  font-size: 15px;
}
.review-check {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--color-bg);
}
.review-check p {
  margin: 0;
}
.review-checked {
  color: #1f7a4d;
  font-weight: 700;
}
.review-stars {
  display: flex;
  gap: 6px;
}
.review-star {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--color-bg);
  color: #c9c3b6;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.review-star.on {
  color: #e0a100;
}
.review-said {
  font-weight: 700;
  min-height: 1.2em;
}
.review-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 6px;
}
.review-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg);
}
.review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-photo.busy img {
  opacity: 0.5;
}
.review-photo-out {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgb(16 34 29 / 70%);
  color: #fff;
  cursor: pointer;
}
.review-row,
.review-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.review-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.review-chip.on {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  font-weight: 700;
}
.review-more {
  width: auto;
  min-height: 38px;
}
.review-price-own {
  max-width: 260px;
}
.review-foot {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--color-border);
}
.review-send {
  width: 100%;
  min-height: 48px;
}
@media (max-width: 760px) {
  .review-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
}
.review-dialog textarea,
.review-dialog input,
.review-dialog select {
  font: inherit;
}

/* ---------- P3 of docs/PLAN-PLACE-2026-10-20.md: a place's page over the map. A computer:
   a sidebar over the left of the map that slides in (21/10/2026, the owner's ask; it was a
   popup in the middle), the map alive beside it. A phone: a sheet risen from the bottom. */
.panel.place-side {
  top: 0;
  left: 0;
  right: auto;
  bottom: 0;
  width: var(--place-panel-width);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  box-shadow: none;
  animation: side-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes side-in {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
}
.panel.place-side > .grabber {
  display: none;
}
.panel.place-side #panel-body > .pd {
  padding-top: 20px;
}
.stage .button.place-side-dismiss {
  display: none;
  position: absolute;
  top: 50%;
  left: var(--place-panel-width);
  translate: 0 -50%;
  z-index: 6;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--color-border);
  border-left: 0;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-small);
}
.place-side-dismiss > svg {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}
@media (min-width: 761px) {
  html:not(:has(.catalog-place-beside:not([inert])))
    #panel.place-side:not([hidden]):has(#panel-body > .pd)
    + .place-side-dismiss {
    display: grid;
    place-items: center;
  }
}
.panel.place-side > .close {
  /* Kept in sight while the page scrolls, without taking a column of its own. */
  position: sticky;
  top: 10px;
  z-index: 5;
  display: block;
  float: none;
  width: 38px;
  height: 38px;
  margin: 12px 12px -56px auto;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: #17221f;
}
.panel.place-sheet {
  --sheet-chrome-bg: var(--color-text);
  --sheet-chrome-ink: var(--color-surface);
  top: 44px;
  bottom: 0;
  left: 0;
  right: 0;
  width: auto;
  max-height: none;
  padding: 0;
  border-left: 0;
  border-radius: 22px 22px 0 0;
  animation: sheet-up 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.panel.place-sheet::before {
  content: '';
  display: block;
  height: 64px;
  background: var(--sheet-chrome-bg);
}
.panel.place-sheet > .close {
  /* Kept in sight while the sheet scrolls, without taking a column of its own. */
  position: sticky;
  top: 10px;
  z-index: 5;
  display: block;
  float: none;
  width: 38px;
  height: 38px;
  margin: -54px 12px 10px auto;
  border-radius: 50%;
  background: var(--sheet-chrome-bg) !important;
  color: var(--sheet-chrome-ink) !important;
}
@media (prefers-reduced-motion: reduce) {
  .panel.place-side,
  .panel.place-sheet {
    animation: none;
  }
}
.pd-wide {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  height: 100%;
}
.pd-big {
  position: relative;
  overflow: hidden;
  background: var(--pin-color, #243d37);
}
.pd-wide .pd-big {
  height: 100%;
  aspect-ratio: 3 / 4;
  max-width: 50vw;
}
.pd-phone .pd-big {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 72vh;
}
.pd-big.is-empty {
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 85%);
}
.pd-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.pd-big-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 48px;
  text-shadow: 0 2px 12px rgb(0 0 0 / 50%);
  pointer-events: none;
}
.pd-caption,
.pd-count {
  position: absolute;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgb(16 34 29 / 50%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.pd-caption {
  left: 14px;
  top: 14px;
  backdrop-filter: blur(8px);
}
.pd-count {
  right: 12px;
  bottom: 12px;
}
.pd-wide .pd-count {
  right: auto;
  bottom: auto;
  left: 14px;
  top: 50px;
}
.pd-thumbs.column {
  position: absolute;
  right: 14px;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100% - 220px);
  padding: 6px;
  overflow-y: auto;
  border-radius: 16px;
  background: rgb(16 34 29 / 38%);
  backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.pd-thumbs.row {
  display: flex;
  gap: 6px;
  padding: 8px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-thumb {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #3c4b47;
  cursor: pointer;
}
.pd-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-thumb.video::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}
.pd-thumb.on {
  outline: 2px solid #fff;
  outline-offset: 1px;
}
.pd-thumbs.row .pd-thumb.on {
  outline-color: var(--color-primary);
}
.pd-arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  color: #17221f;
  font-size: 20px;
  cursor: pointer;
}
.pd-arrow.prev {
  left: 14px;
}
.pd-arrow.next {
  right: 14px;
}
.pd-wide .pd-arrow.next {
  right: 82px;
}
.pd-over {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 110px 16px 16px;
  background: linear-gradient(to bottom, rgb(16 34 29 / 0%), rgb(16 34 29 / 80%));
}
.pd-over-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.pd-chip-over {
  padding: 6px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  color: #17221f;
  font-size: 12px;
  font-weight: 800;
}
.pd-chip-over.open {
  color: #1f7a4d;
}
.pd-chip-over small {
  color: #5d6b67;
  font-weight: 500;
}
.pd-star {
  color: #c98a00;
}
.pd-over-buttons {
  display: flex;
  gap: 8px;
}
.pd-over-button,
.pd-over-buttons .card-save {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 92%);
  color: #17221f;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.pd-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.pd-wide .pd-head {
  padding: 30px 48px 0 36px;
}
.pd-kind {
  margin: 0;
  color: var(--color-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pd-head h1 {
  margin: 2px 0 4px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  text-wrap: balance;
}
.pd-phone .pd-head h1 {
  font-size: 26px;
}
.pd-status {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}
.pd-status .open {
  color: #1f7a4d;
}
.pd-status .closed {
  color: var(--color-danger);
}
.pd-tabs {
  display: flex;
  gap: 26px;
  margin: 16px 36px 0;
  border-bottom: 1px solid var(--color-border);
}
.pd-tab-button {
  padding: 8px 0 11px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  color: var(--color-muted);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pd-tab-button[aria-selected='true'] {
  border-bottom-color: var(--color-primary);
  color: var(--color-text);
  font-weight: 800;
}
.pd-tab-body {
  flex: 1;
  min-height: 0;
  padding: 20px 40px 28px 36px;
  overflow-y: auto;
}
.pd-tab {
  display: grid;
  gap: 22px;
  animation: pd-up 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes pd-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.pd-sec {
  display: grid;
  gap: 10px;
}
.pd-sec h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.pd-summary {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.pd-description {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-line;
}
.pd-description.clamp {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.pd-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.pd-dish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pd-dish-chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--color-primary) 12%, var(--color-surface));
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 700;
}
.pd-dish-chip small {
  font-weight: 500;
}
.pd-dish-list {
  display: grid;
  gap: 8px;
}
.pd-dish {
  display: grid;
  gap: 2px;
}
.pd-dish span {
  color: var(--color-muted);
  font-size: 13px;
}
.pd-where {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.pd-map {
  width: 150px;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-bg);
}
.pd-info-lines {
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.pd-info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.pd-info-row span {
  color: var(--color-muted);
}
.pd-info-row b {
  font-weight: 600;
  text-align: right;
}
.pd-all summary {
  color: var(--color-primary);
  font-weight: 700;
  cursor: pointer;
}
.pd-squares {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 6px;
}
.pd-square {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #3c4b47;
}
.pd-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-square span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  text-shadow: 0 1px 4px rgb(0 0 0 / 60%);
}
.pd-score {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.pd-score-big {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.pd-score-big b {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.pd-stars {
  color: #c98a00;
  letter-spacing: 1px;
}
.pd-score-big small,
.pd-note,
.pd-time {
  color: var(--color-muted);
  font-size: 12px;
}
.pd-bars {
  display: grid;
  gap: 3px;
  color: var(--color-muted);
  font-size: 11px;
}
.pd-bars p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pd-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--color-bg);
}
.pd-bar i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e0a100;
}
.pd-review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pd-review-actions > * {
  min-height: 46px;
  justify-content: center;
}
.pd-note {
  margin: 0;
}
.pd-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pd-chip {
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pd-chip.on {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-surface);
  font-weight: 700;
}
.pd-chip:disabled {
  opacity: 0.4;
  cursor: default;
}
.pd-review {
  display: grid;
  gap: 7px;
  padding: 14px 0;
  border-top: 1px solid var(--color-border);
}
.pd-review-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}
.pd-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #8fc4b3;
  color: #fff;
  font-weight: 700;
}
.pd-review-who {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pd-name {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
}
.pd-review-price {
  margin-top: 3px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
}
.pd-review-price small {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
}
.pd-review-stars {
  color: #c98a00;
  font-size: 15px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.pd-review-words {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-line;
}
.pd-review-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  max-width: 340px;
}
.pd-review-photo {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}
.pd-review-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-review-photo span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgb(16 34 29 / 55%);
  color: #fff;
  font-weight: 700;
}
.pd-review-must {
  margin: 0;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 600;
}
.pd-review-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.pd-review-tools .pd-link {
  color: var(--color-muted);
  font-weight: 600;
}
.pd-review-tools .pd-link[aria-pressed='true'] {
  color: var(--color-primary);
}
.pd-reply {
  margin: 0 0 0 50px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--color-bg);
  font-size: 13px;
}
.pd-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
}
.pd-phone {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 28px;
}
.pd-phone > :not(.pd-pictures) {
  min-width: 0;
  margin: 0 16px;
}
.pd-summary-rating {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}
.pd-summary-rating span {
  color: var(--color-muted);
}
.pd-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.pd-actions > .button,
.pd-actions .pd-more summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  padding: 0 6px;
  font-size: 13px;
  text-decoration: none;
}
.pd-actions .pd-span2 {
  grid-column: span 2;
  font-size: 15px;
}
.pd-more {
  position: relative;
}
.pd-more summary {
  width: 100%;
  list-style: none;
}
.pd-more summary::-webkit-details-marker {
  display: none;
}
.pd-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 4;
  display: grid;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.pd-more-menu > * {
  padding: 10px;
  color: var(--color-text);
  text-align: left;
  text-decoration: none;
}

.pd-avatar-link {
  text-decoration: none;
}
.pd-review-actions > .button,
.pd-review-actions > .place-action {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 12px;
  font-weight: 700;
}
.pd-review-actions > .place-action {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}
.pd-review-actions .place-action-icon {
  font-size: 16px;
}
.pd-actions .card-rate,
.pd-actions .directions-link {
  gap: 8px;
}

/* Review has its own first row; the remaining actions stay together below. */
.pd .pd-actions.pd-actions-stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}
.pd .pd-actions.pd-actions-stacked > .card-rate {
  grid-column: 1;
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}
.pd .pd-actions.pd-actions-stacked > .pd-secondary-actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-bg);
}
.pd .pd-actions.pd-actions-stacked > .pd-secondary-actions > * {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 8px 4px;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
  grid-column: auto;
}
html[data-look='thread'] .pd-secondary-actions > .button.contribution-cta,
.pd .pd-secondary-actions > .button.contribution-cta {
  padding: 8px 4px;
  font-size: 12px;
}
.pd .pd-secondary-actions svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.pd .pd-secondary-actions > :focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.pd-wide .pd-actions-stacked {
  margin-bottom: 16px;
}

/* ---------- The "thread" look (theme "Tối", 20/10/2026; src/shared/theme.js): Threads in its
   dark tone. app.js marks <html data-look> from the theme's --look; the theme gives the colours.
   Every number here was read off threads.com on 20/10/2026 (docs/PLAN-PLACE-2026-10-20.md,
   "Theme Tối"): ground #101010, raised #181818, fields #1e1e1e, ink #f3f5f7, secondary #777,
   counts #ccc, lines rgba(243,245,247,.15), menu icons #4d4d4d until chosen, white buttons
   with black words (radius 10, weight 600), round search field (radius 22, 44 high). */
.tabbar .ic-line,
.tabbar .ic-fill {
  display: none;
}
html[data-look='thread'] {
  --hairline: var(--color-border);
  --field: var(--color-notice-bg);
  --icon-off: var(--color-muted);
  --counts: var(--color-text);
  --hover: color-mix(in srgb, var(--color-text) 8%, transparent);
}
/* The menu: icons only; grey outlines, the chosen one light and filled. */
html[data-look='thread'] .tabbar a:not(.rail-brand) {
  color: var(--icon-off);
  font-weight: 400;
}
html[data-look='thread'] .tabbar a:not(.rail-brand)[aria-current] {
  color: var(--color-text);
  background: none;
  font-weight: 400;
}
html[data-look='thread'] .tabbar a:not([aria-current]) > svg:not(.ic-line),
html[data-look='thread'] .tabbar a[aria-current] > svg.ic-line,
html[data-look='thread'] .tabbar a[aria-current]:has(> .ic-fill) > svg:not(.ic-fill),
html[data-look='thread'] .tabbar .tab-new > svg:not(.ic-line) {
  display: none;
}
html[data-look='thread'] .tabbar a:not([aria-current]) > svg.ic-line,
html[data-look='thread'] .tabbar a[aria-current] > svg.ic-fill,
html[data-look='thread'] .tabbar .tab-new > svg.ic-line {
  display: block;
}
html[data-look='thread'] .tabbar svg {
  width: 26px;
  height: 26px;
}
html[data-look='thread'] .tabbar svg.ic-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The words stay for screen readers only. */
html[data-look='thread'] .tabbar a:not(.rail-brand) > span[data-i18n] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* "Đăng bài": Threads' + button (raised ground, a line around it, radius 16). */
html[data-look='thread'] .tabbar a.tab-new:not(.rail-brand) {
  color: var(--color-text);
}
html[data-look='thread'] .tabbar .tab-new > svg.ic-line {
  width: 52px;
  height: 44px;
  padding: 10px 14px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: none;
  stroke-width: 2.2;
}
html[data-look='thread'] .tabbar .tab-eat[aria-current] {
  background: none;
}
@media (max-width: 760px) {
  html[data-look='thread'] body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  html[data-look='thread'] .tabbar {
    align-items: center;
    height: calc(68px + env(safe-area-inset-bottom));
    border-top: 0;
    background: color-mix(in srgb, var(--color-bg) 85%, transparent);
    backdrop-filter: blur(20px);
  }
  html[data-look='thread'] .tabbar a {
    height: 68px;
  }
}
@media (min-width: 761px) {
  html[data-look='thread'] .tabbar {
    gap: 10px;
    background: var(--color-bg);
  }
  html[data-look='thread'] .tabbar a:not(.rail-brand) {
    min-height: 56px;
    border-radius: 10px;
  }
  html[data-look='thread'] .tabbar a:not(.rail-brand):not([aria-current]):hover {
    background: var(--hover);
    color: var(--color-text);
  }
  html[data-look='thread'] .tabbar a.tab-new:not(.rail-brand):hover {
    background: none;
  }
  html[data-look='thread'] .rail-brand b {
    color: var(--brand-red);
  }
  /* Threads' column: the ground with a line of #2d2d2d around it. */
  html[data-look='thread'] .stage {
    border-color: var(--color-border);
  }
}
/* Fields: #1e1e1e, no line, round (22) when one line, 16 when several; #777 hints. */
html[data-look='thread']
  :is(
    input[type='text'],
    input[type='search'],
    input[type='email'],
    input[type='number'],
    input[type='tel'],
    input[type='url'],
    input[type='password'],
    input[type='date'],
    input[type='time'],
    input:not([type]),
    select
  ) {
  background-color: var(--field);
  border: 1px solid transparent;
  border-radius: 22px;
  color: var(--color-text);
  box-shadow: none;
}
html[data-look='thread'] textarea {
  background-color: var(--field);
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--color-text);
  box-shadow: none;
}
html[data-look='thread']
  :is(
    input:not([type='checkbox']):not([type='radio']):not([type='range']),
    textarea,
    select
  ):focus:not(:focus-visible) {
  outline: none;
  border-color: var(--hairline);
}
html[data-look='thread'] :is(input, textarea)::placeholder {
  color: var(--color-muted);
}
html[data-look='thread'] :is(input[type='checkbox'], input[type='radio'], input[type='range']) {
  accent-color: var(--color-text);
}
/* Buttons: the main one white with black words, the others clear with a line; radius 10. */
html[data-look='thread'] .button {
  background: transparent;
  border-color: var(--hairline);
  border-radius: 10px;
  color: var(--color-text);
  font-weight: 600;
  box-shadow: none;
}
html[data-look='thread'] .button.primary,
html[data-look='thread'] .pin-card .actions .card-details {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
html[data-look='thread'] :is(.chip, button.chip) {
  border-color: var(--hairline);
  border-radius: 10px;
  box-shadow: none;
}
html[data-look='thread'] :is(.chip, button.chip)[aria-pressed='true'],
html[data-look='thread'] .segment button[aria-pressed='true'] {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
/* Panels, cards and windows: raised ground, a line, no shadow. */
html[data-look='thread'] :is(.panel, dialog, .pin-card, .search-results, .search) {
  box-shadow: none;
}
html[data-look='thread'] :is(.panel, dialog) {
  border-color: var(--hairline);
}
html[data-look='thread'] .slot-card {
  background: var(--color-surface);
}
html[data-look='thread'] .panel.place-side > .close {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--hairline);
}
html[data-look='thread'] .ios-icon path[stroke='currentColor'] {
  stroke-width: 2;
}
.route-map-notice {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}
#map .maplibregl-ctrl-group button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

/* Native compact attribution below zoom, with the shared minimum touch size. */
#map .maplibregl-ctrl-attrib {
  max-width: min(520px, calc(100vw - 40px));
}
#map .maplibregl-ctrl-attrib.maplibregl-compact {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding-right: 44px;
}
#map .maplibregl-ctrl-attrib summary.maplibregl-ctrl-attrib-button {
  width: 44px;
  height: 44px;
  background-size: 24px;
  background-position: center;
  background-repeat: no-repeat;
}
#map .maplibregl-ctrl-attrib-inner a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
#map .maplibregl-ctrl-attrib :is(summary, a):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -2px;
}
.searched-popup .maplibregl-popup-content {
  max-height: min(360px, calc(100dvh - 200px));
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.searched-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-results .result[aria-selected='true'] {
  background: var(--color-bg);
}
.buildings-3d-control {
  position: relative;
}
.buildings-3d-control button {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--color-text);
  background: var(--color-surface);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.buildings-3d-control button:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}
.buildings-3d-notice {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 260px;
  max-width: min(260px, 65vw);
  padding: 10px;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-small);
  font-size: 12px;
  line-height: 1.4;
}
.buildings-3d-notice[hidden] {
  display: none;
}
html[data-look='thread'] .maplibregl-ctrl-group {
  background: var(--color-surface);
  border: 1px solid var(--hairline);
  box-shadow: none;
}
html[data-look='thread'] .maplibregl-ctrl-group button + button {
  border-top-color: var(--hairline);
}
html[data-look='thread'] .maplibregl-ctrl button .maplibregl-ctrl-icon {
  filter: invert(var(--theme-icon-invert, 1));
}
html[data-look='thread'] .maplibregl-ctrl-attrib {
  background: color-mix(in srgb, var(--color-bg) 70%, transparent);
  color: var(--color-muted);
}
html[data-look='thread'] .maplibregl-ctrl-attrib a {
  color: var(--color-muted);
}
/* "Hôm nay ăn gì?" in the dark look: the pale peach stage and its fades become the ground
   with a little light at the middle; the congratulation's veil is dark. */
html[data-look='thread'] .slot-scene {
  background:
    radial-gradient(
      60% 80% at 50% 50%,
      color-mix(in srgb, var(--color-text) 7%, transparent),
      transparent 70%
    ),
    var(--color-bg);
  border-block-color: var(--hairline);
}
html[data-look='thread'] .slot-scene::before {
  background: linear-gradient(90deg, var(--color-bg), transparent);
}
html[data-look='thread'] .slot-scene::after {
  background: linear-gradient(-90deg, var(--color-bg), transparent);
}
html[data-look='thread'] .slot-pointer {
  color: var(--color-text);
}
html[data-look='thread'] .eat-congrats {
  background: transparent;
}
html[data-look='thread'] .eat-congrats-card {
  border: 1px solid var(--hairline);
}
/* The buttons that sit on the map keep a solid ground, or they vanish on the light map. */
html[data-look='thread'] .map-actions .button {
  background: var(--color-surface);
}
/* The kind icons: each kind's colour, lightened so the dark ones show on the dark dock. */
html[data-look='thread'] .kind-dock button {
  color: var(--color-text);
}
html[data-look='thread'] .kind-dock button[aria-pressed='true'] {
  background: var(--color-notice-bg);
  color: var(--color-primary);
}
/* "Thông báo" as a popup (notes.js openNotesPopup, 20/10/2026): beside the menu on a computer,
   a sheet from the bottom on a phone. */
.notes-pop {
  position: fixed;
  inset: 16px auto 16px 96px;
  width: min(400px, calc(100vw - 112px));
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 8px 16px 16px;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow);
  animation: notes-pop-in 0.22s ease-out;
}
.notes-pop::backdrop {
  background: rgb(0 0 0 / 25%);
}
.notes-pop .notes-page h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}
.notes-pop-close {
  position: sticky;
  top: 0;
  float: right;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0 -6px 0 8px;
  border: 0;
  border-radius: 50%;
  background: var(--color-notice-bg);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
@keyframes notes-pop-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}
@media (max-width: 760px) {
  .notes-pop {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 80dvh;
    border-radius: 20px 20px 0 0;
    animation-name: notes-sheet-in;
  }
}
@keyframes notes-sheet-in {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
/* Signed in, the rail's account shows the picture alone, in the "thread" look too. */
@media (min-width: 761px) {
  html[data-look='thread'] .tabbar a[href='#me'].signed-in > svg {
    display: none;
  }
}

/* ---------- The small wide card under the pointer on a computer (card.js miniCard; 21/10/2026) */
.pin-hover {
  pointer-events: none;
  z-index: 5;
}
.pin-hover .maplibregl-popup-content {
  font-family: var(--font);
  padding: 8px;
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 6px 20px rgb(16 34 29 / 22%);
}
.pin-hover.maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: var(--color-surface);
}
.pin-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 292px;
}
.pin-mini-pic {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--pin-color, #243d37);
}
.pin-mini-pic.none {
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 90%);
}
.pin-mini-pic.none svg {
  width: 28px;
  height: 28px;
}
.pin-mini-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.pin-mini-text strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pin-mini-sub,
.pin-mini-open {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pin-mini-sub {
  color: var(--color-muted);
}
.pin-mini-open {
  font-weight: 600;
}
.pin-mini-open.open {
  color: #1f7a4d;
}
.pin-mini-open.closed {
  color: #a32c25;
}
.pin-chips.mini {
  gap: 6px;
  margin-top: 2px;
}
.pin-chips.mini .pin-chip {
  padding: 2px 9px;
  background: var(--color-notice-bg);
  color: var(--color-text);
  font-size: 12px;
}
.pin-chips.mini .pin-chip small {
  color: var(--color-muted);
}

/* The other pictures, a row of small squares, after the card in a phone's sheet. */
.pd-strip {
  display: flex;
  gap: 8px;
  padding: 12px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
/* The page's own side margin is the row's, but the row scrolls out to the screen's edge. */
.pd-phone > .pd-strip {
  margin: 0;
  padding-left: 16px;
  padding-right: 16px;
}
.pd-strip::-webkit-scrollbar {
  display: none;
}
.pd-strip-item {
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-notice-bg);
}
.pd-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-strip-item.video::after {
  content: '▶';
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgb(0 0 0 / 60%);
}

/* In the sidebar the photo is a band, not a whole upright frame, so the facts show under it. */
.panel.place-side .pd-phone .pd-big {
  aspect-ratio: auto;
  height: min(46vh, 400px);
  max-height: none;
}

/* ---------- PLAN-TEMPLATES (21/10/2026): the kind's facts, what visitors say, the system
   template's button, offers and catalogue. Gold marks the place's own parts (as the partner
   label does). */
.pin-card.is-system .pin-card-front {
  box-shadow: inset 0 0 0 3px #e0a100;
}
.pin-promo {
  margin: 10px 12px 0;
  padding: 8px 12px;
  border: 1px solid rgb(224 161 0 / 55%);
  border-radius: 12px;
  color: var(--color-text);
  font-size: 13px;
}
.pin-promo b {
  color: #b07d00;
}
.pin-card .actions .pin-cta,
.pd-actions .pd-cta {
  grid-column: 1 / -1;
  min-height: 46px;
  border-color: #e0a100;
  background: #e0a100;
  color: #1a1200;
  font-weight: 700;
  justify-content: center;
}
.pd-sc-slots {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pd-sc-slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.pd-sc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 10px;
}
.pd-sc-by {
  color: #b07d00;
  font-size: 12px;
  font-weight: 600;
}
.pd-promo {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgb(224 161 0 / 55%);
  border-radius: 12px;
}
.pd-promo small {
  color: var(--color-muted);
}
.pd-sc-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pd-sc-item {
  display: grid;
  gap: 3px;
  font-size: 13px;
}
.pd-sc-item img,
.pd-sc-noimg {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--color-notice-bg);
}
.pd-sc-item small {
  color: var(--color-muted);
}
html[data-look='thread'] .pin-promo b,
html[data-look='thread'] .pd-sc-by {
  color: #f5d27a;
}
/* PLAN-TEMPLATES M3: the parts of the details step, and the amenities' glyphs. */
.add-level {
  margin: 18px 0 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip .chip-glyph {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
}
/* Raised, the page's "Ưu đãi" says the offer with its date: the card's line goes. */
.pin-sheet[data-stage='high'] .pin-promo {
  display: none;
}

/* ---------- Smoothness (21/10/2026): a place's page opens at once from the pin and fills in.
   Grey blocks the size of what comes, a picture that fades in, no page that grows all at once. */
@keyframes sk-pulse {
  50% {
    opacity: 0.55;
  }
}
.sk {
  background: var(--color-notice-bg);
  color: transparent;
  animation: sk-pulse 1.2s ease-in-out 160ms 4;
}
@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}
.pd-skeleton .pd-summary-rating {
  min-height: 22px;
}
.pd-sk-btn {
  min-height: 48px;
  border-radius: var(--radius);
}
.pd-review-sk {
  min-height: 96px;
  border-radius: 14px;
}
.pd-big-img {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pd-big-img.in {
  opacity: 1;
}
/* The page that replaces the skeleton comes in softly. */
.pd:not(.pd-skeleton) {
  animation: pd-in 0.22s ease-out both;
}
@keyframes pd-in {
  from {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sk,
  .pd:not(.pd-skeleton) {
    animation: none;
  }
  .pd-big-img {
    transition: none;
  }
}
/* The map under the sidebar: its own layer, so moving it does not redraw the page above. */
.panel.place-side,
.pin-sheet {
  will-change: transform;
}

/* ---------- Smooth map (21/10/2026) */
/* A photo card comes in once its picture is there, not as an empty white square. */
.photo-pin {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.photo-pin.ready {
  opacity: 1;
}
/* The small card under the pointer comes in softly too. */
.pin-hover .maplibregl-popup-content {
  animation: hover-in 0.14s ease-out both;
}
@keyframes hover-in {
  from {
    opacity: 0;
  }
}
/* With "less motion" asked for, the page still eases in (a fade, no slide): the owner's
   computer has that setting on, and a page that just appears is the stutter he saw. */
@media (prefers-reduced-motion: reduce) {
  .panel.place-side,
  .panel.place-sheet {
    animation: pd-in 0.25s ease-out both;
  }
  .pin-sheet {
    animation: pd-in 0.25s ease-out both;
    transition: height 0.2s ease;
  }
  .photo-pin {
    transition: opacity 0.2s ease;
  }
}

/* ---------- A post or a video review beside the map (21/10/2026) */
.post-back {
  display: inline-block;
  margin: 14px 16px 0;
  color: var(--color-muted);
  font-weight: 600;
  text-decoration: none;
}
.post-back:hover {
  color: var(--color-text);
}
.panel.place-side .post-page-box,
.panel.place-sheet .post-page-box {
  padding: 12px 16px 24px;
}
/* The sidebar is as narrow as a phone: one column, the pictures not held at the top. */
.panel.place-side .post-main,
.panel.place-sheet .post-main {
  grid-template-columns: minmax(0, 1fr);
}
.panel.place-side .post-media,
.panel.place-sheet .post-media {
  position: relative;
}
.review-page {
  gap: 12px;
}
.review-video {
  display: block;
  width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}
.review-from {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}
.review-page h2 {
  margin: 0;
  font-size: 18px;
}
.review-caption {
  margin: 0;
  white-space: pre-line;
}

/* ---------- 22/10/2026 (the owner): no scroll bars anywhere; the pages still scroll. */
* {
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* One SVG close control, centered independently of any font baseline. */
.close-control {
  display: grid !important;
  place-items: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 10px !important;
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  box-shadow: none !important;
  right: 12px;
  left: auto !important;
  cursor: pointer;
}
.close-control > .ios-xmark {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  transform: none;
}
.close-control:hover {
  background: var(--color-notice-bg) !important;
}
.close-control:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 3px;
}
.close-control[hidden] {
  display: none !important;
}

/* A readable light contribution card with a dark call to action. */
.pick-popup {
  --pick-surface: var(--color-surface);
  --pick-ink: var(--color-text);
  --pick-action-bg: var(--color-text);
  --pick-action-ink: var(--color-surface);
}
html[data-look='thread'] .pick-popup {
  --pick-surface: var(--color-primary);
  --pick-ink: var(--color-on-primary);
  --pick-action-bg: var(--color-on-primary);
  --pick-action-ink: var(--color-primary);
}
.pick-popup .maplibregl-popup-content {
  background: var(--pick-surface);
  color: var(--pick-ink);
  border: 1px solid var(--color-border);
  padding: 18px;
  width: min(320px, calc(100vw - 32px));
}
.pick-popup[class*='anchor-bottom'] .maplibregl-popup-tip {
  border-top-color: var(--pick-surface);
}
.pick-popup[class*='anchor-top'] .maplibregl-popup-tip {
  border-bottom-color: var(--pick-surface);
}
.pick-popup.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: var(--pick-surface);
}
.pick-popup.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: var(--pick-surface);
}
.pick-card strong {
  font-size: 17px;
  font-weight: 700;
  color: var(--pick-ink);
}
.pick-address,
.pick-coords,
.pick-hint {
  color: var(--pick-ink);
}
.pick-coords,
.pick-hint {
  opacity: 0.78;
}
.pick-card .actions {
  flex-wrap: wrap;
}
.pick-card .actions .button {
  flex: 1 1 110px;
  min-height: 44px;
  border: 1px solid var(--pick-ink);
  color: var(--pick-ink);
  background: var(--pick-surface);
}
.pick-card .actions .button.primary {
  background: var(--pick-action-bg);
  color: var(--pick-action-ink);
  font-weight: 700;
}

/* The contribution's boxes: two a row, the same box everywhere (the prices were bare). */
.add-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 560px) {
  .add-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.add-row .add-field {
  margin: 0;
}
.add-dialog .add-group input:not([type='checkbox']):not([type='radio']),
.add-dialog .add-group textarea,
.add-dialog .price-row input {
  flex: 1;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 15px;
}
.add-dialog .add-field input,
.add-dialog .add-field textarea {
  background: var(--color-bg);
}
.add-dialog ::placeholder {
  color: var(--color-muted);
  opacity: 1;
}
.add-dialog .add-group input[type='search'] {
  margin-bottom: 8px;
}
.add-other-dish {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.add-other-row {
  display: flex;
  gap: 8px;
}
.add-other-row .button {
  flex: none;
}
.add-dialog .add-title {
  margin-top: 8px;
}
:is(
  #panel-close,
  #eat-close,
  .signin-close,
  .notes-pop-close,
  .lightbox-close,
  .review-close,
  .route-close,
  .share-close,
  .pin-sheet-close,
  .reels-close,
  .sheet-close,
  .x-close,
  .maplibregl-popup-close-button
)[hidden] {
  display: none !important;
}

/* ---------- A post (22/10/2026, the owner's layout): one column; the person and their words
   on top, the pictures, small squares to choose one, then likes and comments. */
.post-page.post-stack {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin: 0 auto;
}
.post-stack .post-top {
  display: grid;
  gap: 8px;
}
.post-stack .post-words {
  display: grid;
  gap: 6px;
}
.post-stack .post-words p {
  margin: 0;
}
.post-stack .post-media {
  position: relative;
  top: auto;
  width: 100%;
}
.post-stack .post-where-small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-stack .post-menu svg {
  width: 24px;
  height: 24px;
}
.post-stack .comment-write textarea {
  min-height: 44px;
  font-size: 16px;
  background: var(--color-bg);
}
.post-stack .comment-write .button {
  min-height: 44px;
}
@media (max-width: 760px) {
  /* The fixed close control shares the first row: leave it its own touch target. */
  .panel.full.post-panel .post-top {
    padding-right: 52px;
  }
  .post-page.post-stack {
    gap: 12px;
  }
  .post-stack .post-media {
    max-height: 60dvh;
    border-radius: 12px;
    background: var(--color-bg);
  }
  .post-stack .post-arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: var(--color-surface);
    color: var(--color-text);
  }
}
.post-stack .post-side {
  display: grid;
  gap: 12px;
}
.post-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.post-thumb {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--color-notice-bg);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-thumb.on {
  border-color: var(--color-primary);
  opacity: 1;
}
.post-thumb.video::after {
  content: '▶';
  position: absolute;
  inset: auto 4px 2px auto;
  color: #fff;
  font-size: 11px;
  text-shadow: 0 1px 2px #000;
}

/* Sidebar and map controls share the measured width (22/10/2026). */
:root {
  --place-side-width: 0px;
  --map-dot-rim: var(--color-surface);
  --map-marker-surface: var(--color-surface);
  --map-marker-ink: var(--color-text);
  --map-marker-rim: var(--color-border);
  --map-marker-shadow: rgba(23, 34, 30, 0.22);
  --map-marker-highlight: rgba(255, 255, 255, 0.85);
  --photo-pin-category-ink: #fff;
  --photo-pin-rating-surface: #fff5e7;
  --photo-pin-rating-ink: #291b0c;
  --photo-pin-star-full: #a96108;
  --photo-pin-star-empty: #e4c8a4;
  --map-label-ink: var(--color-text);
  --map-label-halo: var(--color-surface);
}
html[data-look='thread'] {
  --map-dot-rim: var(--color-primary);
  --map-label-ink: var(--color-on-primary);
  --map-label-halo: var(--color-primary);
}
html[data-color-mode='dark'] {
  --map-marker-shadow: rgba(0, 0, 0, 0.33);
  --map-marker-highlight: rgba(255, 255, 255, 0.2);
}
.panel.place-side,
.pin-sheet-scroll {
  scrollbar-width: none;
}
.panel.place-side::-webkit-scrollbar,
.pin-sheet-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.map-actions .button {
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  gap: 8px;
}
#map-dots[aria-pressed='true'] {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}
.pin-choices {
  display: grid;
  gap: 6px;
  max-height: 40vh;
  overflow-y: auto;
}
.choosing-spot .kind-dock,
.choosing-spot .map-tools {
  visibility: hidden;
  pointer-events: none;
}
.pin-choice .maplibregl-popup-content {
  background: var(--color-surface);
  padding: 10px;
}
.pin-choices .button {
  min-height: 44px;
  text-align: left;
}
@media (min-width: 761px) {
  .place-side-open .map-actions {
    left: calc(var(--place-side-width) + 12px);
  }
  .place-side-open .map-tools {
    left: calc(var(--place-side-width) + 12px);
  }
}
@media (max-width: 1050px) {
  #map-dots span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel.place-side {
    animation: pd-in 0.12s ease-out both;
  }
}
/* Photo-first dish picker: quiet surfaces, one red selection, no card shadows. */
.eat-dialog {
  width: min(600px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: min(860px, calc(100dvh - 24px));
  padding: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
}
.eat-dialog[open] {
  display: flex;
  flex-direction: column;
}
.eat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}
.eat-header h2 {
  margin: 0;
  font-size: clamp(20px, 4.8vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.6px;
}
.eat-header #eat-close {
  position: static;
  float: none;
  flex: 0 0 44px;
}
#eat-body {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 20px;
  scrollbar-width: none;
  scroll-padding-block: 16px;
}
#eat-body::-webkit-scrollbar {
  display: none;
}
.eat-intro {
  color: var(--color-muted);
  margin: 0 0 16px;
  font-size: 14px;
}
.eat-kinds {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: var(--color-bg);
  margin-bottom: 10px;
}
.eat-kinds .chip {
  flex: 1;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;
  padding: 6px 8px;
}
.eat-kinds .chip[aria-pressed='true'] {
  background: var(--color-surface);
  color: var(--color-text);
  outline: 1px solid var(--color-border);
}
.eat-dialog .prefs-toggle {
  background: transparent;
  padding-inline: 0;
  color: var(--color-muted);
  min-height: 44px;
}
.eat-dialog .slot-scene {
  --slot-width: 168px;
  height: 266px;
  margin: 10px -20px;
  background: var(--color-bg);
  border: 0;
}
.eat-dialog .slot-scene::before {
  width: 12%;
  background: linear-gradient(90deg, var(--color-bg), transparent);
}
.eat-dialog .slot-scene::after {
  width: 12%;
  background: linear-gradient(-90deg, var(--color-bg), transparent);
}
.eat-dialog .slot-track {
  top: 32px;
  gap: 16px;
}
.eat-dialog .slot-track.is-idle {
  animation: none;
}
.eat-dialog .slot-card {
  height: 204px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transform: scale(0.94);
  opacity: 0.65;
  box-shadow: none;
}
.eat-dialog .slot-card.is-center {
  transform: scale(1.04);
  opacity: 1;
  outline: 2px solid var(--brand-red);
  outline-offset: 3px;
}
.eat-dialog .slot-card.is-near {
  transform: scale(0.96);
  opacity: 0.82;
}
.eat-dialog .slot-art {
  height: 136px;
  flex-shrink: 0;
  border-radius: 13px 13px 0 0;
  background: var(--color-bg);
}
.eat-dialog .slot-words {
  padding: 10px 12px;
  gap: 5px;
}
.eat-dialog .slot-card strong {
  font-size: 15px;
  color: var(--color-text);
}
.eat-dialog .slot-card small {
  font-size: 10px;
}
.eat-dialog .slot-pointer {
  color: var(--brand-red);
  top: 6px;
  font-size: 15px;
}
.eat-dialog .spin-button {
  min-height: 52px;
  background: var(--brand-red);
  color: var(--brand-paper);
  border-color: var(--brand-red);
  border-radius: 12px;
  justify-content: center;
  gap: 16px;
  box-shadow: none;
}
.eat-dialog .spin-status {
  color: var(--color-muted);
  margin: 12px 0;
}
.eat-dialog .spin-note {
  font-size: 11px;
  line-height: 1.6;
  margin: 12px auto 16px;
  max-width: 42ch;
}
.eat-dialog .eat-congrats-card {
  border-radius: 16px;
  border-color: var(--color-border);
  background: var(--color-bg);
  padding: 16px;
  box-shadow: none;
}
.eat-dialog .eat-congrats-art {
  width: 80px;
  flex-basis: 80px;
  border-radius: 12px;
}
.eat-dialog .eat-congrats-card h2 {
  font-size: 24px;
}
.eat-library {
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
}
.eat-library summary {
  cursor: pointer;
  padding-block: 14px;
  min-height: 44px;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 600;
}
.eat-dish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.eat-dish-search {
  width: 100%;
  margin-bottom: 12px;
  min-height: 44px;
  font-size: 16px;
}
.eat-dish-tile[hidden] {
  display: none;
}
.eat-dish-tile {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}
.eat-dish-tile img,
.eat-dish-tile .cover-glyph {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.eat-dish-tile > span:last-child {
  padding: 9px;
  font-size: 12px;
  line-height: 1.35;
}
.eat-photo-credits p {
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--color-muted);
}
.eat-photo-credits a {
  color: var(--color-text);
}
@media (max-width: 760px) {
  .eat-header {
    padding: 10px 16px;
  }
  #eat-body {
    padding: 14px 16px;
  }
  .eat-dialog .eat-intro {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .eat-kinds {
    margin-bottom: 4px;
    gap: 4px;
  }
  .eat-kinds .chip {
    flex-basis: 0;
    min-width: 0;
  }
  .eat-dialog .prefs-toggle {
    font-size: 11px;
    text-align: left;
    gap: 8px;
  }
  .eat-dialog .slot-scene {
    margin: 8px -16px;
    --slot-width: clamp(140px, 42vw, 172px);
    height: 224px;
  }
  .eat-dialog .slot-track {
    top: 26px;
  }
  .eat-dialog .slot-card {
    height: 174px;
  }
  .eat-dialog .slot-art {
    height: 112px;
  }
  .eat-dialog .slot-words {
    padding: 7px 10px;
    gap: 3px;
  }
  .eat-dialog .slot-card strong {
    font-size: 14px;
  }
  .eat-dialog .spin-button {
    min-height: 48px;
  }
  .eat-dialog .spin-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
  }
  .eat-dialog .spin-note {
    display: none;
  }
  .eat-dialog .food-roulette {
    padding-top: 0;
  }
  .eat-dialog .food-roulette .eyebrow {
    margin-block: 6px;
    font-size: 9px;
    letter-spacing: 0.5px;
  }
  .eat-dish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-height: 700px) {
  .eat-dialog .eat-intro,
  .eat-dialog .spin-note {
    display: none;
  }
  .eat-dialog .slot-scene {
    height: 184px;
    margin-block: 8px;
  }
  .eat-dialog .slot-track {
    top: 24px;
  }
  .eat-dialog .slot-card {
    height: 144px;
  }
  .eat-dialog .slot-art {
    height: 92px;
  }
  .eat-dialog .slot-words {
    padding: 7px 10px;
    gap: 3px;
  }
  .eat-dialog .slot-card strong {
    font-size: 13px;
  }
  .eat-dialog .slot-pointer {
    top: 2px;
  }
  .eat-dialog .food-roulette {
    padding-top: 0;
  }
  .eat-dialog .food-roulette .eyebrow {
    margin-block: 6px;
  }
  .eat-dialog .spin-button {
    min-height: 48px;
  }
}

/* Mobile place: one continuous card, with the useful facts before secondary content. */
@media (max-width: 760px) {
  html,
  html body,
  html[data-look='thread'] .tabbar,
  .tabbar {
    background: var(--color-bg);
  }
  .tabbar {
    color: var(--color-text);
    backdrop-filter: none;
  }
  html .tabbar a:not(.rail-brand),
  html[data-look='thread'] .tabbar a:not(.rail-brand) {
    color: var(--color-muted);
  }
  html .tabbar a:not(.rail-brand)[aria-current],
  html[data-look='thread'] .tabbar a:not(.rail-brand)[aria-current] {
    color: var(--color-text);
  }
  .tabbar a.tab-new.contribution-cta > span[data-i18n] {
    color: var(--color-muted);
  }
  .tabbar a.tab-new.contribution-cta[aria-current] > span[data-i18n] {
    color: var(--color-text);
  }
  .pin-sheet {
    border-radius: 20px 20px 0 0;
  }
  .pin-sheet-chrome {
    flex-basis: 56px;
    min-height: 56px;
  }
  .pd-mobile {
    gap: 16px;
  }
  .pd-mobile .pd-big {
    height: clamp(136px, 24dvh, 220px);
    min-height: 0;
  }
  .pd-mobile .pd-head {
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .pd-mobile .pd-kind {
    font-size: 11px;
  }
  .pd-mobile .pd-head h1 {
    font-size: 23px;
    line-height: 1.2;
  }
  .pd-mobile .pd-status,
  .pd-mobile-price,
  .pd-mobile-address {
    margin: 0;
    line-height: 1.5;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .pd-mobile-price {
    font-weight: 650;
  }
  .pd-mobile-address {
    color: var(--color-muted);
  }
  .pd-mobile .pd-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .pd-mobile .pd-actions > * {
    flex: 1 1 40%;
  }
  .pd-mobile .pd-actions > .button {
    line-height: 1.3;
    font-size: 13px;
  }
  .pd-mobile .pd-actions .pd-mobile-directions {
    flex-basis: 100%;
    grid-column: 1 / -1;
    min-height: 48px;
    font-size: 15px;
  }
  .pd-mobile .pd-actions .pd-cta {
    flex-basis: 100%;
    grid-column: 1 / -1;
  }
  .pd-mobile .pd-more summary,
  .pd-mobile .pd-all summary {
    min-height: 44px;
  }
  .pd-mobile .pd-sec {
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
  }
}

/* Keep touch scrolling independent from the draggable sheet handle. */
.pin-sheet[data-route-suspended],
.panel.place-sheet[data-route-suspended] {
  visibility: hidden;
  pointer-events: none;
}
.pin-sheet[hidden],
.sheet-preview[hidden],
.sheet-detail[hidden],
.panel.place-sheet[hidden] {
  display: none;
}
.pin-sheet-chrome {
  touch-action: none;
}
.pin-sheet[data-stage='high'] .pin-sheet-scroll {
  touch-action: pan-x pan-y pinch-zoom;
}
.sheet-preview,
.sheet-detail {
  min-width: 0;
}
.sheet-detail .pd {
  animation: none;
}
.review-head,
.review-foot {
  flex: none;
}
.review-body {
  flex: 1 1 auto;
  min-height: 0;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.review-drop {
  min-height: 240px;
  padding: 24px 16px;
}
.review-drop strong {
  font-size: 16px;
}
.review-drop.over {
  border-color: var(--color-primary);
  background: var(--color-bg);
}
.review-price-range {
  width: 100%;
  min-height: 44px;
  accent-color: var(--brand-red);
  touch-action: pan-y;
}
.review-price-output {
  font-size: 18px;
  font-weight: 650;
}
.review-foot > p {
  margin: 0 0 8px;
}
.card-nav-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--color-surface);
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
}
.card-nav-back {
  min-height: 44px;
}
.card-nav-body {
  min-width: 0;
  padding: 12px;
}
.card-nav-photo {
  display: block;
  width: 100%;
  max-height: 65dvh;
  object-fit: contain;
}
.card-embedded {
  min-width: 0;
}
.card-embedded .post-main {
  grid-template-columns: minmax(0, 1fr);
}
.card-embedded .post-media {
  position: static;
}
.card-embedded .post-page-box {
  padding: 0;
}
@media (max-width: 760px) {
  .pd-title-row {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .pd-title-row h1 {
    flex: 1;
    min-width: 0;
  }
  .pd-mobile .pd-title-row .pd-mobile-directions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--brand-paper);
  }
  .pd-mobile-directions span {
    display: none;
  }
  .pd-mobile-directions svg {
    width: 21px;
    height: 21px;
  }
  .pd-mobile .pd-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    overflow-wrap: anywhere;
  }
  .pd-mobile .pd-actions > * {
    flex: 1 1 0;
    min-width: 44px;
  }
  .pd-mobile .pd-actions > .button,
  .pd-mobile .pd-actions .pd-more summary {
    padding: 6px 2px;
    font-size: 11px;
    min-height: 44px;
    gap: 3px;
    line-height: 1.2;
  }
  .pd-mobile .pd-actions .pd-cta {
    flex: 1 1 0;
  }
  .review-dialog {
    overflow: hidden;
  }
}
.card-media-entry {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}
.card-media-entry img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Compositor-driven sheet movement: fixed geometry while the finger moves. */
.motion-sheet {
  animation: none !important;
  transition:
    transform 280ms cubic-bezier(0.22, 0.8, 0.25, 1),
    clip-path 280ms cubic-bezier(0.22, 0.8, 0.25, 1);
  will-change: transform;
}
.sheet-collapse {
  position: absolute;
  left: 8px;
  top: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  color: var(--sheet-chrome-ink);
  background: var(--sheet-chrome-bg);
}
.sheet-collapse[hidden] {
  display: none;
}
.sheet-collapse svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 760px) {
  .pd-mobile .pd-title-row .pd-mobile-directions {
    flex: 0 0 auto;
    width: auto;
    height: 44px;
    padding: 0 12px;
    gap: 6px;
    border-radius: 22px;
    font-size: 12px;
    white-space: nowrap;
  }
  .pd-mobile-directions span {
    display: inline;
  }
  .pd-mobile .pd-actions > .button {
    font-size: 11px;
  }
  .pd-mobile .pd-actions .card-rate svg {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-sheet {
    transition: none;
  }
}

/* The detail keeps only the place cover large. Other media are squares below it. */
.pd-cover-gallery {
  min-width: 0;
}
.pd-cover-gallery > .pd-thumbs.row,
.pd-secondary-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scrollbar-width: thin;
}
.pd-cover-gallery > .pd-thumbs.row .pd-thumb,
.pd-secondary-thumbs .pd-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  aspect-ratio: 1;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.pd-cover-gallery .pd-thumb:focus-visible,
.pd-secondary-thumbs .pd-thumb:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
.pd-cover-gallery .pd-thumb.video::after,
.pd-secondary-thumbs .pd-thumb.video::after {
  color: var(--brand-paper);
}
.pd-wide > .pd-cover-gallery {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  width: min(50vw, 540px);
  height: 100%;
}
.pd-wide > .pd-cover-gallery .pd-big {
  min-height: 0;
  width: 100%;
  max-width: none;
  aspect-ratio: auto;
}
.pd-phone .pd-big,
.pd-mobile .pd-big {
  aspect-ratio: auto;
  height: clamp(136px, 24dvh, 220px);
  min-height: 0;
  background: var(--color-surface);
}
.pd-phone .pd-big-img,
.pd-mobile .pd-big-img {
  object-fit: cover;
}
.pd-phone .pd-media-strip,
.pd-mobile .pd-media-strip {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.pd-media-strip::-webkit-scrollbar {
  display: none;
}
.pd-media-strip .pd-media-tile {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
}
.pd-media-strip.has-more .pd-media-tile {
  flex: 0 0 42%;
}
.pd-media-strip .pd-big-img {
  object-fit: cover;
}
.pd-tile-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 20px 8px 8px;
  background: linear-gradient(transparent, var(--brand-mobile));
  color: var(--brand-paper);
  font-size: 11px;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pin-sheet .pin-card-front img.pin-card-cover,
.pin-sheet[data-stage='high'] .pin-card-front img.pin-card-cover {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  max-width: 100%;
  max-height: min(24dvh, 220px);
  object-fit: contain;
  margin: 0 auto;
  transition: none;
}
.pin-sheet .pin-card-over {
  position: relative;
  padding: 12px 14px;
  background: var(--color-surface);
  color: var(--color-text);
}
.pin-sheet .pin-card-over .eyebrow {
  color: var(--color-muted);
}
.pin-sheet .pin-card-open.open {
  color: var(--color-primary);
}
.pin-sheet .pin-card-open.closed {
  color: var(--color-danger);
}
.pin-sheet .pin-card-more {
  color: var(--color-muted);
}
button.pin-card-cover-link {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: var(--color-bg);
  cursor: zoom-in;
}
.card-gallery {
  min-width: 0;
  width: min(100%, calc((100dvh - 210px) * 9 / 16));
  margin: 0 auto;
}
.card-gallery-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  direction: ltr;
}
.card-gallery-track::-webkit-scrollbar {
  display: none;
}
.card-gallery-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  aspect-ratio: 9 / 16;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--color-bg);
}
.card-gallery-slide > img,
.card-gallery-slide > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-gallery-slide > img {
  object-fit: scale-down;
}
.card-gallery-slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 10px;
  color: var(--color-text);
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  font-size: 12px;
  pointer-events: none;
}
.card-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.card-gallery-controls button {
  width: 44px;
  min-height: 44px;
  font-size: 25px;
}
.card-gallery-count {
  font-size: 12px;
}
.media-viewer-dialog {
  padding: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  max-height: calc(100dvh - 24px);
}
.media-viewer-dialog > .close {
  display: block;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
}
.pin-sheet[data-nested-view],
.pin-sheet[data-nested-view] .pin-sheet-scroll {
  touch-action: pan-x pan-y pinch-zoom;
}
.media-viewer-dialog {
  width: min(560px, calc(100% - 24px));
}
.card-gallery {
  width: min(100%, calc((100dvh - 310px) * 9 / 16));
}

/* A signed-in account is represented by its avatar alone in every menu placement.
   Keep this invariant stronger than the thread look's line/fill icon switches. */
.tabbar a.signed-in[href$='#me'] > svg,
.tabbar a.signed-in[href$='#me'] > .rail-who,
.tabbar a.signed-in[href$='#me'] > span[data-i18n] {
  display: none !important;
}
.tabbar a.signed-in[href$='#me'] > .rail-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  flex: none;
}

/* Native top-layer viewer: covers the map, card and navigation, without replacing them. */
.media-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-text);
}
.media-fullscreen::backdrop {
  background: var(--color-bg);
}
.media-fullscreen .card-gallery {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.media-fullscreen .card-gallery-track {
  width: 100%;
  height: 100%;
  min-height: 0;
}
.media-fullscreen .card-gallery-slide {
  aspect-ratio: auto;
  height: 100%;
}
.media-fullscreen .card-gallery-slide figcaption {
  padding: calc(14px + env(safe-area-inset-top)) 72px 14px 16px;
}
.media-fullscreen .card-gallery-controls {
  margin: 0;
  padding: 6px 16px;
  background: var(--color-surface);
}
.media-fullscreen .card-gallery-controls button {
  color: var(--color-text);
  background: var(--color-surface);
  border-color: var(--color-border);
}
.media-fullscreen > .media-viewer-close {
  position: absolute;
  top: calc(8px + env(safe-area-inset-top));
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  float: none;
  margin: 0;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
}
.photo-pin.photo-pin-compact:not(.styled) {
  --photo-pin-size: 56px;
  --photo-pin-border: 3px;
}

.user-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
