/* Dining Discovery Portal — Exact AirQR .site-v2 tokens, grid stage, and motion system */
:root {
  --v2-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --background: #fbfaf9;
  --card: #ffffff;
  --v2-ink: #16181d;
  --v2-ink-2: #3a3d45;
  --v2-stone: #6b6f78;
  --v2-mist: #f7f5f2;
  --v2-mist-2: #efece7;
  --v2-line: #e9e5df;
  --v2-line-2: #dcd6cc;

  --brand: #f56333;
  --brand-deep: #d24011;
  --brand-soft: #ffeadc;
  --v2-leaf: #1f9d57;
  --v2-leaf-soft: #e7f6ee;

  --btn-main: #1f1f1e;
  --btn-main-fg: #fafaf9;

  --v2-shadow-soft: 0 12px 32px -20px rgba(22, 24, 29, 0.32);
  --v2-shadow-float: 0 24px 60px -28px rgba(22, 24, 29, 0.38), 0 8px 20px -14px rgba(22, 24, 29, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html,
body.site-v2 {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
}
body.site-v2 {
  position: relative;
  margin: 0;
  background: var(--background);
  color: var(--v2-ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { cursor: pointer; }

/* Tactile .press micro-interaction */
.press {
  transition: transform 0.16s var(--ease-out), background-color 0.16s var(--ease-out), border-color 0.16s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.press:active { transform: scale(0.97); }
.press:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@keyframes fade-up {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes floor-pulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.2); }
}
@keyframes sheet-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fade-up {
  animation: fade-up 0.32s var(--ease-out) both;
}

/* AirQR .v2-gridstage */
.stage {
  position: relative;
  width: 100%;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.v2-gridstage {
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(540px, 62vw, 760px);
  background: linear-gradient(180deg, #f4f1ec 0%, #faf8f5 55%, #fbfaf9 100%);
  mask-image: linear-gradient(#000 72%, transparent);
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.v2-gridstage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(22, 24, 29, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 24, 29, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 75% at 50% 45%, #000, transparent);
}
.v2-gridstage-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.v2-gridstage-orb--a {
  width: 520px;
  height: 520px;
  top: -140px;
  right: 4%;
  background: rgba(245, 99, 51, 0.08);
  filter: blur(120px);
}
.v2-gridstage-orb--b {
  width: 320px;
  height: 320px;
  bottom: 40px;
  left: 6%;
  background: rgba(255, 170, 120, 0.12);
  filter: blur(100px);
}

.v2-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(20px, env(safe-area-inset-left));
}

/* Sticky -> Floating Glassmorphic Header */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}
.topbar__inner {
  height: 60px;
  padding: 0 8px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color 0.3s var(--v2-ease), box-shadow 0.3s var(--v2-ease), border-color 0.3s var(--v2-ease), backdrop-filter 0.3s var(--v2-ease);
}
.topbar.is-scrolled .topbar__inner {
  border-color: rgba(233, 229, 223, 0.85);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 10px 30px -18px rgba(22, 24, 29, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.025em;
}
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px -6px rgba(245, 99, 51, 0.65);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topnav__link {
  padding: 7px 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-ink-2);
  transition: background-color 0.16s var(--ease-out), color 0.16s var(--ease-out);
}
.topnav__link:hover { background: var(--v2-mist); color: var(--v2-ink); }

.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--v2-line-2);
  background: #fff;
  color: var(--v2-ink);
  font-size: 13.5px;
  font-weight: 600;
}
.loc-pill:hover { background: var(--v2-mist); }
.loc-pill__dot, .finder__gps-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}
.loc-pill.is-active .loc-pill__dot,
.finder__gps.is-active .finder__gps-dot {
  background: var(--v2-leaf);
}
.loc-pill.is-active .loc-pill__dot::before,
.finder__gps.is-active .finder__gps-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: inherit;
  animation: floor-pulse 1.8s var(--ease-out) infinite;
}
.loc-pill__chev, .finder__chev {
  display: inline-flex;
  color: var(--v2-stone);
  transform: rotate(90deg);
}

/* Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn--dark { background: var(--btn-main); color: var(--btn-main-fg); }
.btn--dark:hover { background: #313130; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-deep); }
.btn--outline { background: #fff; border-color: var(--v2-line-2); color: var(--v2-ink); }
.btn--outline:hover { background: var(--v2-mist); }
.btn--soft { background: var(--v2-mist); border-color: var(--v2-line); color: var(--v2-ink); }
.btn--soft:hover { background: var(--v2-mist-2); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0 28px;
}
.hero > *,
.grid > *,
.steps-grid > * {
  min-width: 0;
  max-width: 100%;
}
.v2-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #2a1810;
  color: #ffb86b;
  font-size: 12px;
  font-weight: 600;
}
.hero__title {
  margin: 16px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.v2-accent {
  color: var(--brand-deep);
}
.hero__sub {
  margin: 0 0 24px;
  font-size: 17px;
  color: var(--v2-stone);
  max-width: 540px;
}

/* Finder Bar */
.finder {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--v2-shadow-soft);
}
.finder__gps, .finder__area { height: 42px; flex-shrink: 0; }
.searchbox {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 210px;
  min-width: 190px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--v2-line-2);
  background: #fff;
  padding: 0 14px;
  gap: 8px;
  transition: border-color 0.16s var(--ease-out), box-shadow 0.16s var(--ease-out);
}
.searchbox:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(245, 99, 51, 0.14);
}
.searchbox__icon { color: var(--v2-stone); display: inline-flex; }
.searchbox input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--v2-ink);
}
.searchbox__clear {
  border: 0;
  background: transparent;
  color: var(--v2-stone);
  padding: 4px;
  display: inline-flex;
  border-radius: 999px;
}
.searchbox__clear:hover { background: var(--v2-mist); color: var(--v2-ink); }

