/* Harper Task 1. Deliberately isolated from miniShop2, checkout and task 2 navigation. */
.harper-city-sidebar-wrap { border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.harper-city-trigger { box-sizing: border-box; border: 0; cursor: pointer; font: inherit; text-align: left; }
.harper-city-trigger--sidebar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 18px; color: #fff; background: transparent; }
.harper-city-trigger--sidebar:hover, .harper-city-trigger--sidebar:focus-visible { background: rgba(255,255,255,.10); }
.harper-city-trigger--sidebar .harper-city-trigger-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.harper-city-trigger--sidebar .harper-city-trigger-caption { font-size: 11px; opacity: .75; }
.harper-city-trigger--sidebar [data-harper-city-value] { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.harper-city-trigger-pin { font-size: 18px; flex: none; line-height: 1; }
.harper-city-mobile-wrap { display: none; }

.harper-city-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 15px; background: rgba(12,23,36,.70); box-sizing: border-box; }
.harper-city-overlay[hidden] { display: none !important; }
.harper-city-dialog { position: relative; width: min(100%, 540px); max-height: min(85vh, 720px); overflow-y: auto; box-sizing: border-box; background: #fff; color: #17212d; border-radius: 12px; box-shadow: 0 24px 64px rgba(0,0,0,.25); padding: 27px; font-family: Arial, sans-serif; }
.harper-city-dialog * { box-sizing: border-box; }
.harper-city-dialog h2 { margin: 0 34px 9px 0; font-size: 23px; line-height: 1.25; color: #17212d; }
.harper-city-dialog p { margin: 0 0 16px; font-size: 13px; line-height: 1.5; color: #5b6673; }
.harper-city-close { position: absolute; top: 11px; right: 12px; width: 36px; height: 36px; background: transparent; color: #3d4b58; border: 0; font-size: 29px; cursor: pointer; }
.harper-city-dialog label { display: block; margin: 19px 0 8px; font-weight: 600; font-size: 13px; }
.harper-city-input { width: 100%; height: 44px; padding: 10px 13px; border: 1px solid #aeb8c2; border-radius: 6px; background: #fff; color: #17212d; font: inherit; font-size: 15px; }
.harper-city-input:focus-visible { outline: 2px solid #00799e; outline-offset: 1px; }
.harper-city-group-label { font-weight: 600; margin: 19px 0 10px !important; }
.harper-city-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.harper-city-choice { width: 100%; border: 1px solid #dce2e7; border-radius: 6px; padding: 9px 10px; background: #f8fafb; color: #17212d; text-align: left; font-size: 13px; line-height: 1.3; cursor: pointer; }
.harper-city-choice:hover, .harper-city-choice:focus-visible { border-color: #00799e; background: #eef9fc; }
.harper-city-choice.is-selected { border-color: #00799e; background: #e8f5f9; box-shadow: 0 0 0 1px #00799e inset; }
.harper-city-remote { display: grid; gap: 7px; max-height: 265px; overflow-y: auto; }
.harper-city-status { font-weight: 600; margin: 16px 0 9px !important; }
.harper-city-choice--suggestion { display: flex; flex-direction: column; gap: 3px; }
.harper-city-choice--suggestion strong { font-weight: 600; font-size: 13px; }
.harper-city-choice--suggestion span { color: #627282; font-size: 12px; }
.harper-city-manual { margin-top: 16px; border-top: 1px solid #e7eaee; padding-top: 13px; }
.harper-city-manual p { margin-bottom: 8px; }
.harper-city-choice--manual { background: #edf7fa; font-weight: 600; }
.harper-city-dialog .harper-city-selection { margin: 15px 0 0; padding: 10px 12px; color: #103c4c; background: #e8f5f9; border-left: 3px solid #00799e; border-radius: 4px; font-size: 13px; line-height: 1.45; }
.harper-city-selection[hidden] { display: none !important; }
.harper-city-actions { display: flex; justify-content: flex-end; margin-top: 19px; }
.harper-city-save { padding: 12px 18px; background: #005470; color: #fff; border: 0; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; }
.harper-city-save:hover:not(:disabled) { background: #006b8c; }
.harper-city-save:disabled { opacity: .45; cursor: not-allowed; }

@media (max-width: 1024px) {
  .harper-city-trigger--sidebar { display: none; }
  .harper-city-sidebar-wrap { display: none; }
  .harper-city-mobile-wrap { display: block; position: relative; z-index: 20; padding: 9px 12px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.09); }
  .harper-city-trigger--mobile { width: 100%; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid #e2e7ea; border-radius: 5px; background: #f8fafb; color: #17212d; font-size: 12px; min-height: 34px; }
  .harper-city-trigger--mobile [data-harper-city-value] { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .harper-city-dialog { padding: 20px 16px; max-height: calc(100dvh - 30px); }
  .harper-city-dialog h2 { font-size: 20px; }
  .harper-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 350px) {
  .harper-city-dialog { padding: 17px 12px; }
  .harper-city-grid { grid-template-columns: 1fr; }
}
