

body {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333;
}
.header_text{
font-weight: bold;
font-size: 18px;
}
.float-right{
    float:right;
}
.inline{
display:inline;
}
#info_but{
    display:none;
}

#map_wrapper {
 flex-grow: 1;         /* Fill remaining space */
  position: relative;   /* Important for Leaflet/OpenLayers maps */

  /*use flex to have #map fill the remaining spaece when image_map is visiable */

   display: flex;
  flex-direction: row;
  align-items: stretch;

}
#image_map {
   width: 0%;
   border-right: 1px solid grey;
   display:none;
   flex-shrink: 0;
}
.map{
    height: 100%;
}
#map {
     width: 100%;
     flex-grow: 1;   
}


#content{
    width:100%;
    /* background-color: #999; */
    display:none;
    overflow: hidden;
}


a {
    color: #008FB3;
    text-decoration: none;
    background-color: transparent;
}

.bg-primary{
 background-color: #1fc8e3 !important;
}

.btn-primary {
    color: #fff;
    background-color: #008FB3;
    border-color: #008FB3;
}
.btn:focus {
    background-color: #105456;
    border-color: #105456;
}
.btn-primary:hover{
    background-color: #105456;
    border-color: #105456;

}
.btn-success{
    color: #fff;
    background-color: #006144;
    border-color: #006144;
}

.btn-danger{
   color: #fff;
    background-color: #E56A54;
    border-color: #E56A54;

}

.btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #105456;
    border-color: #105456;

}



.form-check-input:checked {
    background-color: #105456;
    border-color:#105456;
}

#app_container {
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: row;
  align-items: stretch;
}

#side_bar{
    background-color: #FFFFFF;
    height:100%;
    width:100%;
    flex-shrink: 0;
    position: relative;
    /* Base sidebar animation */
    /* transition: transform 0.3s ease; */
    
}

/* DESKTOP (default) */
#side_bar.collapsed {
  /* transform: translateX(-100%); */
  width: 0;
}

#nav_wrapper{
    height:30px;
    margin-bottom: 5px;
     position: relative;
}
#nav{
    padding:3px;
}
#tabs{
    margin-left:3px;

}
.tabs_line{
    margin-top: -2px;
    width:100%;
    border-top: 3px solid #105456;
    content: '';
}

.tab_but{
    margin: 0rem;
    border-radius: 3px     3px      0           0 !important;
}
#side_header{
    padding:3px;
}

#search_but{
    height:38px;
    margin:0px;
}
.search_wrapper{
    margin-bottom:5px;
}

#panels{
    width:360px;
    overflow-x: hidden;
    overflow-y: hidden;
    background-color: #fff;
    padding:0px;
    display:none;
 }
 .border_top{
     border-top: 1px solid #999;
 }
 #panel_scroll{
    width:5000px;/* A really wide div containing many panels */

    overflow-x: auto;

 }
.scroll_wrapper{
    overflow-y: auto;
}
 .panel{
    width:360px;
    float: left;
    background-color: #fff;
    height:100%;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    /* overflow: hidden; */
    min-height: 0;
}


.card-body {
    padding: 0px;
}

#browse_panel .card-body {
    padding: 1.25rem;
}

.panel .list-group-item{
     font-size: 1rem;
     weight:bold;
     border: 0;
}
.small{
     font-size: .65rem;
     border: 0;

}
#tab_panels{
      display:none;
      z-index:10;
      height:100%;
 }


#results_scroll .content_left{
    width:100px;
    float:left;

}
#results_scroll{
    border: 1px solid rgba(0,0,0,.15);
   
    width:100%;
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    flex-grow: 1;
    
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

#results_scroll .content_right{
  width:235px;
  float:left;
}
#result_total .spinner-border{
    display:none;

}
a.disabled {
  pointer-events: none;
  cursor: default;
  color:#333;
}

#map_panel_wrapper,#download_panel_wrapper{

 display:none;
 width:360px;
 height:100%;
 background-color: #fff;

}
#map_panel_wrapper{
    /* clip-path: polygon(0 0, 600px 0%, 600px 100%, 0% 100%); */
    z-index:2000000;
    position:absolute;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

#map_panel_scroll{
    width:10px;
    float:left;
}

#map_panel_scroll_content{
    width:10px;
}
#map_panel{
    width:350px;
    float:left;
}
.med_pad{
    padding: 5px;
    line-height: 1.5;
}


 .lil_pad {
   padding: 1px;
}

