#location-action { color: inherit; text-decoration: none; }
.location-dialog {
  width: min(46rem, calc(100% - 24px));
  max-height: min(48rem, calc(100dvh - 24px));
}
.location-dialog[open] { display: flex; flex-direction: column; }
.location-address { margin: 6px 0 14px; color: var(--muted); }
.location-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--blue-dark);
  flex-shrink: 0;
}
.location-tabs button {
  min-height: 44px;
  border: 1px solid var(--rule);
  border-bottom: 0;
  background: var(--paper);
  color: var(--blue-dark);
  font: inherit;
  font-weight: 700;
}
.location-tabs button[aria-selected="true"] { color: #fff; background: var(--blue-dark); }
.location-tabs button:focus-visible { outline: 2px solid var(--blue-dark); outline-offset: 2px; z-index: 1; }
.location-sheet {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px;
  border-inline: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #fffcf5;
}
.location-dialog .overlay-bottom { flex-shrink: 0; }
.route-panel h3 { margin: 0 0 .6rem; color: var(--blue-dark); }
.route-panel li + li { margin-top: .4em; }
.route-panel ol { margin: .55em 0; padding-left: 1.45em; }
.route-panel { line-height: 1.62; overflow-wrap: anywhere; }
.route-panel .wm-tag { font-weight: 800; margin-right: .3em; }
.route-panel .wm-table { border-collapse: collapse; width: 100%; margin-top: .85rem; font-size: .95rem; }
.route-panel .wm-table :is(th, td) { padding: .45em .35em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.route-panel .wm-note { font-size: .875rem; color: var(--muted); }
.routes-list { display: grid; gap: 18px; }
.routes-list .route-panel { padding: 16px; border: 1px solid var(--rule); }
