@font-face {
  font-family: "Roboto Map";
  src: url("fonts/roboto-400.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Map";
  src: url("fonts/roboto-700.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --forest: #026b3a;
  --forest-deep: #063c28;
  --yellow: #ffd613;
  --paper: #f6f7f3;
  --ink: #163229;
  --muted: #61736b;
  --line: #ccd5d0;
}

* { box-sizing: border-box; }

html { background: var(--forest-deep); }

body {
  margin: 0;
  min-width: 320px;
  color: #eef7f2;
  background: var(--forest-deep);
  font-family: "Roboto Map", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, svg { font-family: inherit; }

button::selection, .toolbar-copy::selection, .status::selection {
  color: var(--forest-deep);
  background: var(--yellow);
}

.workspace {
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: 24px clamp(16px, 3vw, 48px) 48px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.toolbar-copy {
  display: grid;
  gap: 3px;
}

.toolbar-copy strong {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: -.01em;
}

.toolbar-copy span {
  color: #d8eee4;
  font-size: 12.5px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.export-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 7px;
  color: #ffffff;
  background: transparent;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .18s ease-out, color .18s ease-out, border-color .18s ease-out, transform .18s ease-out;
}

.export-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.export-button--primary {
  color: var(--forest-deep);
  border-color: var(--yellow);
  background: var(--yellow);
}

.export-button:hover:not(:disabled) {
  color: var(--forest-deep);
  border-color: #ffffff;
  background: #ffffff;
  transform: translateY(-1px);
}

.export-button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.export-button:disabled {
  cursor: wait;
  opacity: .5;
}

.status {
  min-height: 17px;
  margin: 0 0 10px;
  color: #d8eee4;
  font-size: 12.5px;
  text-align: right;
}

.canvas-frame {
  aspect-ratio: 4 / 3;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .7);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 52px rgba(0, 20, 13, .28);
}

#tourMap {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#tourMap text {
  font-family: "Roboto Map", Roboto, Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  text-rendering: geometricPrecision;
}

#tourMap .visit-target { cursor: pointer; }

#tourMap .visit-row .row-ground,
#tourMap .visit-target .target-ring,
#tourMap .profile-target .profile-ring,
#tourMap .visit-target .photo-ring {
  transition: fill .18s ease-out, stroke .18s ease-out, opacity .18s ease-out, stroke-width .18s ease-out;
}

#tourMap .photo-leader {
  transition: stroke .18s ease-out, stroke-width .18s ease-out;
}

#tourMap #profileConnectorUnder,
#tourMap #profileConnector,
#tourMap #profileConnectorDot {
  transition: opacity .16s ease-out;
}

#tourMap .profile-guide {
  pointer-events: none;
  opacity: 0;
  stroke-dashoffset: 10;
  transition:
    opacity .2s ease-out,
    stroke-dashoffset .36s cubic-bezier(.16, 1, .3, 1);
}

#tourMap .profile-target:hover .profile-guide,
#tourMap .profile-target:focus .profile-guide {
  opacity: .9;
  stroke-dashoffset: 0;
}

#tourMap .visit-row:hover .row-ground,
#tourMap .visit-row:focus .row-ground,
#tourMap .visit-row.is-active .row-ground {
  fill: #fff9d8;
  stroke: #e5c000;
}

#tourMap .visit-target:hover .target-ring,
#tourMap .visit-target:focus .target-ring,
#tourMap .visit-target.is-active .target-ring,
#tourMap .profile-target:hover .profile-ring,
#tourMap .profile-target:focus .profile-ring,
#tourMap .profile-target.is-active .profile-ring {
  fill: var(--yellow);
  stroke: var(--forest-deep);
  stroke-width: 4px;
}

#tourMap .visit-target:hover .photo-ring,
#tourMap .visit-target:focus .photo-ring,
#tourMap .visit-target.is-active .photo-ring {
  fill: none;
  stroke: var(--yellow);
  stroke-width: 5px;
}

#tourMap .photo-leader.is-active {
  stroke: var(--yellow);
  stroke-width: 3px;
}

.mobile-view-button { display: none; }

#tourMap .visit-row:focus,
#tourMap .visit-target:focus,
#tourMap .profile-target:focus { outline: none; }

#tourMap .visit-row:focus-visible .row-ground,
#tourMap .visit-target:focus-visible .target-ring,
#tourMap .profile-target:focus-visible .profile-ring {
  stroke: var(--yellow);
  stroke-width: 5px;
}

@media (max-width: 820px) {
  .workspace { padding: 14px 10px 24px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .toolbar-actions { justify-content: stretch; }
  .export-button { flex: 1 1 240px; }
  .mobile-view-button { display: inline-flex; }
  .status { text-align: left; }
  .canvas-frame { box-shadow: 0 10px 28px rgba(0, 20, 13, .22); }

  .canvas-frame.is-exploring {
    height: min(68vh, 680px);
    aspect-ratio: auto;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: var(--yellow) var(--forest-deep);
  }

  .canvas-frame.is-exploring #tourMap {
    width: 900px;
    height: 675px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
