:root {
        --bannerColor:#0d5601;
        --accent-color: #3B7144;
        --darker-grey-color: #333;
        --lighter-accent-color: #737373;
        --light-beige-color: #fcfbf5;
        --inactive-accent-color: #cfcecb;
        --planned-rail-color: #d767ff;
        --existing-rail-color: #585858;
        --fence-color:#F2D906;
}



body {
        margin: 0;
        padding: 0;
        font-family: "Funnel Sans", sans-serif;
        overflow: hidden;
}

#map {
  position: absolute !important;
  top: 3rem;
  left: 18rem;
  width: calc(100vw - 18rem);
  height: calc(100vh - 3rem);
  z-index: 1;
  background-color: #38526C;
  transition: left 0.3s ease, width 0.3s ease;
}

#map.fullWidth {  /*for sidebar hiding*/
  left: 0;
  width: 100vw;
}

#insetMap{
        position: absolute !important;
        top: 3rem;
        right: 0rem;
        width: 12rem;
        height: 12rem;
        z-index: 1001; /*display over legend box*/
        background-color: rgba(0,0,0,0);
        pointer-events: none;
        opacity: 0;
}

/* Scale down on smaller screens without shrinking container */
@media (max-width: 1024px) {
  #insetMap {
    transform: scale(0.85);
    transform-origin: top right;
  }
}

@media (max-width: 768px) {
  #insetMap {
    transform: scale(0.7);
    transform-origin: top right;
  }
}

@media (max-width: 480px) {
  #insetMap {
    transform: scale(0.55);
    transform-origin: top right;
  }
}

#header{
        position: absolute;
        z-index: 3;
        background-color:var(--bannerColor);
        color: white;
        width:100%;
        height: 3rem;
        font-weight: 900;
        left: 0;
        top: 0;
}

#headerTitle{
  position: absolute;
  width: 100%;
  height: 3rem;
  padding: 0.5rem 0.75rem;
  font-size: 1.5rem;
  text-wrap: nowrap;
  left: 0;
  top: 0;
}

@media (max-width: 726px) {
        #headerTitle {
                transform: scale(0.6);
                transform-origin: top left;
                text-wrap: wrap;
                width: 150%;
        }
}

#zoomIndicator{
        position: absolute;
        z-index: 2;
        bottom:2.25rem;
        left:18.5rem;
        font-weight: bold;
        visibility: hidden;
}

#mapControls{
        position: absolute;
        z-index: 1000;
        top:3.5rem;
        left:18.5rem;
        background-color: white;
        border-radius: 5px;
        padding:0.25rem;
        display: none;
}

#showControlsButton{
        position: absolute;
        z-index: 1000;
        top:3.5rem;
        left:18.5rem;
        /*visibility: none;*/
        display: none;
}

#hoverInfoBox {
    user-select: none;
    position: absolute;
    z-index: 10000;
    padding: 0.5rem;
    display: none;
    border-radius: 10px;
    line-height: 1rem;
    max-width: 15rem;
    max-height: 75vh;
    height: auto;
    background-color: var(--light-beige-color);
    color: #393939;
    box-shadow: 0 0 5px #626262;
    overflow-y: auto;
    box-sizing: border-box;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #hoverInfoBox {
        max-width: 90%;
        font-size: 12px;
    }
}
    
.tooltip-feature {
  display: flex;
  flex-direction: column;
  gap: 0.1rem; /* small gap between rows by default */
}

.tooltip-feature + .tooltip-feature {
  margin-top: 0.5rem; /* extra gap between different layers' feature blocks */
}

.tooltip-row {
  display: flex;
  flex-wrap: nowrap;          /* keep items on the same line */
  align-items: center;        /* vertical alignment of legend + text */
  max-width: calc(100% - 0.25rem);            /* never exceed the hover box width */
  flex-shrink: 1;             /* allow shrinking if necessary */
}

.tooltip-title, .tooltip-type {
  font-weight: bold;
  column-gap: 1rem;
  /* margin-bottom: 0.25rem; */
}

.tooltip-type {
  font-weight: bold;
  white-space: nowrap;       /* prevents the text from wrapping */
}

.tooltip-row > .legendFillBox {
  margin-right: 0.25em;
}

.tooltip-label {
  max-width: calc(100% - 0.5rem);            /* never exceed the hover box width */
  font-weight: 600;
  flex: 0 0 auto;
  margin-right: 0.25rem;
  margin-left: 0.25rem;
  /* white-space: nowrap; */
}

.tooltip-value {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  /* word-break: break-word; */
  text-indent: -0.1em;
  padding-left: 0.1em;
}

.tooltip-row > .legendFillBox {
  margin-right: 0.25em;
}

/* used in modal and panel download*/
.smallButton{
        background-color: var(--accent-color);
        color: white;
        padding: 0.3rem;
        border-radius: .1rem;
        font-size: 1rem;
        cursor: pointer;
        width:.65rem;
        height:.65rem;
        float:right !important;
        opacity: .7;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 2.5px;
        font-weight: bold;
}

.smallButton.GIUM{
  background-color: #003874; /* CMS --color-primary */
}

.inactive{
        cursor: not-allowed !important;
}

.smallButton:hover {
  opacity: 1;
}

.expandable{
        cursor: pointer;
}

.mapboxgl-ctrl .mapboxgl-ctrl-group {
        z-index: 3;
}

.mapboxgl-ctrl-group button {
        height: 25px;
        width: 25px;
}
.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon {
        background-image: url('../img/zoomIn.svg');
        background-size: cover;
        background-position: center;
        width: 20px;
        height: 20px;
        margin-left: 2px
}

.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon {
        background-image: url('../img/zoomOut.svg');
        background-size: cover;
        background-position: center;
        width: 20px;
        height: 20px;
        margin-left: 2px
}

#mobileSidebarTitle {
  position:absolute;
  z-index: 3;
  top: 3.2rem;
  left: 50px;
  width:auto;
  height:auto;
  margin-top: 5px;
  background: hsl(130, 31%, 34%, 0.5);
  padding: 2px 25px 9px 10px;
  border-radius: 5px;
  text-shadow: 0 0 2px black;
  color:white;
  visibility:hidden;
  opacity: 0;
}

#mobileHeader {
  font-size: 1.4rem;
  font-weight: bold;
}

#mobileHeaderSubtitle {
  font-weight: normal;
  font-size: 0.7rem;
}

#mobileSidebarTitle.shown {
  visibility:visible;
  opacity: 1;
}

.mapboxgl-ctrl-bottom-left {
  display:flex;
    flex-direction: column;
}

.mapboxgl-ctrl-logo {
  display:flex;
  order: 2
}

.mapboxgl-ctrl.mapboxgl-ctrl-attrib {
  display:flex;
  order: 1
}

#resetMapButton {
    background-color: #FFFFFF;
    color: #333333;
    padding: 5px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 16px;
    cursor: pointer;
    position: absolute;
    z-index: 1000;
    top: 7.2rem;
    left: 18.6rem;
    box-shadow: 0 0 0 2px hsl(0, 0%, 0%, 0.1);
}

#resetMapButton:hover {
  background-color: #f0f0f0;
}