body,
html {
  /* height: 100%; */
  margin: 0;
}

body {
  padding-top: 0px;
  padding-left: 24px;
  padding-right: 24px;
}

body,
html,
.dashboard-container,
.dashboard-container-row,
#map_im {
  /* max-height: calc(100vh - 64px - 57px);
  height: calc(100vh - 64px - 57px); */
  height: 100vh;
  max-height: 100vh;
}

.custom-carousel .carousel-control-prev {
  display: var(--carousel-control-prev-display, flex) !important;
}

.custom-carousel .carousel-control-next {
  display: var(--carousel-control-next-display, flex) !important;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 40px;
  height: 40px;
}

#map_im {
  /* height: 100vh; */
  height: 425px;
  width: 100%;
  border: 1px solid black;
}

@media (min-width: 992px) {
  #map_im {
    height: 100vh;
  }
}

.dashboard-container,
.dashboard-container-row {
  max-height: 100vh;
  height: 100vh;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1000;
  display: none;
}

.confirm-button:hover {
  outline: 2px solid black !important;
}

/* Sidebars */

.sidebar {
  position: relative;
  overflow-y: scroll;
  height: 100%;
  /*
  width: 38%;
  margin-left: 10px;
  margin-top: 10px;
  margin-right: 0px;
  padding-right: 0px; */
}
/*
.mainmap {
  padding-left: 0px;
  width: 70%;
} */

/* Sidebar Header */

.method-card-header img {
  width: 100%;
}

.method-card {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  padding: 16px;
  background-color: #f4f4f4;
  z-index: 1001;
  position: relative;
}

.method-card-title {
  display: flex;
  align-items: center;
  font-size: 20px;
  height: 44px;
}

.method-card-choice-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* column-gap: 2px;*/
  grid-gap: 0;
  align-items: stretch;
}

.method-card-choice {
  height: 100%;
}

.method-card-choice-content {
  padding: 8px 0px;
  outline: 1px solid rgb(198, 198, 198);
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  grid-template-areas:
    "label"
    ". description";
  cursor: pointer;
  height: 100%;
}

.method-card-choice.selected {
  outline: 1px solid black;
  background-color: #eb9370;
}

.method-card-choice-content .choice-label {
  grid-area: label;
  display: flex;
}

.method-card-choice-content .choice-description {
  grid-area: description;
}

