* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

@font-face {
  font-family: "Roboto Condensed";
  src: 
    local('Roboto Condensed')
    url('../public/font/robotoCondensed.woff2')
    
}

html,
body,
main {
  --scrollbarBG: #E7EBEE;
  --thumbBG: #90A4AE;
  font-family: 'Roboto Condensed', sans-serif;
  color: #637287;
  font-size: 14px;
  height: 100%;
  width: 100%;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

main {
  display: flex;
  height: 100%;
  width: 100%;
}

.modalBox {
  background-color: white;
  height: 80vh;
  width: 70%;
}

.modalBox a {
  text-decoration: underline;
}

.modalText {
  margin: 0 1rem;
  scrollbar-width: thin;
}

.modalText div {
  margin: 1rem 0;
  text-align: justify;
}

.modal-close-btn {
  text-align: right;
  position: relative;
  position: absolute;
  top: -10px;
  right: 0px;
  cursor: pointer;
  z-index: 1000;
  color: white;
}

.modalClose {
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.modalClose:hover {
  fill: rgb(255, 255, 255);
  font-weight: bold;
}

.modal-text-with-scroll {
  overflow: auto;
  height: 60vh;
}

@media (max-width: 767px) {
  .modal-text-with-scroll {
    height: 35vh;
  }
}

.esri-view .esri-view-surface--inset-outline:focus::after {
  outline: none;
}

::-webkit-scrollbar {
  width: 8px; 
  -webkit-border-radius: 1ex;
}

::-webkit-scrollbar-thumb {
  background: var(--thumbBG);
  -webkit-border-radius: 1ex;
  width: 8px;
}


::-webkit-scrollbar-corner {
  background: none;
}

::-webkit-scrollbar {
  width: 8px; 
  -webkit-border-radius: 1ex;
}

::-webkit-scrollbar-thumb {
  background: var(--thumbBG);
  -webkit-border-radius: 1ex;
  width: 8px;
}

::-webkit-scrollbar-corner {
  background: none;
}


button {
  display: flex;
  width: 100%;
  margin: 0 auto;
  background: none;
  border: none;
  color: #637287;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 250ms ease-in-out, 
              transform 150ms ease;
  appearance: none;
}

.bold {
  font-weight: bold;
}

.fixed-position {
  position: fixed;
  z-index: 2;
}
.original-x {
  transform: translateX(0%)
}

.slide-x {
  transform: translateX(-100%)
}

.invisible{
  display: none;
}

.transparency {
  opacity: 30%;
}

.flex {
  display: flex;
}

.display-content {
  display: contents;
}

.hidden {
  visibility: hidden;
}

.visible{
  visibility: visible;
  opacity: 1;
}

.underline{
  text-decoration: underline solid 2px;
  text-underline-position: under;
  font-weight: bold;
}

.infoModalBackground {
  display: flex;
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 5;
  background: radial-gradient(circle, rgba(231,235,238,1) 0%, rgba(184,194,211,0.9) 100%);
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.export-prompt{
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 5;
  background: radial-gradient(circle, rgba(231,235,238,1) 0%, rgba(184,194,211,0.9) 100%);
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.export-prompt-wrapper{
  width:30rem;
  background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  border-radius: 0.75rem;
  padding: 2.5rem;
}

.close-btn {
  text-align: right;
}

.export-prompt label {
  display: block;
  margin: 0 0 0 10px;
  font-weight: 700;
  font-size: 18px;
}

.export-prompt textarea {
  padding: 10px 0 0 10px;
  background-color: #EAEEF1;
  box-shadow: 
    inset 0px 0px 6px #FFFFFF,
    inset 0px 4px 4px #B8C2D3;
  border: 0;
  border-radius: 3px;
  height: 2.5rem;
  max-height: 4rem;
  min-width: 100%;
  max-width: 100%;
  font-family: 'Roboto Condensed', sans-serif;
  color: #637287;
  font-size: 14px;
}

.export-prompt .prompt-box form .form-element {
padding: 0 0 3rem 0
}

.export-prompt textarea.summary {
  min-height: 12rem;
  height: auto;
  max-height: 20rem;
  line-height: 1.5rem;
}

.exportBtnContainer {
  justify-content: flex-end;
}


.export-prompt .export-response {
  display: flex;
  flex-direction: column;
}

.export-prompt .prompt-btns {
  margin: 10px 5px;
  font-size: 1rem;
}

.export-prompt .goToWebMap-btn {
  margin: 10px 5px;
  font-size: 1rem;
}

.export-prompt .processing-indicator {
  margin: 20px 0 0 0;
  font-weight: 700;
  text-align: right;
}

.animation-title {
  width: 100%;
  height: 2rem;
  padding: 0.5rem;
  background-color: #EAEEF1;
  color: #637287;
  box-shadow: inset -6px -6px 6px #FFFFFF, inset 6px 6px 8px #B8C2D3;
  border-radius: 6px;
  border: none;
  outline: none;
}

.animation-title div {
  padding: 0.7rem;
}

#viewDiv{
  width: 100%;
  position: relative;
  cursor: url('../public/images/CrosshairWhite.png') 22 22, crosshair;
}

#viewDiv .mapAnimationOverlay {
  cursor: default;
}

.crosshairContainer {
  position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    bottom: 50%;
    right: 50%;
    display: flex;
    justify-content: center;
    align-items: center; 
    pointer-events: none;
}

#viewDiv .esri-ui-top-right{
  flex-flow: row;
}

@media (max-width: 767px) {
  .esri-ui-top-right{
        top: 50px;
  }
}

@media (max-width: 415px) {
  .esri-sketch__panel {
      flex-direction: column-reverse;
  }
}

.esri-sketch__section {
  margin: 0;
}

.esri-sketch__tool-section calcite-action,
.esri-sketch__tool-section button botton {
  width: 32px !important;
  height: 32px !important;
  justify-content: center;
}

#viewDiv .esri-ui-corner #user-icon.esri-component {
  background-color: #F1F4F5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

#viewDiv .esri-ui-corner #user-icon.esri-component .profile {
  border-radius: 50%;
  height: 36px;
  width: 36px;
  position: relative;
}