.loc-status {
  margin: 10px 4px 0;
  min-height: 20px;
  font-size: 13px;
  color: var(--v2-stone);
}
.loc-status.is-error { color: #b91c1c; }

/* Right-hand Showcase Card (AirQR 32px white surface + layered glows) */
.showcase {
  position: relative;
  min-height: 296px;
  border-radius: 32px;
  border: 1px solid var(--v2-line);
  background: #fff;
  box-shadow: var(--v2-shadow-soft);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}
.showcase__glow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.showcase__glow--a {
  width: 240px; height: 240px;
  top: -40px; left: -30px;
  background: rgba(255, 222, 200, 0.85);
  filter: blur(44px);
}
.showcase__glow--b {
  width: 240px; height: 240px;
  bottom: -40px; right: -30px;
  background: rgba(255, 234, 220, 0.9);
  filter: blur(44px);
}
.showcase__tile-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--v2-line);
  box-shadow: 0 8px 22px -14px rgba(22, 24, 29, 0.22);
  transition: transform 0.28s var(--v2-ease);
}
.showcase__tile-card--a { transform: translateX(-6px) rotate(-1deg); }
.showcase__tile-card--b { transform: translateX(8px) rotate(0.8deg); }
.showcase__tile-card--c { transform: translateX(-2px) rotate(-0.5deg); }
.showcase:hover .showcase__tile-card--a { transform: translateX(0) rotate(0deg); }
.showcase:hover .showcase__tile-card--b { transform: translateX(0) rotate(0deg); }
.showcase:hover .showcase__tile-card--c { transform: translateX(0) rotate(0deg); }

