.install-button {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--wine-800);
  border-color: #bcae92;
}
.location-box {
  margin-top: 8px;
  padding: 16px;
  background: #fffaf0;
  border: 1px solid var(--paper-line);
  border-radius: 12px;
}
.location-box > p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: .88rem;
}
.location-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.location-status {
  min-height: 1.2em;
  margin: 8px 0 0 !important;
  font-weight: 650;
}
.location-status.ok { color: #17613e; }
.location-status.bad { color: #9d1628; }
.map-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #180307d9;
  padding: 18px;
  display: grid;
  place-items: center;
}
.map-card {
  width: min(100%, 540px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--paper);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 70px #000a;
}
.map-card h2 {
  margin-top: 0;
  color: var(--wine-800);
  font-family: Georgia, "Times New Roman", serif;
}
.map-picker {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #d8d2c5;
  border: 1px solid #ad9c7d;
  border-radius: 12px;
  touch-action: none;
  cursor: grab;
}
.map-picker.dragging { cursor: grabbing; }
.map-picker #mapTiles { position: absolute; inset: 0; }
.map-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  user-select: none;
  -webkit-user-drag: none;
}
.center-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 38px;
  line-height: 1;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 3px 2px #0006);
  pointer-events: none;
}
.map-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  gap: 4px;
}
.map-zoom button {
  width: 42px;
  height: 42px;
  padding: 0;
  background: #fff;
  font-size: 24px;
  box-shadow: 0 2px 8px #0004;
}
.map-card > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
@media (max-width: 600px) {
  .location-actions button { flex: 1 1 100%; }
  .map-dialog { padding: 0; }
  .map-card {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding-top: max(18px, env(safe-area-inset-top));
  }
  .map-picker { height: 300px; }
}