#viewDiv .esri-ui-corner #user-icon.esri-component .profile img {
  border-radius: 50%;
  border: 2px solid #F1F4F5;
  height: 36px;
  width: 36px;
}

.logOut-icon {
  transform: translate(24px, -15px);
  background: #F1F4F5;
  border-radius: 50%;
  width: 18px;
  height: 18px;
}

#viewDiv .esri-zoom {
  flex-flow: row;
  background: #F1F4F5;
  background-color: transparent;
  box-shadow: 0px 0px 8px #111111;
}

#viewDiv .esri-zoom .esri-widget--button:first-child {
  background: #F1F4F5;
  border-radius: 12px 0 0 12px;
}

#viewDiv .esri-zoom .esri-widget--button:last-child {
  background: #F1F4F5;
  border-top: none;
  border-radius: 0 12px 12px 0;
}

#viewDiv .esri-ui-corner .esri-component {
  cursor: default;
  background-color: transparent;
  border-radius: 12px 12px 12px 12px;
  box-shadow: 0px 0px 8px #111111;
}

#viewDiv .esri-ui-corner .esri-component.esri-locate {
  background-color: #F1F4F5;
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  #viewDiv .esri-ui-corner .esri-component.esri-locate {
    background-color: #F1F4F5;
    width: 45px;
  }
}

#viewDiv .esri-ui-top-right.esri-ui-corner .esri-component {
  margin-right: 15px;
}

#viewDiv .esri-search__container .esri-search__input, .esri-search__container .esri-widget--button:last-child {
  background-color: #F1F4F5;
  border-radius: 12px 0 0 12px;
}