.showcase__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--brand-soft));
  border: 1px solid rgba(22, 24, 29, 0.06);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.showcase__icon--brand { background: linear-gradient(135deg, #fff7ed, #fed7aa); color: var(--brand-deep); }
.showcase__icon--ink { background: var(--v2-ink); color: #fff; }
.showcase__label { font-weight: 600; font-size: 14.5px; }
.showcase__meta { font-size: 12.5px; color: var(--v2-stone); }

/* Sections */
.section { padding: 20px 0 36px; }
.dir-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.section__sub { margin: 4px 0 0; font-size: 14px; color: var(--v2-stone); }

/* Restaurant Cards (26px radius) */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.rest-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-radius: 26px;
  border: 1px solid var(--v2-line);
  background: var(--card);
  padding: 20px;
  box-shadow: var(--v2-shadow-soft);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.22s var(--ease-out);
}
.rest-card:hover {
  transform: translateY(-2px);
  border-color: var(--v2-line-2);
  box-shadow: var(--v2-shadow-float);
}
.rest-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.rest-card__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.rest-card__crest {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  border: 1px solid rgba(22, 24, 29, 0.08);
}
.rest-card__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rest-card__addr {
  font-size: 12.5px;
  color: var(--v2-stone);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-dark {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  max-width: calc(100vw - 32px);
  background: var(--v2-ink);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  flex-shrink: 0;
}
.rest-card__tagline {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: var(--v2-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rest-card__chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-muted {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--v2-mist);
  color: var(--v2-ink-2);
  font-size: 12.5px;
  font-weight: 500;
}
.rest-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--v2-line);
}
.rest-card__actions .btn { height: 38px; padding: 0 12px; font-size: 13px; }
.btn--disabled { background: var(--v2-mist); color: var(--v2-stone); cursor: default; }

/* How It Works (AirQR "Every role" 3-column tile pattern) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.step-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--v2-line);
  background: rgba(247, 245, 242, 0.7);
}
.step-tile__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff, var(--brand-soft));
  border: 1px solid rgba(22, 24, 29, 0.06);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-tile__title { font-size: 14.5px; font-weight: 600; }
.step-tile__sub { font-size: 12.5px; color: var(--v2-stone); }

.empty-box {
  grid-column: 1 / -1;
  border-radius: 26px;
  border: 1px dashed var(--v2-line-2);
  background: #fff;
  padding: 40px 24px;
  text-align: center;
}
.empty-box h3 { margin: 0 0 6px; font-family: var(--font-display); }
.empty-box p { margin: 0 0 16px; color: var(--v2-stone); font-size: 14px; }

.skel-card {
  height: 224px;
  border-radius: 26px;
  border: 1px solid var(--v2-line);
  background: linear-gradient(90deg, #fff 25%, var(--v2-mist) 50%, #fff 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Footer */
.footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--v2-line);
  padding: 36px 0 24px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__tag { margin: 8px 0 0; max-width: 380px; font-size: 13.5px; color: var(--v2-stone); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: 13.5px; color: var(--v2-stone); }
.footer__legal a:hover { color: var(--v2-ink); }
.footer__bar {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
  font-size: 12.5px;
  color: var(--v2-stone);
}

/* Responsive Vaul/Radix-style Bottom Sheet & Desktop Modal */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(22, 24, 29, 0.42);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}
.sheet-backdrop[hidden] { display: none; }
.sheet-panel {
  width: 100%;
  max-width: 460px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--v2-line);
  box-shadow: var(--v2-shadow-float);
  padding: 22px;
  animation: modal-pop 0.2s var(--ease-out) both;
}
.sheet-handle { display: none; }
.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.sheet-title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.sheet-sub { margin: 3px 0 0; font-size: 13px; color: var(--v2-stone); }
.sheet-close {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--v2-line);
  background: var(--v2-mist);
  color: var(--v2-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sheet-body { display: grid; gap: 10px; }

.sheet-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--v2-line);
  background: var(--v2-mist);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: var(--v2-ink);
}
.sheet-option:hover { background: var(--v2-mist-2); border-color: var(--v2-line-2); }
.sheet-option.is-active { background: #fff; border-color: var(--brand); }
.sheet-option__meta { font-size: 12px; font-weight: 500; color: var(--v2-stone); }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  padding: 10px 18px;
  border-radius: 999px;
  max-width: calc(100vw - 32px);
  background: var(--v2-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 18px; }
  .showcase { display: none; }
  .grid, .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .v2-wrap { padding: 0 14px; }
  .topbar { top: 8px; padding: 0 12px; }
  .topbar__inner { height: auto; min-height: 48px; padding: 6px 10px; gap: 8px; }
  .brand { font-size: 16px; gap: 8px; flex-shrink: 0; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .topbar__actions { gap: 6px !important; flex-shrink: 1; min-width: 0; }
  .topbar .btn,
  .topbar .loc-pill {
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }
  .loc-pill { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .topnav { display: none; }
  .hero { padding: 18px 0 14px; gap: 20px; }
  .hero__title { font-size: clamp(28px, 8vw, 38px); line-height: 1.08; }
  .hero__sub { font-size: 15px; margin-bottom: 18px; }
  .grid, .steps-grid { grid-template-columns: 1fr; }
  .finder { padding: 8px; border-radius: 18px; }
  .finder__gps, .finder__area { width: 100%; }
  .searchbox { width: 100%; min-width: 0; }
  .rest-card { padding: 16px; border-radius: 20px; }
  .rest-card__top { flex-wrap: wrap; gap: 8px; }
  .rest-card__identity { min-width: 0; flex: 1 1 180px; }
  .chip-dark { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rest-card__actions { grid-template-columns: 1fr; }
  .sheet-backdrop { align-items: end; padding: 0; }
  .sheet-panel {
    max-width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 10px 20px 26px;
    animation: sheet-up 0.3s var(--ease-drawer) both;
  }
  .sheet-handle {
    display: flex;
    justify-content: center;
    padding: 4px 0 12px;
  }
  .sheet-handle span {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--v2-line-2);
  }
}
@media (pointer: coarse) {
  .btn, .loc-pill, .sheet-option { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .press:active { transform: none !important; }
}
