.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;
}

/* Overlay container pinned inside the map */
.la-picker-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
}

/* Control block */
.la-picker {
  display: inline-block;
  border-radius: 6px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}


.form-control {
  background-color: transparent !important;
  border-radius: 6px !important;
  border:none !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: 0px 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-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);
}



/* ---------- 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:2px;
  margin-left: 5px;
  margin-right: 5px;
  transition: background .15s ease, border-color .15s ease;
  position: relative;
}

.layer-card  {
  border-top: 1px solid #ccc;
}

.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;
}

/* Wrapper container */
.basemap-switcher {
  width: 210PX;
  height: 50px;
  position: absolute;
  bottom: 40px;
  left: 12px;
  display: flex;
  flex-direction: row;
  gap: 3px;
  z-index: 1000;
  opacity: 1 !important;
  min-height: 40px;
}

/* Circle buttons */
.basemap-option {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;

  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

}

/* Show when active */
.basemap-option.active {
  opacity: 1 !important;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  /* soft black glow */
  pointer-events: auto !important;


}

/* Show all when hovered */
.basemap-switcher:hover .basemap-option {
  opacity: 1;
  pointer-events: auto;
}

/* Tooltip on hover */
.basemap-option:hover::after {
  content: attr(data-map)" Layer";
  position: absolute;
  top: 80px;
  /* moves text below the circle for above use -30px*/
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  /* tooltip background */
  color: #000;
  /* text color */
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease-in-out;
}

/* Hidden by default */
.basemap-option::after {
  content: '';
  opacity: 0;
}


/* Hidden by default */
#la-picker::after,
#la-picker::before {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease-in-out, transform 0.18s ease-in-out;
}


.basemap-switcher:hover .basemap-option:nth-child(4) {
  transform: translateX(280px);
}

.basemap-switcher:hover .basemap-option:nth-child(3) {
  transform: translateX(210px);
}

.basemap-switcher:hover .basemap-option:nth-child(2) {
  transform: translateX(140px);
}

.basemap-switcher:hover .basemap-option:nth-child(1) {
  transform: translateX(70px);
}

.basemap-switcher:hover .basemap-option:nth-child(0) {
  transform: translateX(0);
}



/* All collapse back to bottom */
.basemap-option {
  transform: translateX(0);
}

/* Backgrounds */
.basemap-option[data-map="Road"] {
  background-image: url("../images/road.png");
}

.basemap-option[data-map="Outdoor"] {
  background-image: url("../images/outdoor.png");
}

.basemap-option[data-map="Leisure"] {
  background-image: url("../images/leisure.png");
}

.basemap-option[data-map="Light"] {
  background-image: url("../images/light.png");
}

.basemap-option[data-map="BW"] {
  background-image: url("../images/bw.png");
}

.basemap-option[data-map="Greyscale"] {
  background-image: url("../images/gs.png");
}

.basemap-option[data-map="Dark"] {
  background-image: url("../images/dark.png");
}

.basemap-option[data-map="ESRI"] {
  background-image: url("../images/esri.png");
}

/* Full‑screen overlay */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
/* Spinner container (horizontal layout) */
.spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* background: #fff; */
  padding: 12px 16px;
  /* border-radius: 10px; */

  /* box-shadow: 0 4px 12px rgba(0,0,0,0.15); */
}

/* Icons */
.spinner i {
  font-size: 20px;
  opacity: 0.3;

  animation: fadeWave 1.2s infinite ease-in-out;
}

/* Create left → right animation delay */
.spinner i:nth-child(1) { animation-delay: 0s; }
.spinner i:nth-child(2) { animation-delay: 0.15s; }
.spinner i:nth-child(3) { animation-delay: 0.3s; }
.spinner i:nth-child(4) { animation-delay: 0.45s; }
.spinner i:nth-child(5) { animation-delay: 0.6s; }
.spinner i:nth-child(6) { animation-delay: 0.75s; }

/* Fade wave animation */
@keyframes fadeWave {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(5px);
  }
  50% {
    opacity: 1.2;
    transform: translateX(5px);
  }
}