.mr-3 {
  border: solid #222;
  border-width: 0 1px 1px 0;
  display: inline;
  cursor: pointer;
  padding: 3px;
  position: absolute;
  right: 0;
  margin-top: 10px;
}
.grip {
  position: absolute;
  top: 50%;
  left: -19px; 
  transform: translateY(-50%);
}

.list-group-item a.btn.collapsed span {
  transform: rotate(40deg);
  -webkit-transform: rotate(40deg);
  transition: .3s transform ease-in-out;
}


.list-group-item a.btn span {
  transform: rotate(-140deg);
  -webkit-transform: rotate(-140deg);
  transition: .3s transform ease-in-out;
}


#results_scroll .list-group-item{
    border-bottom: 1px solid grey;
    padding: 8px;
}

#results_scroll .list-group-item:hover {
    background-color: #e4e4e4;
}

/* #layers_wrapper{
    height:300px;
} */
#details_panel{
    font-size: .75rem !important;
}


#panels .btn,#map_panel .btn {
  padding: 3px;
  max-height: 25px;
}

.btn {
  box-shadow: none !important;
  outline: 0;
  font-size: .8rem;
  padding: .275rem .55rem;
  margin: .1rem;
}
.btn:active,.btn:focus {
 /*outline: 1px solid e4e4e4;*/
}
.btn-primary:focus {
 /*border-width:2px;
 outline-offset:2px;
  border-color: #01395c50;*/
}
.dropdown-toggle{
/*for map icon dropdown*/
 height:auto !important;
}
.panel .form-control, #map_panel .btn {
    width: auto;
    height:27px;
}

.total_results{
    font-size: .75rem;
    font-weight: bold;
     position: absolute;
  bottom: 0;
  right: 0;
    margin-right:3px;
}
.total_showing{
    font-size: .68rem;
}

#sort_by_dropdown_label{
    font-size: .7rem;
    font-weight: bold;
}
#sort_by_dropdown{
    font-size: .7rem;
}

.list-group-item:last-child {

   border-bottom-right-radius: 0;
     border-bottom-left-radius: 0;
}
.list-group-item{

 width: 100%;

}


#basemaps-wrapper{
    display:none;
}

.item_collection {
    float: right;
    margin-left: 10px;
      margin-right: 10px;
}
.drag_li .item_title {

  font-size: 16px;
  font-weight: 600;
  word-break: break-word;
  text-overflow: ellipsis;


    display: block;           /* Required for the properties below to work */
    white-space: nowrap;      /* Prevents the text from wrapping to a second line */
    overflow: hidden;         /* Hides the text that overflows the container */
    text-overflow: ellipsis;  /* Adds the '...' at the end */
    
    /* Optional: Ensure it doesn't push against other elements */
    max-width: 100%;          
}

}
.item_title_wide {

  max-width: 100%;

}
.item_title_lg{
    font-size: 130%;
}
.item_text_sm{
    font-size: 90%;
    text-overflow: ellipsis;
    max-width:340px;
    overflow: hidden;
    white-space: nowrap;
}

.item_thumb_container{
      text-align: center;
    margin-bottom: 10px;
}
.item_thumb {

    display: inline-block;
    margin: 5px;
    width:200px;
    height:auto;
    border: 1px solid #ddd;
    border-radius: 4px;

}

.item_thumb img{
 border: solid grey 1px;
}

.item_thumb_small {
    position: relative;
    float: right;
    top: 0px;
    display: inline-block;
    margin: 5px;
    width:50px;
    height:auto;
}
.item_thumb_small img{
     width:100%;
     border: solid grey 1px;
}

 .chip {
      display: inline-flex;
      padding: 0 10px;
      height: 30px;
      font-size: .8rem;
      line-height: 30px;
      border-radius: 25px;
      background-color: #f1f1f1;
      margin: 3px;
      flex-wrap: nowrap;
}
.chip .chip-text{

     overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    white-space: nowrap;
    }

.chip_x {
    padding-left: 10px;
    margin-right: -10px;
    margin-left: 0.5rem;        /* spacing from text */
    flex-shrink: 0;
    margin-top:4px;
}

