/* tokens */
:root {
  color-scheme: dark;
  --bg: #0b0b0c;
  --surface: #111214;
  --surface-raised: #161719;
  --surface-soft: #1b1c1f;
  --text: #f5f5f5;
  --muted: #a6a6aa;
  --muted-strong: #c9c9cc;
  --accent: #d8202d;
  --accent-deep: #b91621;
  --success: #63c98b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
  --header-height: 64px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --shell: 1180px;
}

/* base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.sheet-open,
body.lightbox-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

a {
  color: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.05rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 5.5vw, 2.45rem);
}

h3 {
  font-size: 1.35rem;
}

[hidden] {
  display: none !important;
}

.no-js .requires-js {
  display: none !important;
}

body:not(.explore-ready) .requires-explore,
body:not(.detail-ready) .requires-detail {
  display: none !important;
}

.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--heart {
  fill: transparent;
  transition: fill 160ms ease, transform 160ms ease;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

/* layout */
.site-shell,
.detail-shell {
  width: min(100% - 32px, var(--shell));
  margin-inline: auto;
}

.explore-body {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

/* header */
.site-header,
.detail-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 12, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header__inner,
.detail-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  object-fit: cover;
}

.desktop-navigation {
  display: none;
  align-items: center;
  gap: 28px;
}

.desktop-navigation a {
  min-height: 44px;
  align-content: center;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.desktop-navigation a[aria-current="page"] {
  color: var(--text);
}

.header-action,
.icon-button,
.detail-header__action,
.detail-header__back {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
}

.header-action,
.icon-button,
.detail-header__action {
  padding: 0;
  cursor: pointer;
}

/* intro */
.explore-intro {
  padding-top: 34px;
  padding-bottom: 24px;
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.explore-intro h1 {
  max-width: 760px;
  margin-bottom: 13px;
}

.explore-intro__copy {
  max-width: 680px;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 0.98rem;
}

.product-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* search */
.explore-tools {
  position: relative;
  z-index: 8;
}

.search-box {
  display: grid;
  min-height: 54px;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 17px;
  background: var(--surface-raised);
}

.search-box > .icon {
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #8d8d92;
  opacity: 1;
}

.search-box__clear {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted-strong);
}

/* filters */
.quick-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 12px;
}

.quick-filters__track {
  display: flex;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.quick-filters__track::-webkit-scrollbar,
.photo-rail::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.filter-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.85rem;
  font-weight: 680;
  white-space: nowrap;
  scroll-snap-align: start;
}

.filter-button {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.filter-chip.is-active,
.filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.filter-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.7rem;
}

/* restaurant cards */
.places-section {
  padding-top: 42px;
  padding-bottom: 54px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}

.section-heading h2 {
  margin-bottom: 7px;
}

.section-heading p:not(.eyebrow),
.results-count {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.results-count {
  flex: 0 0 auto;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.restaurant-card {
  position: relative;
  min-width: 0;
}

.restaurant-card__link {
  position: relative;
  display: block;
  min-height: 380px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  text-decoration: none;
  isolation: isolate;
}

.restaurant-card__media,
.restaurant-card__media img,
.restaurant-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.restaurant-card__media {
  margin: 0;
}

.restaurant-card__media img {
  object-fit: cover;
  transition: transform 360ms ease;
}

.restaurant-card__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 38%, rgba(0, 0, 0, 0.84) 100%);
}

.restaurant-card__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 58px 20px 19px;
}

.restaurant-card__content h3 {
  margin-bottom: 5px;
  font-size: clamp(1.45rem, 6vw, 1.8rem);
}

.restaurant-card__kind,
.restaurant-card__meta,
.restaurant-card__attributes {
  margin-bottom: 0;
  line-height: 1.4;
}

.restaurant-card__kind {
  color: #e0e0e2;
  font-size: 0.94rem;
}

.restaurant-card__meta {
  margin-top: 7px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 760;
}

.restaurant-card__meta[data-has-price="1"] [data-distance]:not([hidden])::before {
  content: " · ";
}

.restaurant-card__attributes {
  margin-top: 6px;
  color: #c7c7ca;
  font-size: 0.8rem;
}

.favorite-button {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.68);
  color: #fff;
  backdrop-filter: blur(12px);
}

.favorite-button.is-saved,
.detail-header__action.is-saved {
  color: #fff;
}

.favorite-button.is-saved .icon--heart,
.detail-header__action.is-saved .icon--heart,
.bottom-navigation__item.is-active .icon--heart {
  fill: var(--accent);
  stroke: var(--accent);
}

.js .restaurant-card {
  animation: card-arrival 380ms both;
}

.js .restaurant-card:nth-child(2) { animation-delay: 50ms; }
.js .restaurant-card:nth-child(3) { animation-delay: 100ms; }

