/* Button Style Properties */
.button {
  background-color: #FFFFFF;
  height: 32px;
  width: 32px;
  border: 1px solid #FFFFFF;
  border-radius: 6px;
  color: #25363d;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 10pt;
  font-weight: bold;
  cursor: pointer;
}

@media only screen and (max-width: 700px) {
  .button {
    background-color: #FFFFFF;
    height: 32px;
    width: 32px;
    border: 1px solid #FFFFFF;
    border-radius: 6px;
    color: #25363d;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 10pt;
    font-weight: bold;
    cursor: pointer;
  }
}

/* Application - Info Button */
#appInfoBtn{
  position: absolute;
  top: 11px;
  right: 10px;
  background-image: url("https://gis.edmondok.gov/ApplicationModulesJS4X/Icons/CalciteIcons/information-16.svg");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

@media only screen and (max-width: 700px) {
  #appInfoBtn{
    position: absolute;
    top: 50px;
    right: 10px;
	background-image: url("https://gis.edmondok.gov/ApplicationModulesJS4X/Icons/CalciteIcons/information-16.svg");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
  }
}


/* Application - Layers Button */
#appLayersBtn{
  position: absolute;
  top: 11px;
  right: 52px;
  background-image: url("https://gis.edmondok.gov/ApplicationModulesJS4X/Icons/CalciteIcons/layers-16.svg");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

@media only screen and (max-width: 700px) {
  #appLayersBtn{
    position: absolute;
    top: 50px;
    right: 52px;
	background-image: url("https://gis.edmondok.gov/ApplicationModulesJS4X/Icons/CalciteIcons/layers-16.svg");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
  }
}


/* Application - Legend Button */
#appLegendBtn{
  position: absolute;
  top: 11px;
  right: 94px;
  background-image: url("https://gis.edmondok.gov/ApplicationModulesJS4X/Icons/CalciteIcons/legend-16.svg");
  background-size: 16px 16px;
  background-position: center;
  background-repeat: no-repeat;
}

@media only screen and (max-width: 700px) {
  #appLegendBtn{
    position: absolute;
    top: 50px;
    right: 94px;
    background-image: url("https://gis.edmondok.gov/ApplicationModulesJS4X/Icons/CalciteIcons/legend-16.svg");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Info */
/*#infoDIV {
  z-index: 3;
  position: absolute;
  right: 10px;
  top: 10px;

  width: 250px;

  border: 1px solid #25363d;
  border-radius: 4px;
  background-color: white;

  height: auto;
  max-height: 80vh;

  overflow-x: hidden;
  overflow-y: auto;
}

/* Mobile @ 700px */
/*@media only screen and (max-width: 700px) {
  #infoDIV{	
    z-index: 3;
    position: absolute;
	left: 0px;
    right: 0px;	
    top: auto;
	bottom: 0px;
    height: 300px;
    width: auto;
    border: 1px solid #25363d;
    border-radius: 4px;
    background-color: white;
    overflow-x: hidden !important;
	overflow-y: hidden !important;
  }	
}

/* Mobile @ 700px */
@media only screen and (max-width: 700px) {

  #infoDIV {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;

    width: auto;
    height: auto;
    max-height: 60vh;

    overflow-x: hidden;
    overflow-y: auto;
  }

}

