:root {
  --guide-blue: #0864bd;
  --guide-pink: #df0757;
  --ink: #202b36;
  --muted: #606b77;
  --line: #e0e6eb;
  --green: var(--guide-blue);
  --shadow: 0 4px 20px #18304814;
}
.guide-page {
  background: #f5f7fa;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.guide-page button,
.guide-page a,
.guide-page input {
  touch-action: manipulation;
}
.category-chips,
.place-category,
.list-category,
.detail-play {
  display: none;
}
.language-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  font-size: 14px !important;
  color: var(--ink);
}
.language-trigger .guide-icon {
  width: 20px;
  height: 20px;
  color: var(--guide-blue);
}
.account-link {
  border-radius: 24px;
  border-color: var(--guide-blue);
  background: var(--guide-blue);
  color: white;
  padding-inline: 20px;
  font-weight: 600;
}
.guide-primary,
.guide-secondary {
  min-height: 48px;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 15px !important;
  font-weight: 650;
  text-align: center;
}
.guide-primary {
  background: var(--guide-blue);
  border: 1px solid var(--guide-blue);
  color: white;
}
.guide-secondary {
  background: white;
  border: 1px solid #b9c8d7;
  color: var(--ink);
}
.guide-primary:hover {
  background: #07559e;
}
.guide-secondary:hover {
  background: #f2f6fb;
}
.guide-dialog {
  z-index: 1300;
}
.modal-backdrop {
  z-index: 1250;
  background: #132b41;
}
.modal-backdrop.show {
  opacity: 0.45;
}
.guide-dialog .modal-dialog {
  max-width: 480px;
}
.guide-dialog .modal-content {
  border: 0;
  border-radius: 24px;
  padding: 28px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-shadow: 0 16px 80px #0d24433b;
}
.sheet-grip {
  display: none;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.dialog-eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 8px;
}
.dialog-heading h2 {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}
.language-dialog .dialog-heading {
  align-items: center;
  margin-bottom: 20px;
}
.map-actions > button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-actions .map-view-options {
  position: absolute;
  bottom: 0;
  inset-inline-end: 60px;
  display: flex;
  gap: 8px;
  width: 220px;
  padding: 12px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}
