/* Route guide: Figma 25:4165. All rules stay inside #guidePanel.
   <=1199: single pane, max720; >=1200: map/content, max1200.
   SVGs retain their intrinsic root dimensions. Only the whole map group scales. */
#guidePanel.route-guide {
  --guide-bg: #ffffff;
  --guide-surface: #ffffff;
  --guide-ink: #181818;
  --guide-muted: #686868;
  --guide-line: #e4e4e4;
  --guide-lime: var(--accent, #d5fa44);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 720px;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  overflow: hidden;
  background: var(--guide-bg);
  color: var(--guide-ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color-scheme: light;
  isolation: isolate;
}
#guidePanel.route-guide[hidden] { display: none !important; }
.route-guide *, .route-guide *::before, .route-guide *::after { box-sizing: border-box; }
.route-guide button, .route-guide input, .route-guide textarea { font: inherit; }
.route-guide button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.route-guide button:disabled { cursor: default; opacity: .45; }
.route-guide :focus-visible { outline: 2px solid #173e2a; outline-offset: 3px; }
.route-guide h1, .route-guide h2, .route-guide h3, .route-guide p, .route-guide figure { margin: 0; }
.route-guide button { color: var(--guide-ink); box-shadow: none; }
.route-guide .guide-overview {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
}
.guide-overview-layout { min-width: 0; }
.route-guide .guide-map {
  position: relative;
  width: 100%;
  height: 364px;
  min-height: 364px;
  overflow: hidden;
  border-radius: 22px;
  background: #f0f0f0;
  isolation: isolate;
}
.guide-map-scene, .guide-map-markers {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 375px;
  height: 364px;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
}
.guide-map-scene { pointer-events: none; z-index: 0; }
.guide-map-markers { z-index: 1; pointer-events: none; }
.route-guide .guide-map-scene > img.guide-layer {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  pointer-events: none;
}
.guide-layer-base, .guide-layer-markings { left: 0; top: 0; }
.guide-layer-land { left: -30px; top: -22.75px; }
.guide-layer-water { left: 287.8125px; top: -18.2px; }
.guide-layer-paths { left: -30px; top: 21.84px; }
.guide-layer-roads { left: 0; top: -14.216px; }
.guide-layer-route-outline { left: 111.0375px; top: 85.9033px; }
.guide-layer-route { left: 111.76875px; top: 86.623px; }
.guide-map-label { position: absolute; font-size: 4.759px; font-weight: 400; line-height: normal; color: var(--guide-muted); white-space: nowrap; }
.guide-label-town { left: 80.625px; top: 78.26px; }
.guide-label-observe { left: 255px; top: 267.0668px; }
.guide-label-forest { left: 181.875px; top: 44.1168px; }
.guide-label-trail { left: 48.75px; top: 258.0032px; }
.guide-label-water { left: 318.75px; top: 317.1168px; }
.guide-label-open { left: 198.75px; top: 328.51px; }
.route-guide .guide-marker {
  position: absolute;
  display: block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 3px solid var(--guide-surface);
  border-radius: 14px;
  background: var(--guide-surface);
  box-shadow: 0 3px 5px rgb(24 24 24 / .07);
  transform: scale(var(--guide-marker-scale, 1));
  transform-origin: 50% 50%;
  pointer-events: auto;
  transition: border-color .16s, box-shadow .16s;
}
.route-guide .guide-marker > img {
  display: block;
  width: 38px;
  height: 38px;
  max-width: none;
  border-radius: 10px;
  object-fit: cover;
}
.guide-marker.is-selected, .guide-marker.is-recorded { z-index: 2; border-color: var(--guide-lime); border-radius: 12px; }
.guide-marker:hover { z-index: 3; border-color: var(--guide-lime); }
.guide-marker > span {
  position: absolute;
  bottom: -6px;
  left: -5px;
  padding: 1px 4px;
  border: 1px solid var(--guide-lime);
  border-radius: 4px;
  background: #171b16;
  color: var(--guide-lime);
  font-size: 10px;
  line-height: 14px;
  transform: rotate(-5deg);
  white-space: nowrap;
}
/* Shared return control and Figma chevron are defined in navigation.css. */
.guide-map > .guide-return { position: absolute; top: max(16px, env(safe-area-inset-top, 0px)); left: 21px; z-index: 4; }
.guide-map-notice {
  position: absolute;
  top: 28px;
  left: 80px;
  z-index: 3;
  color: #626762;
  font-size: 10px;
  line-height: 16px;
  pointer-events: none;
}
.guide-map-tools { position: absolute; right: 12px; bottom: 15px; z-index: 4; display: grid; gap: 5px; }
.route-guide .guide-map-tools > button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--guide-ink);
  border-radius: 50%;
  background: var(--guide-ink);
}
.guide-map-tools img { display: block; max-width: none; }
.route-guide .guide-map-summary {
  position: absolute;
  right: 71px;
  bottom: 14px;
  left: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 66px;
  min-height: 66px;
  padding: 10px 18px 10px 10px;
  border: 1px solid var(--guide-line);
  border-radius: 20px;
  background: var(--guide-surface);
  text-align: left;
}
.guide-summary-photo { display: block; width: 36px; height: 36px; flex: none; overflow: hidden; border-radius: 10px; background: var(--guide-bg); }
.guide-summary-photo > img { display: block; width: 36px; height: 36px; object-fit: cover; }
.guide-summary-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.guide-summary-copy strong { overflow: hidden; font-size: 14px; font-weight: 600; line-height: 20.3px; text-overflow: ellipsis; white-space: nowrap; }
.guide-summary-copy small { font-size: 10px; line-height: 16px; color: var(--guide-muted); white-space: nowrap; }
.guide-summary-score { display: grid; place-items: center; flex: none; min-width: 40px; height: 40px; padding-inline: 5px; border-radius: 10px; background: var(--guide-ink); color: var(--guide-lime); font-family: "Arial Black", system-ui, sans-serif; font-size: 19px; font-weight: 800; line-height: 22px; letter-spacing: -.7px; }
.guide-route-content { min-width: 0; padding: 0 20px; }
.guide-intro { display: flex; flex-direction: column; gap: 11px; padding: 22px 0; border-bottom: 1px solid var(--guide-line); }
.route-guide .guide-intro h1 { color: var(--guide-ink); font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -.5px; }
.route-guide .guide-route-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: #767676; font-size: 12px; font-weight: 400; line-height: 20px; }
.guide-route-meta > li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.guide-route-meta > li > img { display: block; flex: none; width: 16px; height: 16px; opacity: .55; }
.guide-intro > p { color: var(--guide-muted); font-size: 13px; font-weight: 400; line-height: 22.1px; }
.guide-intro .guide-duration { padding: 10px 0; font-size: 12px; line-height: 19.2px; }
.guide-duration > span { margin-inline: 6px; color: #d4d4d4; }
.guide-tabs { display: flex; align-items: center; gap: 22px; min-height: 62px; padding-top: 15px; }
.route-guide .guide-tabs > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: none;
  min-height: 46px;
  margin: 0;
  padding: 9px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--guide-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
  white-space: nowrap;
}
.guide-tabs > button[aria-selected="true"] { color: var(--guide-ink); font-weight: 600; }
.guide-tabs > button > span { display: inline-grid; place-items: center; min-width: 19px; min-height: 19px; padding: 2px 4px; border-radius: 10px; background: var(--guide-line); color: var(--guide-muted); font-size: 11px; font-weight: 600; line-height: 15px; }
.guide-gallery { min-width: 0; }
.guide-species-row { display: flex; gap: 12px; width: calc(100% + 40px); margin-inline: -20px; padding: 3px 20px 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
.guide-species-row::-webkit-scrollbar { display: none; }
.route-guide .guide-species-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 161.5px;
  width: 161.5px;
  height: 228.5px;
  min-width: 161.5px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: var(--guide-surface);
  color: var(--guide-ink);
  text-align: left;
  scroll-snap-align: start;
}
.guide-species-photo { display: block; flex: none; width: 161.5px; height: 161px; overflow: hidden; background: #f0f0f0; }
.guide-species-photo > img { display: block; width: 161.5px; height: 172px; max-width: none; object-fit: cover; object-position: 50% 50%; }
.guide-species-caption { display: block; width: 100%; min-width: 0; height: 67.5px; padding: 12px; background: #f7f7f7; }
.guide-species-caption > strong { display: block; overflow: hidden; color: var(--guide-ink); font-size: 14px; font-weight: 600; line-height: 21px; text-overflow: ellipsis; white-space: nowrap; }
.guide-species-caption > small { display: block; padding-top: 4px; overflow: hidden; color: var(--guide-muted); font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }
.guide-companions { padding: 30px 0; }
.guide-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; }
.route-guide .guide-section-heading h2 { color: var(--guide-ink); font-size: 18px; font-weight: 600; line-height: 25px; letter-spacing: -.7px; }
.guide-section-heading p { padding-top: 6px; color: var(--guide-muted); font-size: 12px; line-height: 19.2px; }
.route-guide .guide-start-trip { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; min-height: 44px; padding: 0 6px; border: 0; border-radius: 0; background: transparent; color: var(--guide-ink); font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.guide-start-trip img, .guide-trip-bottom img { display: block; max-width: none; flex: none; }
.guide-trips { display: grid; gap: 16px; padding-top: 15px; }
.guide-trip-card { min-width: 0; min-height: 199px; padding: 22px; border: 1px solid var(--guide-line); border-radius: 24px; background: var(--guide-surface); }
.guide-trip-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.guide-trip-status { display: inline-flex; align-items: center; flex: none; min-height: 26px; padding: 5px 8px; border-radius: 6px; background: var(--guide-lime); color: #171717; font-size: 11px; font-weight: 700; line-height: 16px; }
.guide-trip-top > small { color: var(--guide-muted); font-size: 11px; line-height: 19.2px; text-align: right; }
.route-guide .guide-trip-card h3 { margin-top: 10px; color: var(--guide-ink); font-size: 17px; font-weight: 700; line-height: 24.65px; }
.guide-trip-card > p { overflow-wrap: anywhere; color: var(--guide-muted); font-size: 12px; line-height: 19.2px; }
.guide-trip-card .guide-trip-date { margin-top: 10px; }
.guide-trip-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
.guide-trip-bottom > small { min-width: 0; color: var(--guide-muted); font-size: 11px; line-height: 19.2px; }
.route-guide .guide-trip-bottom > button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; flex: none; min-height: 44px; padding: 0 0 0 6px; border: 0; border-radius: 0; background: transparent; color: var(--guide-ink); font-size: 11px; font-weight: 700; line-height: 16px; }
.guide-bottom { position: relative; z-index: 5; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; flex: none; width: 100%; max-width: 720px; margin-inline: auto; min-height: calc(112px + env(safe-area-inset-bottom, 0px)); padding: 14px 20px calc(13px + env(safe-area-inset-bottom, 0px)); border: 0; background: #ffffff; }
/* Only the overview invitation footer fades over its preceding scroll area. */
.guide-bottom::before { content: ""; position: absolute; inset: -40px 0 auto; height: 40px; background: linear-gradient(to bottom, rgb(255 255 255 / 0), #ffffff); pointer-events: none; }
.guide-bottom > p { max-width: 440px; color: var(--guide-muted); font-size: 12px; line-height: 18px; text-align: center; }
.route-guide .guide-primary, .route-guide .guide-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 48px; min-height: 48px; margin: 0; padding: 0 22px; border: 1px solid var(--guide-ink); border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 21px; text-align: center; text-decoration: none; }
.route-guide .guide-primary { background: var(--guide-ink); color: var(--guide-surface); }
.route-guide .guide-primary:hover { background: #303030; }
.route-guide .guide-secondary { border-color: var(--guide-line); background: var(--guide-surface); color: var(--guide-ink); }
.route-guide .guide-secondary[aria-pressed="true"] { border-color: #b8d95c; background: #eff8da; }
.guide-bottom > .guide-primary { width: 100%; max-width: 720px; height: 48px; min-height: 48px; }
.guide-empty { padding: 32px 16px; border: 1px solid var(--guide-line); border-radius: 18px; background: var(--guide-surface); text-align: center; }
.guide-empty strong { font-size: 16px; line-height: 24px; }
.guide-empty p { margin-top: 8px; color: var(--guide-muted); font-size: 13px; line-height: 21px; }
.route-guide .guide-text-action { min-height: 44px; margin-top: 8px; padding: 8px; border: 0; background: transparent; color: #245b38; font-size: 14px; font-weight: 600; }
.route-guide .guide-local-note { margin-top: 12px; color: var(--guide-muted); font-size: 12px; font-weight: 400; line-height: 1.7; overflow-wrap: anywhere; }
.guide-subpage-header { display: flex; align-items: center; gap: 12px; flex: none; min-height: 68px; padding: max(12px, env(safe-area-inset-top, 0px)) 20px 12px; border-bottom: 1px solid var(--guide-line); background: var(--guide-surface); }
.route-guide .guide-subpage-title { color: var(--guide-ink); font-size: 18px; font-weight: 600; line-height: 26px; letter-spacing: -.3px; outline: none; }
.guide-subpage-body { flex: 1; min-height: 0; min-width: 0; padding: 24px 20px 30px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
.guide-subpage-actions { display: flex; align-items: center; justify-content: center; gap: 10px; flex: none; width: 100%; max-width: 720px; margin-inline: auto; padding: 12px 20px max(12px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--guide-line); background: var(--guide-surface); }
.guide-subpage-actions > button { flex: 1; max-width: 640px; }
.guide-detail-photo { width: 100%; max-width: 540px; aspect-ratio: 4 / 3; margin-inline: auto !important; overflow: hidden; border-radius: 20px; background: #ececec; }
.guide-detail-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-detail-copy, .guide-form-intro, .guide-trip-form, .guide-plan-detail, .guide-invite { width: 100%; max-width: 640px; margin-inline: auto; }
.guide-detail-copy { padding-top: 22px; }
.guide-small-label { color: #336040; font-size: 12px; line-height: 20px; }
.route-guide .guide-detail-copy h2, .route-guide .guide-form-intro h2, .route-guide .guide-plan-detail h2, .route-guide .guide-invite h2 { margin-top: 8px; color: var(--guide-ink); font-size: 26px; font-weight: 600; line-height: 1.4; letter-spacing: -.6px; }
.guide-detail-copy > p, .guide-form-intro > p, .guide-invite > p { margin-top: 14px; color: var(--guide-muted); font-size: 14px; line-height: 1.8; }
.guide-detail-copy .guide-latin { margin-top: 3px; font-size: 13px; line-height: 21px; }
.guide-checkins { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--guide-line); }
.guide-checkin-heading { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.guide-checkins > .guide-checkin-heading { margin-top: 0; }
.route-guide .guide-checkin-heading h2 { margin: 0; color: var(--guide-ink); font-size: 18px; font-weight: 600; line-height: 26px; letter-spacing: -.3px; }
.guide-example-badge { flex: none; padding: 3px 7px; border: 1px solid var(--guide-line); border-radius: 6px; color: var(--guide-muted); font-size: 12px; font-weight: 500; line-height: 18px; }
.route-guide .guide-checkin-note { margin-top: 8px; color: var(--guide-muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
/* Two touch-friendly columns on phones and tablets; the existing max640
   article bounds keep the same reading order in the desktop detail view. */
.guide-checkin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 18px; }
.route-guide .guide-checkin-card { display: block; min-width: 0; padding: 0; border: 0; border-radius: 0; background: #ffffff; color: var(--guide-ink); text-align: left; }
.guide-checkin-photo { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #ffffff; }
.guide-checkin-photo > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-checkin-author { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin-top: 10px; }
.guide-checkin-author strong { font-size: 14px; font-weight: 600; line-height: 22px; }
.guide-checkin-author > span { color: var(--guide-muted); font-size: 12px; line-height: 20px; }
.guide-checkin-caption { display: block; margin-top: 4px; color: var(--guide-muted); font-size: 12px; line-height: 20px; }
.guide-checkin-card:hover .guide-checkin-photo { outline: 1px solid var(--guide-line); outline-offset: 3px; }
.guide-checkin-detail { width: 100%; max-width: 720px; margin-inline: auto; }
.guide-checkin-full-photo { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0 !important; overflow: hidden; border-radius: 20px; background: #ffffff; }
.guide-checkin-full-photo > img { display: block; width: 100%; height: auto; max-height: 70vh; max-height: 70dvh; object-fit: contain; }
.guide-checkin-description { margin-top: 12px !important; color: var(--guide-ink); font-size: 14px; line-height: 1.8; }
.guide-detail-facts { display: grid; gap: 14px; margin: 24px 0 0; padding: 20px; border-radius: 18px; background: var(--guide-surface); }
.guide-detail-facts > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; font-size: 13px; line-height: 22px; }
.guide-detail-facts dt { color: var(--guide-muted); }
.guide-detail-facts dd { margin: 0; color: var(--guide-ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.guide-observation { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--guide-line); scroll-margin-top: 12px; }
.route-guide .guide-observation h3 { color: var(--guide-ink); font-size: 18px; font-weight: 600; line-height: 26px; }
.guide-observation > p { margin-top: 8px; color: var(--guide-muted); font-size: 12px; line-height: 1.7; }
.guide-observation form, .guide-trip-form { display: grid; gap: 20px; margin-top: 24px; }
.guide-subpage-body label { display: block; color: var(--guide-ink); font-size: 14px; font-weight: 500; line-height: 22px; }
.guide-subpage-body label > span { margin-left: 5px; color: var(--guide-muted); font-size: 12px; font-weight: 400; }
.guide-subpage-body input, .guide-subpage-body textarea { display: block; width: 100%; min-width: 0; min-height: 48px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--guide-line); border-radius: 14px; background: var(--guide-surface); color: var(--guide-ink); font-size: 16px; font-weight: 400; line-height: 24px; caret-color: #173e2a; }
.guide-subpage-body textarea { resize: vertical; }
.guide-subpage-body input::placeholder, .guide-subpage-body textarea::placeholder { color: #828282; }
.guide-subpage-body input:focus, .guide-subpage-body textarea:focus { border-color: #657f5d; }
.route-guide .guide-delete-record { min-height: 44px; margin-top: 16px; padding: 8px 0; border: 0; border-radius: 0; background: transparent; color: #9c3b2d; font-size: 13px; font-weight: 500; line-height: 22px; }
.guide-form-error { color: #9c3b2d; font-size: 13px; line-height: 22px; }
.guide-invite label { margin-top: 26px; }
.guide-invite > .guide-secondary { margin-top: 16px; }
.guide-copy-status { min-height: 24px; color: #245b38; font-size: 13px; line-height: 24px; }
.guide-clipboard-helper { position: fixed; top: 0; left: -10000px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 720px) and (max-width: 1199px) {
  .route-guide .guide-map { height: 420px; min-height: 420px; }
  .guide-route-content { padding-inline: 28px; }
  .guide-species-row { width: calc(100% + 56px); margin-inline: -28px; padding-inline: 28px; scroll-padding-inline: 28px; }
}
@media (min-width: 1200px) {
  #guidePanel.route-guide { max-width: 1200px; }
  .route-guide .guide-overview { overflow: hidden; }
  .guide-overview-layout { display: grid; grid-template-columns: 1.03fr 1fr; height: 100%; min-height: 0; }
  .route-guide .guide-map { height: 100%; min-height: 364px; border-radius: 0; }
  .guide-route-content { min-height: 0; padding: 8px 28px 130px; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
  .guide-species-row { width: calc(100% + 56px); margin-inline: -28px; padding-inline: 28px; scroll-padding-inline: 28px; }
  .guide-bottom { position: absolute; right: 0; bottom: 0; width: calc(100% / 2.03); min-height: 112px; padding-bottom: 13px; border-top: 0; }
  .guide-subpage-header { padding-inline: 32px; }
  .guide-subpage-body { padding-inline: 32px; }
  .guide-subpage-actions { padding-inline: 32px; }
}
@media (max-width: 359px) {
  .guide-route-content { padding-inline: 16px; }
  .guide-species-row { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .guide-trip-card { padding: 18px; }
  .guide-trip-top > small { max-width: 122px; }
  .guide-section-heading { gap: 8px; }
  .guide-summary-copy small { font-size: 9px; }
  .guide-map-summary { gap: 8px; padding-right: 12px; }
  .guide-summary-score { font-size: 17px; }
  .guide-subpage-actions { gap: 8px; padding-inline: 20px; }
  .guide-subpage-actions > button { padding-inline: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  #guidePanel.route-guide *, #guidePanel.route-guide *::before, #guidePanel.route-guide *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Candidate details use the same map → introduction → scenery → teams flow.
   Data-free areas stay quiet; only supplied coordinates draw a route. */
#guidePanel.route-guide .guide-route-map {
  background: var(--brand-surface, #f4f6f3);
}
.guide-route-track { display: block; width: 100%; height: 100%; }
.guide-route-track polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.guide-track-halo { stroke: var(--brand-green, #d5fa44); stroke-width: 14; }
.guide-track-line { stroke: var(--brand-ink, #20251f); stroke-width: 3; }
.guide-track-start { fill: var(--brand-green, #d5fa44); stroke: var(--brand-ink, #20251f); stroke-width: 3; }
.guide-track-end { fill: var(--brand-ink, #20251f); stroke: #fff; stroke-width: 3; }
.guide-route-map-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; width: 100%; height: 100%; padding: 90px 20px 75px;
  color: var(--brand-muted-on-surface, #626c5c); text-align: center;
}
.guide-route-map-empty > .ui-icon { width: 44px; height: 44px; color: var(--brand-ink, #20251f); }
.guide-route-map-empty > strong { font-size: 18px; font-weight: 500; line-height: 26px; }
.guide-route-map-empty > p { font-size: 13px; line-height: 22px; }
#guidePanel .guide-route-map .guide-map-notice { top: 30px; right: 16px; margin: 0; }
#guidePanel .guide-map-open {
  position: absolute; right: 20px; bottom: 20px; display: inline-flex;
  align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  padding: 10px 16px; border: 0; border-radius: 999px;
  background: #fff; color: var(--brand-ink, #20251f); font-size: 13px;
}
#guidePanel .guide-map-open .ui-icon { width: 18px; height: 18px; }
#guidePanel .guide-route-path { font-size: 12px; line-height: 22px; overflow-wrap: anywhere; }
#guidePanel .guide-route-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 150px; padding: 24px 20px;
  background: var(--brand-surface, #f4f6f3); border: 0; border-radius: 20px;
}
#guidePanel .guide-route-empty > .ui-icon { width: 26px; height: 26px; margin-bottom: 2px; color: var(--brand-muted-on-surface, #626c5c); }
#guidePanel .guide-route-empty strong { font-size: 14px; font-weight: 500; line-height: 22px; }
#guidePanel .guide-route-empty p { margin: 0; font-size: 12px; line-height: 20px; }
.guide-route-teams { display: grid; gap: 10px; padding-top: 16px; }
#guidePanel .guide-route-team {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0;
  min-height: 88px; padding: 16px; border: 0; border-radius: 20px;
  background: var(--brand-surface, #f4f6f3); color: var(--brand-ink, #20251f); text-align: left;
}
.guide-route-team-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.guide-route-team-icon .ui-icon { width: 22px; height: 22px; }
.guide-route-team-copy { display: grid; flex: 1; min-width: 0; gap: 4px; }
.guide-route-team-copy strong { font-size: 15px; font-weight: 600; line-height: 24px; overflow-wrap: anywhere; }
.guide-route-team-copy > span, .guide-route-team-copy small { font-size: 12px; line-height: 19px; color: var(--brand-muted-on-surface, #626c5c); overflow-wrap: anywhere; }
.guide-route-team-action { display: inline-flex; align-items: center; flex: none; gap: 4px; font-size: 12px; line-height: 20px; }
.guide-route-team-action .ui-icon { width: 16px; height: 16px; }
#guidePanel.route-guide .guide-route-actions {
  display: grid; grid-template-columns: minmax(88px, .34fr) minmax(0, 1fr);
  align-items: center; gap: 12px; min-height: 72px;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom, 0px));
  background: #fff; border: 0;
}
#guidePanel.route-guide .guide-route-actions > button {
  width: 100%; max-width: none; min-width: 0; height: 48px; min-height: 48px;
  margin: 0; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 600; line-height: 22px;
}
#guidePanel.route-guide .guide-route-favorite { background: var(--brand-surface, #f4f6f3); color: var(--brand-ink, #20251f); }
#guidePanel.route-guide .guide-route-favorite[aria-pressed="true"] { background: var(--brand-green, #d5fa44); }
@media (hover: hover) {
  #guidePanel .guide-route-team:not(:disabled):hover, #guidePanel .guide-map-open:hover { background: #e9eee5; }
}
@media (max-width: 680px) {
  #guidePanel.route-guide .guide-route-actions { padding-bottom: 12px; }
}
@media (max-width: 359px) {
  #guidePanel .guide-route-team { gap: 8px; padding: 14px; }
  .guide-route-team-icon { width: 32px; height: 32px; }
  #guidePanel.route-guide .guide-route-actions { gap: 10px; padding-inline: 16px; }
  #guidePanel .guide-route-map .guide-map-notice { font-size: 9px; }
}
@media (min-width: 1200px) {
  #guidePanel.route-guide[data-route-detail="true"] .guide-route-content { padding-bottom: 108px; }
  #guidePanel.route-guide .guide-route-actions { padding-inline: 28px; }
}

#guidePanel.route-guide[data-route-detail="true"] .guide-intro h1 { overflow-wrap: anywhere; }
#guidePanel.route-guide[data-route-detail="true"] .guide-route-meta > li { max-width: 100%; align-items: flex-start; white-space: normal; }
#guidePanel.route-guide[data-route-detail="true"] .guide-route-meta > li > .ui-icon { flex: none; margin-top: 2px; }
#guidePanel.route-guide[data-route-detail="true"] .guide-route-meta > li > span { min-width: 0; overflow-wrap: anywhere; }

/* Keep detail controls above the interactive basemap and its loading fallback. */
.guide-route-basemap { position: absolute; inset: 0; z-index: 0; }
.guide-route-map .guide-route-track { position: relative; z-index: 1; pointer-events: none; }
.guide-route-map .guide-route-track[hidden] { display: none; }
.guide-route-map .guide-map-notice { z-index: 2; pointer-events: none; background: #fffffff0; border-radius: 12px; padding: 5px 8px; max-width: calc(100% - 90px); }
.guide-route-map .guide-map-open { z-index: 2; }
#guidePanel .guide-route-pin { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #26352c; border: 2px solid white; color: white; font: 600 12px sans-serif; box-shadow: 0 2px 5px #0003; }
.guide-route-map[data-map-state="failed"] .guide-route-basemap { visibility: hidden; }
