/* The public menu page, on top of booking.css: same palette, header, cards and
   footer, so /menu and /booking read as one site. Phone first — this is the
   page Google Maps opens when a guest taps "Menu". */

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-page .wrap {
  padding-bottom: 0;
}

.menu-head {
  margin-bottom: 18px;
}

/* --- actions under the heading ------------------------------------------ */

.menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 18px;
}

.menu-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(26, 3, 5, 0.55);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.menu-action.primary {
  border-color: transparent;
  background: linear-gradient(140deg, var(--gold-500), var(--gold-600));
  color: var(--maroon-950);
}

/* --- sticky search + category chips ------------------------------------- */

.menu-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 3, 5, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.menu-bar-inner {
  width: calc(100% - 32px);
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 0 8px;
}

.menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.menu-search input {
  flex: 1;
  min-width: 0;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(61, 11, 15, 0.6);
  font-size: 16px; /* below 16px iOS zooms the page on focus */
}

.menu-search input:focus {
  outline: none;
  border-color: var(--gold-500);
}

.menu-search input::placeholder {
  color: var(--muted);
}

.menu-search button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  font-size: 0.88rem;
  cursor: pointer;
}

.menu-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.menu-chips::-webkit-scrollbar {
  display: none;
}

.menu-chips a {
  flex: none;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cream-2);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.menu-chips a.active {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--maroon-950);
  font-weight: 600;
}

/* --- the menu ------------------------------------------------------------ */

.menu-main {
  padding-top: 8px;
}

.menu-empty {
  margin-top: 18px;
}

.menu-section-title {
  margin: 30px 0 4px;
  color: var(--gold-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-category {
  /* Room for the sticky bar when a chip jumps here. */
  scroll-margin-top: 120px;
  padding-top: 14px;
}

.menu-category h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
}

.menu-category h3 small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: "Noto Sans Lao", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
}

.dishes {
  display: grid;
  gap: 10px;
  list-style: none;
}

.dish {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(42, 7, 9, 0.72);
}

.dish.unavailable {
  opacity: 0.55;
}

.dish-photo {
  flex: none;
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--maroon-850);
}

.dish-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-body {
  flex: 1;
  min-width: 0;
}

.dish-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.dish-head h4 {
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.3;
}

.dish-price {
  flex: none;
  color: var(--gold-soft);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.dish-alt {
  margin-top: 1px;
  color: var(--cream-2);
  font-size: 0.86rem;
}

.dish-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.dish-options {
  margin-top: 6px;
  color: var(--cream-2);
  font-size: 0.82rem;
}

.dish-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border: 1px solid rgba(255, 154, 138, 0.5);
  border-radius: 999px;
  color: var(--danger);
  font-size: 0.76rem;
}

.menu-prices-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.menu-foot-cards {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

/* --- photo viewer --------------------------------------------------------- */

.photo-viewer {
  width: min(92vw, 560px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--maroon-900);
  color: var(--cream);
}

.photo-viewer::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.photo-viewer img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: var(--maroon-950);
}

.photo-viewer p {
  padding: 12px 16px 0;
  font-weight: 600;
}

.photo-viewer form {
  padding: 12px 16px 16px;
  text-align: right;
}

.photo-viewer button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

/* --- wider screens -------------------------------------------------------- */

@media (min-width: 760px) {
  .dishes {
    grid-template-columns: 1fr 1fr;
  }

  .menu-foot-cards {
    grid-template-columns: 1fr 1fr;
  }

  .dish-photo {
    width: 96px;
    height: 96px;
  }
}