.map-actions .map-view-options button {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 0;
  height: auto;
  min-height: 76px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.map-view-options button[aria-pressed='true'] {
  color: var(--guide-blue);
  background: #edf5ff;
  border-color: var(--guide-blue);
}
#guide-map .guide-map-attribution {
  bottom: var(--map-attribution-bottom, 0px) !important;
}
.dialog-close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-top: -8px;
  margin-inline-end: -8px;
  border: 0;
  background: #f0f4f8;
  border-radius: 50%;
  font-size: 26px !important;
  line-height: 1;
  color: #344456;
}
.dialog-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 24px;
}
.auth-form,
.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-form label {
  font-size: 13px;
  font-weight: 650;
  margin-top: 6px;
}
.auth-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 1px solid #b9c8d7;
  border-radius: 10px;
  padding: 10px 12px;
  background: white;
  font-size: 16px;
  color: var(--ink);
}
.auth-form input:focus {
  outline: 2px solid var(--guide-blue);
  outline-offset: 1px;
}
.auth-form input[readonly] {
  background: #f4f7fa;
  color: var(--muted);
}
.auth-form > .guide-primary {
  margin-top: 16px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-inline-end: 64px;
}
.password-reveal {
  position: absolute;
  inset-inline-end: 2px;
  top: 2px;
  height: 44px;
  min-width: 56px;
  border: 0;
  border-radius: 8px;
  background: white;
  color: var(--guide-blue);
  font-size: 12px !important;
  font-weight: 600;
}
.password-label {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.auth-text-button,
.auth-switch button {
  border: 0;
  background: none;
  color: var(--guide-blue);
  font-size: 13px !important;
  min-height: 44px;
  padding: 4px 0;
  font-weight: 600;
}
.auth-switch {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}
.auth-intro-actions {
  display: grid;
  gap: 12px;
}
.auth-error {
  border: 1px solid #f0bfc9;
  border-radius: 10px;
  background: #fff1f4;
  color: #9b1439;
  padding: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.language-options {
  display: grid;
  gap: 8px;
}
.language-options a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.language-options a:hover {
  background: #f5f8fc;
}
.language-options a[aria-current='true'] {
  background: #eef5ff;
  border-color: var(--guide-blue);
  font-weight: 650;
}
.language-code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 32px;
  border-radius: 6px;
  background: #f0f3f6;
  color: #536170;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.language-options a[aria-current='true'] .language-code {
  background: var(--guide-blue);
  color: white;
}
.language-check {
  color: var(--guide-blue);
  margin-inline-start: auto;
  font-size: 20px;
}
body[data-welcome='true'] {
  overflow: auto;
}
body[data-welcome='true'] .guide-shell,
body[data-welcome='true'] .mobile-tabs {
  display: none;
}
.guide-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  max-width: 1280px;
  margin: auto;
  min-height: calc(100dvh - 80px);
  padding: 40px;
  gap: 64px;
  align-items: center;
}
.welcome-mobile-header {
  display: none;
}
.welcome-photo {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  background: #dbe8ee;
  border-radius: 24px;
  overflow: hidden;
}
.welcome-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
}
.welcome-photo-label {
  position: absolute;
  bottom: 20px;
  inset-inline-start: 20px;
  background: white;
  color: var(--ink);
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 650;
}
.welcome-photo-label .guide-icon {
  color: var(--guide-blue);
  width: 20px;
  height: 20px;
}
.welcome-copy {
  max-width: 480px;
  padding-block: 24px;
}
.welcome-eyebrow {
  color: var(--guide-blue);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.welcome-copy h1 {
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -1.4px;
  margin: 0 0 20px;
  max-width: 420px;
}
.welcome-description {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 24px;
}
.welcome-facts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.welcome-facts > span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 550;
  color: #405163;
}
.welcome-facts .guide-icon {
  height: 18px;
  width: 18px;
  color: var(--guide-blue);
}
.welcome-language {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #cdd8e4;
  border-radius: 12px;
  color: var(--ink);
  text-align: start;
  margin-bottom: 24px;
}
.welcome-language > .guide-icon {
  color: var(--guide-blue);
}
.welcome-language > span:nth-child(2) {
  flex: 1;
}
.welcome-language small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}
.welcome-language strong {
  font-size: 14px;
  font-weight: 650;
}
.welcome-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}
.guest-link {
  display: block;
  border: 0;
  background: none;
  padding: 12px;
  margin: 12px auto 0;
  color: var(--guide-blue);
  font-size: 14px !important;
  min-height: 44px;
  font-weight: 600;
}
.welcome-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
  line-height: 1.6;
}
.guide-success {
  position: fixed;
  top: 88px;
  inset-inline-end: 24px;
  z-index: 1150;
  max-width: min(360px, 90vw);
  padding: 12px 16px;
  background: #edf8f2;
  color: #175333;
  border: 1px solid #a8d9bd;
  border-radius: 12px;
  font-size: 13px;
}
@media (min-width: 768px) and (min-height: 551px), (min-width: 1024px) {
  .guide-header {
    height: 72px;
    padding: 12px 28px;
  }
  .guide-brand strong {
    font-size: 24px;
  }
  .guide-brand small {
    font-size: 11px;
  }
  .guide-shell {
    --rail-width: 340px;
    --strip-height: 148px;
    height: calc(100dvh - 72px);
  }
  .detail-play {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--guide-blue);
    border: 0;
    border-radius: 10px;
    color: white;
    min-height: 44px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 650;
  }
  .detail-play .guide-icon {
    width: 18px;
    height: 18px;
  }
  #detail-play-icon {
    display: flex;
  }
  .mobile-tabs {
    display: none;
  }
  .guide-panel,
  .guide-shell[data-story='true'] .guide-panel,
  .guide-shell[data-mode='places'] .guide-panel {
    display: flex;
    top: 20px;
    bottom: calc(var(--strip-height) + var(--player-height) + 20px);
    width: var(--rail-width);
    inset-inline-start: 20px;
    inset-inline-end: auto;
    height: auto !important;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .map-tools {
    inset-inline-start: calc(var(--rail-width) + 56px);
    inset-inline-end: 80px;
    top: 20px;
  }
  .guide-search {
    max-width: 420px;
  }
  .guide-shell[data-story='true'] .map-tools {
    display: block;
  }
  .map-status {
    inset-inline-start: calc(var(--rail-width) + 56px);
    top: 80px;
  }
  .selected-stop {
    display: none;
  }
  .panel-handle {
    display: none;
  }
  .panel-heading,
  .guide-shell[data-story='true'] .panel-heading,
  .guide-shell[data-mode='places'] .panel-heading {
    display: flex;
    padding: 20px 20px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-bottom: 1px solid var(--line);
  }
  .panel-heading h1 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 4px;
  }
  .panel-heading p {
    font-size: 12px;
    margin: 0;
  }
  .view-switch {
    display: flex;
    background: #f0f4f8;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
  }
  .view-switch button {
    flex: 1;
    border: 0;
    border-radius: 6px;
    background: none;
    color: var(--muted);
    font-size: 13px;
    padding: 8px;
    min-height: 40px;
  }
  .view-switch button[aria-pressed='true'] {
    background: white;
    color: var(--guide-blue);
    box-shadow: 0 1px 4px #16355312;
    font-weight: 650;
  }
  .panel-content,
  .guide-shell[data-story='true'] .panel-content,
  .guide-shell[data-mode='places'] .panel-content {
    padding: 16px 20px;
    overflow: auto;
    min-height: 0;
    flex: 1;
  }
  .landmark-heading,
  .guide-shell[data-story='true'] .landmark-heading {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .landmark-photo,
  .guide-shell[data-story='true'] .landmark-photo {
    height: 160px;
    width: 100%;
    border-radius: 10px;
    background: #e6eef5;
  }
  .guide-shell[data-story='true'] .landmark-heading > div:last-child {
    padding: 0;
  }
  .landmark-heading h2,
  .guide-shell[data-story='true'] .landmark-heading h2 {
    font-size: 21px;
    line-height: 1.3;
    margin: 0;
  }
  .place-index {
    color: var(--guide-blue);
    font-size: 11px;
  }
  .story-preview {
    font-size: 14px;
    line-height: 1.7;
    margin: 12px 0;
    -webkit-line-clamp: 3;
  }
  .guide-shell[data-story='true'] #full-story,
  .guide-shell[data-story='true'] .guide-note {
    padding-inline: 0;
  }
  .guide-shell[data-story='true'] #story-text {
    font-size: 14px;
    line-height: 1.75;
    margin: 12px 0;
  }
  .guide-note {
    font-size: 12px;
    line-height: 1.6;
  }
  #audio-status,
  #audio-status:empty {
    display: block;
    min-height: 1.6em;
  }
  .panel-footer,
  .guide-shell[data-story='true'] .panel-footer {
    display: flex;
    padding: 12px;
    gap: 8px;
    border-top: 1px solid var(--line);
  }
  .panel-footer button {
    min-height: 44px;
    font-size: 11px;
  }
  .panel-footer .story-button {
    background: var(--guide-blue);
    border-radius: 8px;
    color: white;
    font-size: 12px;
    padding-inline: 12px;
  }
  .guide-shell[data-mode='places'] .panel-footer {
    display: none;
  }
  .route-strip {
    padding: 16px 24px 12px;
    border-radius: 0;
    box-shadow: 0 -4px 16px #18304808;
  }
  .route-strip:before {
    display: none;
  }
  .route-strip-heading {
    margin-bottom: 12px;
    max-width: 480px;
  }
  .route-strip-heading > strong {
    font-size: 15px;
  }
  .route-strip-heading > span {
    font-size: 12px;
  }
  .route-stops {
    gap: 16px;
  }
  .route-stops > button {
    width: 56px;
  }
  #stop-strip {
    gap: 12px;
    height: 88px;
  }
  #stop-strip li,
  #stop-strip button {
    width: 100px;
    flex-basis: 100px;
  }
  .strip-photo {
    height: 64px;
  }
  .strip-caption {
    font-size: 11px;
  }
  .strip-number {
    min-width: 18px;
  }
  .route-stops > button small {
    font-size: 10px;
  }
  .mobile-player .audio-player {
    max-width: 720px;
    margin: auto;
  }
  .mobile-player .audio-toggle {
    width: 44px;
  }
  .mobile-player .audio-track {
    gap: 20px;
  }
  .mobile-player .audio-time {
    font-size: 12px;
  }
  .mobile-player .player-extra {
    width: 44px;
  }
  .mobile-player #audio-current {
    display: inline;
  }
  .mobile-player .audio-time {
    display: flex;
    gap: 8px;
  }
  .guide-shell[data-story='true'] .story-back {
    display: none;
  }
  .guide-shell[data-story='true'] .map-actions {
    display: flex;
  }
  .guide-pin {
    width: 48px;
    height: 48px;
  }
  .guide-pin > span {
    top: 41px;
  }
  .guide-pin.selected {
    border-color: var(--guide-pink);
  }
}
@media (min-width: 1200px) {
  .guide-shell {
    --rail-width: 360px;
  }
  .guide-panel,
  .guide-shell[data-story='true'] .guide-panel,
  .guide-shell[data-mode='places'] .guide-panel {
    inset-inline-start: 24px;
    top: 24px;
    bottom: calc(var(--strip-height) + var(--player-height) + 24px);
  }
  .map-tools {
    top: 24px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) and (min-height: 551px) {
  .guide-shell {
    --rail-width: 300px;
  }
  .panel-heading,
  .panel-content {
    padding-inline: 16px;
  }
  .guide-welcome {
    gap: 28px;
    padding: 28px;
  }
  .welcome-photo {
    min-height: 400px;
  }
  .welcome-copy h1 {
    font-size: 34px;
  }
  .welcome-facts {
    gap: 12px;
  }
  .welcome-actions {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px), (max-width: 1023px) and (max-height: 550px) {
  .guide-dialog .modal-dialog {
    margin: 0;
    max-width: none;
    display: flex;
    align-items: flex-end;
    min-height: 100%;
    pointer-events: none;
  }
  .guide-dialog .modal-content {
    width: 100%;
    max-height: calc(100dvh - 24px);
    border-radius: 24px 24px 0 0;
    padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
    pointer-events: auto;
  }
  .guide-dialog .modal-dialog {
    transform: none;
    transition: none;
  }
  .sheet-grip {
    display: block;
    width: 36px;
    height: 4px;
    background: #b8c3ce;
    border-radius: 4px;
    margin: -12px auto 20px;
    flex-shrink: 0;
  }
  .dialog-heading h2 {
    font-size: 25px;
  }
  .dialog-description {
    margin-bottom: 20px;
  }
  .auth-switch {
    margin-top: 12px;
  }
  .language-options {
    grid-template-columns: 1fr 1fr;
  }
  .language-options a {
    font-size: 13px;
    gap: 8px;
    padding: 8px;
  }
  .language-code {
    width: 30px;
    font-size: 10px;
  }
  .language-check {
    font-size: 16px;
  }
  .guide-welcome {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    min-height: 100dvh;
    max-width: 640px;
    background: white;
  }
  .welcome-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
  }
  .welcome-mobile-header .guide-brand strong {
    font-size: 23px;
  }
  .welcome-mobile-header .guide-brand small {
    font-size: 10px;
  }
  .welcome-mobile-header .language-trigger {
    border: 0;
    padding: 8px;
    gap: 6px;
    font-size: 12px !important;
  }
  .welcome-photo {
    min-height: 0;
    width: calc(100% - 32px);
    height: clamp(160px, 28dvh, 260px);
    flex-shrink: 0;
    align-self: center;
    border-radius: 16px;
  }
  .welcome-photo-label {
    bottom: 12px;
    inset-inline-start: 12px;
    font-size: 11px;
    padding: 8px 12px;
    gap: 6px;
  }
  .welcome-copy {
    padding: 24px 24px calc(20px + env(safe-area-inset-bottom));
    max-width: none;
    width: 100%;
  }
  .welcome-copy h1 {
    font-size: 34px;
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 360px;
    margin-bottom: 12px;
  }
  .welcome-eyebrow {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .welcome-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }
  .welcome-facts {
    gap: 12px;
    margin-bottom: 20px;
  }
  .welcome-facts > span {
    font-size: 11px;
  }
  .welcome-language {
    margin-bottom: 16px;
    padding: 10px 12px;
  }
  .welcome-actions {
    gap: 10px;
  }
  .welcome-actions button {
    font-size: 13px !important;
    padding-inline: 10px;
  }
  .guest-link {
    font-size: 13px !important;
    margin-top: 8px;
  }
  .welcome-note {
    margin-top: 12px;
  }
  .guide-success {
    top: 12px;
    inset-inline-end: 12px;
  }
  .guide-search .guide-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
  }
}
@media (max-width: 359px) {
  .guide-dialog .modal-content {
    padding-inline: 16px;
  }
  .language-options {
    grid-template-columns: 1fr;
  }
  .welcome-copy {
    padding-inline: 20px;
  }
  .welcome-copy h1 {
    font-size: 30px;
  }
  .welcome-facts {
    gap: 8px;
  }
  .welcome-facts > span {
    font-size: 10px;
  }
}
@media (max-width: 1023px) and (max-height: 550px) {
  .guide-welcome {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
    gap: 24px;
    padding: 20px;
  }
  .welcome-mobile-header {
    grid-column: 1/-1;
    padding: 0;
  }
  .welcome-photo {
    height: 100%;
    width: 100%;
    min-height: 240px;
  }
  .welcome-copy {
    padding: 0;
  }
  .welcome-copy h1 {
    font-size: 30px;
  }
  .welcome-description {
    font-size: 13px;
  }
  .welcome-facts {
    margin-bottom: 12px;
  }
  .welcome-eyebrow {
    display: none;
  }
  .guide-dialog .modal-content {
    padding-top: 20px;
  }
  .dialog-description {
    margin-bottom: 12px;
  }
}