.popup .leaflet-popup-tip,
.popup .leaflet-popup-content-wrapper {
    background: #f7f7f7;
    max-height: 320px;

    overflow: auto;
}
.leaflet-popup-content-wrapper{
     /*width:250px;
     min-height: 240px; */
}
.popup_image{
     width:180px;
}
#popup_scroll{
    max-height: 205px;
    overflow: auto;

}
#popup_control_table{
    width:100%;
}
.leaflet-popup-content{
    width: 285px;
    margin: 5px 5px 5px 5px;
}

.leaflet-container{
    background: #cccccc;
}

.leaflet-ruler-clicked{
    border-color: #0290ce !important;
}


.popup  tr:nth-child(even) {background: rgba(51, 181, 229, 0.4);}
.popup  tr:nth-child(odd) {background: #fff}

/* Moves the zoom controls 100px down from the top */
.leaflet-top.leaflet-left {
    margin-top: 20px; 
}

.td_top{
    vertical-align:top
}
.td_bold{
     font-weight: bold;
}

#sortable_layers {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%; 
    overflow: visible;      /* Ensure nothing is hidden */
}

#sortable_layers li {
    margin: 0 3px 3px 3px;
    padding: 0.4em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    padding-top:10px;
    height: 100px;
    
    width: 99%;
    
    box-sizing: border-box;
}
.basemap_layer{
    display: flex;
    align-items: flex-start;
    position: relative;
    gap:10px;
}


#sortable_layers li span {
    position: absolute;
}
#sortable_layers li:hover {
    background-color: #0490ce5c;
}

#basemap_layer{
    list-style-type: none;
    /* pad bottom to for color pallet*/
   height:240px;
    /* margin-left:50px;*/
}

.highlight{
    background: #0490ce91 !important;
}

.ui-slider-horizontal {
    height: 4px;
   /* width: 100px;*/
    margin-top:10px;
    margin-left:10px;
    margin-right:10px;
    /*padding-bottom:20px;*/

}
.stacked-div-map .ui-slider-horizontal{
     margin-top:5px;

}

.ui-slider-horizontal .ui-slider-handle {

    width: 10px;
    height: 10px;
}



.ui-slider-range{
    background: #008FB3;
    height:3px;
}

.left-div-map{
    width: 55%;
    height:100%;
    position: relative;
}

.left-div-map-buttons{
    position: absolute;
    bottom: 2px;
}

.results-buttons{
    bottom: 2px;
    right:0px;
    display: flex;
    justify-content: flex-end; 
}
#details_view{
    position: relative;
    overflow-wrap: anywhere
}
.details-buttons{
     display: flex;
  justify-content: flex-end; /* Aligns content to the right */
  width: 100%; /* Ensures the container spans the full width */
}
#layers_view{
position: relative;
}

.stacked-div-map {
      display: flex;
      flex-direction: column; /* Stacks children vertically */
      justify-content: flex-start; /* Aligns items to the start of the main-axis (top) */
    }

.slider_box{
    width:100%;
}

.lil label{
    font-size: .9em;
}
.slider_box label{
    margin-bottom: 0px;

}
 .ui-slider-handle {
    width: 10px;
    height: 10px;
    /*padding-left: 2px;
    padding-right: 2px;*/
}

#filters .ui-slider .ui-slider-handle {
    width: auto;
    height: auto;
    padding-left: 2px;
    padding-right: 2px;
}
.webservice{

     margin-bottom: 0px;
      padding-top: 3px;
}

.color_box {
     float:right;
      /*margin-top:-20px;*/
}


.thumbnail {
    height: auto;
    width: 100px;
    border: 1px solid #fff;
    margin: 1px;

 }
.thumbnail_small {
    height: 44px;
    width: 75px;
    border: 1px solid #fff;
    margin: 1px;

 }

 .pub_icon{
    display:inline;
 }
 .pub_icon img{
    height: 16px;

 }
 .pub_icon_med{
    float: right;
 }
 .pub_icon_med img{
     height: 24px;
 }

 #basemap_layer_dropdown li{
    cursor:pointer;
 }

 .drag_li{
    cursor:grab;
    position:relative;
 }
  .drag_li:active{
    cursor:grabbing;
 }
 .fa-table {
  color: white;
}