/*#infoHeaderDIV{
  position: absolute;
  height: 24px;
  width: 100%;
  background-color: #25363d;
  font-weight: bold;
  text-indent: 5px;
  color: white;
  display: inline-block;
  line-height: 24px;
}

#infoTextBoxDIV{
  position: absolute;
  top: 30px;
  height: 130px;
  left: 5px;
  right: 5px;
  font-weight: normal;
  font-size: 10pt;
  line-height: 18px;
}

/* Mobile @ 700px */
/*@media only screen and (max-width: 700px) {
  #infoTextBoxDIV{
    position: absolute;
    top: 30px;
    height: 90px;
    left: 5px;
    right: 5px;
    font-weight: normal;
    font-size: 10pt;
    line-height: 18px;
  }
}

/*#infoContactDIV{
  position: absolute;
  top: 170px;
  height: 170px;
  left: 5px;
  right: 5px;
  font-weight: normal;
  font-size: 10pt;
  display: inline-block;
  line-height: 18px;
}

/* Mobile @ 700px */
/*@media only screen and (max-width: 700px) {
  #infoContactDIV{
    position: absolute;
    top: 130px;
    height: 160px;
    left: 5px;
    right: 5px;
    font-weight: normal;
    font-size: 10pt;
    display: inline-block;
    line-height: 18px;
  }
}


/* Info */
#infoDIV {
  z-index: 3;
  position: absolute;
  right: 10px;
  top: 10px;

  width: 250px;

  border: 1px solid #25363d;
  border-radius: 4px;
  background-color: white;

  height: auto;
  max-height: 80vh;

  overflow-x: hidden;
  overflow-y: auto;
}


/* Info Header */
#infoHeaderDIV {
  height: 24px;
  width: 100%;
  background-color: #25363d;
  font-weight: bold;
  text-indent: 5px;
  color: white;
  line-height: 24px;
}


/* Info Text */
#infoTextBoxDIV {
  margin: 8px 8px 10px 8px;
  font-weight: normal;
  font-size: 10pt;
  line-height: 18px;
}


/* Info Contact */
#infoContactDIV {
  margin: 0 8px 10px 8px;
  font-weight: normal;
  font-size: 10pt;
  line-height: 18px;
}



/* legend */
#legendDIV {
  z-index: 3;
  position: absolute;
  right: 10px;
  top: 10px;

  width: 250px;

  border: 1px solid #25363d;
  border-radius: 4px;
  background-color: white;

  height: 420px;
  max-height: 65vh;

  overflow: hidden;
}

#legendHeaderDIV {
  height: 24px;
  width: 100%;
  background-color: #25363d;
  font-weight: bold;
  text-indent: 5px;
  color: white;
  line-height: 24px;
}

/* Legend Mobile - 700px Pixel Width */
@media only screen and (max-width: 700px) {
  #legendDIV{
    z-index: 3;
    position: absolute;
	left: 0px;
    right: 0px;	
    top: auto;
	bottom: 0px;
    height: 200px;
    width: auto;
    border: 1px solid #25363d;
    border-radius: 4px;
    background-color: white;
    overflow-x: hidden !important;
	overflow-y: hidden !important;
  }
}

/* Map - Legend */
#mapLegendDIV {
  position: relative;
  z-index: 3;

  padding: 6px 10px 10px 10px;

  height: calc(100% - 24px);
  overflow-x: hidden;
  overflow-y: auto;
}

/* Legend Mobile - 700px Pixel Width */
@media only screen and (max-width: 700px) {
  #mapLegendDIV{
    position: absolute;
    z-index: 3;
    bottom: 0px;
    left: 10px;
    right: 10px;
    height: 160px;
    overflow:hidden;
   }
}



#layersDIV {
  z-index: 3;
  position: absolute;
  right: 10px;
  top: 10px;

  width: 250px;

  border: 1px solid #25363d;
  border-radius: 4px;
  background-color: white;

  height: auto;
  max-height: 500px;

  overflow-x: hidden;
  overflow-y: auto;
}

/* Mobile @ 700px */
@media only screen and (max-width: 700px) {
  #layersDIV{	
    z-index: 3;
    position: absolute;
	left: 0px;
    right: 0px;	
    top: auto;
	bottom: 0px;
    height: 200px;
    width: auto;
    border: 1px solid #25363d;
    border-radius: 4px;
    background-color: white;
    overflow-x: hidden !important;
	overflow-y: hidden !important;
  }	
}

/*#layersHeaderDIV{
  position: absolute;
  height: 24px;
  width: 100%;
  background-color: #25363d;
  font-weight: bold;
  text-indent: 5px;
  color: white;
  display: inline-block;
  line-height: 24px;
}*/

#layersHeaderDIV {
  height: 24px;
  width: 100%;
  background-color: #25363d;
  font-weight: bold;
  text-indent: 5px;
  color: white;
  line-height: 24px;
}


