@font-face {
    font-family: 'Bree Serif';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/BreeSerif-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../webfonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../webfonts/Roboto-Bold.ttf') format('truetype');
}



/* MAPS settings */
#map-landscape {  display: block; }
#map-solar {  display: none;}

/* BUTTON to change to Solar map*/
#ChangeToSolarButton {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 1; /* Make sure it's above the map */
    padding: 8px 12px;
    background-color: rgb(7, 126, 135);
    color: white;
    border-style: 1px;
    border-color: rgb(255, 255, 255);
    border-radius: 4px;
    cursor: pointer;
    width: 200px;
}

/* BUTTON to change to Landscape map*/
#ChangeToLandscapeButton {
    position: absolute;
    top: 10px;
    left: 50px;
    z-index: 1; /* Make sure it's above the map */
    padding: 8px 12px;
    background-color: rgb(7, 126, 135);
    color: white;
    border-style: 1px;
    border-color: rgb(255, 255, 255);
    border-radius: 4px;
    cursor: pointer;
    width: 200px;
}


/* Navigation controls in the map Landscape */
#custom-nav-control-landscape {
  position: absolute;
  top: 10px; /* adjust as needed */
  left: 10px;
  z-index: 10;
}

/* Navigation controls in the map Solar */
#custom-nav-control-solar {
  position: absolute;
  top: 10px; /* adjust as needed */
  left: 10px;
  z-index: 10;
}

/* Legend box styling for the MAP SOLAR basemap legend */
#legend-box {
    position: absolute;
    bottom: 85px;
    left: 13px;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    font-family: sans-serif;
    width: 210px;
}

/* Legend header */
#legend-header {
    padding: 5px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

    #legend-header:hover {
        background-color: rgba(0,0,0,0.05);
    }

/* Arrow icon */
.arrow {
    transition: transform 0s ease;
}

    .arrow.expanded {
        transform: rotate(-180deg);
    }

/* Legend content */
#legend-content {
    padding: 10px;
    display: block;
}

    #legend-content img {
        max-width: 100%;
        height: auto;
        display: block;
    }

/* LAYER MENU - toggle visibility */
.menu {
position: absolute;
top: 60px;
right: 10px;
background: #d1cfcf;
padding: 10px 15px;
border-radius: 4px;
box-shadow: 0 1px 4px rgba(0,0,0,0.3);
font-family: sans-serif;
z-index: 1;
width: 300px;
}

/* Settings of the menu title */
.menu h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: bold;
    color: rgb(5, 113, 123);
}

/* Settings of the checkboxes */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0078A8;
    cursor: pointer;
    margin-right: 8px;
}
/* Settings of the text (labels) next to the checkboxes */
.menu label {
display: flex;
align-items: center;
font-size: 14px;
color: #0c0c0c;
}

/* ICONS for the legend inside the LAYER MENU -- checkboxes */
.legend-circle {
display: inline-block;
width: 12px;
height: 12px;
border-radius: 50%; /* makes it a circle */
margin-right: 5px;
margin-left: 30px;
vertical-align: 0px;
color: 'red';
}

.legend-line {
display: inline-block;
width: 30px;         /* Length of the line */
height: 3px;         /* Thickness of the line */
margin-right: 5px;   /* Space between line and label */
margin-left: 30px;
vertical-align: middle;
}

.legend-label {
margin-left: 1px; /* Adjust this value to control spacing */
vertical-align: middle;
font-family: Roboto;
}

/* Setting for the INFO screean and button*/
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}


.info-button {
    position: absolute; /* You can change to fixed or relative if needed */
    top: 50px;
    left: 50px;
    z-index: 1000;
    padding: 8px 16px;
    font-size: 12px;
    background-color: #007BFF; /* Change to any color you like */
    color: white;
    border-style: 1px;
    border-color: rgb(255, 255, 255);
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


.info-icon {
    font-size: 18px; /* Larger than text */
    line-height: 1;
}   



.embed-wrapper {
    width:100%;
    height:100%;
    position:relative;
}

#map-landscape {
    min-height:80vh;
    width:100%;
}
.mapboxgl-map {
    font-family:Roboto !important;
}
.mapboxgl-map canvas {
    width:100% !important;
    height:100% !important;
}
.mapboxgl-map .label {
    font-weight:400;
    color: #333;
}
.mapboxgl-map .value {
    font-weight:600;
    color: #007d8a;
}
.mapboxgl-map .mapboxgl-popup-close-button {
    font-size:16px;
    color:#007d8a;
    font-weight:bold;
}

