@keyframes deals-slide-in-left {
  from { transform: translateX(36px); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}
@keyframes deals-slide-in-right {
  from { transform: translateX(-36px); opacity: 0.35; }
  to { transform: none; opacity: 1; }
}
.slide-in-left { animation: deals-slide-in-left 0.22s ease; }
.slide-in-right { animation: deals-slide-in-right 0.22s ease; }

body {
  overscroll-behavior-y: contain; /* keep native pull-to-refresh out of the pull-down gesture */
}

.menu-app {
  transition: transform 0.25s ease;
}
.menu-app.pulling {
  transition: none;
}

.menu-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--sheet-bg);
  padding-bottom: 110px; /* keep content clear of the fixed bottom bar */
}

/* ---------- Photo header ---------- */

.menu-photo {
  position: relative;
  height: 260px;
  /* Fallback when a venue has no cover_image — menu.js overrides this
     inline with a real photo + the same darkening overlay when one exists. */
  background-image:
    radial-gradient(120% 100% at 15% 0%, rgba(255, 190, 110, 0.35), transparent 55%),
    linear-gradient(160deg, #6b3a1f 0%, #2c1810 55%, #17110d 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-photo-icon {
  font-size: 3.5rem;
  opacity: 0.9;
}

.menu-photo-credit {
  position: absolute;
  bottom: 8px;
  left: 16px;
  font-size: 0.65rem;
  color: rgba(253, 246, 238, 0.65);
  text-decoration: none;
  max-width: 60%;
}
.menu-photo-credit:hover {
  color: rgba(253, 246, 238, 0.9);
}

.menu-back {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fdf6ee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  text-decoration: none;
  line-height: 1;
}

.menu-photo {
  cursor: pointer;
}

.menu-photo-counter {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-family: inherit;
  background: rgba(0, 0, 0, 0.35);
  border: none;
  border-radius: 999px;
  padding: 4px 10px;
  color: rgba(253, 246, 238, 0.95);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Amenities ---------- */

.menu-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.menu-amenity-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Photo gallery overlay ---------- */

.gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  align-items: center;
  touch-action: none;
  transition: opacity 0.2s ease;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.gallery-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-prev {
  left: 12px;
}
.gallery-next {
  right: 12px;
}

/* ---------- Info ---------- */

.menu-info {
  padding: 20px;
}

.menu-rating {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent, #b8860b);
}

.menu-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
}

.menu-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.menu-head-left {
  flex: 1;
  min-width: 0;
}

.travel-times {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-top: 4px;
}

.travel-times.hidden {
  display: none;
}

.travel-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  white-space: nowrap;
}

.menu-address,
.menu-phone {
  display: block;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2px;
}
.menu-address:hover,
.menu-phone:hover {
  color: var(--accent);
  text-decoration: underline;
}

.menu-verified {
  margin: 8px 0 0;
}
.menu-verified a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.menu-verified a:hover {
  text-decoration: underline;
}

.menu-tabs {
  display: flex;
  gap: 20px;
  margin: 22px 0 4px;
  border-bottom: 1px solid var(--card-border);
}

.menu-tab {
  font-family: inherit;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.menu-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ---------- Deals list ---------- */

.menu-deals-list {
  padding-top: 6px;
}

.menu-deal-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--card-border);
}

.menu-deal-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  font-size: 0.98rem;
}

.menu-deal-price {
  flex-shrink: 0;
  color: var(--text);
}

.menu-deal-description {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---------- Sticky hours/share bar ---------- */

.menu-sticky-bar {
  /* Truly pinned: sticky only held until the page scrolled past the bar's
     DOM position, then it docked mid-content. Lives outside .menu-app so
     the pull-down gesture's transform can't turn fixed into absolute. */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: var(--pill);
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.menu-hours {
  font-weight: 800;
  font-size: 1.1rem;
}

.menu-share-btn {
  font-family: inherit;
  background: #fff;
  color: var(--pill);
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.menu-share-btn:active {
  transform: scale(0.97);
}

/* ---------- Schedule section ---------- */

.menu-schedule-section {
  padding: 24px 20px 0;
}
.menu-schedule-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.menu-schedule-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  font-size: 0.88rem;
}
.menu-schedule-row.today {
  border-color: var(--green);
  background: rgba(15, 157, 104, 0.08);
}
.menu-schedule-day {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.menu-schedule-today-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  padding: 2px 8px;
  border-radius: 999px;
}
.menu-schedule-hours {
  color: var(--text-dim);
}
.menu-schedule-row.today .menu-schedule-hours {
  color: var(--text);
  font-weight: 600;
}

.menu-suggest-link {
  display: block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-decoration: underline;
  text-align: center;
}

/* ---------- Map section ---------- */

.menu-map-section {
  padding: 24px 20px 0;
}

.menu-map-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 12px;
}

.menu-map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  height: 200px;
}
.menu-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.menu-map-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.menu-map-link:hover {
  text-decoration: underline;
}

/* ---------- Toast ---------- */

.menu-toast {
  position: fixed;
  left: 50%;
  /* Clears the fixed hours/Share bar — at bottom: 28px the toast landed on
     top of the very Share button that triggers it. */
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: #1c1b1a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.menu-toast.hidden {
  display: none;
}

/* Venue advertises a happy hour but publishes no item list — an honest
   explanation beats a blank deals panel. */
.menu-no-deals {
  padding: 18px 0 4px;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}
.menu-no-deals p {
  margin: 0 0 10px;
}
.menu-no-deals a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
