/* Override the map's width & height */
#map {
  top: 10px;
  left: 200px;
  width: 100%;
  height: 400px;
  padding: 0px;
}

.ol-attribution.ol-uncollapsible {
  bottom: 27px;
  border-radius: 4px 0 0;
  height: 1.1em;
  line-height: 1em;
  position: relative;
  left: 23px;
}

.ol-attribution:not(.ol-collapsed) {
  background: rgba(255, 255, 255, 0);
}

.ol-control button {
  width: 17px;
  height: 17px;
}

/* Below is cutom use for map fields */
.addressFieldsWrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.mapLoadingMask {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(160, 160, 160, 0.7);
  z-index: 1000;
}

.spinnerWrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toastWrapper {
  display: none;
  position: absolute;
  height: 0px;
  left: 20%;
  top: 40%;
}

@media screen and (max-width: 768px) {
  .toastWrapper {
    left: 0%;
  }
}

.suggest-list {
  font-size: 1rem;
}

.cust-multiselect {
  min-height: 35px;
}

.ui-multiselect-checkboxes input[type="checkbox"] {
  margin-top: 0px;
  font-size: 1rem;
}

.ui-multiselect-checkboxes span {
  font-size: 1rem;
}

.float-map-card {
  /* width: 30%; */
  margin-top: -69px;
  position: relative;
  top: 75px;
  z-index: 999;
  float: right;
  right: 7px;
  background-color: rgba(255, 143, 0, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  padding: 10px;
}


/* Structure Address Block Related CSS */
.address-loading-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.address-spinner {
  text-align: center;
  color: #694232;
}

.address-spinner .spinner-border {
  width: 2rem;
  height: 2rem;
  border-color: #694232;
  border-right-color: transparent;
}

.loading-text {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 0.9rem;
}

.address-dimming-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(251, 251, 251, 0.06);
  z-index: 700;
  pointer-events: auto;
}

/* Prevent hover effects on non-selectable header items */
.ui-autocomplete .ui-autocomplete-category:hover {
  background-color: #f8f9fa !important;
  cursor: default !important;
}

/* Map section styles */
#mapSection {
  z-index: 9998;
  position: relative;
}

#map {
  border-radius: 4px;
}

#mapSelectedAddress {
  border-radius: 4px;
}

/* Checkbox styling for map mode */
.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.form-check-label {
  cursor: pointer;
}

/* Map mode container styling to keep it always interactive */
#mapModeContainer {
  position: relative;
  z-index: 800;
  background-color: white;
  border-radius: 4px;
}

/* Loading disabled styling for input fields */
.loading-disabled {
  background-color: #f5f5f5 !important;
  color: #999 !important;
  cursor: not-allowed !important;
}

/* Dropdown arrow styling - aligned with .form-select */
.position-relative input.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Placeholder styling for structure address block */
#addressFormContainer input::placeholder {
  font-style: italic;
  font-size: 0.9em;
}