.fixed_headers {
  border-collapse: collapse;
  width:100%;

}
.fixed_headers td,
.fixed_headers thead th {
  padding: 5px;
  text-align: left;

}
.fixed_headers thead th span{
 cursor:pointer;
}
.fixed_headers thead, textarea {
  background-color: #333;
  color: #FDFDFD;
}
.fixed_headers thead tr {
  position: relative;
}
.fixed_headers tbody tr:nth-child(even) {
  background-color: #DDD;
}
.fixed_headers tbody tr:hover {
  background-color: #0490ce;
  cursor:pointer;
}



.fixed_headers thead th {
  position: sticky;
  top: 0;  /* REQUIRED: https://stackoverflow.com/a/43707215 */
  background-color: #333;
  z-index: 10;
  resize: horizontal;
  overflow: auto;
  min-width: 70px;
}
#data_table_wrapper{
    background-color:#FFF;
    float:left;
    width:100%;
    display:none;
    position: relative;
}

#data_table{
    height: 300px;
    overflow: auto;
    width:100%;

}
.data_table_close {
    position: absolute;
    top: 0;
    right: 0;
}
#table_bounds_checkbox{
    margin-left:10px;
}


.attr_table tbody tr:nth-child(even) {
  background-color: #DDD;
}

#data_table_wrapper .item {white-space: nowrap;display:inline  }

#data_table_export{display:inline}


.date_field {
  width: 90px;
}


/* DRAW */
.leaflet-draw-but {
    height: 35px;
    width: 35px;
    background-image: url(../images/icons/pen-outline.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}
.leaflet-draw-toolbar{
    display:none;
}
.leaflet-draw-but-active {
    background-image: url(../images/icons/pen-solid.png);
}
.leaflet-draw-clicked {
    border-color: #0290ce !important;
}

/*close - icon licence https://fontawesome.com/license*/
.leaflet-close-but {
    height: 30px;
    width: 30px;
    background-image: url(../images/icons/times-solid.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
    cursor:pointer;
}

.leaflet-spinner{
    color:black;
}

/*split control*/
.split_table{
    height:24px;
    width:48px;
    display:inline-table;

    position: absolute;
   bottom:0;
   right:0;
   margin: 3px;
}
.split_left{
    border-top:    1px solid  #999;
    border-right:  1px dashed #0290ce;
    border-bottom: 1px solid #999;
    border-left:   1px solid #999;
    cursor: pointer;

}
.split_right{
    border-top:    1px solid #999;
    border-right:  1px solid #999;
    border-bottom: 1px solid #999;
    border-left:   1px dashed #0290ce;
    cursor: pointer;
}
.split_cell:hover{
    background-color:#ccc;
}
.split_cell_active{
    background-color:#ccc;
}
.split_middle{
    width:5px;
}


.data_table_spinner_wrapper{
    float:left;
    width:1rem;
    height:1rem;
}

.marker {
   width: 16px;
  height: 16px;
  display: block;
  left: -8px;
  top: -8px;
  position: relative;
  border-radius: 16px 16px 0;
  transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, 1);
  background-color:rgba(255, 255, 255, 0.5);
  }

.marker_legend{
      width: 16px;
      height: 16px;
      display: block;
      left: -8px;
      top: -8px;
      position: relative;
      border-radius: 16px 16px 0;
      transform: rotate(45deg);
      border: 2px solid rgba(255, 255, 255, 1);
      background-color:rgba(255, 255, 255, 0.5);

    display: inline-block;
    margin-top: 7px;
    margin-left:8px;
}

.legend{
    background-color: #fff;
    border: 2px solid #ccc;

    line-height: 26px;
    display: none;
    text-decoration: none;
    color: black;
    border-radius: 4px;
    width:150px;
    cursor: default;
    padding:5px;
    max-height:200px;
    overflow: auto;
}


.legend_title{
   font-size: .8rem;
   font-weight: bold;
}

.legend_label{
    margin-left:10px;
    font-size: .75rem;
}
  /*cluster*/

  .cluster {
    background: #2d84c8;
    border-radius: 50%;
    text-align: center;
    color: white;
    font-weight: 700;
    border: 1px solid #2d84c8;
    font-family: monospace;
  }

  .cluster:before {
    content: ' ';
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    top: 1px;
    left: 1px;
    right: 1px;
    bottom: 1px;
    border: 1px solid white;
  }

  .digits-1 {
    font-size: 14px;
    height: 28px;
    width: 28px;
    line-height: 28px;
    margin-top: -14px;
    margin-left: -14px;
  }

  .digits-2 {
    font-size: 16px;
    height: 34px;
    width: 34px;
    line-height: 35px;
    margin-top: -17px;
    margin-left: -17px;
  }

  .digits-2:before {
    border-width: 2px;
  }

  .digits-3 {
    font-size: 18px;
    height: 48px;
    width: 47px;
    line-height: 47px;
    border-width: 3px;
    margin-top: -24px;
    margin-left: -24px;
  }

  .digits-3:before {
    border-width: 3px;
  }

  .digits-4 {
    font-size: 18px;
    height: 58px;
    width: 58px;
    line-height: 57px;
    border-width: 4px;
    margin-top: -29px;
    margin-left: -29px;
  }

  .digits-4:before {
    border-width: 4px;
  }

  .digits-5 {
    font-size: 18px;
    height: 68px;
    width: 68px;
    line-height: 67px;
    border-width: 4px;
    margin-top: -29px;
    margin-left: -29px;
  }

  .digits-4:before {
    border-width: 4px;
  }

.modal-dialog{
    overflow-y: initial !important
}
#disclaimer {
    Z-INDEX: 10000001;
}
#table_query {
    Z-INDEX: 10000002;
}
.modal-backdrop {
    Z-INDEX: 10000000;
}
#disclaimer_text{
    height: 400px;
    overflow-y: auto;
}


