/**
 * Grounding cards — Phase 3, "the money shot".
 *
 * Every card on screen is rendered from a `functionResponse` part that arrived in the *same*
 * HTTP response as the answer paragraph above it. That is the whole pitch: not "our chatbot
 * answered" but "every claim on this screen has a receipt". So the visual language is
 * deliberately documentary rather than chatty — a bordered record with a status, a payload, and
 * a provenance footer, not another speech bubble.
 *
 * The three status colours are shared with chat.css's tokens on purpose, so a green road segment
 * and a green eligible-permit badge mean the same thing to the room:
 *   ok       green      verified, grounded, actionable
 *   caution  amber      qualified — a real hazard the guest should weigh
 *   blocked  red        a hard no, with a cited reason
 *   unknown  champagne  the honesty card ("Atithi will confirm this") — deliberately NOT amber; see
 *                       its own [data-status="unknown"] rule below for why sharing caution's colour
 *                       was the wrong call
 *
 * The `unknown` card gets full design weight, not a footnote. A system visibly declining to guess
 * is the most credible thing you can put in front of a minister, and it is the one thing a generic
 * chatbot demo structurally cannot show.
 */

.cards {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
  width: 100%;
}

.card {
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  animation: bubble-in var(--dur) var(--ease) both;
}

.card[data-status="ok"] {
  border-left-color: var(--ok-line);
}

.card[data-status="caution"] {
  border-left-color: var(--warn-line);
  background: color-mix(in srgb, var(--warn-bg) 45%, var(--surface));
}

/*
 * "We don't know" is not a warning, and it had been sharing one.
 *
 * `unknown` sat in the same rule as `caution` — same amber rail, same amber ground — so the honesty
 * card was visually indistinguishable from a road advisory or a sold-out night. Those are hazards
 * the guest should weigh; this is Atithi declining to guess, which is the most trust-building thing
 * the product does and the thing the whole grounding pitch rests on. Rendering it as a fourth
 * shade of caution spent that for nothing.
 *
 * It now takes the CHAMPAGNE rail on near-plain paper: the brand's own accent, which everywhere
 * else in this app marks Atithi speaking about itself (the .prov provenance chip, the hero
 * ornament, the drawer wordmark). Amber stays exclusively for "something is wrong out there".
 * No new hue enters the palette — the distinction is which of the two existing accents is used,
 * and whether the ground is tinted at all.
 */
.card[data-status="unknown"] {
  border-left-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 6%, var(--surface));
}

.card[data-status="blocked"] {
  border-left-color: var(--danger-line);
}

/*
 * THE SKELETON. A tool call still in flight used to leave the transcript unchanged until its card
 * (or the honesty card) simply appeared — the only sign anything was happening lived in a separate
 * progress line, nowhere near where the answer was actually about to land. `.card-skeleton` reuses
 * `.card`/`.card-head`/`.card-body` for its box and spacing (js/cards.js skeletonCard) so it takes
 * up the same footprint the eventual card will, and only its own `.skeleton-bar` children need
 * their own rules below — everything about being a card is inherited, nothing is duplicated.
 *
 * No status colour: a call that has not resolved yet has not earned a verdict, so the left rail
 * stays the neutral hairline every unstated `.card` gets by default.
 */
.card-skeleton .skeleton-bar {
  display: block;
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--hairline-strong) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  /* --orb-pulse-dur (2.4s, orb.css's "ONE calm breath") in place of a snappier 1.4s: a waiting
     card should breathe at the same restrained pace the mic does, not sweep like a generic
     loading-skeleton library default. Kept on ease-in-out, not orb.css's --ease-out-quart — this
     sweep runs one direction every cycle rather than settling to a rest state, and ease-out-quart's
     hard deceleration would read as a stutter at each loop restart. */
  animation: skeleton-shimmer var(--orb-pulse-dur) ease-in-out infinite;
}

