/* Design tokens from _reference/App/designer.md — "luxury minimal": warm
   neutrals, no gradients, pill buttons, editorial serif for headlines. */
:root {
  --ivory: #FAF7F0;
  --pearl: #FFFDF8;
  --sand: #E8DDCB;
  --linen: #F1E9DC;
  --champagne: #D7C49A;
  --gold: #C8A24A;
  --gold-bright: #D9B85A;
  --stone: #B8AE9E;
  --sea: #6F9698;
  --palm: #8E9B7A;
  --charcoal: #25231F;

  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-ui: -apple-system, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius-lg: 20px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-ui);
}

.app { min-height: 100vh; }

button, input { font-family: inherit; }

/* Full-height screen, mobile-first; widens into a centered reading column on
   tablet/desktop instead of a giant stretched phone layout. */
.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 32px;
}
.screen-inner { display: flex; flex-direction: column; flex: 1; width: 100%; }
@media (min-width: 700px) {
  .screen { padding: 32px 24px 48px; align-items: center; }
  .screen-inner { max-width: 640px; }
}

.lang-switch {
  align-self: flex-end;
  display: flex;
  gap: 6px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.lang-switch button {
  border: none;
  background: transparent;
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.lang-switch button.active { background: var(--charcoal); color: var(--pearl); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 15px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.btn-primary { background: var(--charcoal); color: var(--pearl); }
.btn-primary:hover { background: #3a372f; }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--champagne); }
.btn-outline:hover { background: var(--linen); }
.btn-text {
  background: none;
  border: none;
  color: var(--stone);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px;
}

/* Splash screen */
.splash-inner { justify-content: space-between; text-align: center; }
.splash-top { display: flex; justify-content: flex-end; }
.splash-mid { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: auto 0; }
.splash-logo { width: 150px; height: auto; }
.splash-eyebrow { font-size: 0.74rem; letter-spacing: 0.14em; color: var(--stone); font-weight: 600; }
.splash-quote { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--charcoal); max-width: 320px; margin: 8px 0 0; }
.splash-actions { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 360px; margin: 0 auto; }
.splash-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 0.95rem; margin-top: 24px; }

/* Story onboarding */
.story-inner { gap: 18px; }
.story-progress { display: flex; gap: 6px; }
.story-dot { flex: 1; height: 3px; border-radius: var(--radius-pill); background: var(--sand); }
.story-dot.done { background: var(--gold); }
.story-dot.current { background: var(--gold-bright); }
.story-topbar { display: flex; align-items: center; gap: 14px; }
.story-topbar .story-progress { flex: 1; }

.story-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--linen);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (min-width: 700px) { .story-hero { aspect-ratio: 16 / 10; } }
.story-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-hero-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); font-size: 0.85rem; text-align: center; padding: 20px;
  background: linear-gradient(var(--linen), var(--sand));
}
/* Invisible left/right tap zones over the hero image — Instagram/Snapchat-
   story style navigation (right = next, left = previous). Sit above the
   image/chip since they come later in the DOM within the same stacking
   context; both are fully transparent so nothing visually changes. */
.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.story-tap-zone:disabled { cursor: default; }
.story-tap-prev { left: 0; }
.story-tap-next { right: 0; }
.story-hero-chip {
  position: relative;
  align-self: flex-start;
  margin: 14px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--charcoal);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.story-eyebrow { font-size: 0.74rem; letter-spacing: 0.12em; color: var(--stone); font-weight: 700; text-transform: uppercase; }
.story-title { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.25; margin: 6px 0 10px; color: var(--charcoal); }
.story-body { color: #4a463c; line-height: 1.5; margin: 0; }
.story-body p, .story-body ul { margin: 0 0 10px; }
.story-body p:last-child, .story-body ul:last-child { margin-bottom: 0; }
.story-body ul { padding-left: 20px; }
.story-body a { color: inherit; text-decoration: underline; }
.story-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }

