.ol-control {
  position: absolute;
  background-color: rgba(255, 255, 255, .4);
  border-radius: 2px;
  padding: 0px;
}

.ol-control button {
  font-size: 14px;
  color: rgb(0, 0, 0) !important;
  background-color: #0074d9;
  width: 20px;
  height: 20px;
}

.ol-control button:hover {
  color: rgb(0, 0, 0) !important;
  font-size: 14px;
  background-color: rgba(0, 60, 136, 0.6);
}

.ol-control button:active {
  color: rgb(0, 0, 0) !important;
  font-size: 14px;
  background-color: #0074d9;
}


.body {
  font-family: "Roboto", sans-serif;
}


.button {
  border-color: white !important;
}

.search_box {
  max-width: 75%;
  color: red;
  position: relative;
  top: 3px;
  left: 20px
}

.list_group_results {
  width: 98%;
  font-family: "Roboto", sans-serif;

}

.clickable {
  cursor: pointer;
}

#search_container {
  width: 85%;
}

.buttonInside {
  position: relative;
  margin-bottom: 10px;
}

input {
  position: relative;
  left: 5px;
  height: 30px;
  width: 100%;
  padding-left: 5px;
  border-radius: 4px;
  border: none;
  outline: none;
  font-size: 20px;
}

input[type="text"] {
  font-size: 12px;
}

.search_box_clear_button {
  position: absolute;
  right: 0px;
  border: none !important;
  outline: none !important;
  text-align: center;
  background-color: Transparent;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-top: 4px;
}

.search_box_search_button {
  position: absolute;
  right: 0px;
  padding-right: 46px;
  border: none !important;
  outline: none !important;
  text-align: center;
  background-color: Transparent;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-top: 3px;
}

.search_box_divider {
  position: absolute;
  right: 0px;
  padding-right: 28px;
  border: none !important;
  outline: none !important;
  text-align: center;
  background-color: Transparent;
  background-repeat: no-repeat;
  border: none;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  padding-top: 3px;

}

.search_box_button:hover {
  cursor: pointer;
}

#help {
  display: none;
  font-style: italic;
  font-size: 0.8em;
}

.search_clear_icon {
  color: darkgray;
}

.search_clear_icon:hover {
  color: black;
}

.search_button_icon {
  color: darkgray;
}

.search_button_icon:hover {
  color: black;
}

input[type="button"] {
  width: 120px;
  height: 60px;
  margin-left: 35px;
  display: block;
  background-color: gray;
  color: white;
  border: none;
  outline: none;
}

.list_sub_divider {
  height: 40px;
  background-color: #0074d9 !important;
  text-align: center;
}

.list_sub_divider_text {
  color: #fff !important;
  line-height: 20px !important;
  height: 20px;
  padding-top: 0px !important;
}

.btn-list-header {
  text-transform: capitalize !important;
}


.information_content {
  padding: 15px;
  font-family: "Roboto", sans-serif;
}

#marker {
  width: 20px;
  height: 20px;
  border: 1px solid #088;
  border-radius: 10px;
  background-color: #0FF;
  opacity: 0.5;
}




#map {
  position: relative;
}



.form-control {
  background-color: transparent !important;
}



#mydiv {
  position: absolute;
  top: auto !important;
  z-index: 3000;
  display: flex;
  right: -3px;
  flex-direction: row;
  align-items: center;
}



/* Style the native select to look modern */
.la-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 8px 28px 8px 10px;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 8px;
  font-size: 14px;
  background: white !important;
  background-color: white !important;
  color: #222;
  min-width: 200px;
  outline: none;
  cursor: pointer;
}

/* Hover/focus feedback */
.la-select:hover {
  border-color: rgba(0, 0, 0, .22);
}

.la-select:focus {
  border-color: #0078ff;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn-link {
  margin-left: 5px;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-align: left !important;
}

.h5 {
  font-size: 1.15rem !important;
}

.card-header {
  padding: 0px !important;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, .03);
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}

.bs-example {
  margin: 20px;
}

.accordion .fa {
  margin-right: 0.5rem;
  position: relative;
  top: 2px;

}

.btn-link {
  width: 100%;
  height: 40px;

}

.btn-link:focus {
  outline: 0 !important;
  box-shadow: 0 0 0 0.0rem rgb(0 123 255 / 25%) !important;
}

.icon_right {
  position: absolute;
  right: 20px;
  padding-right: 10px;
  top: 14px;
}


/* Toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  top: 3px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e5e7eb;
  transition: 0.2s;
  border-radius: 999px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background-color: #fff;
  transition: 0.2s;
  border-radius: 50%;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

input:checked+.slider {
  background-color: #3b82f6;
}

input:checked+.slider:before {
  transform: translateX(18px);
}

/* Info button */
.layer-info {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  line-height: 24px;
  text-align: center;
}

.layer-info:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}



/* Container holds many boxes and wraps them to minimize vertical scrolling */
#layerList {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