/* Container for layer controls */
#layersContentDIV {
  padding: 10px;
}


/* Section headings */
.layersSectionTitle {
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #cccccc;
}


/* Individual layer row */
.layerRow {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}


/* Layer checkboxes */
.layerRow input[type="checkbox"] {
  height: 25px;
  width: 25px;
  margin: 0 10px 0 0;
  flex-shrink: 0;
}


/* Layer names */
.layerRow label {
  font-weight: bold;
  line-height: 25px;
  cursor: pointer;
}


/* Air Photo note */
#airPhotoNotes {
  margin-left: 35px;
  margin-top: -3px;
  margin-bottom: 8px;
  font-weight: normal;
  font-size: 9pt;
}

/* Allow a taller popup */
.esri-popup__main-container {
  max-height: min(600px, 80vh) !important;
}

.esri-popup__content {
  max-height: min(500px, 65vh) !important;
}




/* =========================================================
   DEVELOPMENT TRACKER - MOBILE HEADER BUTTONS
   ========================================================= */

@media only screen and (max-width: 700px) {

  .button {
    width: 28px;
    height: 28px;
    border-radius: 4px;
  }

  #appInfoBtn {
    top: 18px;
    right: 7px;
  }

  #appLayersBtn {
    top: 18px;
    right: 40px;
  }

  #appLegendBtn {
    top: 18px;
    right: 73px;
  }

}

/* Extra-small phones: prevent title/button overlap */
@media only screen and (max-width: 370px) {

  #appHeaderTitle {
    font-size: 13px;
  }

  #appHeaderSubTitle {
    font-size: 12px;
  }

}




/* =========================================================
   DEVELOPMENT TRACKER - MOBILE TOOL PANELS
   ========================================================= */

@media only screen and (max-width: 700px) {

  /* Shared mobile positioning for all three panels */
  #infoDIV,
  #legendDIV,
  #layersDIV {
    position: absolute;

    top: auto;
    bottom: 0;

    left: 0;
    right: 0;

    width: 100%;
    height: auto !important;

    max-height: 55% !important;

    box-sizing: border-box;

    border: 1px solid #25363d;
    border-radius: 6px 6px 0 0;

    background-color: white;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    z-index: 10;
  }

  /* Keep the panel headers visible when scrolling */
  #infoHeaderDIV,
  #legendHeaderDIV,
  #layersHeaderDIV {
    position: sticky;
    top: 0;

    height: 30px;
    line-height: 30px;

    background-color: #25363d;
    color: white;

    z-index: 11;
  }

  /* Info panel content */
  #infoTextBoxDIV,
  #infoContactDIV {
    position: relative;
    top: auto;
    left: auto;
    right: auto;

    height: auto;

    margin: 10px;
    font-size: 10pt;
    line-height: 19px;
  }

  /* Layers panel */
  #layersContentDIV {
    padding: 10px 12px 15px 12px;
  }

  /* Legend panel */
  #mapLegendDIV {
    position: relative;

    top: auto;
    bottom: auto;

    left: auto;
    right: auto;

    width: 100%;
    height: auto;

    box-sizing: border-box;

    padding: 8px 12px 15px 12px;

    overflow-x: hidden;
    overflow-y: visible;
  }

}




/* =========================================================
   DEVELOPMENT TRACKER - MOBILE FEATURE POPUPS
   ========================================================= */

@media only screen and (max-width: 700px) {

  /* Docked popup container */
  .esri-popup--is-docked {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Popup window */
  .esri-popup__main-container {
    width: 100% !important;
    max-width: 100% !important;

    max-height: 48vh !important;

    box-sizing: border-box;

    border-radius: 8px 8px 0 0;
  }

  /* Popup content area */
  .esri-popup__content {
    max-height: 32vh !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* Popup title */
  .esri-popup__header-title {
    font-size: 14px;
    line-height: 18px;
    white-space: normal;
  }

  /* Prevent long field values from overflowing */
  .project-popup-content {
    width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
  }

}
