body {
  margin: 0;
  font-family: Montserrat, sans-serif;
}

.header {
  height: 11vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  background-color: #375E86;
}

.header img {
  height: 9vh;
  width: auto;
  margin-left: 1vh;
}

.header-title {
  text-align: right;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1vh;
  justify-content: center;
  margin-right: 1vh;
}

.header-title h1 {
  font-size: 3.4vh;
  margin: 0;
}

.header-title h2 {
  font-size: 2.2vh;
  font-weight: normal;
  margin: 0;
}

.primary {
  height: 100vh;
  width: 100vw;
  position: relative;
}

#map {
  width: 100%;
  height: 100%;
}

.attribution {
  position: absolute;
  height: 2.3vh;
  width: 100%;
  bottom: 0px;
  background-color: white;
  z-index: 1000000;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7vw;
}

#attribution-left {
  padding-left: 10px;
}

#attribution-right {
  padding-right: 10px;
}

#attribution-right button {
  border: none;
  font-size: 0.7vw;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}

#burn-info {
  position: absolute;
  top: 1.5vh;
  right: 1.5vh;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 1vh rgb(0, 0, 0, 0.2);
  padding: 2.5vh;
  min-width: 35vw;
  max-width: 45vw;
  width: max-content;
  max-height: 95vh;
  overflow-y: auto;
  display: none;
  box-sizing: border-box;
  z-index: 100;
}

.burn-info-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  line-height: 1;
}

.burn-info-close:hover {
  color: #d32f2f;
  background: rgba(0, 0, 0, 0.1);
}

.property-container {
  display: flex;
  align-items: center;
  height: 6vh;
  border: 1px solid white;
  box-sizing: border-box;
  text-align: right;
}

.property-name {
  background-color: #458BC9;
  color: white;
  width: 30%;
  height: 100%;
  padding: 0 2vh;
  display: flex;
  align-items: center;
  text-align: left;
}

.property-value {
  background-color: #ECEDEC;
  width: 75%;
  height: 100%;
  padding: 0 2vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.project-map-row {
  height: auto;
  min-height: 6vh;
  align-items: stretch;
}

.project-map-row .property-name {
  height: auto;
}

.project-map-links {
  height: auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  padding: 12px 2vh;
  overflow-wrap: anywhere;
}

.accordion-section {
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-top: 4px;
}

/* .unit-header {
  border-bottom: 1px solid rgb(224, 224, 224);
  cursor: pointer;
  background-color: #458BC9;
  transition: background-color 0.2s;
  padding: 10px 12px;
  color: white;
}

.unit-header:hover {
  background-color: #2a669c;
}

.unit-header.activeBurn {
  background-color: #e04d24;
}

.unit-header.activeBurn:hover {
  background-color: red;
} */

.unit-header {
  border-bottom: 1px solid rgb(224, 224, 224);
  cursor: pointer;
  background-color: #458BC9;     /* default closed */
  color: white;
  transition: background-color 0.2s;
  padding: 10px 12px;
}

/* Hover for normal (non-active) headers */
.unit-header:hover {
  background-color: #2a669c;
}

/* Active burn header (always red, overrides default) */
.unit-header.active-burn {
  background-color: #e04d24;
}

/* Hover on active burn header */
.unit-header.active-burn:hover {
  background-color: #c0392b;     /* slightly darker red on hover */
}

/* Open/expanded header (blue highlight) */
.unit-header.expanded {
  background-color: #2a669c;
}

/* Hover on expanded header */
.unit-header.expanded:hover {
  background-color: #1f4a7a;     /* slightly darker blue */
}

/* Optional: expanded + active burn (if both states can overlap) */
.unit-header.active-burn.expanded {
  background-color: #e04d24;     /* darker red for open active */
}

.unit-header.active-burn.expanded:hover {
  background-color: #c0392b;
}

.unit-details {
  padding: 12px 16px;
  background-color: #ECEDEC;
  border-bottom: 1px solid rgb(224, 224, 224);
  display: block;
}

#sf-container {
  position: absolute;
  top: 2vh;
  left: 2vh;
  z-index: 1000;
  width: max-content;
  pointer-events: none;
}

