@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  --primary-color: #0a0a28;
  --white: #fff;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Onest', sans-serif;
}

#map {
  flex: 1 1 auto;
  width: 100%;
}

#footer {
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  line-height: 60px;
  font-size: 14px;
  font-family: 'Onest', sans-serif;
  overflow: hidden;
}

#customMapButton {
  font-family: 'Onest', sans-serif;
  background-color: var(--primary-color);
  color: var(--white);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#customMapButton:hover {
  background-color: var(--white);
  color: var(--primary-color);
}

.position-absolute{
  position: absolute;
  z-index: 1000;
}

.position-left{
  left: 16px;
} 

.position-bottom{
  top: 84px;
}

/* logo */
#logo-container {
background-color: #ffffffe6;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  max-height: 65px;
  min-width: 150px;
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
  position: absolute;
  z-index: 1000;
  margin: 8px 0px 0px 16px;
  cursor: pointer;
}

#logo-container img {
  height: 30px;
  width: auto;
}

#logo-container label {
  font-family: "Space Mono", monospace;
  font-size: 35px;
  font-weight: 700;
  color: #ff0007;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

#logo-container p {
  padding: 0 5px;
  font-size: 20px;
  color: #0a0a28;
  font-weight: 700;
}

/* modal styling */
#modal-dialog {
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 10px;
  padding: 10px;
  width: 420px;
  max-width: 90vw;
  font-family: 'Onest', sans-serif;
  z-index: 1000;
}

#modal-dialog::backdrop {
  background: rgba(10, 10, 40, 0.5);
}

#modal-dialog button {
  margin: 10px 5px 0 0;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--primary-color);
  background-color: var(--white);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#modal-dialog button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

#modal-dialog button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.dialog-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.left-buttons,
.right-buttons {
  display: flex;
  gap: 5px;
}

.right-buttons {
  margin-left: auto;
}

/* layer selection style */
.leaflet-control-layers {
  background-color: var(--white) !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--primary-color) !important;
  border-radius: 8px !important;
  font-family: 'Onest', sans-serif !important;
  /* right: 50px; */
  z-index: 1200;
  top:62px;
}

.leaflet-control-layers label {
  color: var(--primary-color);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.leaflet-layerstree-header-name{
  font-size: 14px;
}

.leaflet-control-layers input[type="checkbox"],
.leaflet-control-layers input[type="radio"] {
  accent-color: var(--primary-color);
  cursor: pointer;
}

.leaflet-control-layers .leaflet-tree-collapse,
.leaflet-control-layers .leaflet-tree-expand {
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 4px;
  font-size: 12px;
}

.leaflet-control-layers label:hover {
  background-color: var(--white);
  border-radius: 4px;
}

.leaflet-control-layers-toggle {
  background-color: black !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px rgba(10, 10, 40, 0.15);
  width: 40px !important;
  height: 40px !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
}

.leaflet-control-layers-toggle:hover {
  background-color: var(--white) !important;
  border-color: var(--primary-color) !important;
}


/*children indentation*/
.leaflet-control-layers .leaflet-layerstree-children {
  /* margin-left: 16px; */
}


/* zoom buttons */
.leaflet-control-zoom {
  background-color: var(--white) !important;
  border: 1px solid var(--primary-color) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  color: var(--primary-color) !important;
  background-color: var(--white) !important;
  border: none !important;
  font-weight: bold;
  font-size: 18px;
  line-height: 26px;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  outline: none;
}

.leaflet-control-zoom-in {
  border-bottom: 1px solid var(--primary-color) !important;
  border-top-left-radius: 8px !important;
  border-top-right-radius: 8px !important;
}

.leaflet-control-zoom-out {
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
}

/* info modal styling */
.custom-info-button {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: black;
  color: white;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-info-button p{
  margin: 0;
  font-size: 18px;
}

/* .custom-info-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
} */

/* Info modal styling */
#info-modal {
  max-height: 593px;
  top: 0%;
  position: fixed;
  width: 1000px;
  max-width: 80vw;
  height: 636px;
  padding: 12px;
  background-color: var(--white);
  border: none;
  border-radius: 8px;
  color: var(--primary-color);
  font-family: 'Onest', sans-serif;
  box-shadow: 0 0 10px #0000001a;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

#info-modal::backdrop {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  animation: fadeIn .3s ease-in-out forwards;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 4px 0;
  font-size: 15px;
}

.modal-header h2{
  margin: 0;
}

.subtitle {
font-weight: 700;
  text-transform: uppercase;
  font-family: Space Mono,monospace;
}

.logos-container {
  display: flex;
  flex-direction: row;
  /* flex-wrap:wrap; */
  justify-content: flex-start;
  gap: 10px;
  /* overflow: hidden; */
}

.logo-style {
  max-height: 50px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

#info-close {
font-size: 18px;
  cursor: pointer;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

dialog:focus {
  outline: none; /* hides the focus ring */
}

/* #info-close:hover {
  color: var(--primary-color);
} */

.info-modal-content{
    display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  overflow-y: scroll;
  overflow-x: hidden;
}

.info-modal-content p, h2, h3{
  margin: 0px;
}

/* #info-modal button {
  margin: 10px 5px 0 0;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid var(--primary-color);
  background-color: var(--white);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

#info-modal button:hover {
  background-color: var(--primary-color);
  color: var(--white);
} */


#info-footer-container{
    width: 100%;
    background-color: #3a66ba;
}

#info-footer-image{
    width: 629.7px;
    height: 50px;
    display: block;
    margin-right: auto;
    margin-left: auto;
}

#info-logos{
    display: block;
    max-width: fit-content;
}


/* legenda styling */
#map-legend {
  position: absolute;
  top: 137px;
  left: 16px;
  /* transform: translateY(-50%); */
  background-color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  z-index: 999;
  display: none;
  font-family: "Space Mono", monospace;
  font-size: 14px;
  color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(10, 10, 40, 0.15);
  max-width: 240px;
}

#map-legend h4 {
  font-family: 'Onest', sans-serif;
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

#map-legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#map-legend li {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
}

.legend-color {
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 8px;
  border: 1px solid var(--primary-color);
  border-radius: 3px;
}

/* Info icon */
.info-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  user-select: none;
}

/* Tooltip */
.info-icon-tooltip {
  position: fixed;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  max-width: 285px;
  word-wrap: break-word;
  white-space: normal;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.leaflet-control-zoom{
    border: none !important;
    background-color: transparent !important;
}

.leaflet-control-zoom-out, .leaflet-control-zoom-in{
    padding: 5px;
    margin: 8px 0px !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    z-index: 6000;
    /* box-shadow: 0 0 5px rgba(#212121, 0.25); */
    font-family: 'Onest', sans-serif;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-bottom: none !important;
}

.leaflet-right .leaflet-control{
    margin-right: 16px !important;
}

  .leaflet-touch .leaflet-bar a{
    line-height: 22px !important;
  }

  .leaflet-bar{
    box-shadow: none;
  }
