/* The guest guide shares the brand but reads like a practical welcome page. */
.app-dialog.wide:has(.guest-guide-page) { width: min(930px, calc(100vw - 44px)); }
.guest-portal.guest-guide-page, .guest-portal.portal-with-guide { max-width: 800px; min-width: 0; }
.guest-guide-page { display: grid; gap: 13px; }
.guide-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 4px; }
.guide-brand > span:last-child { color: var(--text-muted); font-size: var(--font-small); text-align: right; }
.guide-brand .brand-wordmark { width: 120px; height: 30px; }
.guide-brand .brand-wordmark img { width: 133px; left: -7px; top: -9px; }
.guide-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid #cbdcd0;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.guide-welcome-copy { min-width: 0; }
.guide-welcome-copy > p {
  margin: 0;
  color: var(--accent-text);
  font-size: var(--font-label);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.guide-welcome-copy > h2 {
  margin: 5px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--weight-medium);
  line-height: 1.18;
  letter-spacing: -.035em;
  word-break: break-word;
}
.guide-welcome-photo { width: 150px; height: 118px; object-fit: cover; border-radius: var(--radius-md); flex: none; }
.guide-stay-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.guide-stay-times > div { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 12px 18px; }
.guide-stay-times > div + div { border-left: 1px solid var(--border); }
.guide-stay-times > div > span { display: inline-flex; color: var(--accent-text); flex: none; }
.guide-stay-times .icon { width: 24px; height: 24px; }
.guide-stay-times dt { color: var(--text-muted); font-size: var(--font-label); line-height: 1.4; }
.guide-stay-times dd { margin: 3px 0 0; font-size: 1.25rem; letter-spacing: -.025em; font-weight: var(--weight-medium); line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.guide-stay-times dd small { font-size: var(--font-small); color: var(--text-muted); font-weight: var(--weight-body); letter-spacing: 0; }
.guide-portal-actions { display: flex; justify-content: flex-end; margin: 12px 0 18px; }
.guest-guide-content { display: grid; gap: 16px; min-width: 0; container: guestguide / inline-size; }
.guest-guide-content button, .guest-guide-content .btn { min-height: 44px; }
.guide-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 8px;
}
.guide-shortcuts > button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 52px;
  padding: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--accent-text);
  font: inherit;
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  text-align: center;
  cursor: pointer;
}
.guide-shortcuts .icon { width: 19px; height: 19px; flex: none; }
.guide-shortcuts > button:hover { background: var(--accent-soft); border-color: var(--border-control); }
.guide-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; align-items: start; }
.guide-section {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-margin-block-start: 90px;
}
.guide-section-header { display: flex; align-items: center; gap: 10px; padding: 16px 16px 13px; }
.guide-section-icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--accent-text);
}
.guide-section-icon .icon { width: 20px; height: 20px; }
.guide-section h3 { font-size: var(--font-section); font-weight: var(--weight-medium); margin: 0; line-height: 1.35; overflow-wrap: anywhere; }
.guide-section h4 { font-size: var(--font-label); font-weight: var(--weight-medium); margin: 0 0 7px; line-height: 1.45; }
.guide-section-body { padding: 0 16px 16px; min-width: 0; display: grid; gap: 14px; }
.guide-section-body > * { min-width: 0; }
.guide-text { color: var(--text); font-size: var(--font-label); line-height: 1.65; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-hint { font-size: var(--font-small); line-height: 1.55; color: var(--text-muted); margin: 0; overflow-wrap: anywhere; }
.guide-address, .guide-credential { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: var(--surface-soft); border-radius: var(--radius-sm); min-width: 0; }
.guide-address > div, .guide-credential > div, .guide-contact > div { display: grid; gap: 4px; min-width: 0; }
.guide-address small, .guide-credential small, .guide-contact small { color: var(--text-muted); font-size: var(--font-label); line-height: 1.35; }
.guide-address strong, .guide-credential strong, .guide-contact strong { font-size: var(--font-body); font-weight: var(--weight-medium); line-height: 1.45; overflow-wrap: anywhere; }
.guide-password { font-variant-numeric: tabular-nums; }
.guide-copy { flex: none; gap: 5px; padding-inline: 9px; font-size: var(--font-label); white-space: nowrap; }
.guide-copy .icon { width: 16px; height: 16px; flex: none; }
.guide-action-label { font-size: var(--font-label); font-weight: var(--weight-medium); margin: 0 0 9px; }
.guide-route-block { display: grid; gap: 9px; }
.guide-route-block .guide-action-label { margin: 0; }
.guide-route-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.guide-outbound { min-width: 0; padding-inline: 8px; text-decoration: none; text-align: center; font-size: var(--font-label); }
.guide-outbound .icon { flex: none; }
.guide-route-buttons .guide-outbound { flex-direction: column; gap: 5px; min-height: 64px; padding-block: 8px; }
.guide-route-buttons .guide-outbound span { line-height: 1.3; overflow-wrap: normal; }
.guide-route-buttons .guide-outbound .icon { width: 20px; height: 20px; color: var(--accent-text); }
.guide-subsection { padding-top: 13px; border-top: 1px solid var(--border); }

/* Visible Web Mercator tile viewport with the pin fixed to its true center. */
.guide-map {
  position: relative;
  height: 225px;
  overflow: hidden;
  isolation: isolate;
  background: #e6eee8;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.guide-map[data-map-state="waiting"], .guide-map[data-map-state="loading"], .guide-map[data-map-state="unavailable"] {
  background: radial-gradient(circle, #cbd9ce 1px, transparent 1.4px) 0 0/18px 18px, var(--surface-soft);
}
.guide-map-tiles { position: absolute; top: 50%; left: 50%; width: 0; height: 0; filter: saturate(.72) contrast(.97); }
.guide-map-tiles img { position: absolute; width: 256px; height: 256px; max-width: none; }
.guide-map:not([data-map-state="ready"]) .guide-map-tiles { visibility: hidden; }
.guide-map-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: min(86%, 260px);
  transform: translate(-50%, calc(-100% - 9px));
  pointer-events: none;
  z-index: 2;
}
.guide-map-label {
  display: block;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 2px 8px #263f3020;
  color: var(--text);
  font-size: var(--font-label);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
.guide-map-pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--accent-text);
  color: white;
  box-shadow: 0 3px 10px #20372b50;
}
.guide-map-pin::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-top-color: var(--accent-text);
  border-bottom: 0;
}
.guide-map-pin .icon { width: 19px; height: 19px; }
.guide-map-controls { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; border: 1px solid var(--border-control); border-radius: 8px; overflow: hidden; background: var(--surface); z-index: 3; }
.guide-map-controls > button { width: 43px; height: 44px; min-height: 44px; display: grid; place-items: center; border: 0; background: var(--surface); color: var(--text); cursor: pointer; }
.guide-map-controls > button + button { border-top: 1px solid var(--border); }
.guide-map-controls > button:disabled { color: var(--text-subtle); opacity: .5; cursor: default; }
.guide-map-controls > button:not(:disabled):hover { background: var(--accent-soft); }
.guide-map-controls > button:focus-visible { outline-offset: -4px !important; }
.guide-map-controls .icon { width: 20px; height: 20px; }
.guide-map[data-map-state="unavailable"] .guide-map-controls { display: none; }
.guide-map-attribution { position: absolute; bottom: 0; right: 0; z-index: 3; padding: 3px 6px; max-width: 100%; background: #fffffff0; color: #34463c; font-size: 11px; line-height: 1.35; }
.guide-map-message {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 25px;
  z-index: 3;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
  font-size: var(--font-small);
  line-height: 1.45;
}
.guide-map[data-map-state="ready"] .guide-map-message { display: none; }
.guide-map[data-map-state="unavailable"] .guide-map-marker { top: 45%; }

.guide-connect, .guide-chat-action, .guide-qr-save { width: 100%; gap: 8px; }
.guide-qr-panel { display: grid; gap: 10px; padding: 12px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-md); }
.guide-qr-panel[hidden], .guide-qr-panel [hidden], .guest-guide-content [hidden] { display: none !important; }
.guide-qr-image { display: grid; place-items: center; }
.guide-qr-image canvas { display: block; width: min(100%,192px); height: auto; aspect-ratio: 1; background: white; image-rendering: pixelated; }
.guide-contact { display: grid; gap: 8px; }
.guide-contact div > span { color: var(--text-muted); font-size: var(--font-label); overflow-wrap: anywhere; }
.guide-contact-actions { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,108px),1fr)); gap: 8px; }
.guide-stay-details { display: grid; gap: 14px; }
.guide-stay-details > div + div { border-top: 1px solid var(--border); padding-top: 12px; }
.guide-amenities { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; gap: 10px 14px; }
.guide-amenities > li { min-width: 0; display: flex; align-items: flex-start; gap: 7px; color: var(--text); font-size: var(--font-label); line-height: 1.45; overflow-wrap: anywhere; }
.guide-amenities .icon { color: var(--accent-text); width: 17px; height: 17px; flex: none; margin-top: 2px; }
.guide-nearby-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.guide-nearby-buttons .guide-outbound { min-height: 48px; font-size: var(--font-label); }
.guide-nearby-buttons .icon { color: var(--accent-text); }
.guide-copy-feedback { color: var(--warning); font-size: var(--font-label); }
.guide-copy-fallback { position: fixed; top: 0; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@container guestguide (min-width: 43rem) {
  .guide-grid { grid-template-columns: minmax(0,1.28fr) minmax(0,1fr); grid-template-areas: "arrival wifi" "arrival help" "stay nearby"; grid-template-rows: max-content auto auto; gap: 14px; }
  #guide-arrival { grid-area: arrival; }
  #guide-wifi { grid-area: wifi; }
  #guide-help { grid-area: help; }
  #guide-stay { grid-area: stay; }
  #guide-nearby { grid-area: nearby; }
  .guide-grid:not(:has(#guide-nearby)) #guide-stay { grid-column: 1/-1; }
}
@container guestguide (max-width: 30rem) {
  .guide-amenities { gap: 10px; }
  .guide-shortcuts > button { flex-direction: column; gap: 5px; padding: 8px 4px; }
}
@container guestguide (max-width: 20rem) {
  .guide-section-header { padding: 13px 12px 11px; }
  .guide-section-body { padding: 0 12px 12px; gap: 12px; }
  .guide-map { height: 205px; }
  .guide-map-marker { width: 38px; max-width: none; }
  .guide-map-label { position: absolute; top: calc(100% + 17px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 150px; }
  .guide-amenities, .guide-nearby-buttons { grid-template-columns: minmax(0,1fr); }
  .guide-route-buttons .guide-outbound { padding-inline: 3px; }
  .guide-address, .guide-credential { align-items: flex-start; }
  .guide-copy { padding-inline: 7px; }
}
@container guestguide (max-width: 15rem) {
  .guide-shortcuts { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .guide-shortcuts > button { flex-direction: row; justify-content: flex-start; padding: 9px 10px; }
}
@media (max-width: 580px) {
  .guest-guide-page, .guest-guide-content { gap: 13px; }
  .guide-welcome { padding: 16px; align-items: flex-start; flex-wrap: wrap; }
  .guide-welcome-photo { width: 100%; height: 130px; }
  .guide-stay-times > div { gap: 7px; align-items: flex-start; padding: 12px 10px; }
  .guide-stay-times .icon { width: 19px; height: 19px; margin-top: 2px; }
  .guide-stay-times dd { font-size: 1.1rem; }
  .guide-stay-times dd small { display: block; }
  .guide-brand > span:last-child { max-width: 45%; }
  .guide-portal-actions .btn { width: 100%; }
}