.language-flag {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
}
.language-trigger .language-chevron,
.welcome-language .language-chevron {
  width: 18px;
  height: 18px;
  margin-inline-start: auto;
  align-self: center;
  display: block;
  color: var(--muted);
}
.welcome-language .language-name {
  flex: 1;
}
.route-stops > button {
  align-self: center;
  justify-content: center;
}
.selected-stop {
  height: auto;
  min-height: 88px;
  gap: 10px;
  padding: 8px;
}
.selected-stop #open-stop {
  flex: 0 0 52px;
  border: 0;
  background: transparent;
}
.stop-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stop-copy .stop-meta small {
  margin: 0;
}
.selected-stop .stop-read {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 56px;
  padding: 6px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: white;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 650;
  text-align: center;
}
.stop-read span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  min-width: 56px;
  width: 100%;
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--guide-blue);
  line-height: 1;
  text-align: center;
}
.stop-read:hover span,
.stop-read:focus-visible span {
  background: #0758a4;
}
.guide-user-location {
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
  background: #1466d4;
  box-shadow: 0 1px 6px #18304855;
}
.guide-success {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
}
.guide-success p {
  margin: 0;
}
.guide-success button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  font-size: 22px;
  border-radius: 8px;
}
.dialog-close .guide-icon,
.guide-success button .guide-icon {
  display: block;
  width: 20px;
  height: 20px;
}
@media (max-width: 767px), (max-width: 1023px) and (max-height: 550px) {
  .map-tools {
    display: none;
  }
  .map-status {
    top: 12px;
  }
  .guide-shell[data-mode='places'] .guide-panel {
    top: 0;
  }
}