@keyframes card-arrival {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* empty states */
.empty-state {
  padding: 42px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  max-width: 440px;
  margin: 0 auto 18px;
  color: var(--muted);
}

/* about */
.about-section {
  display: grid;
  gap: 24px;
  margin-bottom: 64px;
  padding-top: 38px;
  padding-bottom: 38px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-section__mark {
  color: var(--accent);
  font-size: clamp(2.2rem, 14vw, 5.8rem);
  font-weight: 850;
  letter-spacing: -0.09em;
  line-height: 0.9;
}

.about-section h2 {
  margin-bottom: 12px;
}

.about-section p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted-strong);
}

/* buttons */
.btn,
.navbar-toggler,
.button,
.text-button {
  min-height: 44px;
}

.button {
  display: inline-flex;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button--secondary {
  border-color: var(--border-strong);
  background: var(--surface-raised);
  color: var(--text);
}

.button--full {
  width: 100%;
}

.text-button {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 760;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 26px;
  padding-bottom: 28px;
  font-size: 0.86rem;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  min-height: 44px;
  align-content: center;
  color: var(--muted-strong);
}

/* bottom navigation */
.bottom-navigation {
  position: fixed;
  z-index: 90;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: calc(68px + env(safe-area-inset-bottom));
  padding: 5px 10px env(safe-area-inset-bottom);
  border-top: 1px solid var(--border);
  background: rgba(17, 18, 20, 0.96);
  backdrop-filter: blur(18px);
}

.bottom-navigation__item {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 680;
  text-decoration: none;
}

.bottom-navigation__item.is-active {
  color: var(--text);
}

.bottom-navigation__item.is-active .icon:not(.icon--heart) {
  color: var(--accent);
}

.bottom-navigation__badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 8px);
  display: grid;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
}

/* bottom sheets */
.bottom-sheet {
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: auto 0 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--text);
}

.bottom-sheet::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
}

.bottom-sheet[open] .bottom-sheet__surface {
  animation: sheet-in 220ms ease-out both;
}

@keyframes sheet-in {
  from { transform: translateY(22px); opacity: 0.7; }
  to { transform: none; opacity: 1; }
}