/* Placeholder / "coming soon" */
.placeholder-inner { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.placeholder-logo { width: 150px; height: 150px; object-fit: contain; }
.placeholder-title { font-family: var(--font-display); font-size: 1.6rem; margin: 0; }
.placeholder-body { color: #4a463c; max-width: 380px; margin: 0 auto; line-height: 1.5; }

.empty-state { color: var(--stone); text-align: center; padding: 40px 20px; }

/* Shared chrome for secondary ("detail") screens reached from the coming-
   soon hub — back button row, title, and small stat-tile grid. Used by
   surf and weather with just the Back button as this row's only child
   (title sits in its own block below); mapBase.js/places.js instead put
   the title *and* Back in this same row (title first so `space-between`
   pushes Back to the far right) -- same class, no separate one built for
   it, since space-between already does exactly that once there are two
   children instead of one. */
.detail-topbar { display: flex; align-items: center; justify-content: space-between; }
.detail-topbar .lang-switch { align-self: auto; }
.detail-title { margin: 2px 0 0; font-size: 1.5rem; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.info-item { background: var(--linen); border-radius: var(--radius-lg); padding: 12px 14px; }
.info-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.info-value { font-size: 0.92rem; margin-top: 2px; }

/* Places menu (guest-app/public/js/views/places.js) -- the hotel/place
   picker that used to be a chip row floating on the map itself, now its
   own screen reached before the map instead of on top of it. */
.places-inner { gap: 18px; }
.place-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.place-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background: var(--linen);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
}
.place-card:active { background: var(--sand); }
.place-card-icon { font-size: 0.9rem; flex-shrink: 0; }
.place-card-name { font-family: var(--font-display); font-size: 0.78rem; line-height: 1.1; color: var(--charcoal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Small overview map below the place cards -- same MapLibre specificity
   guard as .map-base-wrap .map-base-el in mapBase.js's own styles (its
   own stylesheet, loaded on demand, would otherwise fight this for
   `position` depending on load order). */
.places-map-wrap {
  position: relative;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--linen);
}
.places-map-wrap .places-map-el { position: absolute; inset: 0; }
/* Embedded in the diria.world landing page (places.js `?embed=1`): the map
   alone fills the iframe. */
.places-map-wrap--embed { position: fixed; inset: 0; height: auto; border-radius: 0; }

/* Restaurants-only map (views/diningMap.js, framed into the landing page):
   fills the viewport; logo cards like the landing page's restaurant tiles. */
.dining-map-wrap { position: fixed; inset: 0; background: var(--linen); }
.dining-map-wrap .dining-map-el { position: absolute; inset: 0; }
.dining-pin {
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  padding: 6px 8px 4px; background: #fff; border: 1px solid var(--linen);
  border-radius: 14px; box-shadow: 0 6px 16px rgba(37, 35, 31, 0.14);
  cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s;
}
.dining-pin:hover, .dining-pin:focus-visible { border-color: var(--champagne); box-shadow: 0 8px 22px rgba(37, 35, 31, 0.2); outline: none; }
.dining-pin-logo { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.dining-pin img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.dining-pin-cuisine {
  flex: none; height: 14px; font-size: 10px; line-height: 14px; color: var(--stone);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.place-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--pearl);
  box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(37, 35, 31, 0.25);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
/* Hotel/property pins carry a real wordmark logo (wide, mostly-transparent
   PNG) instead of an emoji -- a round crop would clip a wide logo down to
   an unreadable sliver, so these get a rectangular card instead, sized to
   fit a landscape logo with `contain` (never cropped, always fully
   visible). */
.place-pin--logo {
  width: 64px;
  height: 40px;
  border-radius: 10px;
  padding: 4px 6px;
}
.place-pin--logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Surf & tides */
.surf-inner { gap: 16px; }

.surf-status-card {
  background: var(--charcoal);
  color: var(--pearl);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.surf-status-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.surf-status-height { font-family: var(--font-display); font-size: 2.1rem; }
.surf-status-trend { font-size: 0.85rem; font-weight: 700; }
.surf-status-trend--rising { color: #9FCBCB; }
.surf-status-trend--falling { color: var(--champagne); }
.surf-status-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); margin-top: 4px; }

.surf-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.surf-next-card { background: var(--linen); border-radius: var(--radius-lg); padding: 14px 16px; }
.surf-next-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.surf-next-time { font-family: var(--font-display); font-size: 1.5rem; margin-top: 2px; }
.surf-next-sub { font-size: 0.78rem; color: #4a463c; margin-top: 2px; }

.surf-day-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.surf-day-tab {
  flex: none;
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.surf-day-tab.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--pearl); }

.surf-chart-wrap { background: var(--pearl); border: 1px solid var(--sand); border-radius: var(--radius-lg); padding: 12px 8px 14px; }
.surf-chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.surf-gridline { stroke: var(--sand); stroke-width: 1; }
.surf-axis-label { fill: var(--stone); font-size: 9px; text-anchor: middle; }
.surf-area { fill: var(--sea); fill-opacity: 0.16; stroke: none; }
.surf-line { fill: none; stroke: var(--sea); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.surf-extreme-dot { fill: var(--gold); stroke: var(--pearl); stroke-width: 1.5; }
.surf-extreme-label { fill: var(--charcoal); font-size: 10px; font-weight: 700; }
.surf-now-line { stroke: var(--charcoal); stroke-width: 1; stroke-dasharray: 3 3; }
.surf-now-dot { fill: var(--charcoal); stroke: var(--pearl); stroke-width: 1.5; }
.surf-cursor-line { stroke: var(--charcoal); stroke-width: 1; }
.surf-cursor-dot { fill: var(--sea); stroke: var(--pearl); stroke-width: 1.5; }
.surf-readout { text-align: center; font-size: 0.78rem; color: var(--stone); margin-top: 6px; min-height: 1.1em; }

/* Weather */
.weather-inner { gap: 16px; }

/* "Weather & Surf" screen (views/conditions.js): a dark at-a-glance card,
   the tide chart right below, everything else behind "Show all details". */
.conditions-inner { gap: 16px; }
.conditions-heading { font-family: var(--font-display); font-weight: normal; font-size: 1.2rem; margin: 6px 0 0; color: var(--charcoal); }

.glance {
  background: var(--charcoal);
  color: var(--pearl);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.glance-weather { display: flex; align-items: center; gap: 14px; }
.glance-icon { font-size: 2.6rem; line-height: 1; }
.glance-now { flex: 1; min-width: 0; }
.glance-temp { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.glance-cond { color: var(--stone); font-size: 0.9rem; margin-top: 4px; }
.glance-today { text-align: right; }
.glance-hilo { font-family: var(--font-display); font-size: 1.25rem; }
.glance-hilo span { color: var(--stone); font-size: 1rem; }
.glance-label { font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); font-weight: 700; }
.glance-tides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid rgba(215, 196, 154, 0.25);
  padding-top: 16px;
}
.glance-weather + .glance-tides { margin-top: 0; }
.glance-value { font-family: var(--font-display); font-size: 1.35rem; margin-top: 2px; }
.glance-sub { font-size: 0.74rem; color: var(--stone); margin-top: 1px; }
.glance-trend { font-weight: 700; }
.glance-trend--rising { color: #9FCBCB; }
.glance-trend--falling { color: var(--champagne); }
.glance-sun { display: flex; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--stone); }
.glance-sun strong { color: var(--pearl); font-weight: 600; margin-left: 4px; }

.conditions-chart-head { display: flex; flex-direction: column; gap: 8px; padding: 2px 6px 6px; }
.conditions-chart-head .weather-section-label { margin-top: 0; }

.conditions-details { display: flex; flex-direction: column; }
.conditions-details-toggle { list-style: none; cursor: pointer; width: 100%; }
.conditions-details-toggle::-webkit-details-marker { display: none; }
.conditions-details-toggle::after { content: '▾'; margin-left: 8px; transition: transform 0.2s; }
.conditions-details[open] .conditions-details-toggle::after { transform: rotate(180deg); }
.conditions-details .when-open { display: none; }
.conditions-details[open] .when-open { display: inline; }
.conditions-details[open] .when-closed { display: none; }
.conditions-details-body { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.weather-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 18px 0 6px; }
.weather-hero-icon { font-size: 3rem; line-height: 1; }
.weather-hero-temp { font-family: var(--font-display); font-size: 3rem; line-height: 1.1; }
.weather-hero-condition { color: var(--stone); font-size: 0.95rem; }

.weather-section-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); font-weight: 700; margin-top: 6px; }

.weather-hourly-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.weather-hour-chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--linen);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  min-width: 64px;
}
.weather-hour-time { font-size: 0.72rem; color: var(--stone); font-weight: 600; }
.weather-hour-icon { font-size: 1.3rem; }
.weather-hour-temp { font-size: 0.88rem; font-weight: 700; }