.mapboxgl-map .mapboxgl-popup .mapboxgl-popup-content {
    border:1px solid #ccc;
}
.mapboxgl-map .mapboxgl-popup-hover {
    background-color:#007d8a;
}
.mapboxgl-ctrl-top-right {
    max-width:100%;
    min-width:320px;
    right:8px;
}
.mapboxgl-ctrl-top-right .mapboxgl-ctrl {
    float:none;
    max-width:100% !important;
    width: auto !important;
    border:1px solid #ccc;
}
.mapboxgl-ctrl-geocoder--input {
    font-size:14px !important;
    font-family:Roboto !important;
    padding:0 !important;
    height:auto;
}
.mapboxgl-ctrl-geocoder.mapboxgl-ctrl {
    padding:0 5px 0 45px;
    height:auto;
}
.mapboxgl-ctrl-geocoder svg {
    fill:#007d8a;
}
.mapboxgl-ctrl-geocoder ul.suggestions li {
    font-size:14px;
}
.energy-map-wrapper .menu-toggle {
    position: absolute; 
    top: 100px; 
    left: 10px; 
    z-index: 1000; 
    cursor: pointer;
    background-color:#fff;
    border:1px solid #666;
    border-radius:6px;
    padding:3px;
    width:29px;
    box-shadow: 0 0 6px rgab(0,0,0,0.4); 
}

.energy-map-wrapper .menu-toggle .icon {
    margin-left:3px;
}

.energy-map-wrapper .menu-toggle.open {
    border-radius:6px 0 0 6px;
    border-right:none;
    width:32px;
}
.energy-map-wrapper #map-menu {
  transition: opacity 0.1s ease;
  position:absolute;
  left:41px;
  top:101px;
  cursor: pointer;
  background-color:#fff;
  z-index:1000;
  border-top:1px solid #ccc;
  border-right:1px solid #ccc;
  border-bottom:1px solid #ccc;
  box-shadow: 0 0 6px rgab(0,0,0,0.4); 
  padding:5px 10px;
  border-radius:0 6px 6px 6px;
  font-size:13px;
  font-family:Roboto;
}
.energy-map-wrapper #map-menu p {
  font-size:15px;
}
.energy-map-wrapper #map-menu label {
    display:block;
}
.energy-map-wrapper #map-menu input[type="checkbox"] {
    accent-color: #007d8a;
    line-height:13px;
}

.energy-map-wrapper #map-menu.hidden {
  opacity: 0;
  pointer-events: none;
}

.energy-map-wrapper .map-toggle {
    position: absolute; 
    left: 10px; 
    top:136px;
    width:29px;
    border:1px solid rgba(0,0,0,0.2);
    background-color:#e3e3e3;
    border-radius:14px;
    z-index: 1000; 
    overflow:hidden;
}

.energy-map-wrapper .toggler {
    cursor: pointer;
    background-color:#e3e3e3;
    padding-top:6px;
    width:100%;
    height:30px;
    border-radius:50%;
    box-shadow: 0 0 6px rgab(0,0,0,0.4); 
    font-size:12px;
    text-align:center;
    color:#666;
    border:1px solid #e3e3e3;
}
.energy-map-wrapper .toggler.active {
    background-color:#fff;
    color:#000;
}

.energy-map-wrapper #help-toggle {
    position: absolute; 
    z-index:1000;
    left: 10px; 
    top:204px;
    width:29px;
    height:29px;
    cursor: pointer;
    border:1px solid rgba(0,0,0,0.2);
    background-color:#fff;
    font-size:18px;
    text-align:center;
    border-radius:50%;
    box-shadow: 0 0 6px rgab(0,0,0,0.4); 
}