.yc-map-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.yc-map-modal.hidden {
  display: none !important;
}

.yc-map-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.yc-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.yc-map-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.yc-map-locate {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0284c7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.yc-map-locate:disabled {
  opacity: 0.6;
  cursor: wait;
}

.yc-map-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.yc-map-close {
  border: none;
  background: #f1f5f9;
  color: #475569;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.yc-map-search-wrap {
  position: relative;
  padding: 10px 12px 0;
  flex-shrink: 0;
}

.yc-map-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.yc-map-search:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.yc-map-suggest {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(100% - 4px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow: auto;
  z-index: 2;
}

.yc-map-suggest.hidden {
  display: none;
}

.yc-map-suggest-item {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}

.yc-map-suggest-item:last-child {
  border-bottom: none;
}

.yc-map-suggest-item:active,
.yc-map-suggest-item:hover {
  background: #f8fafc;
}

.yc-map-suggest-name {
  color: #0f172a;
  font-weight: 500;
}

.yc-map-suggest-addr {
  color: #64748b;
  font-size: 12px;
  margin-top: 2px;
}

.yc-map-container {
  flex: 1;
  min-height: 280px;
  margin: 10px 12px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.yc-map-preview {
  margin: 10px 12px 0;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  min-height: 42px;
  flex-shrink: 0;
}

.yc-map-foot {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.yc-map-foot button {
  flex: 1;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.yc-map-btn-cancel {
  background: #f1f5f9;
  color: #475569;
}

.yc-map-btn-ok {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  font-weight: 600;
}

.yc-map-btn-ok:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