/* The clickable layer box */
.layer-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  min-width: 120px;
  max-width: 260px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  cursor: pointer;
  line-height: 1.2;
  font-size: 14px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.layer-box:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.layer-box.is-active {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #0f172a;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

/* Tiny status dot at the left */
.layer-box-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  flex: 0 0 auto;
}

.layer-box.is-active .layer-box-dot {
  background: #10b981;
}

/* Truncate long titles cleanly */
.layer-box-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}



.badge-on {
  background: #e9f2ff;
  color: #2459a5;
  border-radius: 999px;
  padding: .125rem .5rem;
  font-size: 14px;
}



/* ---------- Neutral palette & spacing ---------- */
:root {
  --panel-bg: #fff;
  --panel-border: #e6e9ee;
  --panel-shadow: 0 1px 3px rgba(0, 0, 0, .08);

  --group-header-bg: #f7f9fc;
  --group-header-color: #2b2e38;
  --group-header-border: #e6e9ee;

  --card-bg: #fff;
  --card-border: #e9edf3;
  --card-hover: #f7fafc;

  --title-color: #1f2532;
  --meta-color: #5b6372;
  --link-color: #3a7bd5;

  --switch-off: #c7cfdb;
  --switch-on: #3a7bd5;

  --radius-12: 12px;
}



.sidebar-pane#layers {
  background: var(--panel-bg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

#layers .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--group-header-color) !important;
  border-bottom: 1px solid var(--panel-border);
}

/* ---------- Accordion groups ---------- */
#accordion .card {
  border: none;
  margin: 0;
  box-shadow: none;
}

#accordion .card-header {
  background: var(--group-header-bg);
  border-bottom: 1px solid var(--group-header-border);
  padding: .5rem .75rem;
}

.base_map_header {
  display: flex;
  align-items: center;
  margin: 0;
}

.base_map_header .btn.btn-link {
  width: 100%;
  text-align: left;
  text-decoration: none !important;
  color: var(--group-header-color);
  font-weight: 700;
  padding: .5rem .25rem;
}

.base_map_header .btn.btn-link .icon_right {
  transition: transform .2s ease;
  float: right;
  color: var(--meta-color);
}

/* rotate chevron when expanded */
.base_map_header .btn[aria-expanded="true"] .icon_right {
  transform: rotate(90deg);
}

/* ---------- List container ---------- */
.list_group_results.list-group {
  border: none;
  background: transparent;
}


/* ---------- Layer card ---------- */
/* .layer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  background: var(--card-bg);
  padding: 0.1rem 0.5rem;
  margin-left: 3px;
  margin-right: 3px;
  transition: background .15s ease, border-color .15s ease;
} */

.layer-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  background: var(--card-bg);
  padding: 0.1rem 0.5rem;
  margin-left: 3px;
  margin-right: 3px;
  transition: background .15s ease, border-color .15s ease;
  position: relative;
  padding-bottom: 6px; 
}

.layer-card  {
  border-top: 1px solid #ccc;
  width: 90%;
  margin: 0 auto;
}

.layer-card-left {
  min-width: 0;
}

.layer-card-title {
  color: var(--title-color);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.layer-card-meta {
  color: var(--meta-color);
  font-size: .8rem;
}

.layer-card-meta a {
  color: var(--link-color);
  font-size: 14px;
}

/* ---------- Slim toggle switch ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--switch-off);
  transition: .2s ease;
  border-radius: 999px;
}

.slider::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  transition: .2s ease;
}

input:checked+.slider {
  background: var(--switch-on);
}

input:checked+.slider::before {
  transform: translateX(16px);
}


body {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

html,
body,
#map {
  height: 100%;
  position: relative;
  font-family: "Roboto", sans-serif !important;
  ;
  font: 14px "Roboto", sans-serif !important;
  ;
}

/* canvas {
  image-rendering: auto;
} */

/* Default canvas */
canvas {
  image-rendering: auto;
  /* filter: contrast(1.02) brightness(1) saturate(2.3); */
}

.lorem {
  font-style: italic;
  color: #AAA;
}



.layer-category__title {
  font-size: 14px;
  font-weight: bold;
  /* font-weight: 600; */
  color: var(--group-header-color);
  padding-left: 9px;
  /* text-align: center; */
  /* margin: 0 0 .5rem 0; */
}



/* Scope everything to the popup overlay element */
#popup .popover {
  /* Let it grow beyond Bootstrap's default 276px */
  min-width: 14rem;
  /* ~224px */
  max-width: 28rem;
  /* ~448px on desktop */
  width: max-content;
  /* fit to content up to max-width */
  /* If your content is short, it won't stretch too wide */
}

#popup .popover-body,
#popup .popover .popover-content {
  /* .popover-content for older Bootstrap versions */
  /* Make text wrap nicely, including very long tokens like IDs/URLs */
  white-space: normal;
  overflow-wrap: anywhere;
  /* modern */
  word-wrap: break-word;
  /* legacy */
  word-break: break-word;
  /* fallback */
  line-height: 1.25;
  font-size: 0.95rem;
}