.bottom-sheet__surface {
  width: 100%;
  max-height: calc(92dvh - env(safe-area-inset-bottom));
  padding: 8px 20px calc(22px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.bottom-sheet__surface--tall {
  display: flex;
  height: min(88dvh, 760px);
  flex-direction: column;
  overflow: hidden;
}

.bottom-sheet__handle {
  width: 38px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.bottom-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bottom-sheet__header h2 {
  margin-bottom: 0;
  font-size: 1.38rem;
}

.bottom-sheet__header .eyebrow {
  margin-bottom: 5px;
}

.bottom-sheet__surface > p {
  color: var(--muted-strong);
}

.sheet-menu {
  display: grid;
}

.sheet-menu a {
  display: flex;
  min-height: 54px;
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 680;
  text-decoration: none;
}

.inline-status {
  min-height: 24px;
  color: var(--muted) !important;
  font-size: 0.88rem;
}

.filter-groups {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.filter-group {
  padding: 0 0 22px;
  border: 0;
}

.filter-group + .filter-group {
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.filter-group legend {
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 760;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.filter-options label {
  position: relative;
  cursor: pointer;
}

.filter-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.filter-options span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 0.84rem;
  font-weight: 650;
}

.filter-options input:checked + span {
  border-color: var(--accent);
  background: rgba(216, 32, 45, 0.15);
  color: #fff;
}

.bottom-sheet__actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* toast */
.toast-message {
  position: fixed;
  z-index: 300;
  right: 16px;
  bottom: calc(84px + env(safe-area-inset-bottom));
  left: 16px;
  max-width: 430px;
  margin-inline: auto;
  padding: 12px 16px;
  transform: translateY(8px);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: #202124;
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 0.86rem;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-message.is-visible {
  transform: none;
  opacity: 1;
}

/* restaurant detail */
.restaurant-body {
  background: var(--bg);
}

.detail-header__inner {
  width: min(100% - 22px, 1040px);
  margin-inline: auto;
}

.detail-header__back {
  gap: 5px;
  padding: 0 12px 0 8px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 720;
  text-decoration: none;
}

.detail-header__actions {
  display: flex;
  gap: 7px;
}

.detail-header__action {
  gap: 7px;
  padding-inline: 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-header__label {
  display: none;
}

.restaurant-hero {
  position: relative;
  width: min(100%, 1040px);
  aspect-ratio: 4 / 5;
  max-height: 76dvh;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface);
}

.restaurant-hero > img,
.restaurant-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.restaurant-hero > img {
  object-fit: cover;
}

.restaurant-hero__shade {
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.restaurant-hero__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 720;
  backdrop-filter: blur(8px);
}

.detail-shell {
  max-width: 920px;
}

.restaurant-summary {
  padding: 29px 0 34px;
}

.restaurant-summary h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 9vw, 4.25rem);
}

.restaurant-summary__kind,
.restaurant-summary__attributes,
.restaurant-summary__price {
  margin-bottom: 0;
}

.restaurant-summary__kind {
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.restaurant-summary__price {
  margin-top: 9px;
  color: var(--text);
  font-weight: 780;
}

.restaurant-summary__price [data-detail-distance]:not([hidden])::before {
  content: " · ";
}

.restaurant-summary__attributes {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.detail-section__heading {
  margin-bottom: 18px;
}

.detail-section__heading h2 {
  margin-bottom: 0;
}

.detail-section__heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.essentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.essentials-grid > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.essentials-grid__wide {
  grid-column: 1 / -1;
}

.essentials-grid dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.essentials-grid dd {
  margin-bottom: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
}

.essentials-grid small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.76rem;
}

.status-open {
  color: var(--success) !important;
}

.photo-rail {
  display: flex;
  width: calc(100% + 16px);
  gap: 10px;
  overflow-x: auto;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo-rail__item {
  width: 82%;
  min-width: 82%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-snap-align: start;
}

.photo-rail__item img,
img.photo-rail__item {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.video-placeholder img,
.video-placeholder iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  content: "";
}

.video-placeholder .button {
  position: relative;
  z-index: 2;
}

.location-section > p {
  color: var(--muted-strong);
}

.compact-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-weight: 700;
}

.sticky-actions {
  display: none;
}

/* lightbox */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050506;
  color: #fff;
}

.lightbox::backdrop {
  background: #050506;
}

.lightbox__topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: calc(64px + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top) 14px 0 18px;
  background: rgba(5, 5, 6, 0.7);
}

.lightbox__topbar p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.lightbox > img {
  width: 100%;
  height: 100%;
  padding: 72px 0 22px;
  object-fit: contain;
  touch-action: pan-y;
  user-select: none;
}

.lightbox__control {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: rgba(17, 18, 20, 0.74);
  color: #fff;
}

.lightbox__control--previous { left: 10px; }
.lightbox__control--next { right: 10px; }

/* commercial and legal pages */
.content-page {
  padding-bottom: 40px;
}

.content-hero {
  padding-top: 52px;
  padding-bottom: 48px;
}

.content-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
}

.content-hero__copy {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: clamp(1rem, 3vw, 1.18rem);
}

.content-hero__note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.content-card {
  max-width: 840px;
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-card h2 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.content-card p:last-child,
.content-card ul:last-child {
  margin-bottom: 0;
}

.content-card p,
.content-card li {
  color: var(--muted-strong);
}

.content-card a {
  color: var(--text);
}

.error-page {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-content: center;
  text-align: center;
}

/* focus and interaction */
:focus-visible {
  outline: 3px solid #ff6670;
  outline-offset: 3px;
}

@media (hover: hover) {
  .desktop-navigation a:hover,
  .site-footer a:hover,
  .sheet-menu a:hover {
    color: var(--text);
  }

  .restaurant-card__link:hover .restaurant-card__media img {
    transform: scale(1.025);
  }

  .button--primary:hover {
    border-color: #e52d38;
    background: #e52d38;
    color: #fff;
  }

  .button--secondary:hover,
  .filter-chip:hover,
  .filter-button:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
  }
}

/* responsive */
@media (min-width: 640px) {
  .site-shell,
  .detail-shell {
    width: min(100% - 48px, var(--shell));
  }

  .restaurant-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .detail-header__label {
    display: inline;
  }

  .detail-header__action {
    padding-inline: 14px;
  }

  .photo-rail__item {
    width: 54%;
    min-width: 54%;
  }
}

@media (min-width: 768px) {
  .explore-body {
    padding-bottom: 0;
  }

  .bottom-navigation,
  .header-action {
    display: none;
  }

  .desktop-navigation {
    display: flex;
  }

  .explore-intro {
    padding-top: 58px;
    padding-bottom: 32px;
  }

  .search-box {
    max-width: 760px;
  }

  .quick-filters {
    max-width: 980px;
  }

  .about-section {
    grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
    align-items: center;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .bottom-sheet {
    width: min(620px, calc(100% - 40px));
    margin: auto;
  }

  .bottom-sheet__surface {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .bottom-sheet__handle {
    display: none;
  }

  .restaurant-hero {
    width: min(calc(100% - 48px), 1040px);
    aspect-ratio: 16 / 9;
    margin-top: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .restaurant-summary {
    padding-top: 46px;
  }

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

  .essentials-grid__wide {
    grid-column: span 2;
  }

  .photo-rail {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding-right: 0;
  }

  .photo-rail__item {
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
  }

  .content-hero {
    padding-top: 88px;
    padding-bottom: 72px;
  }
}

@media (min-width: 1060px) {
  .restaurant-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .restaurant-card__content h3 {
    font-size: 1.65rem;
  }
}

@media (max-width: 767.98px) {
  .restaurant-body.has-sticky-actions {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .sticky-actions {
    position: fixed;
    z-index: 80;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: rgba(17, 18, 20, 0.96);
    backdrop-filter: blur(18px);
  }

  .sticky-actions__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 9px;
  }
}

@media (max-width: 374px) {
  .site-shell,
  .detail-shell {
    width: min(100% - 24px, var(--shell));
  }

  .explore-intro {
    padding-top: 27px;
  }

  .restaurant-card__content {
    padding-inline: 17px;
  }

  .filter-button {
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
