.map-search-panel {
  padding: 12px 14px;
  background: #f8fafc;
}

.map-search-main-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.map-region-trigger {
  flex: 0 0 116px;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #16b978;
  font-size: 14px;
  font-weight: 700;
  padding: 0 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.map-region-trigger span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-region-arrow {
  font-size: 12px;
  color: #94a3b8;
}

.map-search-keyword-box {
  flex: 1;
  margin: 0;
}

.map-search-filters.compact {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.map-search-filter-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.map-region-modal[hidden] {
  display: none !important;
}

.map-region-modal {
  position: fixed;
  inset: 0;
  z-index: 2600;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.map-region-sheet {
  width: 100%;
  max-width: 520px;
  height: min(88vh, 720px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -16px 36px rgba(15, 23, 42, 0.18);
}

.map-region-header {
  height: 56px;
  background: linear-gradient(135deg, #1fc989 0%, #21c77c 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.map-region-title {
  font-size: 18px;
  font-weight: 800;
}

.map-region-clear {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}

.map-region-search-row {
  padding: 10px 12px;
  background: #fff;
}

.map-region-search-box {
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.map-region-search-box input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #334155;
}

.map-region-columns {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  background: #f1f5f9;
  overflow: hidden;
}

.map-region-column {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-right: 1px solid #e2e8f0;
}

.map-region-column:nth-child(1) {
  background: #fff;
}

.map-region-column:nth-child(2) {
  background: #f8fafc;
}

.map-region-column:nth-child(3) {
  background: #eef2f7;
  border-right: 0;
}

.map-region-item {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #475569;
  font-size: 15px;
  text-align: left;
}

.map-region-item.active {
  background: #dcfce7;
  color: #14a86f;
  font-weight: 800;
}

.map-region-check {
  flex: 0 0 auto;
  color: #18bf7d;
  font-weight: 900;
}

.map-region-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.map-region-reset,
.map-region-confirm {
  height: 48px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
}

.map-region-reset {
  background: #e5e7eb;
  color: #64748b;
}

.map-region-confirm {
  background: linear-gradient(135deg, #20c987 0%, #28d17d 100%);
  color: #fff;
}

@media (max-width: 380px) {
  .map-region-trigger {
    flex-basis: 96px;
    font-size: 13px;
  }

  .map-region-item {
    font-size: 14px;
    padding: 0 8px;
  }
}