/* Optional: style your headings inside the popover content */
#popup .popover h5,
#popup .popover h6 {
  margin: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#popup .popover h5 {
  font-size: 1rem;
  font-weight: 600;
}

#popup .popover h6 {
  font-size: 0.875rem;
  color: #6c757d;
  /* subtle secondary */
}

/* Keep the popover above OL controls */
#popup .popover {
  z-index: 10000;
  /* OL controls are typically around 1000–2000 */
}

/* Mobile: allow broader width, still wrap */
@media (max-width: 768px) {
  #popup .popover {
    min-width: 12rem;
    /* smaller min on phones */
    max-width: 60vw;
    /* let it use most of the viewport width */
  }
}

/* (Optional) Make the arrow a bit more visible on complex basemaps */
#popup .popover.bs-popover-top .arrow::after,
#popup .popover.bs-popover-bottom .arrow::after,
#popup .popover.bs-popover-left .arrow::after,
#popup .popover.bs-popover-right .arrow::after {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.shadow {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadowdark {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadowdarksidebar {
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.ol-attribution li {
    font-size: 0.75rem;
}

/* ===== Single circular zoom control (bottom-left) ===== */
/* === Zoom as a single translucent circular control (bottom-left) === */
.ol-zoom {
  position: absolute;
  bottom: 14px;
  left: 12px;
  right: auto !important;
  top: auto !important;
  width: 70px;
  height: 70px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;

  /* Match your basemap circle */
  background: rgba(255, 255, 255, 0.85);
  /* border: 2px solid #e0e0e0; */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
}

/* Hover/active glow (mirrors .basemap-option.active feel) */
.ol-zoom:hover,
.ol-zoom:focus-within {
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  /* transform: translateY(-1px); */
}

/* Inner buttons reset and fill halves */
.ol-zoom .ol-zoom-in,
.ol-zoom .ol-zoom-out {
  flex: 1 1 50%;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  /* keep the parent translucent bg */
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0;
  /* hide built-in text/icon */
  line-height: 0;
  position: relative;
  user-select: none;

  background: transparent !important;
  color: #1a1a1a !important;

  /* Improve touch target on mobile */
  -webkit-tap-highlight-color: transparent;
}

/* Divider between halves */
.ol-zoom .ol-zoom-in {
  /* border-bottom: 1px solid rgba(0,0,0,0.08); */
  border-bottom: 1px solid rgba(0, 0, 0, 0.12) !important;
}

/* Symbols via pseudo-elements for consistent typography */
.ol-zoom .ol-zoom-out::before,
.ol-zoom .ol-zoom-in::before {
  font-size: 22px;
  /* adjust as needed */
  line-height: 1;
  color: #1a1a1a;
  /* blackish to match your style */
  font-weight: 600;
  display: inline-block;
  pointer-events: none;
}

/* Top half: minus */
.ol-zoom .ol-zoom-out::before {
  content: "–";
  /* en dash for nicer width */
}

/* Bottom half: plus */
.ol-zoom .ol-zoom-in::before {
  content: "+";
}

/* Half hover states (subtle) */
.ol-zoom .ol-zoom-out:hover,
.ol-zoom .ol-zoom-out:active,
.ol-zoom .ol-zoom-in:hover,
.ol-zoom .ol-zoom-in:active {
  background: rgba(0, 0, 0, 0.03);
}

/* Keyboard focus ring on halves */

/* If you also use the zoom slider, hide it (optional) */
.ol-zoomslider {
  display: none !important;
}

.map-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;              /* above the map */
  padding: 6px 10px;
  font-size: 13px;
  line-height: 1.2;
  background: #ffffff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.map-btn:hover {
  background: #f9fafb;
}


/* Category section */
/* .layer-category {
  margin: 6px 0;
  border-radius: 4px;
}
.layer-category {
  margin-bottom: 1rem;
  border-top: 1px solid #e6e6e6;
  padding-top: .5rem;
} */

/* Title */
.layer-category__title {
  margin: 0;
}

.layer-category__toggle {
  width: 95%;
  text-align: left;
  background: var(--card-bg, #f7f7f7);
  border: None;
  color: inherit;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* Chevron rotation to reflect expand/collapse */
.layer-category__chevron {
  margin-left: auto;
  transition: transform .2s ease;
  font-size: 10px;
  color: #5b6372;
}
.layer-category__toggle[aria-expanded="true"] .layer-category__chevron {
  transform: rotate(0deg);
}
.layer-category__toggle[aria-expanded="false"] .layer-category__chevron {
  transform: rotate(-90deg);
}

/* Collapsible body */
.layer-category__body {
  overflow: hidden;
  transition: grid-template-rows .2s ease, padding .2s ease, max-height .2s ease;
  /* Default collapsed visuals */
  max-height: 0;
  padding: 0 2px;
}

/* Open state */
.layer-category__body.is-open {
  /* Give it a large max-height so it can expand; adjust to your needs */
  max-height: 1200px;
  padding: 6px 2px 4px;
}


.sidebar-map{
    background: rgb(172 213 228) !important;
}