/* Live welcome spacing polish: use spare mobile height for the image. */
body[data-welcome='true'] .guide-welcome { padding-bottom: 24px; }
@media (max-width: 767px) {
  body[data-welcome='true'] .guide-welcome { padding-bottom: 0; }
  body[data-welcome='true'] .welcome-photo { flex-grow: 1; }
  body[data-welcome='true'] .welcome-copy { flex-shrink: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  body[data-welcome='true'] .welcome-note { margin-bottom: 0; }
}
/* Read gallery retains the existing image frame. */
.landmark-photo.story-gallery { position: relative; display: block; }
.story-gallery-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.story-gallery-track::-webkit-scrollbar { display: none; }
.story-gallery-slide { flex: 0 0 100%; min-width: 0; height: 100%; scroll-snap-align: start; }
.story-gallery-slide img { width: 100%; height: 100%; object-fit: cover; }
.story-gallery-dots { position: absolute; bottom: 0; inset-inline: 0; display: flex; justify-content: center; pointer-events: none; }
.story-gallery-dots[hidden] { display: none; }
.story-gallery-dots button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; background: transparent; pointer-events: auto; }
.story-gallery-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: white; box-shadow: 0 0 0 1px #26384c80, 0 1px 4px #0007; }
.story-gallery-dots button[aria-current='true']::before { background: var(--guide-blue); box-shadow: 0 0 0 2px white; }
.story-gallery-dots button:focus-visible { outline: 2px solid var(--guide-blue); outline-offset: -4px; border-radius: 8px; }
@media (min-width: 768px) and (min-height: 551px), (min-width: 1024px) {
  body[data-welcome='true'] .guide-header .language-trigger { display: none; }
}
@media (max-width: 767px), (max-width: 1023px) and (max-height: 550px) {
  .selected-stop { min-height: 60px; padding: 8px 12px; }
  .stop-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
  .stop-copy strong { grid-column: 1; -webkit-line-clamp: 1; }
  .stop-meta { display: contents; }
  .stop-copy .stop-meta small { grid-column: 1; grid-row: 2; }
  .selected-stop .stop-read { grid-column: 2; grid-row: 1 / 3; padding: 0; }
}