.weather-daily-list { display: flex; flex-direction: column; gap: 6px; }
.weather-daily-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--linen);
  border-radius: var(--radius-lg);
  padding: 10px 16px;
}
.weather-daily-day { flex: 1; font-size: 0.85rem; font-weight: 600; }
.weather-daily-icon { font-size: 1.2rem; }
.weather-daily-temps { display: flex; gap: 8px; min-width: 64px; justify-content: flex-end; }
.weather-daily-high { font-weight: 700; }
.weather-daily-low { color: var(--stone); }

/* Chat Diria — full-height screen (fixed input at the bottom, scrolling
   message list) rather than the page-scroll layout other screens use.
   `.screen`'s own `min-height: 100vh` lets the box grow past the viewport
   with tall content, which would make the whole page scroll instead of just
   the message list — pin the height here so the flex children actually
   respect it. Three-rung fallback: plain `vh` first, then `--vh` (app.js,
   `window.innerHeight`-based -- correct even where `svh`/`dvh` aren't
   supported and mobile browser chrome is showing, unlike plain `vh` which
   then overshoots the visible area), then `svh` last. `svh` on purpose,
   not `dvh`: on at least one real device this floats the browser's own
   toolbar as an *overlay* on top of the page rather than shrinking the
   viewport for it, so `dvh` (which is supposed to track the shrunk state)
   never actually shrinks and content behind the toolbar gets visually cut
   off. `svh` is the fixed "smallest possible viewport" instead of a live
   value -- always sized as if that chrome is showing, so it can't be
   caught out by a browser whose "dynamic" isn't. */