.method-card-choice-content .choice-description > * {
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.method-card-action-container {
  display: flex;
  justify-content: flex-end;
  padding-left: 0px;
}

.method-card-choice-container .form-check {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-left: 0px;
  height: 100%;
}

.method-card-choice-container .form-check-input::before {
  content: "";
  padding: 0;
  transition: background-color 0.3s ease-in-out;
}

.method-card-action-container button {
  border: none;
  border-radius: 0px;
  outline: 1px solid black;
  background-color: white;
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  font-size: 16px;
  /* font-size: 1rem; */
  cursor: pointer;
}

.method-card-description {
  line-height: 20px;
  font-size: 14px;
  padding: 20px 0px 32px 0px;
}

/* // <uniquifier>: Use a unique and descriptive class name */
/* // <weight>: Use a value from 200 to 1000 */

.nunito-sans-regular {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

.nunito-sans-bold {
  font-family: "Nunito Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100, "YTLC" 500;
}

.roboto-regular {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.roboto-medium {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-sans-light {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

/* additional font styles */

.roboto-thin {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.roboto-light {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.roboto-bold {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.roboto-black {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: normal;
}

.roboto-thin-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.roboto-light-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.roboto-regular-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.roboto-medium-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.roboto-bold-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-style: italic;
}

.roboto-black-italic {
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  font-style: italic;
}

.ibm-plex-sans-thin {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 100;
  font-style: normal;
}

.ibm-plex-sans-extralight {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 200;
  font-style: normal;
}

.ibm-plex-sans-light {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.ibm-plex-sans-regular {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.ibm-plex-sans-medium {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.ibm-plex-sans-semibold {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.ibm-plex-sans-bold {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.ibm-plex-sans-thin-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 100;
  font-style: italic;
}

.ibm-plex-sans-extralight-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 200;
  font-style: italic;
}

.ibm-plex-sans-light-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 300;
  font-style: italic;
}

.ibm-plex-sans-regular-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.ibm-plex-sans-medium-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 500;
  font-style: italic;
}

.ibm-plex-sans-semibold-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-style: italic;
}

.ibm-plex-sans-bold-italic {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  font-style: italic;
}

/* ----------------------------------------------- */
/* Checklist */

@media (max-width: 991px) {
  .sidebar {
    height: 100%;
    overflow-y: visible;
  }

  .legend-image {
    width: 70%;
    height: auto;
  }

  .variable-card {
    height: auto;
    min-height: fit-content;
  }

  .variable-card .custom-checkbox,
  .variable-card .scrollable {
    height: auto;
    max-height: none;
    overflow: visible !important;
  }

  /* .variable-card + .variable-card {
    margin-top: 10px;
  } */

  /* Enable touch events only for interactive elements */
  .variable-card input,
  .variable-card button,
  .variable-card select {
    pointer-events: auto !important;
    touch-action: auto;
  }
}

.variable-card {
  display: flex;
  flex-direction: column;
  /* width: 520px; */

  /* root size for fonts of children */
  font-size: 16px;
  padding-top: 16px;
  background-color: #fff;
}

.variable-card-icon {
  margin-right: 10px;

  font-size: 14px;
  /* font-size: 1rem; */

  height: 20px;
  /* height: 2rem; */

  line-height: 20px;
  /* line-height: 1.5rem; */
}

.variable-card-title {
  display: inline-block;
  align-items: center;

  font-size: 14px;
  /* font-size: 1rem; */

  height: 30px;
  /* height: 2rem; */

  line-height: 20px;
  /* line-height: 1.5rem; */
}

.error-container {
  display: flex;
  flex-direction: row;
  line-height: 10px;
}

.error-icon {
  margin-right: 5px;
  height: 10px;
  display: inline-block;
}

.error-label {
  display: inline-block;
  align-items: center;
  font-size: 11px;
  justify-content: center;
}

.variable-card-title-rule {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -moz-float-edge: margin-box;
  border-width: 1px;
  /* width: 100%; */
  border-color: black;
  opacity: unset;
  margin: 0;
}

.variable-card-title-rule-grey {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -moz-float-edge: margin-box;
  border-width: 1px;
  /* width: 100%; */
  border-color: #ccc;
  opacity: unset;
  margin: 0;
}

.score-indicator-container {
  display: inline-block;
}
.score-indicator-text {
  margin-bottom: 0;
}
.variable-card-title-rule-grey-small {
  margin: 1px 0;
  border-color: black;
  border-width: 1px 0 0 0;
  width: 100%;
}

.local-context-rows {
  display: flex;
  border-bottom: 1px solid #eee;
  padding: 5px 0px;
}

.local-context-row-value {
  flex: 1;
  text-align: right;
  font-weight: bold;
  padding-right: 10px;
}

.local-context-row-label {
  flex: 1.5;
  text-align: left;
}

.local-context-header {
  display: flex;
  margin-bottom: 10px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.scrollable {
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
}

.variable-card-map {
  display: grid;
  width: 100%;
  height: 20vh;
  position: relative;
}

.custom-checkbox {
  /* max-height: 30vh; */
  margin-top: 12px;
  font-size: 14px;
  height: 15vh;
  overflow-y: scroll;
  width: 90%;
}

.custom-checkbox .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid black;
  border-radius: 1px;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  display: inline-block;
  position: relative;
}

.custom-checkbox .form-check-input::before {
  content: "";
  background-color: #fff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transition: background-color 0.3s ease-in-out;
}

.custom-checkbox .form-check-label {
  font-size: 14px;
  margin-left: 10px;
  margin-bottom: 10px;
}

.temp-checkbox .form-check-input:checked::before {
  background-color: #f57906;
}

.sus-checkbox .form-check-input:checked::before {
  background-color: #9110c4;
}

.ada-checkbox .form-check-input:checked::before {
  background-color: #72896e;
}

/* Layer switches */
.layer-accordion-header .accordion-button {
  font-size: 16px;
  background-color: #d9d9d9;
  color: black;
}

.custom-layer-checkbox {
  font-size: 14px;
  padding-top: 10px;
}

.accordion-tooltip {
  font-size: 14px;
}

.custom-layer-checkbox .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 35px;
  height: 15px;
  background-color: white;
  border-radius: 20px;
  border-color: black;
  position: relative;
  /* outline: none; */
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
  margin-right: 10px;
}

.custom-layer-checkbox .form-check-input::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: black;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: transform 0.3s ease-in-out;
}

.custom-layer-checkbox .form-check-input:checked {
  background-color: white;
}

.custom-layer-checkbox .form-check-input:checked::before {
  transform: translateX(20px);
}

.custom-layer-checkbox .form-check {
  font-size: 14px;
  padding-top: 8px;
}

.filter-layer {
  margin-bottom: 20px;
}

.filter-accordion-row {
  margin-top: 20px;
}

.colorbar {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.colorbar-label {
  position: relative;
  bottom: -10px;
  left: 45%;
  font-size: 10px;
  z-index: 999;
}

.colorbar-container {
  width: 100%;
  height: 25px;
  position: relative;
  top: 10px;
}

.leaflet-control-zoom {
  right: 11px;
  bottom: -40px;
  z-index: 800;
}

path.leaflet-interactive:focus {
  outline: none;
}

.custom-zoom-control {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 997;
}

.custom-zoom-button {
  height: 30px;
  width: 30px;
  background-color: white;
  padding: 5px;
  border-radius: 1px;
  border: 1px solid black;
  cursor: pointer;
  margin-bottom: 2px;
}

.custom-zoom-button:hover,
.custom-home-button:hover {
  background-color: #f0f0f0;
}

.custom-save-button {
  font-size: 2.4em;
  position: absolute;
  top: 13%;
  right: 24px;
  z-index: 997;
  background-color: white;
  padding: 5px;
  border-radius: 1px;
  border: 1px solid black;
  cursor: pointer;
}

/* Container styling */
.toggle-priority-areas-container {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  background-color: white;
  padding: 10px 15px;
  border: 1px solid #ccc;
  font-size: 14px;
  display: inline-block;
  border-radius: 0px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  border: 1px solid black;
}

.toggle-priority-areas-container > div {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.toggle-priority-areas-label {
  display: inline-block;
  margin-right: 16px;
  margin-top: 4px;
}

.toggle-priority-areas-button .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 35px;
  height: 15px;
  background-color: white;
  border-radius: 20px;
  border-color: black;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background-color 0.1s ease-in-out;
  margin-right: 10px;
}

.toggle-priority-areas-button .form-check-input::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: black;
  border-radius: 50%;
  top: 1px;
  left: 1px;
  transition: background-color transform 0.1s ease-in-out;
}

.toggle-priority-areas-button .form-check-input:checked::before {
  background-color: black;
}

.toggle-priority-areas-button .form-check-input:checked::after {
  background-color: white;
}

.toggle-priority-areas-button .form-check-input:checked::before {
  transform: translateX(20px);
}

.toggle-data-areas-container {
  position: relative;
  bottom: -20%;
  left: 100%;
  transform: translateX(-100%);
  z-index: 998;
  background-color: white;
  /* padding: 10px 15px; */
  padding: 10px 10px;
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  border-left: 2px solid black;
  font-size: 14px;
  display: inline-block;
  border-radius: 0px;
  /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); */
  width: 250px;
  height: 370px;
  overflow-y: auto;
  /* align-items: center; */
}

#priority-description {
  margin-bottom: 8px;
}

.priority-description {
  color: black;
  text-align: center;
  padding-top: 10px;
}

.bar {
  height: 6px;
  border-radius: 5px;
}
.bar-container {
  display: flex;
  align-items: center;
  margin-top: 5px;
  flex: 1;
  height: 24px;
  position: relative;
}

.indicator-top {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}
.label {
  font-size: 14px;
}

.variable-card-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.hvi-value {
  position: absolute;
  padding: 2px 4px;
  font-size: 12px;
  color: #fff;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* transform: translateX(-50%); */
}

#data-popup-select {
  font-size: 14px;
  border-radius: 0px;
  border: 1px solid black;
  margin-bottom: 8px;
}

#data-pop-fig {
  width: 210px;
  max-height: 205px;
  margin: auto;
  display: block;
}

.close-icon {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 16px;
  padding: 5px 5px 0px 0px;
}

.leaflet-bottom.leaflet-left {
  top: 1%;
}

.search-input {
  position: absolute;
  top: 6%;
  left: 10%;
  transform: translateX(-50%);
  z-index: 1000;
  background-color: white;
  padding: 10px 15px;
  border: 1px solid #ccc;
  font-size: 20px;
  display: inline-block;
  border-radius: 4px;
  display: inline-block;
}

.legend-image {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 999;
  max-height: auto;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.legend-labels {
  position: absolute;
  top: 57px;
  left: 20px;
  padding: 0px 8px;
  font-size: 9px;
  color: black;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  width: 247px;
  margin-top: 0.9%;
}

.max-label {
  margin-left: auto;
}

.ibutton-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ibutton {
  cursor: pointer;
  /* font-size: 7.5px; */
  width: 14px;
  height: 14px;
  opacity: 0.85;
}

.ibutton-tooltip {
  font-size: 14px;
}

.ibutton-label {
  font-size: 14px;
}

/* Slider colors */

.rc-slider-track {
  background-color: #4f4f4f;
}

.rc-slider-mark-text {
  font-size: 14px;
}

.rc-slider-dot-active {
  border-color: #4f4f4f;
  border: solid 2px #4f4f4f;
}

.rc-slider-handle {
  background-color: #4f4f4f;
  border-color: #4f4f4f;
}

.rc-slider-handle:hover {
  border-color: #4f4f4f;
}

.rc-slider-handle-active:active {
  border-color: #4f4f4f;
}

@media (min-width: 992px) and (max-width: 1180px) {
  .ibutton-container {
    display: unset;
  }
}

@media (max-width: 991px) {
  .rc-slider-mark-text {
    font-size: 10px;
  }
}

.start-button {
  border-radius: 0px;
  color: black;
  outline: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  background-color: #f58e65;
  outline: 1px solid black;
  align-items: center;
  justify-content: space-between;
  display: flex;
}

.start-button:hover {
  outline: 2px solid black !important;
}

.leaflet-tooltip {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 1);
}

.leaflet-tooltip strong {
  font-size: 16px;
  color: #333;
  display: block;
}

.leaflet-tooltip {
  color: #777879;
  cursor: pointer;
}

.leaflet-tooltip-left:before {
  right: 0;
  margin-right: -12px;
  font-size: 16px;
  border-left-color: rgba(255, 255, 255, 1);
}

.leaflet-tooltip-right:before {
  left: 0;
  margin-left: -12px;
  font-size: 16px;
  border-right-color: rgba(255, 255, 255, 1);
}

.variable-card-map {
  cursor: default !important;
}

/* Hide all tooltips within the specific map */
.variable-card-map .leaflet-tooltip {
  display: none !important;
}

/* Disable pointer events on the map and its child elements */
.variable-card-map .leaflet-container,
.variable-card-map .leaflet-control-container,
.variable-card-map .leaflet-pane,
.variable-card-map .leaflet-top,
.variable-card-map .leaflet-bottom {
  pointer-events: none !important;
}

/* Hide the zoom control */
.variable-card-map .leaflet-control-zoom {
  display: none !important;
}

/* Hide popups */
.variable-card-map .leaflet-popup {
  display: none !important;
}

/* Ensure no hover effects on map elements */
.variable-card-map .leaflet-interactive {
  pointer-events: none !important;
}

/* #layer-switch .ibutton-container {
  display: flex;
  max-width: 0px;
}   */

/* restyle radio items */
/* .radio-group .form-check {
  padding-left: 0;
}

.radio-group .btn-group > .form-check:not(:last-child) > .btn {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.radio-group .btn-group > .form-check:not(:first-child) > .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -1px;
} */