#sf-container h1 {
  font-size: 2.5vh;
  margin-right: 1vh;
}

#sf-bar {
  padding: 0.5vh;
  border-radius: 5vh;
  background-color: white;
  display: flex;
  align-items: center;
}

#sf-bar img {
  width: 2vh;
  height: auto;
  margin: 0.5vh;
}

#search-dropdown-container {
  position: relative;
  height: 3.5vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#dropdown-arrow {
  cursor: pointer;
}

#dropdown-arrow:hover {
  opacity: 0.6;
}

#filter-dropdown {
  display: none;
  flex-direction: column;
  align-items: baseline;
  position: absolute;
  top: 4.5vh;
  left: 0;
  background-color: white;
  color: #141414;
  width: max-content;
  z-index: 100000;
}

#filter-dropdown p {
  margin: 2vh;
}

#filter-dropdown option {
  padding: 2vh;
  cursor: pointer;
}

#filter-dropdown div {
  width: 100%;
}

#filter-dropdown option:hover {
  background-color: #62a6e3;
  color: white;
}

.active-filter {
  background-color: #458BC9;
  color: white;
  font-weight: bold;
}

#search-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background-color: rgb(40,78,120,0.9);
  box-shadow: 0 0 1vh rgb(0,0,0,0.2);
  border-radius: 4vh;
  padding: 1vh 1vh;
  color: white;
  pointer-events: all;
}

#search-container h1 {
  margin: 0;
}

#search-container input[type="text"] {
  padding: 8px;
  font-size: 2vh;
  border: 1px solid white;
  width: 15vw;
  background-color: white;
  border-top-left-radius: 4vh;
  border-bottom-left-radius: 4vh;
  border-top-right-radius: 4vh;
  border-bottom-right-radius: 4vh;
  height: 1.5vh;
}

#search-container select {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 1px;
  width: 200px;
  background-color: #284E78;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

#search-container label {
  margin: 0 10px;
  font-size: 16px;
}

#controls-container {
  margin: 2.5vh 0 0 1vw;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  width: max-content;
  z-index: 100000;
  pointer-events: all;
}

/* #controls-container img { */
.controlImg {
  width: 4vh;
  height: auto;
  background-color: white;
  box-shadow: 0 0 1vh rgb(0,0,0,0.2);
  margin: 0 1vh;
  cursor: pointer;
  border-radius: 1vh;
}

/* #controls-container img:hover { */
.controlImg:hover {
  background-color: #f5f5f5;
  box-shadow: 0 0 1vh rgb(0,0,0,0.4);
}

.maplibregl-ctrl-group:not(:empty) {
    box-shadow: 0 0 1vh rgb(0, 0, 0, 0.2);
}

.checkDiv {
  display: flex;
  align-items: center;
}

.filterIcon {
  width: 3.5vh;
  height: auto;
  box-shadow: none;
}

#zoom-container {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  box-shadow: 0 0 1vh rgb(0,0,0,0.2);
  margin: 0 1vh;
  cursor: pointer;
}

.zoom-button {
  margin: 0;
  background: white;
  font-size: 3vh;
  font-weight: bold;
  width: 4vh;
  height: 4vh;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.zoom-button:hover {
  background: #ededed;
}

#zoom-in {
  border-top-left-radius: 0.5vh;
  border-top-right-radius: 0.5vh;
  border-bottom: 1px solid lightgray;
}

#zoom-out {
  border-bottom-left-radius: 0.5vh;
  border-bottom-right-radius: 0.5vh;
}

#monitor-table-container {
  font-size: 2vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

#monitor-table {
  display: flex;
  align-items: center;
}

#monitor-title {
  text-align: center;
  margin-bottom: 10px;
}

#monitor-title h3 {
  margin: 0;
}

#monitor-title p {
  margin: 0;
}

.maplibregl-popup-content {
  width: max-content;
}

