@charset "UTF-8";

.map-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 12px 18px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #edf0ea;
  position: relative;
}
.map-header-back {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: #182219;
}
.map-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  color: #152017;
}

.addr-list {
  padding: 12px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.addr-card {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.addr-card.selected {
  box-shadow: 0 2px 16px rgba(42,105,49,0.10);
}
.addr-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.addr-radio {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color .2s ease, background .2s ease;
}
.addr-card.selected .addr-radio {
  border-color: #2a6931;
  background: #2a6931;
}
.addr-radio svg { display: none; }
.addr-card.selected .addr-radio svg { display: block; }

.addr-body { flex: 1; min-width: 0; }

.addr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.addr-user {
  font-size: 14px;
  font-weight: 800;
  color: #111;
}
.addr-tel {
  font-size: 12px;
  color: #999;
  font-weight: 600;
}
.addr-default-tag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #2a6931;
  background: #eaf5eb;
}
.addr-full-text {
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 6px;
  word-break: break-all;
}
.addr-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.addr-meta-icon {
  display: flex;
  align-items: center;
  color: #2a6931;
}
.addr-meta-icon svg,
.addr-form-close svg,
.map-header-back svg,
.addr-radio svg {
  stroke-width: 1.4;
}
.addr-meta-text {
  font-size: 11px;
  font-weight: 700;
  color: #2a6931;
}
.addr-meta-icon.pickup { color: #8b6f47; }
.addr-meta-text.pickup { color: #8b6f47; }

.addr-actions {
  display: flex;
  gap: 0;
  border-top: 1px solid #f5f5f5;
}
.addr-act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 0;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #6e766e;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.addr-act:not(:last-child) {
  border-right: 1px solid #f5f5f5;
}
.addr-act:hover {
  color: #2a6931;
  background: #fafbf9;
}
.addr-act svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.4;
}
.addr-act.danger { color: #c43d35; }
.addr-act.danger:hover {
  color: #ad2f28;
  background: #fffafa;
}

.addr-form-mask {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
}
.addr-form {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
  z-index: 200;
  max-height: 86vh;
  overflow-y: auto;
  padding: 12px;
}
.addr-form-handle {
  width: 32px; height: 4px; border-radius: 2px;
  background: #ddd; margin: 10px auto 4px;
}
.addr-form-head {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 6px 18px 8px;
}
.addr-form-title { font-size: 16px; font-weight: 800; color: #111; }
.addr-form-close {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: #bbb; cursor: pointer;
  transition: color .15s, background .15s;
}
.addr-form-close:hover { color: #111; background: #f2f3ef; }

.addr-form-fields { padding: 2px 18px 0; }

.addr-form-field { margin-bottom: 14px; }
.addr-form-field > label {
  display: block;
  font-size: 12px; font-weight: 700; color: #858b85;
  margin-bottom: 6px;
}

.addr-form-field input,
.addr-form-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 12px 13px;
  font-size: 16px; font-family: inherit;
  color: #111; background: #fafaf8;
  outline: none; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.addr-form-field input:focus,
.addr-form-field textarea:focus {
  border-color: #2a6931;
  box-shadow: 0 0 0 3px rgba(42,105,49,0.06);
}
.addr-form-field textarea { resize: none; }
.addr-form-field input::placeholder,
.addr-form-field textarea::placeholder { color: #c0c0c0; }

.addr-region-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.addr-region-row select {
  width: 100%; height: 40px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  padding: 0 34px 0 12px;
  font-size: 16px; font-family: inherit;
  font-weight: 700; color: #111;
  background: #fafaf8 url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none;
  outline: none !important; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, box-shadow .2s;
}
.addr-region-row select option {
  font-size: 16px;
  font-weight: 500;
  color: #111;
}
.addr-region-row select:focus {
  border-color: #2a6931;
  box-shadow: 0 0 0 3px rgba(42,105,49,0.06);
  outline: none !important;
}
.addr-region-row select:focus-visible {
  outline: none !important;
}
.addr-region-row select:disabled { opacity: 0.4; cursor: not-allowed; background-color: #f5f5f5; }

.addr-type-row {
  display: flex; gap: 10px;
}
.addr-type-opt {
  flex: 1; text-align: center;
  padding: 9px 0; border-radius: 10px;
  border: 1px solid #e0e0e0;
  font-size: 13px; font-weight: 700;
  color: #888; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none; background: #fafaf8;
}
.addr-type-opt.selected {
  border-color: #2a6931;
  background: #edf6ee;
  color: #2a6931; font-weight: 800;
}
.addr-type-opt:hover:not(.selected) { border-color: #c8dcc9; }

.addr-check-label {
  display: flex; align-items: center;
  gap: 8px; cursor: pointer; user-select: none;
  font-size: 12px; font-weight: 700; color: #555;
}
.addr-check-label:hover { color: #111; }
.addr-check-box {
  width: 20px; height: 20px;
  border-radius: 4px;
  border: 2px solid #ccc;
  display: flex; flex-shrink: 0;
  transition: border-color .2s, background .2s;
}

.addr-form-btns { padding: 4px 18px 28px; }
.addr-form-save {
  width: 100%; height: 44px;
  border-radius: 999px; border: none;
  background: #2a6931; color: #fff;
  font-size: 14px; font-weight: 800;
  cursor: pointer; letter-spacing: .5px;
  transition: background .2s, transform .15s;
}
.addr-form-save:hover { background: #1e4f24; }
.addr-form-save:active { transform: scale(.98); }

.map-add-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  width: calc(100% - 32px); max-width: 448px;
  margin: 6px auto 20px;
  height: 44px;
  border-radius: 999px; border: 1px dashed #c0c9bc;
  background: transparent; color: #2a6931;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.map-add-btn svg {
  stroke-width: 1.4;
}
.map-add-btn:hover { border-color: #2a6931; background: #fafcfa; }

body { background: #f5f7f3; }
