.sf-geolocation-editor-container {
  width: 100%;
  height: 434px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bs-border-color);
  border-radius: 4px;
  background-color: var(--bs-popover-bg);
}

.sf-geolocation-editor-container.full-screen {
  width: 100%;
  height: 600px;
  border-radius: 4px;
  box-shadow: 0 0 10px #0000004d;
  transform: none;
}

.sf-geolocation-editor-container .editor-header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background-color: var(--bs-popover-bg);
  color: var(--bs-body-color);
}

.sf-geolocation-editor-container .editor-header .title {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}

.sf-geolocation-editor-container .editor-header .title .location-icon {
  color: var(--bs-icon-secondary-color);
}

.sf-geolocation-editor-container .editor-header .header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sf-geolocation-editor-container .editor-header .full-screen {
  width: 24px;
  height: 24px;
  color: var(--bs-icon-color);
}

.sf-geolocation-editor-container .editor-header .full-screen:hover {
  background-color: var(--bs-hover-bg);
}

.sf-geolocation-editor-container .editor-header .cur-view-path-btn {
  cursor: pointer;
  font-size: 14px;
  height: 24px;
  min-width: 24px;
  width: fit-content;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.sf-geolocation-editor-container .editor-header .cur-view-path-btn.sf3-font,
.sf-geolocation-editor-container .editor-header .cur-view-path-btn.iconfont {
  font-size: 16px;
  color: var(--bs-icon-color);
}

.sf-geolocation-editor-container .editor-header .cur-view-path-btn:hover {
  background-color: var(--bs-hover-bg);
  border-radius: 3px;
}

.sf-geolocation-editor-container .editor-header .btn {
  height: 24px;
  display: flex;
  align-items: center;
  padding: 6px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 3px;
}

.sf-geolocation-editor-container .editor-header .seafile-multicolor-icon {
  width: 16px;
  height: 16px;
}

.sf-geolocation-editor-container .editor-header .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sf-geolocation-editor-container .search-container {
  width: 90%;
  max-width: 450px;
  height: 38px;
  display: flex;
  justify-content: center;
  position: absolute;
  top: 16px;
  left: 24px;
  z-index: 10;
}

.sf-geolocation-editor-container .search-container .search-input {
  flex: 1;
  height: 100%;
  padding-right: 44px;
  border-radius: 3px 0 0 3px;
  border-right: none;
  box-shadow: 0 0 2px #0000004d;
  color: #212529;
  background-color: #fff;
  cursor: text;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.sf-geolocation-editor-container .search-container .clean-btn {
  width: 24px;
  height: 24px;
  position: absolute;
  font-size: 16px;
  color: #666;
  top: 7px;
  right: 14px;
  cursor: pointer;
  z-index: 1;
}

.sf-geolocation-editor-container .search-container .clean-btn:hover {
  background-color: #efefef;
}

.sf-geolocation-editor-container .search-container .search-btn {
  width: 12%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid var(--bs-border-color);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 2px #0000004d;
  cursor: pointer;
}

.sf-geolocation-editor-container .selection-label-content {
  width: 225px;
  height: 130px;
  position: absolute;
  background-color: #fff;
  border: none;
  border-radius: 3px;
  box-shadow: 1px 2px 1px rgba(0, 0, 0, .15);
  padding: 10px;
  font-weight: 500;
  cursor: default;
  left: -115px;
  top: 16px;
}

.sf-geolocation-editor-container .selection-label-content .close-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  color: #666;
  cursor: pointer;
  text-align: center;
}

.sf-geolocation-editor-container .selection-label-content .close-btn:hover {
  background-color: var(--bs-hover-bg);
}

.sf-geolocation-editor-container .selection-label-content .label-title {
  width: 90%;
  color: #212529;
  font-size: 18px;
  text-overflow: ellipsis;
}

.sf-geolocation-editor-container .selection-label-content .label-tag {
  font-size: 12px;
  font-weight: 400;
}

.sf-geolocation-editor-container .selection-label-content .label-address-tip {
  position: absolute;
  top: 58px;
  left: 10px;
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.sf-geolocation-editor-container .selection-label-content .label-address {
  width: 90%;
  position: absolute;
  top: 74px;
  left: 10px;
  font-size: 12px;
  font-weight: 400;
  cursor: text;
}

.sf-geolocation-editor-container .selection-label-content .label-submit {
  width: fit-content;
  min-width: 50px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 12px;
}

.sf-geolocation-editor-container .selection-label-content seafile-multicolor-icon-drop-down {
  position: absolute;
  transform: rotate(180deg);
  top: -16px;
  left: 47%;
  color: #fff;
}

.sf-geolocation-editor-container .selection-label-content.simple {
  height: 90px;
}

.sf-geolocation-editor-container .selection-label-content.simple .label-address {
  width: 205px;
  position: absolute;
  top: 32px;
  font-size: 14px;
  cursor: text;
}

.sf-geolocation-editor-container .sf-map-control-container {
  width: 30px;
  height: fit-content;
  flex-direction: column;
  right: 30px;
}

.sf-geolocation-editor-container .sf-map-control-container.sf-map-geolocation-control-container {
  right: 16px !important;
  bottom: 96px !important;
}

.sf-geolocation-editor-container .sf-map-control-container.sf-map-zoom-control-container {
  right: 16px !important;
  bottom: 30px !important;
}

.sf-geolocation-editor-container .sf-map-control-container .sf-map-control-divider {
  width: 100%;
  height: 1px;
}

.sf-geolocation-editor-container .sf-map-control-container .sf-map-control-divider::before {
  width: 22px;
  height: 1px;
  left: 4px;
  top: 0;
}

.sf-geolocation-editor-container .search-results-container {
  width: 404px;
  height: fit-content;
  max-height: 300px;
  overflow-y: scroll;
  position: absolute;
  top: 62px;
  left: 20px;
  background-color: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 3px;
  padding: 0 10px;
  box-shadow: 0 -0 3px rgb(0 0 0 / 30%);
  z-index: 10;
}

.sf-geolocation-editor-container .search-result-item {
  height: 56px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 8px;
  border-bottom: 1px solid var(--bs-border-color);
  cursor: pointer;
}

.sf-geolocation-editor-container .search-result-item:hover {
  background-color: #f9f9f9;
}

.sf-geolocation-editor-container .search-result-item .search-result-item-title {
  position: relative;
  height: 16px;
  color: #212529;
  font-size: 14px;
  line-height: 14px;
}

.sf-geolocation-editor-container .search-result-item .search-result-item-address {
  position: relative;
  color: #666;
  font-size: 12px;
  line-height: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.popup-label-container {
  cursor: auto;
  height: 0;
  position: absolute;
  width: 200px;
}

/* Search Error Styles */
.sf-geolocation-editor-container .search-error-container {
  width: 90%;
  max-width: 450px;
  position: absolute;
  top: 58px;
  left: 24px;
  right: 0;
  z-index: 1000;
  padding: 8px 12px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
}

.sf-geolocation-editor-container .search-error-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #721c24;
  font-size: 13px;
}

.sf-geolocation-editor-container .search-error-message .error-icon {
  color: #dc3545;
  flex-shrink: 0;
}

/* Search Loading Styles */
.sf-geolocation-editor-container .search-loading-container {
  width: 90%;
  max-width: 450px;
  position: absolute;
  top: 58px;
  left: 24px;
  right: 0;
  z-index: 1000;
  padding: 8px 12px;
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 4px;
}

.sf-geolocation-editor-container .search-loading-message {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--bs-info-text-emphasis);
  font-size: 13px;
}