/* Local review: route title, dismissible notice and joined mobile stop strip. */
.map-tour-pill {
  position: absolute;
  z-index: 600;
  top: 20px;
  inset-inline-start: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 12px;
  pointer-events: none;
}
.map-tour-pill .guide-icon { width: 16px; height: 16px; color: var(--guide-blue); }
.map-tour-pill strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.map-status { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; }
#map-status-text { flex: 1; min-width: 0; }
#map-status-dismiss {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--muted);
  background: transparent;
}
#map-status-dismiss:hover { background: #f0f4f8; }
#map-status-dismiss .guide-icon { width: 18px; height: 18px; }
@media (min-width: 768px) and (min-height: 551px), (min-width: 1024px) {
  .guide-shell { --strip-height: 116px; }
  .map-tour-pill { inset-inline-start: calc(var(--rail-width) + 56px); }
  .map-tools { top: 64px; }
  .map-status { top: 120px; }
}
@media (min-width: 768px) and (max-width: 1199px) and (min-height: 551px) {
  .map-tour-pill { max-width: 160px; }

}
@media (max-width: 767px), (max-width: 1023px) and (max-height: 550px) {
  .map-tour-pill { top: 12px; inset-inline-start: 12px; max-width: calc(100% - 24px); }
  .map-status { top: 56px; inset-inline: 12px; max-width: none; }
  .guide-shell { --strip-height: 160px; }
  .route-strip { padding: 0 12px 8px; border-radius: 12px 12px 0 0; }
  .route-strip::before { display: none; }
  .route-strip .selected-stop {
    position: relative;
    inset: auto;
    bottom: auto;
    margin-inline: -12px;
    min-height: 60px;
    height: 60px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 12px 12px 0 0;
    box-shadow: none;
  }
  .route-stops { padding-top: 8px; height: 92px; }
  .guide-shell[data-story='true'], .guide-shell[data-mode='places'] { --strip-height: 100px; }
  .guide-shell[data-story='true'] .guide-panel, .guide-shell[data-mode='places'] .guide-panel {
    border-end-start-radius: 12px;
    border-end-end-radius: 12px;
    overflow: hidden;
  }
  .guide-shell[data-story='true'] .map-tour-pill, .guide-shell[data-mode='places'] .map-tour-pill { display: none; }
}
@media (max-width: 1023px) and (max-height: 550px) {
  .guide-shell { --strip-height: 136px; }
  .route-strip .selected-stop { height: 60px; }
  .route-stops { height: 68px; }
  .guide-shell[data-story='true'], .guide-shell[data-mode='places'] { --strip-height: 76px; }
}