/* Optional category colors */
.spinner i:nth-child(1) { color: #2563eb; } /* Administrative */
.spinner i:nth-child(2) { color: #059669; } /* Community */
.spinner i:nth-child(3) { color: #d97706; } /* Energy */
.spinner i:nth-child(4) { color: #16a34a; } /* Environment */
.spinner i:nth-child(5) { color: #7c3aed; } /* Planning */
.spinner i:nth-child(6) { color: #dc2626; } /* Transport */

/* Hidden state */
.spinner-overlay.hidden {
  display: none;
}





.layer-category__title {
  font-size: 14px;
  font-weight: bold;
  /* font-weight: 600; */
  color: var(--group-header-color);

  /* 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;
}




/* ===== Single circular zoom control (bottom-left) ===== */
/* === Zoom as a single translucent circular control (bottom-left) === */
.ol-zoom {
  position: absolute;
  bottom: 120px;
  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 4px 10px rgba(0, 0, 0, 0.2);
  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: 0px;
  border-top: 1px solid #e6e6e6;
}

/* Title */

.layer-category__name{
font-size: 16px;
}


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


.layer-category__icon.fa-map { color: #3b82f6; }
.layer-category__icon.fa-users { color: #10b981; }
.layer-category__icon.fa-bolt { color: #f59e0b; }
.layer-category__icon.fa-leaf { color: #16a34a; }
.layer-category__icon.fa-drafting-compass { color: #8b5cf6; }
.layer-category__icon.fa-road { color: #ef4444; }


.layer-category__icon {
  font-size: 14px;
  width: 18px; /* keeps alignment consistent */
  text-align: center;
}


/* 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;
}

/* Open button */
/* .sidebar-toggle {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 5000;
  width: 42px;
  height: 42px;
  border: none;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  cursor: pointer;
} */

/* Floating buttons */
.sidebar-fab-group {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-toggle {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  text-decoration: none;
}

/* Info popup */
.info-popup {
  position: fixed;
  top: 12px;
  right: 70px;
  width: 360px;
  padding-left:12px;
  padding-right: 12px;
  max-height: calc(100vh - 100px);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: none;
  flex-direction: column;
  z-index: 4900;
}

.info-popup.open {
  display: flex;
}

.info-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom:3px;
  border-bottom: 1px solid #ddd;
}

.dataset-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0px;
  margin-top:-6px;
  /* border-bottom: 1px solid #ddd; */
}

.info-popup-body {
  padding: 5px;
  overflow-y: auto;
}

/* Sidebar */
/* Sidebar container */
.map-sidebar {
  position: fixed;
  top: 12px;
  right: 70px;
   padding-bottom:10px;
   padding-top:10px;

  width: 360px;
  max-width: calc(100vw - 24px);

  /* limit overall height to viewport */
  max-height: calc(100vh - 80px);

  background: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

  display: none;
  flex-direction: column;

  z-index: 4000;
}

/* Open state */
.map-sidebar.open {
  display: flex;
}


.sidebar-body {
  
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  max-height: calc(100vh - 120px);

}

@media (max-width: 1024px) {
  .map-sidebar {
    width: 320px;
  }
}

@media (max-width: 480px) {
  .map-sidebar,.info-popup {
    right: 0;
    left: 0;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  .map-sidebar, .info-popup {
    /* Position */
    top: 56px;
    left: 90px;
    right: 60px;

    /* Fluid width */
    width: auto;
    max-width: 100%;

    /* Height remains viewport-safe */
    max-height: calc(100vh - 72px);

    /* Visual tweaks for mobile */
    border-radius: 10px;
  }

  .sidebar-body, .info-popup-body {
    /* Vertical scrolling only */
    overflow-y: auto;
    overflow-x: hidden;

    /* Smaller padding for small screens */
    padding: 10px;

    /* Ensure content doesn’t exceed viewport */
    max-height: calc(100vh - 120px);
  }
}




/* Tabs */
.sidebar-tabs {
  border-bottom: 1px solid #ddd;
  background: #fff;
}

.sidebar-tabs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.sidebar-tabs li {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #444;
}

.sidebar-tabs li.active {
  background: #c3cad6;
  color: #000;
}

/* Content */
.sidebar-content {
  overflow-y: auto;
  max-height: calc(100vh - 120px);
}

.sidebar-pane {
  display: none;
  padding: 12px;
}

.sidebar-pane.active {
  display: block;
}

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

/* Default */
.sidebar-map {
  background: rgb(172 213 228);
}

/* Road */
.sidebar-map[data-map="Road"] {
  background-color: #c1f6ff; 
}

/* Outdoor */
.sidebar-map[data-map="Outdoor"] {
  background-color: #7fe9ff;
}

/* Light */
.sidebar-map[data-map="Light"] {
  background-color: #acd5e4;
}

/* Dark */
.sidebar-map[data-map="Dark"] {
  background-color: #2a2a2a;
}

/* BW */
.sidebar-map[data-map="Black_and_White"] {
  background-color: rgb(222 222 222);
}

/* Base button style */
#extentToggleBtn {
    background-color: #6c757d;   /* OFF (grey) */
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* ON (enabled) */
#extentToggleBtn.active {
    background-color: #28a745;   /* green */
}

/* Hover effect */
#extentToggleBtn:hover {
    opacity: 0.85;
}
