/* Mobile map views and compact discovery list. */
[hidden] {
  display: none !important;
}
.view-title:focus {
  outline: none;
}
.nearby {
  padding: 20px 14px;
}
.nearby-header {
  margin-bottom: 18px;
}
.location-note {
  font-size: 14px;
  padding: 14px 16px;
  border-radius: 17px;
}
.view-title {
  font-size: 19px;
  margin: 20px 0 14px;
}
.categories {
  gap: 7px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar {
  display: none;
}
.categories button {
  padding: 9px 14px;
  min-height: 44px;
  font-size: 13px;
}
.discovery-actions {
  margin: 10px 0;
}
.discovery-actions button {
  font-size: 12px;
  padding: 10px 12px;
  min-height: 44px;
}
.nearby-status {
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0 6px;
}
.place {
  gap: 12px;
  padding: 14px 0;
  grid-template-columns: 88px minmax(0, 1fr);
}
.place-art {
  width: 88px;
  height: 104px;
  border-radius: 13px;
  font-size: 32px;
}
.place-body h3 {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 650;
  margin: 1px 0 6px;
}
.place-category {
  font-size: 12px;
  margin: 0 0 5px;
}
.walk-time {
  font-size: 12px !important;
  margin: 0 0 5px !important;
  white-space: nowrap;
}
.place-source {
  font-size: 11px;
}
.choose-place {
  display: block !important;
  min-height: 44px !important;
  padding: 5px 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 12px !important;
  text-align: left !important;
  margin: 0 !important;
}
.source {
  font-size: 10px;
  line-height: 1.6;
}
.map-open {
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
.route-view {
  position: relative;
  height: 100dvh;
  min-height: 520px;
  background: #f4f6f8;
  overflow: hidden;
}
.route-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  background: white;
  min-height: 72px;
}
.route-header h2 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  margin: 0;
  max-width: calc(100% - 50px);
}
.route-header button {
  background: white;
  border: 0;
  font-size: 36px;
  width: 40px;
  min-height: 44px;
  flex-shrink: 0;
}
#route-map {
  position: absolute;
  inset: 0;
}
.route-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 14px 16px max(12px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -3px 20px #132d4610;
}
.route-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  gap: 8px;
}
.route-stats strong {
  font-size: 23px;
}
#route-caption {
  font-size: 12px;
  margin: 8px 0 15px;
  color: #546477;
}
.route-bottom .primary {
  width: 100%;
  margin: 0;
  min-height: 48px;
  font-size: 15px;
}
.route-bottom small {
  display: block;
  font-size: 9px;
  line-height: 1.4;
  color: #687686;
  margin-top: 9px;
}
.route-bottom small a {
  color: inherit;
}
#route-message {
  font-size: 12px;
  line-height: 1.45;
  color: #536578;
  margin: 0 0 10px;
}
.recenter {
  position: absolute;
  right: 14px;
  top: 180px;
  z-index: 3;
  border: 0;
  background: white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  box-shadow: 0 2px 10px #0003;
  font-size: 26px;
}
.turn-panel {
  position: absolute;
  top: 78px;
  left: 8px;
  right: 8px;
  z-index: 4;
  background: linear-gradient(115deg, #034d84, #063455);
  border: 1px solid #ffffff44;
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: white;
  box-shadow: 0 4px 20px #003c5e25;
}
.turn-panel > span {
  font-size: 48px;
  line-height: 1;
}
.turn-panel div {
  min-width: 0;
}
.turn-panel strong {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}
.turn-panel div > span {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}
.position-dot {
  display: block;
  width: 22px;
  height: 22px;
  border: 4px solid white;
  border-radius: 50%;
  background: #087fff;
  box-shadow:
    0 0 0 8px #168aff30,
    0 2px 8px #005bbd99;
}
.destination-pin {
  display: block;
  background: #fa4e47;
  border: 3px solid white;
  color: white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  width: 30px;
  height: 30px;
  box-shadow: 0 2px 5px #0003;
  text-align: center;
  font-size: 19px;
}
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left {
  bottom: 242px;
}
.maplibregl-ctrl-attrib {
  font-size: 9px !important;
  max-width: 260px;
}
@media (min-width: 600px) {
  .map-open {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
  }
  .route-view {
    height: 100dvh;
  }
}
@media (max-width: 350px) {
  .route-stats strong {
    font-size: 20px;
  }
  .place {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .place-art {
    width: 76px;
  }
  .view-title {
    font-size: 18px;
  }
}

.place {
  display: grid;
}
.place-art {
  min-width: 0;
}
.place-body h3 {
  overflow-wrap: normal;
  hyphens: none;
}

/* A quieter street map with an explicit destination label. */
.target-marker{display:flex;flex-direction:column;align-items:center;gap:6px;max-width:190px;pointer-events:none}
.target-label{max-width:190px;padding:4px 8px;border-radius:8px;background:#fffffff0;color:#162638;font:600 13px/1.3 Arial,sans-serif;box-shadow:0 1px 6px #243e4c16;text-align:center}
.target-marker .destination-pin{transform:none;width:32px;height:36px;line-height:28px;border-radius:18px 18px 18px 4px;background:#ff514a;border:3px solid white;box-shadow:0 2px 7px #202f4433;font-size:21px}
.maplibregl-canvas{outline:none}