.esri-search__container .esri-search__input, .esri-search__container .esri-widget--button {
  background-color: #F1F4F5;
  border-radius:  0 12px 12px 0;
  border-left: 0;
}

#viewDiv div .esri-search__input-container .esri-search__clear-button {
border-radius: 0;
}

#viewDiv .esri-ui-bottom-right.esri-ui-corner .esri-component{
  border-radius: none;
  box-shadow: none;
}

#viewDiv .esri-ui-bottom-right.esri-ui-corner #layerToggle {
  cursor: default;
  height: 2.5rem;
  justify-content: space-evenly;
  transform: translate(15px, 14px);
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%);
}

#layerToggle .mapLayer {
  margin: 0 5px;
  align-items: center;
}

#layerToggle span {
  font-size: 1.25rem;
  font-weight: 700;
  text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 10rem;
}

#layerToggle .checkbox {
  margin: 0 5px;
  width: 15px;
  height: 15px;
}

.checkbox svg {
  stroke: #637287;
  stroke-width: 1.5px;
}

.mobile-header {
  
  background-color: #e7ebee;
  height: 60px;
  width: 100%;
  padding: 10px 15px;
  position: fixed;
  top: 0;
  z-index: 1;
}

main .map-list-item.mobile{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.mobile-header .icon {
  margin: 0;
}

#sideBarWrapper {
  height: 100%;
  background-color: #e7ebee;
  transition: 0.5s ease;
}

#sideBar {
  flex-direction: column;
  position: relative;
  height: 100%;
  width: 380px;
  max-width: 380px;
  padding: 0 10px;
  background-color: #e7ebee;
  z-index: 4;
}

.shadow  {
  position: absolute;
  z-index: 4;
  left: 380px;
}

.map-mode-container {
  margin: 1rem auto ;
  width: 100%;
}

.map-mode-container .action-area {
box-shadow: none;
background: none;
}

.map-mode-container .action-area:hover {
  cursor: pointer;
}

.map-mode-container .divider {
  border-left: 1px solid #abb4c2;
  padding: 1.5rem 0;
  height: 100%;
}

.total-maps{
  display: flex;
}

.mode {
  display: inline-flex;
  align-content: center;
  align-items: center;
  flex-direction: row;
}

.map-mode-container  .action-area .mode.selected {
  background: #F1F4F5;
  box-shadow: inset 6px 6px 6px #EAEEF1, -4px -4px 8px #FFFFFF, 4px 4px 8px #637287;
}

.map-mode-container .action-area .explorer-mode-btn{
  width: 37%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 4px;
  /*background: #E7EBEE ;
  box-shadow: inset 6px 6px 6px #eaeef1, -2px -2px 3px #f9fbfb, 3px 3px 4px #d8e0e7;*/
}

.explorer-mode-btn .map-mode{
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-mode-container .action-area .pin-mode-btn {
  width: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 4px;
  /*background: #E7EBEE;
  box-shadow: inset 6px 6px 6px #eaeef1, -2px -2px 3px #f9fbfb, 3px 3px 4px #d8e0e7;
  margin: 0 0 0 3%;*/
}

.pin-mode-btn {
  width: 30%;
}

.map-mode-container .action-area .filter-mode-btn {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  border-radius: 4px;
  /*background: #E7EBEE;
  box-shadow: inset 6px 6px 6px #eaeef1, -2px -2px 3px #f9fbfb, 3px 3px 4px #d8e0e7;
  margin: 0 0 0 3%;*/
}

.filter-mode-btn {
  width: 35%;
}

.mapsFooter {
  height: 40px;
  background: #E7EBEE;
}

.mapsFooter .footer-shadow {
  height: 8px;
}

.mapsFooter .effect-one {
  background: linear-gradient(0deg, rgba(231,235,238,1) 0%, rgba(184,194,211,1) 100%);
}

.mapsFooter .effect-two {
  background: linear-gradient(90deg, rgba(231,235,238,1) 0%, rgba(231,235,238,0) 50%, rgba(231,235,238,1) 100%);
}


.queryIndicator {
  animation: spinner 1s infinite;
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}

#header{
  display: flex; 
  margin: auto -10px;
  padding: 10px 15px;
  height:60px;
  color: #ffffff;
}