.chat-screen { height: 100vh; height: calc(var(--vh, 1vh) * 100); height: 100svh; overflow: hidden; }
.chat-inner { flex: 1; min-height: 0; gap: 12px; }

.chat-title-row { display: flex; align-items: center; gap: 12px; }
.chat-logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }

.chat-status { display: flex; align-items: center; gap: 7px; }
.chat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stone); flex-shrink: 0; }
.chat-status-dot--connected { background: var(--gold-bright); }
.chat-status-dot--connecting { background: var(--champagne); animation: chat-pulse 1s infinite; }
@keyframes chat-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.chat-status-label { font-size: 0.72rem; color: var(--stone); font-weight: 600; }

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 2px;
  scroll-behavior: smooth;
}
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: var(--radius-lg); font-size: 0.88rem; line-height: 1.55; word-break: break-word; }
.chat-msg--user { align-self: flex-end; background: var(--charcoal); color: var(--pearl); border-bottom-right-radius: 4px; }
.chat-msg--agent { align-self: flex-start; background: var(--linen); color: var(--charcoal); border-bottom-left-radius: 4px; }
.chat-msg--system { align-self: center; background: none; color: var(--stone); font-size: 0.78rem; font-style: italic; max-width: 100%; padding: 2px; }
.chat-msg-sender { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px; opacity: 0.6; }
.chat-dots span { animation: chat-blink 1.2s infinite; opacity: 0; }
.chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

/* Fixed 2-column grid rather than a wrapping/scrolling row — with the
   default suggestions this reliably reads as two lines regardless of each
   question's text length (a flex-wrap row would break unpredictably
   depending on chip width). Follow-up levels can run much longer (18
   activities), so the row caps its own height and scrolls internally
   instead of squeezing the message list above it. */
.chat-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex-shrink: 0; max-height: 7.4rem; overflow-y: auto; }
.chat-suggestion-chip {
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.chat-suggestion-chip--back {
  grid-column: 1 / -1;
  border-color: var(--stone);
  color: var(--stone);
  text-align: left;
}
.chat-suggestion-chip:hover { background: var(--linen); }
.chat-suggestion-chip:active { background: var(--charcoal); border-color: var(--charcoal); color: var(--pearl); }

.chat-input-row { display: flex; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.chat-input {
  flex: 1;
  background: var(--pearl);
  border: 1px solid var(--champagne);
  border-radius: var(--radius-lg);
  color: var(--charcoal);
  font-size: 0.9rem;
  padding: 11px 14px;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.5;
}
.chat-input:focus { border-color: var(--gold); }
.chat-input::placeholder { color: var(--stone); }
.chat-input:disabled { opacity: 0.6; }
.chat-send-btn {
  background: var(--charcoal);
  border: none;
  border-radius: 50%;
  color: var(--pearl);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.chat-send-btn svg { width: 18px; height: 18px; }

/* Restaurant map — same full-viewport/overflow-hidden trick as chat-screen,
   since the map needs a container with a real pixel height rather than
   growing with page content. */
.restaurants-screen { height: 100vh; height: calc(var(--vh, 1vh) * 100); height: 100svh; overflow: hidden; }
.restaurants-inner { flex: 1; min-height: 0; gap: 12px; }
.restaurants-map-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--linen);
}
.restaurants-map { position: absolute; inset: 0; }

/* Self-hosted MapLibre base map (guest-app/public/js/views/mapBase.js) --
   same full-viewport/overflow-hidden trick as the restaurant map above. */
.map-base-screen { height: 100vh; height: calc(var(--vh, 1vh) * 100); height: 100svh; overflow: hidden; }
.map-base-inner { flex: 1; min-height: 0; gap: 12px; }
.map-base-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--linen);
}
/* Higher specificity than plain `.maplibregl-map` on purpose: MapLibre
   stamps that class onto this same element, and its own stylesheet
   (loaded on demand, after this one) sets `position: relative` there --
   same specificity as a lone `.map-base-el` rule would have, so the load
   order would decide the tie and silently collapse this element to
   `height: 0` (nothing paints, but no error either). Qualifying the
   selector with the parent wins regardless of load order. */
