#vpe-map-wrapper {
    width: 100%;
    height: 60vh;
    max-height: 650px;
    min-height: 350px;
    margin: 16px 0;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

#vpe-map {
    width: 100%;
    height: 100%;
}

.near-me-section {
    max-width: min(860px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
}

.near-me-blurb,
.near-me-curate-hint {
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 12px;
}

.near-me-location {
    background: #F7F1E7;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
}

#vpe-map-legend {
    background: #fafafa;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.vpe-map-legend__title {
    display: block;
    margin-bottom: 8px;
}

.vpe-map-legend__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.vpe-manual-location {
    margin-top: 12px;
    display: none;
}

.vpe-manual-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.vpe-manual-button {
  margin-top: 10px;
  width: 100%;
  padding: 12px 16px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.vpe-manual-button:hover {
  background: #0056b3;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    white-space: nowrap;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    flex-shrink: 0;
}

/* Pin colours */
.legend-opshop { background: #2E86DE; }
.legend-vintage { background: #8E44AD; }
.legend-market { background: #E67E22; }
.legend-tipshop { background: #27AE60; }
.legend-pending { background: #7F8C8D; }

.vpe-accuracy-good { color: green; }
.vpe-accuracy-ok { color: blue; }
.vpe-accuracy-fair { color: orange; }
.vpe-accuracy-poor { color: red; }

/* Leaflet popup: tap name to open curator */
.vpe-map-popup .leaflet-popup-content {
  margin: 10px 12px;
  line-height: 1.3;
}

.vpe-map-curate-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1a4a7a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  min-height: 28px;
}

.vpe-map-curate-link:hover,
.vpe-map-curate-link:focus {
  color: #0d2f52;
  outline: none;
}

.vpe-map-popup-hint {
  margin-top: 4px;
  font-size: 12px;
  color: #666;
}

/* Tappable place list under the map */
.vpe-near-places-list {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff8ec;
  border: 1px solid #e0c88a;
  border-radius: 8px;
}

.vpe-near-places-list__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a6030;
  margin-bottom: 8px;
}

.vpe-near-places-list__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.vpe-near-places-list__btn {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 44px;
  padding: 12px 14px;
  border: 1.5px solid #e0c88a;
  border-radius: 6px;
  background: #fff;
  color: #3a1f0a;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.3;
}

.vpe-near-places-list__btn:hover,
.vpe-near-places-list__btn:focus {
  background: #e8d5a0;
  outline: none;
}

.vpe-near-places-list__btn--static {
  cursor: default;
  font-weight: 700;
}

.vpe-near-places-list__btn--static:hover,
.vpe-near-places-list__btn--static:focus {
  background: #fff;
}

.vpe-near-places-list__meta {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8a6030;
  margin-top: 2px;
}

.vpe-near-places-list__more {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #8a6030;
}

@media (max-width: 600px) {
  #vpe-map-wrapper {
    height: 50vh;
    min-height: 280px;
    max-height: 420px;
    margin: 12px 0;
  }

  .near-me-location {
    padding: 10px 12px;
  }

  .vpe-manual-button {
    min-height: 48px;
  }
}