.heading{
  width: 50%;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0 0 10px;
}

.infoModalIcon{
  cursor:pointer;
}

.heading .letter-spacing {
  letter-spacing: 2px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  margin-left: -10px;
  padding: 0 0.5rem;
}

.icon-small {
  height: 20px;
  cursor: pointer;
}

.invert {
  filter: invert(1);
}


 #filtersAndSorting{
  padding: 10px 0 10px 0;
} 

@font-face {
  font-family: 'Roboto Condensed';
  src: url("../public/font/robotoCondensed.woff2");
}
.pinned-mode-options {
flex: auto;
justify-content: space-around;
margin: 0px 0px 0 10px;
transform: translate(5px, 0px);
}

.pinned-mode-sub-section {
  display: flex;
  align-items: center;
  
  justify-content: space-between;
  
  flex-wrap: nowrap;
}

.pinned-mode-sub-section .iconWrapper{
  width: auto;
}

.pinned-mode-sub-section.pin-management{
  justify-content: center;
}
.pinned-mode-sub-section.pin-management .icon{
  margin: 0 0.3rem;
}

.pinned-mode-sub-section .iconWrapper .tooltipText{
  pointer-events: none;
  position: absolute;
  left: 18px;
  width: 100px;
  background-color: #637287;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 5px;
  z-index: 1;
  top: -20px;
  margin-left: -60px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.pinned-mode-options .divider{
  border-left: 1px solid #abb4c2;
  padding: 2rem 0;
  margin: 0 1rem;
}

.downloadIndicator{
  padding: 1rem;
  background:#e7ebee;
  box-shadow: 0px 0px 6px #111111;
  border-radius: 0 0 12px 0;
  align-items: center;
}

.downloadIndicator div {
margin: 0 0.5rem;
}

.downloadIndicator a {
  text-decoration: underline;
  cursor: pointer;
}

.animation-slider-container{
  width: 80%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.animation-slider-title{
  font-size: 0.8rem;
  margin: 0 auto;
}

.animation-second-row{
display: flex;}

.animation-speed {
  margin: 0 5px;
}
.animation-slider-container input{
  width: 86%;
}

.animation-second-row input[type="range"] {
  appearance: none; 
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(209,216,226,1) 100%);
  width: 100%;
  border-radius: 3px;
  height: 8px;
  transform: translate(0, 5px);
}

.animation-second-row input[type=range]::-webkit-slider-thumb {
  position: relative;
  top: -1px;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #F1F4F5;
  outline: solid 2px #D4DBE4;
  border-radius: 50%;
  box-shadow: 0px 0px 6px #D4DBE4;
}

.animation-second-row input[type=range]::-moz-range-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: #F1F4F5;
  outline: solid 2px #D4DBE4;
  border-radius: 50%;
  box-shadow: 0px 0px 6px #D4DBE4;
}

.animation-second-row input[type=range]::-webkit-slider-thumb:hover {
  background: #f7f7f7;
}

.animation-second-row input[type=range]::-webkit-slider-runnable-track  {
  -webkit-appearance: none;
  box-shadow: none;
  border: none;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(209,216,226,1) 100%);
  height: 8px;
  border-radius: 4px;
}

.animation-second-row input[type=range]::-moz-slider-range-track  {
  -moz-appearance: none;
  box-shadow: none;
  border: none;
  background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(209,216,226,1) 100%);
  height: 8px;
  border-radius: 4px;
}

.mapCard-slider input[type=range]::-webkit-slider-thumb {
  appearance: none;
  pointer-events: all;
  width: 12px;
  height: 12px;
  background: #F1F4F5;
  outline: solid 2px #D4DBE4;
  border-radius: 50%;
  box-shadow: 0px 0px 6px #D4DBE4;
  cursor: pointer;
  position: relative;
  top: -2px;
}

