



fieldset.poi-address-location > h2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

fieldset.poi-address-location > h2 .bi {
  font-size: 14px;
  opacity: 0.85;
}

fieldset.poi-address-location .description {
  padding: 0 20px 4px;
  margin: 0;
}

.poi-location-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 20px 20px;
}

.poi-location-row {
  display: grid;
  width: 100%;
}

.poi-location-row--address {
  grid-template-columns: minmax(0, 1fr);
}

.poi-location-row--meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.poi-location-row--coords {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(132px, 148px);
  align-items: end;
  gap: 12px;
}



fieldset.poi-address-location .form-row,
fieldset.poi-address-location .poi-location-field {
  border-bottom: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-width: 0;
}

fieldset.poi-address-location .poi-location-field__stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

body.add-form fieldset.poi-address-location .poi-location-field label,
body.change-form fieldset.poi-address-location .poi-location-field label,
fieldset.poi-address-location .poi-location-field label {
  float: none !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--body-quiet-color, var(--ux-grey-600, #6b7280));
  text-align: left !important;
}

body.add-form fieldset.poi-address-location .poi-location-control,
body.change-form fieldset.poi-address-location .poi-location-control,
fieldset.poi-address-location .poi-location-control,
body.add-form fieldset.poi-address-location.aligned .poi-location-field input,
body.add-form fieldset.poi-address-location.aligned .poi-location-field select,
body.add-form fieldset.poi-address-location.aligned .poi-location-field textarea,
body.change-form fieldset.poi-address-location.aligned .poi-location-field input,
body.change-form fieldset.poi-address-location.aligned .poi-location-field select,
body.change-form fieldset.poi-address-location.aligned .poi-location-field textarea {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
  min-height: 34px;
  height: auto;
  padding: 7px 10px !important;
  font-size: 14px;
  line-height: 1.35;
  border: 1px solid var(--hairline-color, var(--ux-grey-300, #d1d5db));
  border-radius: var(--ux-radius-sm, 6px);
  background: var(--body-bg, #fff);
  color: var(--body-fg, var(--ux-grey-900, #111827));
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

fieldset.poi-address-location .poi-location-control:focus,
fieldset.poi-address-location .poi-location-field input:focus,
fieldset.poi-address-location .poi-location-field textarea:focus,
fieldset.poi-address-location .poi-location-field select:focus {
  outline: none;
  border-color: var(--ux-primary, #5b65dc);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ux-primary, #5b65dc) 18%, transparent);
}

fieldset.poi-address-location .poi-location-control--textarea,
fieldset.poi-address-location .poi-location-field textarea {
  min-height: 72px !important;
  max-height: 140px;
  resize: vertical;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

fieldset.poi-address-location .poi-location-field .help,
fieldset.poi-address-location .poi-location-field .helptext,
fieldset.poi-address-location .poi-location-field .errorlist {
  margin: 2px 0 0 !important;
  padding: 0 !important;
}

fieldset.poi-address-location .poi-location-field .errorlist li {
  margin: 0;
}

.poi-location-radius-hint {
  font-size: 11px;
  color: var(--body-quiet-color, var(--ux-grey-500, #9ca3af));
  margin: 0;
  line-height: 1.3;
}

.poi-location-or {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--body-quiet-color, var(--ux-grey-400, #9ca3af));
  text-align: center;
  padding: 2px 0;
  margin: -4px 0;
}

.poi-location-or::before,
.poi-location-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline-color, var(--ux-grey-200, #e5e7eb));
}



.poi-location-map-preview {
  position: relative;
  display: block;
  min-height: 220px;
  border: 1px solid var(--hairline-color, var(--ux-grey-200, #e5e7eb));
  border-radius: var(--ux-radius-md, 8px);
  background: var(--darkened-bg, var(--ux-grey-100, #f3f4f6));
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.poi-location-map-preview:hover:not(.poi-location-map-preview--readonly) {
  border-color: var(--ux-primary, #5b65dc);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ux-primary, #5b65dc) 20%, transparent);
}

.poi-location-map-preview:focus-visible {
  outline: 2px solid var(--ux-primary, #5b65dc);
  outline-offset: 2px;
}

.poi-location-map-preview--readonly {
  cursor: default;
}

.poi-location-inline-map {
  width: 100%;
  height: 220px;
  z-index: 0;
  cursor: pointer;
}

.poi-location-map-preview .leaflet-container {
  font: inherit;
  background: var(--darkened-bg, #e5e7eb);
  cursor: pointer;
}

.poi-location-map-preview .leaflet-control-attribution {
  font-size: 10px;
  margin: 0;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.85);
}

.poi-location-map-preview__chrome {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 28px 12px 10px;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.72) 0%,
    rgba(15, 23, 42, 0.35) 55%,
    transparent 100%
  );
  color: #fff;
  pointer-events: none;
}

.poi-location-map-preview__label {
  font-size: 12px;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.poi-location-map-preview__coords {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  opacity: 0.92;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.poi-location-map-preview__coords[hidden] {
  display: none;
}

.poi-map-locate {
  position: absolute;
  right: 12px;
  bottom: 28px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #1a73e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  pointer-events: auto;
}

.poi-map-locate .bi {
  font-size: 18px;
  line-height: 1;
}

.poi-map-locate:hover {
  background: #f8f9fa;
  color: #174ea6;
}

.poi-map-locate:disabled {
  opacity: 0.65;
  cursor: wait;
}

.poi-location-pin-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.poi-location-pin-col__label {
  display: block;
  height: 18px;
  font-size: 13px;
  line-height: 1.35;
  visibility: hidden;
  user-select: none;
}

.poi-location-pin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: #fff;
  background: var(--ux-primary, #5b65dc);
  border: none;
  border-radius: var(--ux-radius-sm, 6px);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}

.poi-location-pin-btn:hover {
  background: var(--ux-primary-hover, #4a53c4);
}

.poi-location-pin-btn .bi {
  font-size: 14px;
}

@media (max-width: 767px) {
  .poi-location-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .poi-location-row--meta,
  .poi-location-row--coords {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .poi-location-pin-col__label {
    display: none;
  }

  fieldset.poi-address-location .poi-location-control,
  fieldset.poi-address-location .poi-location-field input,
  fieldset.poi-address-location .poi-location-field textarea {
    min-height: 40px !important;
    font-size: 14px !important;
  }

  fieldset.poi-address-location .poi-location-control--textarea,
  fieldset.poi-address-location .poi-location-field textarea {
    min-height: 72px !important;
  }
}



.poi-map-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.poi-map-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.poi-map-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  max-height: min(90vh, 880px);
  background: var(--body-bg, #fff);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.poi-map-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--hairline-color, #e2e8f0);
}

.poi-map-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.poi-map-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.poi-map-modal__close:hover {
  background: var(--darkened-bg, #f1f5f9);
}

.poi-map-modal__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 16px 20px;
  overflow: auto;
}

.poi-map-modal__hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--body-quiet-color, #64748b);
}

.poi-map-modal__search {
  position: relative;
}

.poi-map-modal__search-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--body-quiet-color, #64748b);
}

.poi-map-modal__search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid var(--hairline-color, #e2e8f0);
  border-radius: 8px;
  background: var(--body-bg, #fff);
  color: var(--body-fg, #0f172a);
  font: inherit;
  font-size: 0.9375rem;
}

.poi-map-modal__search-results {
  position: static;
  z-index: 5;
  margin: 8px 0 0;
  padding: 4px;
  list-style: none;
  max-height: 260px;
  overflow: auto;
  background: var(--body-bg, #fff);
  border: 1px solid var(--hairline-color, #e2e8f0);
  border-radius: 8px;
}

.poi-map-modal__search-results[hidden] {
  display: none;
}

.poi-map-modal__search-results li + li {
  margin-top: 4px;
}

.poi-map-modal__search-result {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.poi-map-modal__search-result:hover,
.poi-map-modal__search-result:focus {
  background: var(--darkened-bg, #f1f5f9);
}

.poi-map-modal__search-status {
  margin: 6px 0 0;
  min-height: 1.1em;
  font-size: 0.8125rem;
  color: var(--body-quiet-color, #64748b);
}

.poi-map-modal__map-wrap {
  position: relative;
}

.poi-map-modal__map {
  width: 100%;
  height: min(52vh, 420px);
  min-height: 280px;
  border-radius: 10px;
  border: 1px solid var(--hairline-color, #e2e8f0);
  overflow: hidden;
}

.poi-map-modal__geocode {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--darkened-bg, #f8fafc);
  border: 1px solid var(--hairline-color, #e2e8f0);
}

.poi-map-modal__geocode-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--body-quiet-color, #64748b);
  margin-bottom: 6px;
}

.poi-map-modal__geocode-label--spaced {
  margin-top: 12px;
}

.poi-map-modal__coord-text {
  margin: 0;
  font-size: 0.875rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--body-fg, #0f172a);
}

.poi-map-modal__geocode-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  word-break: break-word;
}

.poi-map-modal__geocode-status {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: var(--body-quiet-color, #64748b);
}

.poi-map-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--hairline-color, #e2e8f0);
}

.poi-map-modal__apply {
  border: none;
  cursor: pointer;
}

.poi-map-poi-icon {
  background: transparent !important;
  border: none !important;
}


.poi-map-poi-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 34px;
}

.poi-map-poi-pin__bubble {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.poi-map-poi-pin__bubble .bi {
  font-size: 14px;
  line-height: 1;
}

.poi-map-poi-pin__tip {
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
}

.poi-map-poi-pin--poi .poi-map-poi-pin__bubble {
  background: #0a84ff;
}

.poi-map-poi-pin--poi .poi-map-poi-pin__tip {
  border-top-color: #0a84ff;
}

.poi-map-modal .leaflet-interactive.poi-map-geofence,
.poi-location-map-preview .leaflet-interactive.poi-map-geofence {
  transition: stroke 0.25s ease, fill-opacity 0.25s ease;
}

.poi-map-modal .leaflet-container {
  font: inherit;
}

[data-theme="dark"] .poi-map-modal__panel {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .poi-map-modal__geocode {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .poi-map-locate {
  background: #1f2937;
  color: #8ab4f8;
}

[data-theme="dark"] fieldset.poi-address-location .poi-location-control,
[data-theme="dark"] fieldset.poi-address-location .poi-location-field input,
[data-theme="dark"] fieldset.poi-address-location .poi-location-field textarea,
[data-theme="dark"] fieldset.poi-address-location .poi-location-field select {
  background: var(--ux-grey-100, #1f2937);
  border-color: var(--ux-grey-300, #374151);
  color: var(--body-fg, #f3f4f6);
}


.field-region .select2-container,
.field-district .select2-container,
.field-upazila .select2-container,
.field-thana .select2-container,
.field-ward_no .select2-container,
.field-village .select2-container {
  font-size: 14px;
  max-width: 100%;
}

.field-region .select2-container--default .select2-selection--single,
.field-district .select2-container--default .select2-selection--single,
.field-upazila .select2-container--default .select2-selection--single,
.field-thana .select2-container--default .select2-selection--single,
.field-ward_no .select2-container--default .select2-selection--single,
.field-village .select2-container--default .select2-selection--single {
  height: 36px;
  border: 1.5px solid var(--ux-grey-300, #d1d5db);
  border-radius: var(--ux-radius-sm, 4px);
  background: var(--ux-input-bg, #f9fafb);
  display: flex;
  align-items: center;
}

.field-region .select2-container--default .select2-selection--single .select2-selection__rendered,
.field-district .select2-container--default .select2-selection--single .select2-selection__rendered,
.field-upazila .select2-container--default .select2-selection--single .select2-selection__rendered,
.field-thana .select2-container--default .select2-selection--single .select2-selection__rendered,
.field-ward_no .select2-container--default .select2-selection--single .select2-selection__rendered,
.field-village .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 34px;
  padding-left: 10px;
  color: var(--ux-grey-900, #111827);
}

.field-region .select2-selection__placeholder,
.field-district .select2-selection__placeholder,
.field-upazila .select2-selection__placeholder,
.field-thana .select2-selection__placeholder,
.field-ward_no .select2-selection__placeholder,
.field-village .select2-selection__placeholder {
  color: #9ca3af;
}

.field-region .select2-container--default.select2-container--focus .select2-selection--single,
.field-region .select2-container--default.select2-container--open .select2-selection--single,
.field-district .select2-container--default.select2-container--focus .select2-selection--single,
.field-district .select2-container--default.select2-container--open .select2-selection--single,
.field-upazila .select2-container--default.select2-container--focus .select2-selection--single,
.field-upazila .select2-container--default.select2-container--open .select2-selection--single,
.field-thana .select2-container--default.select2-container--focus .select2-selection--single,
.field-thana .select2-container--default.select2-container--open .select2-selection--single,
.field-ward_no .select2-container--default.select2-container--focus .select2-selection--single,
.field-ward_no .select2-container--default.select2-container--open .select2-selection--single,
.field-village .select2-container--default.select2-container--focus .select2-selection--single,
.field-village .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ux-primary, #5b65dc);
  box-shadow: 0 0 0 3px rgba(91, 101, 220, 0.15);
  outline: none;
}


.field-site_pois .linked-select,
.field-site_pois .select2-container {
  
  font-size: 14px;
  width: 20em !important;
  max-width: 100%;
}

.field-site_pois .select2-container .select2-selection--multiple {
  background: var(--ux-input-bg, #f9fafb) !important;
  border: 1.5px solid var(--ux-grey-300, #d1d5db) !important;
  border-radius: var(--ux-radius-sm, 4px) !important;
  min-height: 36px !important;
  height: auto;
  padding: 4px 8px !important;
  box-sizing: border-box;
}

.field-site_pois .select2-container--focus .select2-selection--multiple,
.field-site_pois .select2-container--open .select2-selection--multiple {
  border-color: var(--ux-primary, #5b65dc) !important;
  box-shadow: 0 0 0 3px rgba(91, 101, 220, 0.15) !important;
  outline: none !important;
}

.field-site_pois .select2-selection__clear {
  display: none !important;
}

.field-site_pois .select2-selection--multiple .select2-selection__rendered {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  gap: 6px;
  width: 100% !important;
  box-sizing: border-box;
  padding: 0 !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

.field-site_pois .select2-selection--multiple .select2-selection__choice {
  float: none !important;
  display: inline-flex !important;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 4px 8px !important;
  box-sizing: border-box;
  white-space: normal !important;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.field-site_pois .select2-selection--multiple .select2-selection__choice__remove {
  position: static !important;
  float: none !important;
  flex: 0 0 auto;
  margin: 0 !important;
  line-height: 1.35;
  border: 0 !important;
  background: transparent !important;
}

.field-site_pois .select2-selection--multiple .select2-selection__choice__display {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 0 !important;
}

.field-site_pois .select2-search--inline {
  float: none !important;
  flex: 1 1 8rem;
  min-width: 8rem;
  margin: 0 !important;
}

.field-site_pois .select2-search--inline .select2-search__field {
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  height: 24px;
  font-size: 14px;
  line-height: 24px;
}

.field-site_pois .select2-search--inline .select2-search__field::placeholder {
  color: #9ca3af;
  opacity: 1;
}