.map-base-wrap .map-base-el { position: absolute; inset: 0; }
/* Embedded in the diria.world landing page (mapBase.js `?embed=1`): the
   iframe is the frame, so no screen padding, column width or rounding. */
.screen.map-base-screen--embed { padding: 0; }
.map-base-screen--embed .screen-inner { max-width: none; }
.map-base-screen--embed .map-base-wrap { border-radius: 0; }

/* Filter chip row floating over the map (guest-app/public/js/views/
   mapBase.js) -- this place's own sub-categories (or the hotel/apartment
   fallback: building/pool/parking/path), icon-only. Replaced the old
   hotel-switcher row entirely: arriving here always happens via
   `?place=<id>` now, so there's no in-screen hotel switching left to do.
   `right` leaves room for MapLibre's own zoom control (top-right);
   horizontal scroll (no visible scrollbar) is the overflow strategy if
   more chips exist than fit on a phone screen. */
.map-chips {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 54px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  z-index: 5;
}
.map-chips::-webkit-scrollbar { display: none; }

.map-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 253, 248, 0.88);
  color: var(--charcoal);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(37, 35, 31, 0.2);
}
.map-chip.active { background: var(--charcoal); color: var(--pearl); }
.map-chip:disabled { opacity: 0.4; cursor: not-allowed; }
.map-chip--icon { padding: 8px; font-size: 1rem; line-height: 1; }

/* Round photo marker (restaurant's uploaded image via the CMS) -- falls
   back to a gold-initial circle if the image URL 404s, and to the plain
   gold pin (see .restaurant-card-btn area below) if there's no image at
   all yet. Ring color is a custom property, not a literal, so a specific
   marker (Tour Desk, ...) can override just --ring-color inline
   (buildPhotoMarkerEl's `ringColor` param, mapBase.js) while everything
   else -- including the "selected" state's ring -- stays in sync with it
   automatically. */
.restaurant-pin-photo {
  --ring-color: var(--gold);
  --ring-color-selected: var(--gold-bright);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--pearl);
  box-shadow: 0 0 0 2px var(--ring-color);
  overflow: hidden;
  background: var(--linen);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.restaurant-pin-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.restaurant-pin-photo--selected { transform: scale(1.2); box-shadow: 0 0 0 3px var(--ring-color-selected); }
.restaurant-pin-photo--fallback { background: var(--champagne); }

/* Marker info card — capped height (not full-screen) so it never fully
   covers the map, with its own scroll if content runs long. Bottom offset
   adds the iPhone home-indicator safe area on top of the usual 10px gap
   (needs `viewport-fit=cover` in index.html's viewport meta, otherwise
   env() here is always 0) -- without it, that gap is exactly where the
   home-indicator's own gesture-swipe overlay can obscure the card's
   bottom edge. */
.restaurant-card {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  max-height: 42%;
  overflow-y: auto;
  display: flex;
  gap: 12px;
  background: var(--pearl);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 10px 28px rgba(37, 35, 31, 0.22);
}
.restaurant-card-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: var(--stone);
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}
.restaurant-card-img { width: 68px; height: 68px; border-radius: var(--radius-lg); object-fit: cover; flex-shrink: 0; }
.restaurant-card-body { flex: 1; min-width: 0; padding-right: 20px; }
.restaurant-card-name { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.25; }
.restaurant-card-cuisine { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); font-weight: 700; margin-top: 2px; }
.restaurant-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.restaurant-card-btn {
  flex: 1 1 auto;
  min-width: 84px;
  border: 1px solid var(--champagne);
  background: transparent;
  color: var(--charcoal);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-align: center;
}
.restaurant-card-btn--primary { background: var(--charcoal); border-color: var(--charcoal); color: var(--pearl); }
.restaurant-card-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Restaurant detail page — a normal scrolling page like weather/surf, not
   the fixed-viewport map screen above. */
.restaurant-detail-inner { gap: 14px; }
.restaurant-detail-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.restaurant-detail-subtitle { color: var(--stone); margin: 2px 0 0; }