.mapCard-slider input[type=range]::-moz-range-thumb {
  appearance: none;
  pointer-events: all;
  width: 12px;
  height: 12px;
  background: #F1F4F5;
  outline: solid 2px #D4DBE4;
  border-radius: 50%;
  box-shadow: 0px 0px 6px #D4DBE4;
  cursor: pointer;
  position: relative;
  top: -2px;
}

.icon .unpin-all{
  transform: rotate(45deg);
}

.unpin-action-warning {
  position: absolute;
  z-index: 2;
  margin: 0 0 0 10px;
  padding: 5px 10px 5px 10px;
  background: #F1F4F5;
  border-radius: 12px;
  box-shadow:
  6px 6px 6px #D8E0E7,
  -6px -6px 8px #D8E0E7,
  6px 6px 8px #D8E0E7;
}

.unpin-action-warning p {
  padding: 10px 0;
}

.btn-container {
  display: flex;
  justify-content: space-around;
}
.prompt-btns{
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
  background: #f1f4f5;
  box-shadow: inset 6px 6px 6px #eaeef1, -2px -2px 3px #f9fbfb,
    3px 3px 4px #d8e0e7;
  font-weight: bold;
  cursor: pointer;
  align-self: end
}

.goToWebMap-btn {
  padding: 10px;
    border-radius: 4px;
    background: #f1f4f5;
    box-shadow: inset 6px 6px 6px #eaeef1, -2px -2px 3px #f9fbfb, 3px 3px 4px #d8e0e7;
    font-weight: bold;
    cursor: pointer;
    align-self: self-end;
}

.filter {
  font-weight: 700;
  width: 50%; /*47%*/
  margin: auto -15px auto 5px;
}

.filter-years {
  width: 44%; /*47%;*/
}

.sortOrder{
  width: 10%; 
  margin: auto;
}

.sortOptions {
  cursor: pointer;
  background: #F1F4F5;
  position: absolute;
  margin: auto;
  padding: 15px 20px;
  z-index: 3;
  width: max-content;
  right: 15px;
  border-radius: 6px;
  box-shadow:
   6px 6px 6px #B3BED0,
  -6px -6px 8px #B3BED0,
  6px 6px 8px #B3BED0;
}

.sortOptions a {
  display: block;
}

.filterAndSortBtn{
  font-family: "Roboto Condensed";
  padding: 3px;
  border-radius: 4px;
  background: #f1f4f5;
  box-shadow: inset 6px 6px 6px #eaeef1, -2px -2px 3px #f9fbfb,
    3px 3px 4px #d8e0e7;
}

button .filterAndSortBtn:active {
  transform: translateY(1px);
  transition: transform 150ms ease;
}

#filter-panel{
  scrollbar-width: thin;
  max-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0px 0px 0 -10px;
  padding: 0 1rem 1rem 1.5rem;
}

#exploreList{
  scrollbar-width: thin;
  max-height: 100vh;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0px 0px 0 -10px;
  padding: 0 1rem 1rem 1.5rem;
}

#pinnedList {
  scrollbar-width: thin;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0px 0px 0 -10px;
  padding: 0 1rem 0 1.5rem;
}

#legendDiv {
  scrollbar-width: thin;
  height: 10vh;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 4px 0px 0 -10px;
  padding: 0 1rem 0 1.5rem;
}

@media (max-width: 767px) {
  #legendDiv {
    height: 15vh;
  }
}

#exploreList .notificationMessage{
margin: 25px 0 0 0;
text-align: center;
font-size: 1rem;
font-style: italic;
}

.helpText{
  margin: 50% 32%;
  padding: 50% 0; 
  text-align: center;
  line-height: 1.5rem
}