.monitor-col {
  width: max-content;
  background-color: #ECEDEC;
  border: 1px solid white;
  text-align: center;
}

.monitor-col p {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 1vh 1.2vh;
  box-sizing: border-box;
}

.monitor-col h4 {
  margin: 0;
  padding: 2vh;
}

.monitor-header {
  background-color: #458BC9;
  width: 100%;
  color: white;
  border: 1px solid white;
}

#filter-icon-dropdown {
  position: absolute;
  background-color: white;
  left: 9vh;
  top: 15vh;
  border-radius: 1vh;
  padding: 1.5vh;
  z-index: 1000;
  width: max-content;
  box-shadow: 0 0 1vh rgb(0,0,0,0.2);
  display: none;
  font-size: 2vh;
  max-height: 70vh;
}

#filter-icon-form {
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

#filter-icon-form label {
  margin: 1vh;
}

#filter-icon-form input {
  margin-right: 1.5vh;
  cursor: pointer;
}

#basemap-icon-dropdown {
  position: absolute;
  background-color: white;
  left: 9vh;
  top: 15vh;
  border-radius: 1vh;
  padding: 1.5vh;
  z-index: 1000;
  width: max-content;
  box-shadow: 0 0 1vh rgb(0,0,0,0.2);
  display: none;
  font-size: 2vh;
  max-height: 70vh;
}

#basemap-icon-dropdown p {
  text-align: center;
  margin: 0 0 2vh 0;
  text-decoration: underline;
}

#basemapContainer {
  padding: 1.5vh 1vh;
}

.basemapRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.basemapPair img {
  width: 18vh;
  height: auto;
  margin: 0.5vh 2vh;
  border-radius: 0.3vh;
  box-sizing: border-box;
  border: 1px solid gray;
}

.basemapPair img:hover {
  box-shadow: 0 0 1vh rgb(60, 60, 60);
}

.basemapPair {
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

#search-suggestion-container {
  position: relative;
}

#suggestions-container {
  position: absolute;
  max-height: 40vh;
  width: 100%;
  overflow-y: scroll;
  background-color: white;
  z-index: 1000;
  box-shadow: 0 0 1vh gray;
  left: 0;
  top: 4.5vh;
  color: #141414
}

.suggestion-item {
  padding: 1vh 2vh;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}

.suggestion-warning {
  padding: 1vh 2vh;
  background: #fff3d1;
  opacity: 0.7;
  font-size: 1.8vh;
  margin: 0;
}

.suggestion-cat {
  margin: 0;
  opacity: 0.7;
  font-size: 1.8vh;
}

.suggestion-name {
  margin: 0;
  font-size: 2.2vh;
}

.suggestion-loading {
  margin: 0;
  opacity: 0.7;
  font-size: 1.8vh;
}

.alertContainer {
  width: 100%;
  padding: 2vh;
  box-sizing: border-box;
  border: 1px solid white;
  text-align: center;
  background-color: #e04d24;
  font-weight: bold;
  color: white;
}

.alertContainer p {
  margin: 0;
}

.alertContainer span {
  color: white;
  text-decoration: underline;
  cursor: pointer;
}

#logo {
  position: absolute;
  left: 2vh;
  bottom: 4vh;
  width: 20vw;
  height: auto;
}

#burn-info a {
  text-decoration: underline;
  cursor: pointer;
  color: #2a669c;
}

.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.modal a {
  color: #2a669c;
}

.modal-overlay {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    width: 100%; height: 100%;
}

.modal-content {
    background: white;
    max-width: 620px;
    width: 90%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100001;
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    background-color: #2a669c;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    color: white;
}

.notification-group {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.notification-group:last-child {
    border-bottom: none;
}

.notification-group h3 {
    margin: 0 0 12px 0;
    color: #333;
}

.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.notification-item a {
    color: #0066cc;
    text-decoration: underline;
    flex: 1;
}

.time-filter {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.time-filter label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

#slider-value {
    font-weight: bold;
    display: inline-block;
    width: 110px;
}

#date-slider {
    width: 100%;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}