.card-skeleton .skeleton-icon {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-skeleton .skeleton-title {
  height: 14px;
  width: 55%;
}

.card-skeleton .skeleton-line {
  height: 11px;
  width: 90%;
}

.card-skeleton .skeleton-line--short {
  width: 55%;
}

/* Matches .price-media's own height (daylight.css) — the one renderer this skeleton shape stands
   in for prepends a room photo above its head, so the placeholder reserves that same band. */
.card-skeleton .skeleton-media {
  height: 132px;
  border-radius: 0;
  animation: none;
  background: var(--surface-2);
}

/* Matches .supply-scroller/.mini-card's own geometry — the shape find_places' horizontal scroller
   uses, so the skeleton doesn't change proportions the moment real tiles replace it. */
.card-skeleton .skeleton-carousel {
  display: flex;
  gap: var(--sp-3);
  overflow: hidden;
}

.card-skeleton .skeleton-tile {
  flex: 0 0 234px;
  height: 96px;
  border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-skeleton .skeleton-bar {
    animation: none;
  }
}

.card-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--hairline);
}

.card-head .icon {
  color: var(--brand-ink);
}

.card-title {
  margin: 0;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--ink);
  min-width: 0;
}

.card-title small {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 1px;
}

.card-body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.card-body > :first-child {
  margin-top: 0;
}

.card-section-label {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--sp-1);
}

/* The weather card stacks three sections (current/next-hours/coming-days) where every other
 * card has one, so the shared card-body/head/foot rhythm above compounds three times over and
 * reads as oversized in the guest chat pane's fixed phone-width column. `weather-card-body`
 * (set on the weather card's own body div, see js/cards.js) scopes a tighter rhythm to this card
 * only — `:has()` reaches the head/foot without needing extra classes there, since they're
 * plain siblings inside the same `.card`. */
.weather-card-body {
  padding: var(--sp-2) var(--sp-4) 6px;
  gap: 6px;
}

.weather-card-body .card-section-label {
  margin-bottom: 2px;
}

.card:has(.weather-card-body) .card-head {
  padding: var(--sp-2) var(--sp-4);
}

.card:has(.weather-card-body) .card-foot {
  padding: var(--sp-1) var(--sp-4) var(--sp-2);
}

/* -------------------------------------------------------------------------------------------
 * Status pills
 * ----------------------------------------------------------------------------------------- */

