/* Restaurant stage, chat v2 S4b (docs/plans/chat-v2.md, frame 2 in
   ~/Downloads/chat-only-v2/RECOMMENDED/2-laptop-ship-first.png; source
   stage_restaurant() in mocks/build_mocks.py).
   Component: FlowstayWeb.DesignSystem.DesktopWebExperience.Scenes.Dining.
   Every rule is scoped under .fs-dine so nothing leaks into other journeys.
   Fits the stage beside the 560px chat column at 1440x900 (about 760px
   wide) and the full-width stage with the chat closed. No prices. */

.fs-dine {
  --dine-gold: var(--flow-gold, #d4a853);
  --dine-champ: #e6c97a;
  --dine-champ-top: #f0d58f;
  --dine-champ-bot: #d9b25e;
  --dine-champ-ink: #241a06;
  --dine-ink: #fff;
  --dine-ink-90: rgba(255, 255, 255, 0.9);
  --dine-ink-75: rgba(255, 255, 255, 0.75);
  --dine-ink-65: rgba(255, 255, 255, 0.65);
  --dine-ink-50: rgba(255, 255, 255, 0.5);
  --dine-line: rgba(255, 255, 255, 0.16);
  --dine-serif: var(--flow-font-display, 'Cormorant Garamond', Georgia, serif);
  --dine-sans: var(--flow-font-ui, 'DM Sans', sans-serif);
  position: relative;
  height: 100%;
  min-height: 520px;
  overflow: hidden;
  box-sizing: border-box;
  background: #0a0a0d;
  color: var(--dine-ink);
  font-family: var(--dine-sans);
  container-type: inline-size;
}

.fs-dine *,
.fs-dine *::before,
.fs-dine *::after {
  box-sizing: border-box;
}

.fs-dine-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
}

.fs-dine-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0.2) 35%,
    rgba(8, 8, 12, 0.9) 72%,
    rgba(8, 8, 12, 0.98)
  );
}

.fs-dine-body {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 34px;
}

.fs-dine-eyebrow,
.fs-dine-when {
  display: block;
  font: 700 10px/1 var(--dine-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dine-gold);
}

.fs-dine-when {
  color: var(--dine-ink-50);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-dine-name {
  margin: 8px 0 6px;
  font: 400 46px/1 var(--dine-serif);
  color: var(--dine-ink);
  text-wrap: balance;
}

.fs-dine-lede {
  margin: 0 0 6px;
  max-width: 560px;
  font: 400 15px/1.5 var(--dine-serif);
  color: var(--dine-ink-75);
  text-wrap: pretty;
}

.fs-dine-meta {
  margin-bottom: 14px;
  font: 400 12px/1.45 var(--dine-sans);
  color: var(--dine-ink-65);
}

.fs-dine-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.fs-dine-main {
  flex: 1;
  min-width: 0;
}

.fs-dine-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.fs-dine-time {
  font: 500 12.5px/1.2 var(--dine-sans);
  font-variant-numeric: tabular-nums;
  color: var(--dine-ink-90);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dine-line);
  border-radius: 100px;
  padding: 7px 12px;
  min-width: 52px;
  white-space: nowrap;
  cursor: pointer;
}

.fs-dine-time:hover {
  border-color: rgba(212, 168, 83, 0.5);
}

.fs-dine-time.is-on {
  color: var(--dine-champ-ink);
  background: linear-gradient(to bottom, var(--dine-champ-top), var(--dine-champ-bot));
  border-color: transparent;
  font-weight: 600;
}

.fs-dine-act {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.fs-dine-reserve {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 13.5px/1 var(--dine-sans);
  white-space: nowrap;
  color: var(--dine-champ-ink);
  background: linear-gradient(to bottom, var(--dine-champ-top), var(--dine-champ-bot));
  box-shadow: 0 4px 18px rgba(230, 201, 122, 0.25);
  cursor: pointer;
}

.fs-dine-reserve[disabled] {
  cursor: default;
  opacity: 0.55;
  box-shadow: none;
}

.fs-dine-reserve.is-done {
  cursor: default;
  color: var(--dine-champ);
  background: rgba(230, 201, 122, 0.1);
  border-color: rgba(230, 201, 122, 0.4);
  box-shadow: none;
}

.fs-dine-fine {
  font: 400 11px/1.4 var(--dine-sans);
  color: var(--dine-ink-50);
}

.fs-dine-none {
  margin: 10px 0 0;
  font: 400 13px/1.45 var(--dine-sans);
  color: var(--dine-ink-75);
}

.fs-dine-error {
  margin: 10px 0 0;
  font: 500 12px/1.4 var(--dine-sans);
  color: #f0b46a;
}

.fs-dine-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fs-dine-strip {
  display: flex;
  gap: 8px;
}

.fs-dine-strip img {
  flex: none;
  width: 124px;
  height: 88px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Beside the chat column the stage is about 760px: two pictures. With the
   chat closed the stage is wide enough for all four. */
.fs-dine-strip img:nth-child(n + 3) {
  display: none;
}

@container (min-width: 1000px) {
  .fs-dine-strip img:nth-child(n + 3) {
    display: block;
  }
}

.fs-dine-alt {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fs-dine-alt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 400 11.5px/1.2 var(--dine-sans);
  color: var(--dine-ink-90);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dine-line);
  border-radius: 100px;
  padding: 5px 10px;
  white-space: nowrap;
  cursor: pointer;
}

.fs-dine-alt-chip b {
  font-weight: 600;
}

.fs-dine-alt-chip:hover {
  border-color: rgba(212, 168, 83, 0.5);
}

.fs-dine button:focus-visible {
  outline: 2px solid var(--dine-gold);
  outline-offset: 2px;
}

/* A narrow stage (phone, or a very small window): stack the pictures under
   the times and shrink the name. */
@container (max-width: 620px) {
  .fs-dine-body {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .fs-dine-name {
    font-size: 34px;
  }

  .fs-dine-row {
    flex-direction: column;
    align-items: stretch;
  }

  .fs-dine-side {
    align-items: flex-start;
  }

  .fs-dine-strip img {
    width: 96px;
    height: 68px;
  }
}