.downloadOptionsWrapper {
  background: #F1F4F5;
  padding-top: 7rem;
  width: 15rem;
  top: 0;
  right: 0;
  position: relative;
  box-shadow: 0px 0px 6px #111111;
  border-radius: 0 0 12px 0;
}

.choice {
  line-height: 3rem;
  display: flex; 
  justify-content: center;
  align-items: center;  
}

.choice div{
  margin-right: 0.5rem;
}

.choice:hover{
  color: #242b33;
  text-decoration: underline;
  font-weight: bold;
  cursor: pointer;
}

.choice div {
  background: #ABB4C2;;
}

.choice:hover div{
background: #637287;
}

svg{
  fill: #637287;
}

.downloadPreview {
  width: 100%;
  position: absolute;
  z-index: 2;
  height: 100%;
  opacity: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.activeDownload {
  background: transparent;
  width: 100%;
  height: 100%;
}

.gutter {
  background: black;
  width: 100%;
  height: 100%;
}

@media only screen and (max-width: 366px) {
  .heading { 
     font-size: 1.13rem; 
  }
}

@media only screen and (max-width: 375px) {
  #sideBar {
    margin: 0 -10px;
  }
}

.icon.custom-action .save svg {
  fill: #425a70;
  width: 24px;
  height: 24px;
}

.icon.custom-action .save svg:hover {
  fill: #007ac2;
}

#filter-panel-old {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 1000;
  background: white;
  border: 1px solid #0074d9;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 250px;
  max-height: 400px;
  overflow-y: auto;
}

#filter-panel.hidden {
  display: none;
}

.filter-header {
  margin-bottom: 10px;
}

.filter-body label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}
/* .hidden {
  display: none;
} */
.vis {
  display: block;
}

.tema-scala {
  /*border-left: 3px solid;*/
  border-right: 5px solid;
  border-bottom: 4px solid;
}

.scala-10000 {
  /*border-left-color:rgb(0, 235, 137);*/
  border-right-color:rgb(0, 235, 137);
  border-bottom-color:rgb(0, 235, 137);
}

.scala-25000 {
  /*border-left-color:rgb(0, 196, 157);*/
  border-right-color:rgb(0, 196, 157);
  border-bottom-color:rgb(0, 196, 157);
}

.scala-50000 {
  /*border-left-color:rgb(0, 156, 176);*/
  border-right-color:rgb(0, 156, 176);
  border-bottom-color:rgb(0, 156, 176);
}

.scala-100000 {
  /*border-left-color: rgb(0, 117, 196);*/
  border-right-color: rgb(0, 117, 196);
  border-bottom-color:rgb(0, 117, 196);
}

.scala-250000 {
  /*border-left-color: rgb(0, 78, 215);*/
  border-right-color:rgb(0, 78, 215);
  border-bottom-color:rgb(0, 78, 215);
}

.scala-250001 {
  /*border-left-color:rgb(0, 0, 150);*/
  border-right-color:rgb(0, 0, 150);
  border-bottom-color:rgb(0, 0, 150);
}

.scala-predefinita {
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color:transparent;
}

.xscala-colore-10000 {
  background-color: rgb(0, 235, 137);
  color:rgb(255, 255, 255);
}

.xscala-colore-25000 {
  background-color:rgb(0, 196, 157);
  color:rgb(255, 255, 255);
}

.xscala-colore-50000 {
  background-color:rgb(0, 156, 176);
  color:rgb(255, 255, 255);
}

.xscala-colore-100000 {
  background-color: rgb(0, 117, 196);
  color:rgb(255, 255, 255);
}

.xscala-colore-250000 {
  background-color:rgb(0, 78, 215);
  color:rgb(255, 255, 255);
}

.xscala-colore-250001 {
  background-color:rgb(0, 0, 150);
  color:rgb(255, 255, 255);
}

.xscala-colore-predefinita {
  background-color: transparent;
  color:rgb(0, 0, 0);
}

.filterText, .pinCount, .pinnedText, .timelineText{
  display: inline-block;
  /* text-indent: 3px; */
  padding-left: 20px;
}