.pill {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px var(--sp-3);
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.pill[data-tone="ok"] {
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.pill[data-tone="caution"] {
  background: var(--warn-bg);
  color: var(--warn-ink);
}

/* Champagne, matching the rail — see the [data-status="unknown"] note above. It shared caution's
   amber, which left the honesty card's own pill arguing with its rail about what kind of card it
   was.

   --brand-ink, NOT --gold-ink: the readable champagne has to change step between themes, and
   --brand-ink is the token that already does it (#a33b21 on cream, #ffb89d on the dark card) and
   the one .prov already uses for exactly this "champagne as a quiet ink" job. --gold-ink is the
   light-theme literal and is never re-stepped, so it measures 2.06:1 on the dark honesty ground —
   found by measuring rather than by reading, having reached for it first. */
.pill[data-tone="unknown"] {
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  color: var(--brand-ink);
}

.pill[data-tone="blocked"] {
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.pill[data-tone="info"] {
  background: var(--info-bg);
  color: var(--info-ink);
}

/* Closed, not failed. A cancelled request and a declined one are different outcomes, and colouring
   the first like the second makes a guest changing their mind look like the hotel refusing. */
.pill[data-tone="muted"] {
  background: var(--surface-2, transparent);
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------------------------
 * A · Permit card
 * ----------------------------------------------------------------------------------------- */

/* One blocked destination = one loud row. This is the Nathula beat for a foreign national. */
.blocked-row {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  background: var(--danger-bg);
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  color: var(--danger-ink);
}

.blocked-row .icon {
  margin-top: 1px;
  color: var(--danger-ink);
}

.blocked-dest {
  font-weight: 700;
  text-transform: capitalize;
}

/* docs_needed — a real checklist, because that is how a guest uses it. */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  color: var(--ink);
}

.checklist .icon {
  color: var(--ok-line);
  margin-top: 2px;
}

.reasons {
  margin: 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.reasons li::marker {
  color: var(--brand-ink);
}

/* -------------------------------------------------------------------------------------------
 * B · Road & weather card
 * ----------------------------------------------------------------------------------------- */

.segments {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.segment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-1) var(--sp-3);
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline);
  background: var(--surface-2);
}

.segment-note {
  grid-column: 2;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* The traffic light itself. A dot plus a word — never colour alone. */
.light {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: 700;
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.light::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent);
}

.light[data-state="open"] {
  color: var(--ok-ink);
}

.light[data-state="caution"] {
  color: var(--warn-ink);
}

.light[data-state="closed"] {
  color: var(--danger-ink);
}

.light[data-state="unknown"] {
  color: var(--ink-faint);
}

.weather-tiles {
  display: grid;
  /* 88px (not the old 140px) so the guest chat pane — a fixed phone-width column at every
   * viewport, per layout.css, often well under 350px of usable card width — fits all three
   * current-condition tiles on one row instead of wrapping the third (feels-like/rain-chance)
   * onto a second row and inflating card height. Verified at 88px against 104px, which still
   * wrapped to two columns on a 375px-wide phone. */
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: var(--sp-2);
}

.weather-tile {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 6px;
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.weather-place {
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weather-temp {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.weather-cond {
  font-size: var(--fs-small);
}

/* The horizontal scroll strip itself. `daylight.css` layers its own visual chrome onto this same
 * class (the in-conversation options carousel's card look) for the guest chat page, but that file
 * is never loaded by manager.html — and without this base rule here, `.supply-scroller` was a
 * plain unstyled div on the Manager Dashboard, so its `.weather-tile` children (each a
 * `display: flex; flex-direction: column` block-level box) stacked one full-width row per
 * hour/day instead of scrolling sideways, ballooning the weather card's height (and, via
 * `.alerts-grid`'s `align-items: stretch`, the Permits card beside it too). Defined here, in the
 * file both pages actually load, so the layout no longer depends on a theme file being present. */
.supply-scroller {
  display: flex;
  gap: var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

/* Same tile, reused inside a horizontal forecast strip (`.supply-scroller`, shared with the
 * Places carousel) instead of the `.weather-tiles` grid above — needs a fixed width so tiles
 * read as a uniform, swipeable row rather than shrinking to their text content. Deliberately
 * denser than the current-conditions tile above: this is a glanceable trend strip, not the
 * primary answer, so it drops the condition word (the current-conditions tile and the reply
 * text above the card already say it) and uses a smaller number — the two things that were
 * making the "coming days"/"next hours" rows the tallest part of the whole card. */
.supply-scroller .weather-tile {
  flex: 0 0 84px;
  width: 84px;
  padding: 5px;
  scroll-snap-align: start;
}

.supply-scroller .weather-cond {
  display: none;
}

.supply-scroller .weather-temp {
  font-size: var(--fs-small);
}

/* -------------------------------------------------------------------------------------------
 * C · Price card. Three visually distinct states, because the distinction *is* the pitch:
 *   quote (rows)  ·  honestly sold out (ok + [])  ·  no PMS connected (unknown)
 * ----------------------------------------------------------------------------------------- */

.rate-rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.rate-row[data-match="1"] {
  border-color: var(--brand-light);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.rate-room {
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.rate-amount {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.rate-amount small {
  font-size: var(--fs-micro);
  font-weight: 400;
  color: var(--ink-faint);
  margin-left: var(--sp-1);
}

/* -------------------------------------------------------------------------------------------
 * D · KG / POI cards
 * ----------------------------------------------------------------------------------------- */

.poi {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.attr-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-1) var(--sp-3);
  font-size: var(--fs-small);
}

.attr-key {
  color: var(--ink-faint);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
}

.attr-val {
  color: var(--ink);
}

.poi-more {
  font-size: var(--fs-micro);
  color: var(--ink-faint);
}

/* -------------------------------------------------------------------------------------------
 * E · The honesty card
 * ----------------------------------------------------------------------------------------- */

.honesty-lead {
  font-size: var(--fs-lead);
  font-weight: 600;
  /* The readable champagne, not --warn-ink: this sentence is the honesty card's whole point and it
     should read as Atithi being candid, not as a hazard notice. Same reason as the rail and pill,
     and --brand-ink for the same theme-stepping reason given there. */
  color: var(--brand-ink);
  line-height: var(--lh-tight);
}

.honesty-why {
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------------------------------
 * Provenance footer — the chip that makes the receipt citable ("Sikkim permit rules v2026.1").
 * ----------------------------------------------------------------------------------------- */

.card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4) var(--sp-3);
  border-top: 1px dashed var(--hairline);
}

.prov {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  padding: 2px var(--sp-3);
}

.prov .icon {
  width: 1em;
  height: 1em;
}

/* -------------------------------------------------------------------------------------------
 * F · Routing trail + the rail
 * ----------------------------------------------------------------------------------------- */

.rail-section {
  margin-bottom: var(--sp-5);
}

.rail-heading {
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 var(--sp-3);
}

/* The breadcrumb: OrchestratorAgent -> ConciergeAgent, from `nodeInfo.path`. Deliberately
   subtle — it is a proof detail, not a headline. */
.trail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trail li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  color: var(--ink-soft);
  padding: var(--sp-1) 0;
}

.trail li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-light);
  flex-shrink: 0;
}

.trail li + li {
  padding-left: var(--sp-4);
  position: relative;
}

.trail li + li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -2px;
  height: 10px;
  width: 1px;
  background: var(--hairline-strong);
}

.trail-agent {
  font-weight: 600;
  color: var(--ink);
}

/* A tool-call ledger for the current turn: one line per functionCall, ticked when its
   functionResponse arrives. */
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ledger li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-small);
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

.ledger .icon {
  flex-shrink: 0;
}

.ledger li[data-state="pending"] {
  opacity: 0.6;
}

.ledger li[data-state="ok"] .icon {
  color: var(--ok-ink);
}

.ledger li[data-state="unknown"] .icon {
  color: var(--warn-ink);
}

/* -------------------------------------------------------------------------------------------
 * The approval card — a confirmation-gated tool waiting on the guest (js/confirm.js).
 *
 * Deliberately not a `.card`. Those are *receipts*: something already looked up, rendered after
 * the fact. This is a decision that has not happened yet and spends the guest's money when it
 * does, so it reads as an interruption — accent rail, warm ground, and the consequence set at
 * body size rather than as fine print.
 * ------------------------------------------------------------------------------------------- */

/* A MODIFIER, not a second card implementation. The shell — surface, border, radius, shadow,
   entrance — comes from `.card`, which this element now also carries (js/confirm.js). What is left
   here is what actually makes it a confirmation: the accent rail, the warm ground, and its own
   padding, since it composes a title/consequence/facts/actions stack directly rather than the
   card-head/card-body/card-foot the grounded cards use. */
.confirm-card {
  width: 100%;
  background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface));
  border-left-color: var(--accent);
  padding: var(--sp-4);
}

