floor-guide { display: block; }
.guide-board { border: 1px solid #cbd1c4; background: var(--paper); }
.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: var(--green-dark);
  color: #f6f5ed;
  padding: 16px 22px;
  min-height: 62px;
}
.guide-identity, .guide-meta, .guide-language { display: flex; align-items: center; }
.guide-identity { gap: 14px; }
.guide-identity b { font-size: 20px; letter-spacing: .055em; white-space: nowrap; }
.guide-identity span { padding-left: 14px; border-left: 1px solid #87988b; font-size: 13px; white-space: nowrap; }
.guide-meta { gap: 22px; }
.guide-clock { font: 600 20px/1 Arial, sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.guide-language { gap: 9px; font-size: 11px; white-space: nowrap; }
.guide-language b { border-bottom: 1px solid #dce8d8; padding-block: 1px 2px; }
.guide-language span { color: #ced9cd; }
.guide-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 31%); align-items: stretch; }
.guide-map { min-width: 0; background: #edf0e8; }
.guide-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 18px 0;
}
.guide-icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.view-buttons { display: inline-flex; border: 1px solid #c2ccbf; background: #fffefa; }
.view-buttons button, .reset-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.view-buttons button[aria-pressed="true"] { background: #dce6da; color: var(--green-dark); }
.view-buttons button + button { border-left: 1px solid #c2ccbf; }
.view-buttons .guide-icon, .reset-view .guide-icon { width: 16px; height: 16px; }
.reset-view { padding: 0 3px; color: #43564a; }
.reset-view:disabled { opacity: .45; cursor: default; }
.view-buttons button:hover, .reset-view:not(:disabled):hover { color: #162a1f; }
.map-viewport { position: relative; }
.floor-buttons {
  display: grid;
  place-content: center;
  gap: 6px;
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.floor-buttons button {
  pointer-events: auto;
  min-height: 44px;
  width: 51px;
  border: 1px solid #c7cfc1;
  background: #fffefa;
  font: 700 16px/1 Arial, sans-serif;
  letter-spacing: .025em;
  color: #344d3f;
}
.floor-buttons button:hover { background: #e0e9dd; }
.floor-buttons button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }
.map-stage {
  height: clamp(340px, 30vw, 430px);
  margin-left: 70px;
  min-width: 0;
  position: relative;
  isolation: isolate;
}
.map-stage canvas, .map-labels, .map-loading, .map-fallback { position: absolute; inset: 0; }
.map-stage canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y !important; }
.map-stage canvas:active { cursor: grabbing; }
.map-labels { pointer-events: none; overflow: hidden; }
.map-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 5px));
  border: 1px solid #bcc8bb;
  background: #fffefa;
  color: #2b4335;
  padding: 4px 6px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.16;
}
.map-label::after {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  left: calc(50% - 3px);
  bottom: -4px;
  transform: rotate(45deg);
  background: inherit;
  border-right: inherit;
  border-bottom: inherit;
}
.map-level {
  color: #2d4737;
  transform: translate(calc(-100% - 4px), -55%);
  padding: 3px 7px;
  font: 700 12px/1.12 Arial, sans-serif;
}
.map-level::after { display: none; }
.map-current { background: var(--green); color: white; border-color: var(--green); }
.map-destination { color: #7a3125; border-color: #b66e57; }
.map-name { pointer-events: auto; }
.map-name:hover { background: #e4edde; }
.map-loading, .map-fallback { display: grid; place-content: center; justify-items: center; text-align: center; gap: 9px; color: #405548; font-size: 13px; }
.map-fallback a { display: grid; justify-items: center; }
.map-fallback img { max-height: 295px; max-width: min(100%, 420px); object-fit: contain; }
.uses-plan canvas, .uses-plan .map-labels { visibility: hidden; }
.map-legend { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 21px; min-height: 39px; padding: 4px 12px 10px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; white-space: nowrap; }
.legend-dot { width: 10px; height: 10px; display: inline-block; border: 1px solid rgba(35, 60, 48, .22); }
.legend-dot.here { border-radius: 50%; background: #335743; }
.legend-dot.shops { background: #b0c5ad; }
.legend-dot.cafes { background: #dcc29c; }
.legend-dot.services { background: #bfcfd2; }
.route-bar { display: flex; align-items: center; gap: 8px; justify-content: space-between; min-height: 79px; border-top: 1px solid #ced6ca; background: #f8faf3; padding: 10px 18px; }
.route-result { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; line-height: 1.25; }
.route-result b { font-size: 15px; }
.route-result .guide-icon { width: 15px; height: 15px; }
.route-caption { font-size: 12px; font-weight: 700; color: #496052; }
.here-symbol { display: inline-block; border: 3px solid #fffefa; background: #365844; box-shadow: 0 0 0 1px #365844; border-radius: 50%; width: 12px; height: 12px; margin-right: 1px; }
.route-symbol { width: 13px; height: 4px; border-radius: 2px; background: var(--route); }
.route-hint { margin-top: 5px; margin-left: 22px; font-size: 11px; line-height: 1.5; color: #536558; }
.clear-route { background: #fffefa; border: 1px solid #b8c7b8; min-height: 36px; padding: 0 12px; font-size: 12px; white-space: nowrap; }
.clear-route:hover { background: #e5ede1; }
.guide-directory {
  background: #fffefa;
  border-left: 1px solid #cbd1c4;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.directory-head { padding: 18px 20px 13px; }
.directory-head h3 { font-size: 20px; line-height: 1.3; margin-bottom: 12px; }
.category-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.category-buttons button {
  padding: 0 5px;
  min-height: 36px;
  border: 1px solid #d4dbd0;
  border-radius: 2px;
  background: #fffefa;
  color: #364c3e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.category-buttons button:hover, .clear-route:hover { border-color: #7f9885; }
.category-buttons button[aria-pressed="true"] { color: white; border-color: var(--green); background: var(--green); }
.directory-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 7px 20px;
  color: #4e6356;
  background: #eff2e9;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
}
.directory-list {
  height: 0;
  min-height: 100%;
  margin: 0;
  padding: 0 13px 0 20px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-color: #a8b5a6 transparent;
  scrollbar-width: thin;
  list-style: none;
}
.directory-list li + li { border-top: 1px solid #e5e7df; }
.directory-list button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  padding: 7px 6px;
  background: transparent;
  border: 0;
  text-align: left;
}
.directory-list button:focus-visible { outline-offset: -2px; }
.directory-list button:hover { background: #f1f5ed; }
.directory-list button[aria-pressed="true"] { background: #f5e8dd; }
.directory-list button:disabled { opacity: .65; cursor: wait; }
.place-icon { width: 34px; height: 34px; display: grid; place-content: center; color: #365547; background: #e6eeeb; }
.place-icon .guide-icon { width: 18px; height: 18px; }
.place-shop { background: #e3ebdd; }
.place-cafe { background: #f1e7d5; color: #674f35; }
.place-text { display: grid; gap: 4px; min-width: 0; }
.place-text b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.place-text small { color: #59685d; line-height: 1.3; font-size: 11px; }
.place-floor { font: 700 12px/1 Arial, sans-serif; letter-spacing: .02em; }
.directory-list button > .guide-icon { width: 14px; height: 14px; color: #506357; }
.directory-empty { grid-row: 3; align-self: start; padding: 15px 20px; color: #576b5e; font-size: 13px; line-height: 1.6; }
.map-page { background: #f2f3ec; }
.map-shell { width: min(1420px, calc(100% - 56px)); margin: 0 auto; padding: 19px 0 24px; }
.map-back { display: inline-block; padding: 8px 1px; margin-bottom: 10px; color: var(--green); font-size: 13px; text-underline-offset: 4px; }
.map-page .map-stage { height: clamp(380px, 62vh, 690px); }

@media (max-width: 840px) {
  .guide-main { grid-template-columns: 1fr; }
  .guide-directory { border: 0; border-top: 1px solid #cbd1c4; grid-template-rows: auto auto auto; }
  .directory-list { height: auto; min-height: 0; max-height: 290px; overscroll-behavior-y: auto; }
  .map-page .map-stage { height: clamp(290px, 52vh, 490px); }
}
@media (max-width: 550px) {
  .guide-header { padding: 12px 11px; min-height: 50px; gap: 5px; }
  .guide-identity { gap: 7px; }
  .guide-identity b { font-size: 15px; }
  .guide-identity span { font-size: 10px; padding-left: 7px; }
  .guide-meta { gap: 8px; }
  .guide-clock { font-size: 15px; }
  .guide-language { gap: 5px; font-size: 9px; }
  .guide-toolbar { padding: 9px 10px 0; }
  .view-buttons button, .reset-view { min-height: 37px; font-size: 12px; }
  .floor-buttons { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 8px 10px 0; }
  .floor-buttons button { width: auto; min-height: 41px; font-size: 14px; }
  .map-stage, .map-page .map-stage { margin: 0; height: min(73vw, 350px); min-height: 226px; }
  .map-level { font-size: 10px; padding: 3px 4px; }
  .map-name { font-size: 10px; padding: 4px; }
  .map-current, .map-destination { font-size: 10px; }
  .map-legend { gap: 5px 10px; min-height: 30px; padding-bottom: 8px; }
  .map-legend span { font-size: 10px; gap: 4px; }
  .legend-dot { width: 8px; height: 8px; }
  .route-bar { min-height: 68px; padding: 8px 10px; }
  .route-result { font-size: 11px; gap: 5px; }
  .route-result b { font-size: 12px; }
  .route-caption { font-size: 11px; }
  .route-hint { margin-left: 17px; }
  .clear-route { padding: 0 7px; }
  .directory-head { padding: 15px 12px 10px; }
  .directory-head h3 { font-size: 18px; margin-bottom: 9px; }
  .category-buttons { gap: 5px; }
  .category-buttons button { min-height: 38px; }
  .directory-caption { padding-inline: 12px; }
  .directory-list { padding-inline: 8px; max-height: 315px; }
  .directory-list button { min-height: 60px; }
  .map-shell { width: calc(100% - 20px); padding-top: 9px; }
  .map-back { margin-bottom: 6px; }
}
@media (max-width: 365px) {
  .guide-identity span { display: none; }
}
