.p24-map-pick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  color: #26313d;
  background: #fff;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.p24-map-pick-button:hover {
  border-color: #9bb7e0;
  background: #f8fbff;
}

.p24-google-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #4285f4;
  background:
    linear-gradient(90deg, #4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75% 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.p24-map-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(9, 14, 24, 0.58);
}

.p24-map-picker-modal {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(960px, 100%);
  height: min(760px, calc(100dvh - 44px));
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: #172033;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.p24-map-picker-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.p24-map-picker-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.p24-map-picker-header,
.p24-map-picker-search,
.p24-map-picker-footer {
  padding: 16px 18px;
  border-bottom: 1px solid #e4e9f0;
}

.p24-map-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.p24-map-picker-header strong {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.p24-map-picker-header span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.p24-map-picker-close {
  width: 42px;
  height: 42px;
  border: 1px solid #d5dce6;
  border-radius: 50%;
  background: #fff;
  color: #101828;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.p24-map-picker-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.p24-map-picker-search input {
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  font: inherit;
}

.p24-map-picker-search button,
.p24-map-picker-confirm {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: #145a3a;
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.p24-map-picker-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.p24-map-picker-map {
  height: clamp(300px, 54dvh, 520px);
  min-height: 300px;
  background: #eef2f7;
}

.p24-map-picker-status {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px;
  color: #667085;
  font-weight: 800;
  text-align: center;
}

.p24-map-picker-fallback {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  background: #dfe5e8;
}

.p24-map-picker-fallback-image {
  display: block;
  width: min(100%, 520px);
  height: auto;
  max-height: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  cursor: crosshair;
}

.p24-map-picker-provider {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #fff;
  background: rgba(16, 24, 40, 0.78);
  font-size: 11px;
  font-weight: 800;
}

.p24-map-picker-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  border-top: 1px solid #e4e9f0;
  border-bottom: 0;
  background: #fafafa;
}

.p24-map-picker-selected {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.p24-map-picker-selected b {
  color: #111827;
}

@media (max-width: 720px) {
  .p24-map-picker-overlay {
    padding: 0;
  }

  .p24-map-picker-modal {
    width: calc(100% - 20px);
    height: min(88dvh, 720px);
    max-height: calc(100dvh - 20px);
    border-radius: 12px;
  }

  .p24-map-picker-header {
    padding: 12px 14px;
  }

  .p24-map-picker-header strong { font-size: 17px; }
  .p24-map-picker-header span { font-size: 11px; }
  .p24-map-picker-close { width: 36px; height: 36px; flex: 0 0 auto; }

  .p24-map-picker-search,
  .p24-map-picker-footer {
    padding: 12px 14px;
  }

  .p24-map-picker-map {
    height: clamp(260px, 48dvh, 430px);
    min-height: 260px;
  }

  .p24-map-picker-search,
  .p24-map-picker-footer {
    grid-template-columns: 1fr;
  }

  .p24-map-picker-confirm {
    width: 100%;
    min-height: 48px;
  }

  .p24-map-pick-button {
    width: 100%;
  }
}
