/*
  Static route map styling for all viewport sizes.
  Exports: map wrapper, static map image, clickable pins and labels.
  Deps: base.css variables and route-sketch.js markup.
*/
.map-wrap,
.map {
  background: #e8dfcf;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.map-wrap {
  aspect-ratio: 1200 / 820;
  border: 1px solid transparent;
  height: auto;
  min-height: 0;
}

.leaflet-map { display: none; }

.route-sketch {
  background: var(--surface);
  display: block;
  height: 100%;
  position: relative;
}

.static-route-map {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sketch-pin {
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
}

.sketch-pin.active {
  background: var(--accent);
  color: white;
}

.sketch-label {
  background: rgba(255, 250, 242, 0.9);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  max-width: 96px;
  overflow: hidden;
  padding: 3px 5px;
  position: absolute;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-routes {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}

.google-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}

.google-body {
  font-size: 14px;
  margin-bottom: 14px;
}

.google-link-grid {
  display: grid;
  gap: 8px;
}

.map-link {
  border: 1px solid var(--line);
  display: block;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 12px;
}

.map-link:hover {
  background: var(--ink);
  color: var(--surface);
}