body.modal-open {
  height: 100vh;
  overflow-y: hidden;
}

button {
  white-space: nowrap;       /* keep text on one line */

}
.description p { display: inline }

#disclaimer_heading{
   font-size: large;
   padding: .2rem;
}

#table_query_fields{
    max-height: 200px;
    margin-bottom: 10px;
    overflow:scroll;
    -webkit-overflow-scrolling: touch;
}

#table_query_fields .list-group-item {
    padding: 0.3rem 1.0rem;
}

#table_query_operators{
    max-width: 100%;
    overflow-x:scroll;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

#table_query_operators .list-group-item {
      padding: 0.3rem 1.0rem;
      white-space: nowrap
}
#table_query_operators .list-group-item:first-child {
    border-top-left-radius: 0.0rem;
    border-top-right-radius: 0.0rem;
}
#data_table_wrapper .btn {
    width: auto;
    height: 27px;
}

.disabled_link {
  pointer-events: none;
  color:#ccc !important;
}

#mode{
padding:0;width:75%;text-align: center;
display:none;
}
.web_service_input{
    width:100%
}

a[aria-disabled="true"] {
  color: currentColor;
  display: inline-block;  /* For IE11/ MS Edge bug */
  pointer-events: none;
  text-decoration: none;
}

 .form-label{
        display: block;
        padding-top: 10px;
        padding-left: 5px;
        font-weight: 800;
    }

.form-check-input{
    min-width:13px;

}
.filter_list{
    overflow-y: auto;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    max-height: 150px;
}

.overlay {
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;

  background-color: #fff;
  z-index: 10006;
  display: flex;
    align-items: center;
}
.progress{
    width:200px;
    margin: auto;

}
.input-group-text{
    background-color: inherit;
    border: 0px;

}

#search_clear {
    margin-left: -40px;
    z-index: 100;
}


.slider_toggle{
      margin-top: -10px;
      margin-right:-65px;
      float:right;
}
.btn-outline-secondary i:before{
    vertical-align: -0.025em;
}
#filter_date{
    padding: 5px;
}
.slider-range{
    margin-bottom:55px;
    width:70% !important;
}

.legend_symbol{
    display:inline-block;
    margin-bottom:-5px;
}

/* specific styles */
#layer_list_wrapper{
    background-color:#ffffff;
    max-height:300px;
    overflow-y:auto;
    padding:3px;
}
.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
}

.marker {
   width: 16px;
  height: 16px;
  display: block;
  left: -8px;
  top: -8px;
  position: relative;
  border-radius: 16px 16px 0;
  transform: rotate(45deg);
  border: 2px solid rgba(255, 255, 255, 0.9);
  background-color:rgba(0, 143, 179, .7);
  }
.my-cluster {
  /*background: transparent;*/
}