.confirm-title {
  font-weight: 650;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

/* Full body size on purpose: this is the disclosure being consented to, not a footnote. */
.confirm-consequence {
  font-size: var(--fs-small);
  color: var(--ink);
  line-height: 1.5;
}

.confirm-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px var(--sp-3);
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-small);
}

.confirm-facts dt {
  color: var(--ink-soft);
}

.confirm-facts dd {
  margin: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.confirm-btn {
  font: inherit;
  font-size: var(--fs-small);
  border-radius: var(--radius-pill);
  padding: var(--sp-2) var(--sp-4);
  cursor: pointer;
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  min-height: 40px; /* a real touch target on a phone at a viewpoint */
}

.confirm-btn.approve {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}

.confirm-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.confirm-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.confirm-outcome {
  margin-top: var(--sp-3);
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

.confirm-card[data-decided] .confirm-consequence,
.confirm-card[data-decided] .confirm-facts {
  opacity: 0.6;
}

/* -------------------------------------------------------------------------------------------
 * Safety card — the "I feel unsafe" control. Calm, high-legibility, tap-to-call. No motion:
 * a distress moment is the last place for playful animation.
 * ----------------------------------------------------------------------------------------- */

.safety-card {
  border-color: color-mix(in srgb, var(--danger) 40%, var(--hairline));
  border-left: 4px solid var(--danger);
}

.safety-card .card-head .icon {
  color: var(--danger-ink);
}

.safety-reassure {
  margin: 0 0 var(--sp-3);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.safety-calls {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.safety-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 56px;
  padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid var(--hairline-strong);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.safety-call:hover {
  background: var(--bubble-out);
}

/* Touch has no hover, so the row needs a press state of its own — and a visible focus ring for
   keyboard/switch access, which the pill alone never gave. */
.safety-call:active {
  background: var(--bubble-out);
}

.safety-call:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.safety-call-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.safety-call-label {
  font-weight: 700;
  font-size: var(--fs-small);
  color: var(--ink);
}

.safety-call-number {
  font-size: var(--fs-body);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.safety-call-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  flex-shrink: 0;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-pill);
  background: var(--ok);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
}

.safety-call-cta .icon {
  width: 15px;
  height: 15px;
}

/* Emergency (112) reads as urgent; the tourist helpline and front desk stay calm. */
.safety-call[data-tone="emergency"] {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
}

.safety-call[data-tone="emergency"] .safety-call-cta {
  background: var(--danger);
}

/* -------------------------------------------------------------------------------------------
 * Operator marketplace — stays / cabs / activities / guides, each with a "Call to book" that
 * routes to the one operator number. Rendered into the #market-panel sheet by js/operators.js.
 * ----------------------------------------------------------------------------------------- */

.op-group {
  margin-top: var(--sp-4);
}

.op-group-label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.op-group-label .icon {
  width: calc(16px * var(--type-scale));
  height: calc(16px * var(--type-scale));
}

.op-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.op-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--sp-3);
}

/* The box. `border`/`box-shadow` here are dead weight, not a real declaration: .op-card is one of
   the panes glass.css's shared "PANE" rule repaints wholesale (background/border/box-shadow/blur),
   and that rule loads after this one at equal specificity, so it wins outright for every property
   they both set. Confirmed by measuring, not by reading — the computed border was --glass-line
   regardless of what this said. Left as the plain, honest values rather than "corrected" to match
   what glass.css actually paints, so a reader diffing this file in isolation isn't shown a false
   promise either way; css/daylight.css's radius override just below is the one property glass.css
   does NOT touch, which is why it is the one real fix in this pass. */
.op-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--sp-4);
  box-shadow: var(--shadow-1);
}

.op-name {
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--ink);
}

.op-meta {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 2px;
}

.op-route {
  font-size: var(--fs-small);
  color: var(--ink-soft);
  margin-top: 2px;
}

.op-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.op-price {
  font-weight: 700;
  color: var(--brand-ink);
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
}

.op-langs {
  font-size: var(--fs-micro);
  color: var(--ink-soft);
}

.op-permit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--warn-ink);
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-pill);
}

.op-permit .icon {
  width: 13px;
  height: 13px;
}

.op-unverified {
  font-size: var(--fs-micro);
  color: var(--ink-faint);
  border: 1px solid var(--hairline-strong);
  padding: 1px var(--sp-2);
  border-radius: var(--radius-pill);
}

.op-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-small);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease);
}

.op-call .icon {
  width: 16px;
  height: 16px;
}

.op-call:hover {
  background: var(--brand-dark);
}

.op-error {
  color: var(--danger-ink);
  margin-top: var(--sp-4);
}