.pinCount, .pinnedText {
  padding-left: 10px;
}

.timelineText {
  padding-left: 0px;
}

.custom-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 250px !important;
  overflow-y: auto;
  background-color: white;
  border-top: 2px solid #ccc;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
  /* z-index: 9999; */
  /* display: flex; */
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
  cursor: default;
}
 
.custom-panel.hidden {
  display: none;
}
.custom-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  padding-bottom: 6px;
  border-bottom: 1px solid #eee;
}
 
.close-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.minimize-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
 
.timeline-custom-panel-header {
  display: flex;
  align-items: center; /* Allinea verticalmente gli elementi */
  justify-content: space-between; /* Distribuisce lo spazio tra gli elementi */
}

.timeline-panel-buttons {
  display: flex; /* Allinea i bottoni orizzontalmente */
}

.timeline-minimize-btn,
.timeline-close-btn {
  margin-left: 5px; /* Aggiunge un po' di spazio tra i bottoni */
}

.custom-panel-open-btn {
  position: absolute;
  bottom: 210px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0074d9;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  z-index: 9999;
}
 
 
 
.custom-panel-content {
  display: flex;
  flex-direction: row;
  gap: 12px;
  height: 200px;
  overflow: hidden;

  margin-left: 138px;
  justify-content: flex-end;
}
 
 
#timeline-legend {
  width: 160px;
  padding: 10px;
  font-size: 13px;
  border-right: 1px solid #ccc;
  background: #f9f9f9;
  flex-shrink: 0;
  
  z-index: 4;
  position: absolute;
  bottom: 20px;
  left: 0;
  cursor: default;
  background-color: #e7ebee;
  /* border-top-right-radius: 12%;
  border-bottom-right-radius: 12%; */
  min-height: 190px;
}

.timeline-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

.timeline-content {
  position: relative;
}

.timeline-scroll {
  --scrollbarBG: #E7EBEE;
  --thumbBG: #90A4AE;
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}

.timeline-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000; /* Sopra tutto */
  background-color: rgba(255, 255, 255, 0.7); /* opzionale: sfondo trasparente */
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}

.timeline-loader.hidden {
  display: none;
}









.timeline-tooltip {
  position: absolute;
  background: white;
  color: #333;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  white-space: normal;
  max-width: 220px;
  z-index: 9999;
  pointer-events: none;
}

.timeline-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: white transparent transparent transparent;
  filter: drop-shadow(0 -1px 1px rgba(0,0,0,0.1));
}

#measurementToolbar {
  position: absolute;
  top: 90px;
  right: 15px;
  display: flex;
  flex-direction: row;
  gap: 4px;
  z-index: 10;
}
.esri-widget--button.active {
  background-color: #999696;
}

#measurementButtons .active {
  background-color: #999696;
}

#measurementButtons {
  display: flex;
  flex-direction: row;
  gap: 6px;
}

/* 🔽 Stile mobile: colonna verticale sotto il Search */
@media (max-width: 768px) {
  .esri-ui-bottom-right > #measurementButtons {
    flex-direction: column;
    align-items: flex-end;
    background: white;
    padding: 6px;
    border-radius: 6px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  }
}

.search-container {
    background-color: transparent;
    display: flex;
    align-items: center;
    /* background: white; */
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 2px 4px;
    /* width: 100%; */
    /* max-width: 100%; */
    margin-left: 8px;
    margin-right: 30px;
    flex-wrap: nowrap;
}

.search-container input {
  border: none;
  outline: none;
  flex: 1;
  padding: 6px;
  font-size: 14px;
  border-radius: 4px;
  color: #637287;
  background-color: transparent;
}

.search-container button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  width: 8%;
}

.share-popup {
  position: absolute;
  top: 40px;
  left: 20px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 9999;
}

.esri-expand__panel .esri-widget--button {
    border-radius: 12px;
    background-color: #f1f4f5;
}