.my-cluster div {

  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  border: 3px solid rgba(255, 255, 255, 0.9);
  background-color:rgba(0, 143, 179, .7);
}
.option_valid {
    /* Whatever color  you want */
    background-color: hsl(149, 50%, 62%);
}
.option_error {
    /* Whatever color  you want */
    background-color: hsl(0,90%,81%) ;
}
#image_map{
        border-right: 1px solid grey;
        display:none;
        height: 100%;
}
#leaflet_spinner{
    color:black;
    display:none;
}

.custom-modal{
    position: fixed;
     top:auto;
    right:auto;
    left:5px;

    /*transform: translate(-50%, -50%);*/
    width: fit-content;
    height: fit-content;
    padding: 0 !important;
    bottom:0;
}
/*inner css class style*/
.modal-dialog{marging:0}

.short_input{
    width:100px;
}
.leaflet-control-rotate{
    display:none !important;
}

.ui-autocomplete {
    background-color: #fff !important;
    z-index: 100000;
}

.list_title{
    font-weight:bold

}
#sort-title{
    padding-left:4px;
}
.hidden_controls{
    /*dynamically hidden controls*/
    display:none;
}
.toggle_text{
    padding-left:5px;

}

#map_search{
    display:none;
}

.ui-autocomplete {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 300px !important;
    cursor: pointer;
    list-style: none;
  }
.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background: #ccc;

}
.rounded-pill {
    height: 23px;
}
.leaflet-sbs{
    display:none;
}
.details-left {
    flex: 1 1 250px;
    min-width: 250px;
}

.details-right {
    flex: 2 1 400px;
    min-width: 300px;
}
.button-group {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-container {
    text-align: center;
    margin-bottom: 10px;
}

.thumbnail {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.view-link {
    text-align: center;
    margin-bottom: 10px;
}

.meta-item {
    margin-bottom: 5px;
}

.fw-bold {
    font-weight: bold;
}
.breakable {
  overflow-wrap: anywhere;
  /* width:230px; */
  font-weight: bold;
  font-size:0.9rem;
}
.georeference_link{
   text-decoration: underline;
}
.toggle-label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid #333;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  transition: transform 0.25s ease;
}

.arrow.rotate {
  transform: rotate(90deg);
}
.basemap_text{
    font-weight: bold;
  font-size:0.9rem;
}
.readonly_input{
    width:100%;

}
.popup_title{
    font-weight: bold;
    font-size: .9rem;
   max-width: 230px;
}
/* Default: single line with ellipsis */
.leaflet-control-attribution {
  display: block;
  max-width: calc(100vw - 360px);  /* responsive to viewport  minus size of side bar*/
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On hover: expand and wrap */
.leaflet-control-attribution:hover {
  white-space: normal;
  overflow: visible;
}
/* push up scale control to avoid overlap with attribution */
.leaflet-bottom .leaflet-control-scale {
    margin-bottom: 20px;
}

.leaflet-popup-content .basemap_layer{
    height:110px;
  
}
.leaflet-popup-content{
      width: 345px;
}
.leaflet-popup-content:has(.compressed) {
      width: 105px !important;
}

.dropdown-item{
    margin-bottom: 3px;
}
#footer{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    background-color: #f1f1f1;
    text-align: center;
    line-height: 20px;
    font-size: .75rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 0 10px;
    z-index: 10;
}

#ga-toggle-btn{
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.two-line-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

}
#header {
  height: 22px;
  background-color: #FFF;

    align-items: center;
}
.logo{
    height: 80px;
     width: auto;
     box-sizing: border-box;
    object-fit: contain;
}


.btn:focus, .chip_x:focus,
.chip_x:focus-visible {
    /* Remove the 'filled' look and the double outline */

    box-shadow: none !important;
    /*  Kill all default browser and Bootstrap shadows/outlines */
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;

    /* Apply exactly ONE clean outline */
    /* Using 2px solid with an offset to prevent 'doubling' */
    outline: 2px solid #006271 !important; 
    outline-offset: 1px;
    
    /* 3. Ensure it looks like a tight square/circle around the X */
    display: inline-block;
    border-radius: 4px;
}
.chip_x:focus-visible {
    background-color: transparent !important;
}
/* Optional: If using Chrome/Safari, prevent the outline from looking 'doubled' */
.form-check-input:focus:not(:focus-visible) {
    outline: none;
}
/*fixing header button focus background */
#header a:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Make the background light only when actively clicked */
#header a:active{
    background-color: rgba(255, 255, 255, 0.2) !important;
    /* Optional: helps the 'light' color show up on dark buttons */
    transition: background-color 0.1s ease;
}