.map-actions > button { width: 44px; height: 44px; font-size: 22px; }
.map-actions > button .guide-icon { width: 18px; height: 18px; }
.map-actions { gap: 8px; }

.route-strip .selected-stop { touch-action: pan-y pinch-zoom; user-select: none; }
#my-location { display: grid; place-items: center; padding: 0; color: var(--ink); }
#my-location .guide-icon { width: 20px; height: 20px; stroke-width: 1.8; }

/* Playback options occupy only their new row below the existing controller. */
.guide-shell { --player-height: 93px; }
.guide-shell .mobile-player { height: var(--player-height); }
.player-settings { display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; max-width: 720px; margin: auto; padding: 4px 8px; }
.player-settings button { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-width: 0; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 18px; background: #f5f7fa; color: var(--ink); font-size: 11px; line-height: 13px; }
.player-settings button[aria-pressed='true'] { background: #e6f0ff; border-color: #b5d1ed; color: var(--guide-blue); }
.player-settings button.is-unavailable { visibility: hidden; pointer-events: none; }
.mode-switch { width: 24px; height: 14px; flex-shrink: 0; border-radius: 8px; background: #a8b0b9; padding: 2px; }
.mode-switch::after { content: ''; display: block; width: 10px; height: 10px; border-radius: 50%; background: white; }
[aria-pressed='true'] .mode-switch { background: var(--guide-blue); }
[aria-pressed='true'] .mode-switch::after { transform: translateX(10px); }
[dir='rtl'] [aria-pressed='true'] .mode-switch::after { transform: translateX(-10px); }
@media (max-width: 1023px) and (max-height: 550px) { .guide-shell { --player-height: 89px; } }

/* Without trigger areas, keep Auto next within the existing controller. */
.guide-shell.has-inline-auto-next { --player-height: 49px; }
.has-inline-auto-next .player-settings { display: none; }
.has-inline-auto-next .mobile-player .audio-player .audio-track { grid-template-rows: auto 24px; }
.has-inline-auto-next .mobile-player .audio-caption { gap: 6px; }
.has-inline-auto-next .mobile-player .audio-caption #audio-title { flex: 1; min-width: 0; }
.has-inline-auto-next .mobile-player #auto-next { flex: none; margin-inline-start: 0; min-height: 28px; max-width: min(28%, 144px); padding: 5px 8px; border: 1px solid var(--line); border-radius: 14px; background: #f5f7fa; color: var(--ink); font-size: 10px; line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.has-inline-auto-next .mobile-player #auto-next[aria-pressed='true'] { background: #e6f0ff; border-color: #b5d1ed; color: var(--guide-blue); }
.has-inline-auto-next .mobile-player .audio-player .audio-track input { height: 24px; }
@media (max-width: 1023px) and (max-height: 550px) { .guide-shell.has-inline-auto-next { --player-height: 45px; } }

/* Keep the control glyphs level with the seek bar, retaining their hit areas. */
.mobile-player .audio-toggle > :is(span, svg), .mobile-player .player-extra > .guide-icon { transform: translateY(7px); }
.has-inline-auto-next .mobile-player .audio-toggle > :is(span, svg), .has-inline-auto-next .mobile-player .player-extra > .guide-icon { transform: none; }
.mobile-player .audio-toggle > svg { position: relative; top: -1.5px; }

/* The selected-stop card already identifies the landmark. */
.mobile-player #audio-title { display: none; }