.font-weight-bold{
    font-weight: bolder;
    font-size:medium;

}
/* making the popup dynamic based on layer visibility*/
.popup_info{
     list-style-type: none;
}
.popup_info .grip {
  display: none;
}
.popup_info .item_thumb {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 10px 0px 30px;
    max-height: 130px;   /* adjust as needed */
    width: auto;
    max-width: 100%;
    object-fit: contain; /* keeps aspect ratio */
    margin-left: auto;
    margin-right: auto;
}
.popup_info .left-div-map-buttons{
    position: static;
}
/* -------when layer is hidden------- */

.popup_info .left-div-map {
  width: 100%;
}

.popup_info .item_thumb_container {
  display: block;
}
.popup_info .stacked-div-map,
.popup_info .split_table, 
.popup_info .item_zoom {
  display: none;
}

.popup_info .item_title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  margin-right: 10px;
}


/* ------when layer is visible-------- */
.popup_info.layer-active {
    display: flex;
    flex-direction: row; /* Side-by-side */
    gap: 12px;           /* Space between image and controls */
    padding: 5px;
    align-items: flex-start;
    min-width: 280px;    /* Prevents the popup from feeling cramped */
}

.popup_info.layer-active .left-div-map {
  width: 55%;
}

.popup_info.layer-active .stacked-div-map,
.popup_info.layer-active .item_zoom {
  display: block;
}
.popup_info.layer-active .split_table{
    display:inline-table;
}


.popup_info.layer-active .item_thumb_container {
  display: none;
}

.popup_info.layer-active .item_title {
    /*shorten the title to all space for controls*/
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup_info.layer-active .left-div-map-buttons {
    display: flex;            /* Enables flexbox */
    flex-direction: row;      /* Forces items into a horizontal line */
    flex-wrap: nowrap;        /* Prevents buttons from jumping to a new line */
    justify-content: flex-start; /* Aligns them to the left */
    margin-top: 40px;         /* Optional: adds space above the button row */
}

/* Ensure the buttons themselves don't stretch strangely */
.popup_info.layer-active .left-div-map-buttons .btn {
    flex: 0 1 auto;           /* Allows buttons to size based on their text */
    white-space: nowrap;      /* Keeps the button text (like "Remove") on one line */
}
/* ------\-------- */


/* Toggle button */
.sidebar-toggle {
  position: absolute;
  top: 45px;
  left: 340px; /* same as sidebar width */
  transform: translateX(-50%);
  z-index: 1000;
  cursor: pointer;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
   display: block;
}
/* When sidebar is collapsed, pull button to edge */
.sidebar-toggle:has(.collapsed) {
  left: 27px;
}


/* For smaller screens */
@media (max-width: 768px) {
  #footer {
    align-items: center;    /* Centers the text */
    text-align: center;
    padding: 20px 10px;     /* Adds breathing room on the sides */
    position: relative;
    height: 30px;
  }


    html{
       overflow-x: hidden !important;
       height: 100%;
    }

   #app_container {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 30px) !important;
    overflow: hidden;
}

#side_bar {
    flex: 0 0 60%;      /* Sidebar takes top 40% of screen */
    width: 100%;
    border-bottom: 2px solid #ccc;

    overflow: hidden;   
    display: flex;
    flex-direction: column;
    pointer-events: auto !important;
}

#side_bar.collapsed {
  /* transform: translateX(-100%); */
  flex: 0 0 0%;      
  width: 0;
}

#map_wrapper {
    flex: 1 1 60%;      /* Map takes the remaining 60% */
    width: 100% !important;
    position: relative !important;
    display: block !important;
    visibility: visible !important;
    margin-bottom: 8px;

}
#map_panel_wrapper {
    margin-top: 40px;
}

.sidebar-toggle {
    left: 27px;
}



    /* Container Widths */
    #map_panel {
        width: 100%;
    }
    
}
/* For larger screens */
@media (min-width: 768px) {
    #side_bar{
     width:360px;

    }

    #side_bar,
    #map_wrapper,
    #map_panel_wrapper {
        height: calc(100vh - 58px);
        margin-bottom: 0px;
    }

        #map_panel,
        #map_panel_wrapper {
        width: 100%;
        position: relative;
       
        }
     html, body {
        height: 100%;
        overflow: hidden;
    }
}


