html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  font-family: 'Roboto', sans-serif;
  font-size: 14pt;
}

#header {
  background-color: #2c3e50;
  color: white;
  margin: 3px;
  padding: 10px;
  border-radius: 5px;
  width: 100%;
  background-image: linear-gradient(to right, #0B1F2B, #006aff); 
  height: 110px;
  box-shadow: 2px 2px 3px 0px #888888;
  position: relative;
  z-index: 200;
  /* Allow the ArcGIS suggestions dropdown to overflow visually below the header */
  overflow: visible;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  margin-right: 10px; /* Adjust margin as needed */
}

.title-container {
  margin-left: -350px; /* Adjust margin as needed */
}


#title {
  margin-left: 10px; /* Adjust margin as needed */
}

#menu ul {
display: flex;
list-style-type: none;
}

#menu ul li {
margin-right: 10px;
}

#address {
margin-left: 10px;
width:300px;
border-radius: 3px;
}

#sidebar-toggle {
cursor: pointer;
}

#left-column {
    width: 100%;
    height:100%;
    float: left;
    background-color: #f1f1f1;
    padding: 20px;
    position: relative;

  }
  .left-column {
    margin: 5px;

      transition: width 0.5s ease; /* Adjust the duration and timing function as needed */
    width: 25%;
    height:100%;
}
.right-column{
    margin-right: 5px;
    margin-top: 5px;
    margin-left: 20px;
    width:100%;
    height:100%;
}

  #viewDiv {
    width: 100%;
    position: relative;
  }

#left-column.closed {
  width: 0px;
}

#left-column.expand {
  width: 100%;
  
}

#left-column h4 {
  margin: 10px;
}

a{
    text-decoration: none;
    color: white;
    padding: 10px;
}

#expand-button{
    margin-right:20px;
  float:right;
  border: none;
  
}


/* Dropdown Button */
.dropbtn {
background-color: #006aff;
color: white;
padding: 16px;
font-size: 16px;
border: none;
margin-right: 40px;
border-radius: 3px;
}
.dropdown:hover .dropbtn {background-color: #fff;color:#000;}

/* The container <div> - needed to position the dropdown content */
.dropdown {
position: relative;
display: inline-block;
}

/* ArcGIS Search widget embedded in header */
#searchWidgetContainer {
  flex: 1;
  max-width: 420px;
  margin: 0 16px;
  /* Establish as offset parent so the suggestions menu positions relative to it */
  position: relative;
  z-index: 201; /* above #header z-index:200 so dropdown isn't clipped by stacking context */
}
#searchWidgetContainer .esri-search {
  width: 100%;
}
#searchWidgetContainer .esri-search__container {
  border-radius: 4px;
  /* overflow must NOT be hidden — the suggestions dropdown is position:absolute
     and needs to escape this container visually */
  overflow: visible;
  position: relative;
}

/* Suggestions dropdown: absolute, anchored below the input row */
#searchWidgetContainer .esri-search__suggestions-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  margin-top: 2px;
  z-index: 99999 !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.22);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

#searchWidgetContainer .esri-widget--panel {
  z-index: 99998;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    right: 20px;
display: none;
position: absolute;
background-color: #292a2a;
min-width: 200px;
box-shadow: 0 4px 12px rgba(0,0,0,.4);
z-index: 99999;
margin-right: 20px;
border-radius: 4px;
}

/* Links inside the dropdown */
.dropdown-content a {

color: rgb(252, 249, 249);
padding: 12px 16px;
text-decoration: none;
display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {background-image: linear-gradient(to right, #2C384C, #7939F7);}

/* Show the dropdown menu on hover */
/* Disabled — JS click-toggle handles open/close */
/* .dropdown:hover .dropdown-content {display: block;} */

/* Change the background color of the dropdown button when the dropdown content is shown */


#title{
margin-left: -30px;    
}

/* Remove tap highlight color for all elements */
* {
    -webkit-tap-highlight-color: transparent; /* Safari, older versions of Chrome */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /* Newer versions of Chrome, Safari, Firefox */
    -moz-tap-highlight-color: rgba(0, 0, 0, 0); /* Firefox */
    -ms-tap-highlight-color: transparent; /* Internet Explorer */
  }


  .flex-container {
    display: flex;
    height:100%;
}

.flex-child {
    flex: 1;
    border: 2px solid yellow;
    height:100%;
    width:100%;
}  

.slidecontainer {
  margin-top:20px;
  width: 100%;
}

.slider {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 25px;
  background: #d3d3d3;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
}

.slider:hover {
  opacity: 1;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  background: #7939F7;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  background: #7939F7;
  cursor: pointer;
}
.esri-search__input-container{
  width:350px;
  border-radius: 3px;
}
#expand-button:hover{
  cursor:pointer;
}




html, body{height: 100%;color:'#808080'; }
body{font-size: 14px; line-height: 18px;}
/****************************************/
.padding5 {
    padding: 5px;
}
.padding10 {
    padding: 10px;
}
.padding15 {
    padding: 15px;
}
.padding20 {
    padding: 20px;
}
.margin5 {
    margin: 5px;
}
.margin10 {
    margin: 10px;
    width:100%;
}
.margin15 {
    margin: 15px;
}
.margin20 {
    margin: 20px;
}

.nlm {
    margin-left: 0 !important;
}
.nrm {
    margin-right: 0 !important;
}
.ntm {
    margin-top: 0 !important;
}
.nbm {
    margin-bottom: 0 !important;
}
.nlp {
    padding-left: 0 !important;
}
.nrp {
    padding-right: 0 !important;
}
.ntp {
    padding-top: 0 !important;
}
.nbp {
    padding-bottom: 0 !important;
}
.no-margin {
    margin: 0  !important;
}
.no-padding {
    padding: 0  !important;
}
.no-float {
    float: none !important;
}
/****************************************/
.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
    padding-left: 0px;
    padding-right:0px;
}

.navbar-default {
    background-color: #1BA1E2;
    border-color: #1BA1E2;

}

.navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus {
    background-color: #00AAFD;
}
.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#ffffff;background-color:#00AAFD}

.navbar-default .navbar-collapse, .navbar-default .navbar-form {
    border-color:#1BA1E2;
}
.navbar-inverse {
    background-color: #55b4d4;
    border-color: #006aff;
    height: 70px;
}
.required{color: #F00;}
.contact-form-container{padding: 25px}
.contactform .form-group {margin: 0px;}
.form-horizontal .control-label {text-align: left;width: 100%;}
.panel-heading{cursor: pointer;}

.mainbody{ padding-bottom: 50px; min-height: 80%; overflow: hidden;}
.mainbody .row{margin: 0px;}
.page-header{margin-top: 0px;  border-bottom: 1px solid #1995DC; padding-bottom: 0px; }
.page-header h1{margin-top: 0px; font-size: 24px;}



.panel-body {width: 100%; margin: 0 auto;}
.panel-body .col-lg-3{margin:25px; border: 1px solid #006bd6; padding: 10px; }
.adjustdiv{ border: 1px solid #000; text-align:center; width:256px; margin:0 10px 10px 10px; padding-bottom: 10px; padding-top: 5px;  }
.adjustdiv img{max-width: 200px; max-height: 200px;}
.textContainer{width: 100%; padding-top: 10px; }
.btn-social{padding-top: 5px;}
.prdname{font-size: 14px; line-height: 22px; font-weight: bold;text-align: center; color: #FF7518;}
.prdprice{color:#9954bb;}
.error{color: #FF0000;}

.footer{ margin:0; padding: 17px 0; border-radius: 0px; height: auto; width:auto;}
.copyright{ color: #fff; text-align: center; }
.copyright a{ color: #fff; }

.panel-primary{
    border-color: #006aff;
}

footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1.0rem;            /* Footer height */
}



    html,
    body,
    #viewDiv {
      padding: 0;
      margin: 0;
      height: 100%;
      width: 100%;
    }
 * {
  box-sizing: border-box;
}

/* Create three equal columns that floats next to each other */
.column {
  float: left;
  width: 20%;
  padding: 5px;
  height: 87%; /* Should be removed. Only for demonstration */
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

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

body {
  background-color: #fff;
  height: 100%;
  width: 100%;
  font-family: Merriweather;
}

header {
  position: fixed;
  z-index: 100;
  margin-top: -10px;
  padding: 15px 15px 15px 15px;
  left: 0;
  right: 0;
  display: inline;
  background-color: #006aff;
}
nav ul{
  list-style: none;
  padding-top: 10px;
}
nav li a{
  font-size: small;
  text-decoration: none;
  color: #fff;
  text-transform: capitalize;
} 

nav li a:hover{
  background-color: #4CAF50 !important;
  padding: 5px;
  border-radius: 3px;
  color: #006aff;
}

nav li{
  float: left;
  padding: 15px;
}

.header-logo img {  
  width: 27%;
  margin-top: 10px; 
  float: left;
  margin-right: 5px;
}

.logout {
    float: right;
    padding-left:10px;
    
}

.loginform{
  float: left;
}

.header-login{
  float: right;
}

button[name="signup-submit"], button[name="login-submit"],button[name="logout-submit"]{
  background: white;
  color: #006aff;
  border-radius: 5px;
  padding: 10px;
  border:none;
}

button[name="signup-submit"] a{
 text-decoration: none; 
 color: #006aff;
}
input{
  border-radius: 5px;
  padding: 10px !important;
}

/* body padding removed — was overriding overflow:hidden needed for ArcGIS hit testing */
#sceneDiv {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}


.panel-side {
  padding: 2px;
  box-sizing: border-box;
  width: 300px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: scroll;
  z-index: 60;
}

.panel-side h3 {
  padding: 0 20px;
  margin: 20px 0;
}

.panel-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-side li {
  list-style: none;
  padding: 10px 20px;
}

.panel-result {
  cursor: pointer;
  max-height: 180px;
  margin: 2px 0;
  background-color: rgba(29,31,112,0.2);
  font-size:16pt;
  padding:10px 20px;
  display: block;
}

      .panel-result:hover,
      .panel-result:focus {
        color: #add8e6;
        background-color: #55b4d4;
      }
      .list-item-legal {
        font-weight: 600;
        font-size: 13pt;
        color: #02025b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .panel-result:hover .list-item-legal,
      .panel-result:focus .list-item-legal {
        color: #fff;
      }
      .list-item-meta {
        font-size: 11pt;
        color: #555;
        margin-top: 3px;
      }
      .panel-result:hover .list-item-meta,
      .panel-result:focus .list-item-meta {
        color: #e0e8ff;
      }
      .list-item-area {
        background: #e0e8ff;
        border-radius: 3px;
        padding: 1px 6px;
        font-size: 10pt;
      }
      .panel-result:hover .list-item-area,
      .panel-result:focus .list-item-area {
        background: rgba(255,255,255,0.25);
        color: #fff;
      }
      .list-item-intent {
        font-style: italic;
        color: #666;
      }
      .panel-result:hover .list-item-intent,
      .panel-result:focus .list-item-intent {
        color: #e0e8ff;
      }
      .tablinks{
        background-color: #006aff ;
        color: white;
      }
      .tablinks .active{
        background-color: #55b4d4;
      }

      header > .login_signup:hover{
        background-color: #55b4d4;

      }
      td 
      {
          height: 20px; 
          width: 20px;
      }

      table td 
      {
          text-align: center; 
          vertical-align: middle;
      }
  /*    img{
        border-radius: 5px;
      }*/

      .popUpClass{
        background-color: #fff;
        font-size: 12pt;
      }

      .esri-popup__header-container:hover{
        background-color:#006aff !important;
  /*      color: #fff;*/
      }

      .esri-widget--button{
        
        color:#006aff;
      }

      .esri-widget{
        font-family: Merriweather;
      }


.customIconStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  padding:10px 10px 10px 30px;
  color:white;
  width: 120px;
  font-size:small;
  border-radius:5px;
  align-content: center;
  align-items: center;
  text-align: center;
  display:flex;
  left: 0px;
  position: absolute;
  max-height: 540px;
  display: flex;
  
}
#customLegendTitle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  font-size: small;
  color: #fff;
}


.customIconStyle:hover{
  background-color: #55b4d4;
  
  
  
  border-radius:5px;
  cursor: pointer;
  left: 0px;
  position: absolute;
  
}

/* The button itself */
.legend-expand-widget .esri-expand__button {
  background-color: #006aff !important;
  color: white !important;
  width: 120px;
  font-size: small;
  border-radius: 5px;
  padding: 10px 10px 10px 30px;
  font-family: Avenir, -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Target the text label specifically */
.legend-expand-widget .esri-expand__text {
  display: inline !important; /* hidden by default in some themes */
  color: white !important;
}

/* Hide the default icon if you want text only */
.legend-expand-widget .esri-expand__icon {
  display: none;
}

.legend-expand-widget .esri-expand__button:hover {
  background-color: #55b4d4 !important;
  font-size: 20px;
  cursor: pointer;
}

.esri-expand__panel_extended .esri-widget--button {
  visibility: hidden !important;
}

/* .esri-expand__container .esri-collapse__icon,
.esri-expand__container .esri-icon-layer-list {
  display: none !important;
} */

.customHomeStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  padding:10px 8px 10px 8px;
  color:white;
  font-size:small;
  border-radius:5px;
  left: 150%;
  position: absolute;
}

.customHomeStyle:hover{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #55b4d4;
  padding:10px 8px 10px 8px;
  color: #fff;
  font-size:20px;
  border-radius:5px;
  cursor: pointer;
  
  left: 150%;
  position: absolute;
  
}

.logoStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
/*  background-color: #006aff;*/
  padding:10px 8px 10px 8px;
  font-size:small;
  border-radius:5px;
  left:2500%;
  position: absolute;
}

.logoStyle:hover{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #55b4d4;
  padding:10px 8px 10px 8px;
  font-size:20px;
  border-radius:5px;
  cursor: pointer;

  
}

.customSearchStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  width: 120px;
  padding:10px 8px 10px 8px;
  color:white;
  font-size:small;
  border-radius:5px;
  left: 0px;
  top: 180%;
  position: absolute;
}

.customSearchStyle:hover{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #55b4d4;
  padding:10px 8px 10px 8px;
  font-size:small;
  border-radius:5px;
  cursor: pointer;
  
}

.buttonSearchStyle{
    font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  width: 250px;
  padding:10px 8px 10px 8px;
  color:white;
  font-size:medium;
  border-radius:5px;


  
}

.buttonSearchStyle:hover{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #55b4d4;
  padding:10px 8px 10px 8px;
}

.customHelpStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  padding:10px 30px 10px 30px;
  left: 100px;
  width:120px;
  color:white;
  font-size:14px;
  border-radius:5px;
  cursor: pointer;
  display:flex;  
  position: absolute;
}
.customHelpStyle:hover{
  /*font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;*/
  background-color: #55b4d4;
/*  padding:10px 30px 10px 30px;
  color: #fff;
  font-size:14px;
  border-radius:5px;
  cursor: pointer;  

  position: absolute;*/
  
}

.feedbackStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  padding:10px 30px 10px 30px;
  left: 230px;
  width:120px;
  color:white;
  font-size:14px;
  border-radius:5px;
  cursor: pointer;
  display:flex;  
  position: absolute;
}
.feedbackStyle:hover{
  /*font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;*/
  background-color: #55b4d4;
/*  padding:10px 30px 10px 30px;
  color: #fff;
  font-size:14px;
  border-radius:5px;
  cursor: pointer;  

  position: absolute;*/
  
}

.customLegendStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  width:120px;
  padding:10px 30px 10px 30px;
  color:white;
  font-size:14px;
  border-radius:5px;  
  position: absolute;
  display: flex;
}

.customLegendStyle:hover{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #55b4d4;
  padding:10px 30px 10px 30px;
  color: #fff;
  font-size:14px;
  border-radius:5px;
  cursor: pointer;  
 
  position: absolute;
  
}

.customListStyle{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #006aff;
  width:120px;
  padding:10px 30px 10px 30px;
  color:white;
  font-size:14px;
  border-radius:5px;  
  position: absolute;
  display: flex;
}

.customListStyle:hover{
  font-family: Avenir,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;
  background-color: #55b4d4;
  padding:10px 30px 10px 30px;
  color: #fff;
  font-size:14px;
  border-radius:5px;
  cursor: pointer;  
 
  position: absolute;
  
}


.esri-widget__heading esri-popup__header-title:hover{
  background-color: #006aff;
}

.esri-popup__header h2{
color: white;

}
.esri-popup__header h2:hover{
  background-color: #006aff;
}
#logo-container{
  background: #006aff ! important;
  width: 25%; 
  height: 65px; 
  background-color: #fff;
  box-sizing: content-box;
}
.spacer
{
    width: 100%;
    height: 50px;
}

.tab button{
  padding:15px;
  border-radius: 5px;
}
.tab button:hover{
  background-color: #55b4d4;
}
.tab button:active,.tab button:focus, .tab button:target{
    background-color: #55b4d4;
}

.tab{
  padding-bottom: 10px;

}

.column{
  background-color:#fff;
  width: 25%;
  height:100%;
  padding-left: 5px;
  padding-top:8px;
  }

#advertisingPanel{
width: 100%;
height: 40%;
background-color: WHITE;
margin: 3px 3px 3px;
display: block;

}

.esri-legend{
  
  position:absolute;
  top:33px;
  left: 0px;
  border-radius: 5px;
  overflow-y: scroll;
  
}


.Analyse
{color: #181b63; 
background-color: #fff;
border: 2px solid #00b5e2;  
padding:20px 5px 20px 5px;
border-radius: 10px;
}
.Analyse:hover
{
  color: #fff; 
background-color: #55b4d4;
border: 2px solid #00b5e2;  
padding:20px 5px 20px 5px;
border-radius: 10px;
cursor: pointer;
}
#leftbutton:hover {
cursor:pointer;
}
#rightbutton:hover{
  cursor:pointer;
}
#downbutton:hover{
  cursor:pointer;
}
#downbutton:hover{
  cursor:pointer;
}
#upbutton:hover{
  cursor:pointer;
}
#loginbutton:hover{
  cursor:pointer;
}
#logoutbutton:hover{
  cursor:pointer;
}
#signupbutton:hover{
  cursor:pointer;
}

.esri-widget--button:hover{
  background-color: #bfe1e3;
}
#loginSignUp:hover{
  background-color: #fff ! important;
  cursor:pointer;
}
.esri-print__header-title{
  display: none ! important;
}
  
#search > ul{

  padding: 10px;
  line-height: 1.6em;
  display: block;
  list-style-type:none;
}
  
#search > ul > li:nth-child(n):hover{
  background-color: #eee;
  
}


figure > figcaption{
padding:5px;
}

figure > img:hover{
  border:#006aff 3px solid;
  filter: sepia(100%) saturate(300%) brightness(70%) hue-rotate(180deg);

}

.esri-view-width-xsmall .esri-expand--auto .esri-widget{

  max-width: 300%;
width: 300%;
}


#display_popup
{
 font-size:20px;
 cursor:pointer;
}
/*HELP DETAILS*/

#help-container
{
 visibility:hidden;
 display:none;
 width:60%;
 height:60%;
 background-color:#FFF;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
 text-align: center;
 line-height: 1.5em;

}

#help-container #cancel_help-container_button
{
 right:5px;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 border:none;
 font-size: 20px;
 font-weight: bold;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
 position: absolute;
 z-index: 100;
}
#help-container #info_text
{
 padding:5px 35px 15px 35px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
 font-size: 25px;
 line-height: 1.5em;

}
#help-container #close_button
{
 margin:0px;
 padding:10px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

#help-container{
  color:grey;
}


/*PROPERTY DETAILS*/

#property-details
{
 visibility:hidden;
 display:none;
 width:20%;
 height:40%;
 background-color:#FFF;
 position:fixed;
 right:4%;
 top:7%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
 text-align: center;
 line-height: 1.5em;

}

#property-details #cancel_property-details_button
{
 right:5px;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 border:none;
 font-size: 20px;
 font-weight: bold;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
 position: absolute;
 z-index: 100;
}
#property-details #info_text
{
 padding:5px 35px 15px 35px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
 font-size: 25px;
 line-height: 1.5em;

}
#property-details #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

#property-details{
  color:grey;
}

/*ABOUT*/

#about-container
{
 visibility:hidden;
 display:none;
 width:60%;
 height:60%;
 background-color:#BDBDBD;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;

}

#about-container #cancel_about_button
{
 right:5px;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 border:none;
 font-size: 20px;
 font-weight: bold;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
 position: absolute;
 z-index: 100;
}
#about-container #info_text
{
 padding:5px 35px 15px 35px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
 font-size: 13pt;
 line-height: 1.2em;

}
#about-container #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}


/*CONTACT*/
#contact-container
{
 visibility:hidden;
 display:none;
 width:60%;
 height:60%;
 background-color:#BDBDBD;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
}
#contact-container #cancel_contact_button
{
 right:5px;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 border:none;
 font-size: 20px;
 font-weight: bold;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
 position: absolute;
 z-index: 100;
}
#contact-container #info_text
{
 padding:10px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
}
#contact-container #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

/*NEED MORE*/
#designPlanBtn-container
{
 visibility:hidden;
 display:none;
 width:80%;
 height:80%;
 background-color: #fff;
 position:fixed;
 left:10%;
 top:5%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
 margin:20px;

}
#designPlanBtn-container #cancel_designPlanBtn_button
{
 right:5px;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 border:none;
 font-size: 20px;
 font-weight: bold;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
 position: absolute;
 z-index: 100;
}
#designPlanBtn-container #info_text
{
 padding:10px;
 clear:both;

 color:grey;
 line-height: 1.5em;
 font-size:12pt;

}
#designPlanBtn-container #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

/*SIGNUP*/

#signup-container
{
 visibility:hidden;
 display:none;
 width:60%;
 height:60%;
 background-color:#BDBDBD;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
 z-index: 1000;
}
#signup-container #cancel_signup_button
{
 right:5px;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 border:none;
 font-size: 20px;
 font-weight: bold;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
 position: absolute;
 z-index: 1000;
}
#signup-container #info_text
{
 padding:10px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
}
#signup-container #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

/*DISCLAIMER*/
#disclaimer-container {
  visibility: hidden;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
  font-family: "Segoe UI", sans-serif;
}

#disclaimer-container .disclaimer-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  margin: auto;
  overflow-y: auto;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

#disclaimer-container .disclaimer-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

#disclaimer-container .disclaimer-kicker {
  color: #006aff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

#disclaimer-container .disclaimer-header h3 {
  margin: 5px 0 6px;
  color: #0f172a;
  font-size: 24px;
}

#disclaimer-container .disclaimer-header p,
#disclaimer-container .disclaimer-copy p {
  margin: 0;
  line-height: 1.55;
}

#disclaimer-container .disclaimer-header p { color: #64748b; }
#disclaimer-container .disclaimer-copy { padding: 20px 24px 8px; color: #334155; font-size: 14px; }
#disclaimer-container .disclaimer-copy p { margin-bottom: 12px; }
#disclaimer-container .disclaimer-copy a { color: #005bd6; font-weight: 600; }

#disclaimer-container .disclaimer-footer {
  padding: 14px 24px 22px;
}

#disclaimer-container .disclaimer-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#disclaimer-container .disclaimer-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #006aff; }
#disclaimer-container .disclaimer-check:has(input:focus-visible) { outline: 3px solid rgba(0, 106, 255, 0.2); }

#disclaimer-container .disclaimer-warning {
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
}

#disclaimer-container .disclaimer-warning[hidden] { display: none; }

#disclaimer-container #close_button {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  background: #64748b;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

#disclaimer-container.is-acknowledged #close_button,
#disclaimer-container #close_button:hover { background: #006aff; }
#disclaimer-container #close_button:focus-visible { outline: 3px solid rgba(0, 106, 255, 0.25); outline-offset: 2px; }

@media (max-width: 640px) {
  #disclaimer-container { padding: 12px; }
  #disclaimer-container .disclaimer-dialog { max-height: calc(100vh - 24px); }
  #disclaimer-container .disclaimer-header,
  #disclaimer-container .disclaimer-copy,
  #disclaimer-container .disclaimer-footer { padding-right: 16px; padding-left: 16px; }
}

/* ── Dynamic Map Data Panel ────────────────────────────────────── */
#mdpopup-content,
#ppmd-content {
  overflow-y: auto;
  max-height: calc(100% - 90px);
  padding: 0 4px 10px;
}
.md-cat-heading {
  font-size: 12px;
  font-weight: 700;
  color: #02025b;
  margin: 10px 10px 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.md-layer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  cursor: pointer;
  transition: background .12s;
}
.md-layer-row:hover { background: rgba(0,0,0,.05); }
.md-layer-row label {
  font-size: 13px;
  cursor: pointer;
  margin: 0;
  color: #333;
}
.md-swatch {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}
.md-swatch-marker {
  width: 12px; height: 12px;
  border: 1.5px solid rgba(0,0,0,.3);
}
.md-swatch-line {
  width: 22px; height: 4px;
  border-radius: 2px;
}
.md-swatch-fill {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,.3);
}
.md-swatch-img {
  width: 16px; height: 16px;
}
.md-empty, .md-error {
  font-size: 11px;
  padding: 10px 12px;
  margin: 0;
}
.md-error { color: #c00; }
.md-empty { color: #888; }

.add-data-widget {
  margin: 0 20px 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid #c8d5df;
  border-radius: 6px;
  cursor: default;
}
.add-data-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.add-data-heading h5 {
  margin: 0;
  color: #173b53;
  font-size: 15px;
}
.add-data-heading button,
.add-data-layer-row button {
  border: 0;
  background: transparent;
  color: #24658c;
  cursor: pointer;
  font-size: 12px;
}
.add-data-heading button:disabled { color: #98a7b1; cursor: default; }
.add-data-dropzone {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px dashed #4f7893;
  background: #f4f8fb;
  color: #173b53;
  text-align: center;
  cursor: pointer;
}
.add-data-dropzone span {
  color: #607887;
  font-size: 11px;
  line-height: 1.4;
}
#add-data-file {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.add-data-dropzone:focus-within,
#add-data-file:focus + .add-data-status { outline: 2px solid #24658c; }
.add-data-status {
  min-height: 18px;
  padding-top: 8px;
  color: #536b79;
  font-size: 12px;
  line-height: 1.4;
}
.add-data-status.is-error { color: #a32626; }
.add-data-status.is-success { color: #247044; }
.add-data-layer-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 7px 0;
  border-top: 1px solid #e2e9ee;
  color: #263f4f;
  font-size: 12px;
}
.add-data-layer-row span { overflow-wrap: anywhere; }

 /*DATA POPUP*/

#data_popup_box
{
 visibility:hidden;
 display:none;
 width:60%;
 height:60%;
 background-color:#EEE;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
 overflow-y: auto;
 overflow-x: hidden;
 padding-left: 0;
 box-sizing: border-box;
}
#data_popup_box:hover, #search_data_popup_box:hover,#search_data_popup_box:hover,#list_popup_box:hover {
  cursor: pointer;
}
#data_popup_box #cancel_button
{
 float:right;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:grey;
 border:none;
 color:white;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
}
#data_popup_box #info_text
{
 padding:10px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
}
#data_popup_box #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

.popup_box{
  overflow-y: scroll;
  padding-left: 50px;
}

/*SEARCH POPUP STYLE*/

#search_data_popup_box
{
 visibility:hidden;
 display:none;
 width:50%;
 height:60%;
 background-color:#fff;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
}
#search_data_popup_box #cancel_search_button
{
 float:right;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:grey;
 border:none;
 color:white;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
}
#search_data_popup_box #info_text
{
 padding:10px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
}
#search_data_popup_box #close_search_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

/*LIST POPUP STYLE*/

#list_popup_box
{
 visibility:hidden;
 display:none;
 width:60%;
 height:60%;
 background-color:#BDBDBD;
 position:fixed;
 left:20%;
 top:20%;
 border-radius:10px;
 border:2px solid grey;
 box-shadow:0px 0px 10px 0px grey;
 font-family:helvetica;
}
#list_popup_box #cancel_list_button
{
 float:right;
 margin-top:4px;
 margin-bottom:4px;
 margin-right:5px;
 background-color:white;
 position: absolute;
 z-index: 1000;
 right: 0;
 border:none;
 color:grey;
 padding:5px;
 border-radius:1000px;
 width:35px;
 border:1px solid #424242;
 box-shadow:0px 0px 10px 0px grey;
 cursor:pointer;
}
#list_popup_box #info_text
{
 padding:10px;
 clear:both;
 background-color:white;
 color:#6E6E6E;
}
#list_popup_box #close_button
{
 margin:0px;
 padding:0px;
 width:70px;
 height:30px;
 line-height:5px;
 font-size:16px;
 background-color:grey;
 color:white;
 border:none;
 margin-bottom:10px;
 border-radius:2px;
 cursor:pointer;
}

.esri-widget--button:hover{
  background-color: lightblue;
}

  #sceneDiv {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
      }

      .panel-container {
        position: relative;
        width: 100%;
        height: 100%;
      }

      .panel-side {
        padding: 2px;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        color: white;
        background-color: rgba(255, 255, 255);
        overflow: auto;
        z-index: 60;
      }

      .panel-side h3 {
        padding: 0 20px;
        margin: 20px 0;
      }

      .panel-side ul {
        list-style: none;
        margin: 0;
        padding: 0;
      }

      .panel-side li {
        list-style: none;
        padding: 10px 20px;
      }

      .panel-result {
        cursor: pointer;
        margin: 2px 0;
        background-color: rgba(0, 0, 0, 0.3);
      }

      .panel-result:hover,
      .panel-result:focus {
        color: #1184e8;
        background-color: rgba(0, 0, 0, 0.75);
      }
.esri-sketch__menu-header{
background-color: #eee;

}


.swal-msg{

  float:left;
}

hr { width: 60%; border-top: 1px dashed grey; line-height: 2px; margin-top: 3px; margin-bottom: 3px;}
      
.listclass{
    background-color: #55b4d4;
    border: 2px solid white;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);

}

#expand-container{
  cursor: pointer;
}
#reduce-container{
  cursor: pointer;
}

.disable_checkbox{
  color:red;
}

#ad-container{
  margin-top: -20px;
  display:flex;
  padding-left: 20px;
}

.img-advert{
  padding-left: 10px;
  width:220px;
}

@media only screen and (max-width: 768px) {
  #ad-container{
    display:block;
    padding: 25px;
  }
  .img-advert{
  width: 80%;
  height: auto;
  padding: 10px;
  }
  footer{
    position: relative
  }
  #signup-container, #help-container,#disclaimer-container, #about-container,#designPlanBtn-container{
    width: 100%;
    height:80%;
    left:1%;
  }
}/*//END MEDIA*/

.help_table td,th{
  border: 1px solid grey;
  padding:12px;
  font-size: 18px;
}
.help_table{
  width: 100%;
}

.help_table th{
  width: 350px;
  text-align: center;
  font-size:15pt;
  padding:10px;
}

#help-container,#disclaimer-container, #about-container{
  overflow-y: auto;
}
#property-type{
text-align: center;
display: block;
padding: 10px;
font-size: 18px;
}

#panel-style{

  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;

}
.inquirenow{
  margin: 20px;
  background-color: #b7d25d;
  color:white;
  padding:20px;
  font-size:15pt;
  box-shadow: 3px 7px #888888;
  border-radius: 5px;
  text-decoration: none;
}
.inquirenow:hover{
   background-color: #55b4d4;
  color:white;
  text-decoration: none;
}

#loading {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-right: -50%;
}
.esri-legend esri-widget esri-widget--panel esri-legend__service{
  overflow-y: scroll;
}

#designPlanBtn{
  padding:15px;
  width:auto;
  box-shadow: 5px 7px #888888;
  font-size: 15pt;
  border-radius: 10px;
  background-color: #006aff;
  color: white;
}

#designPlanBtn:hover{
  background-color: #55b4d4;
  color: white;
  font-size: 15pt;
  cursor: pointer;
  border-radius: 10px;
}

#p-details{
  font-size: 12pt;
}

@media (max-width: 768px) {
  #categorySearch a {
      width: 60px;
  }

  #search-text {
      width: 90%;
      font-size: 16px;
  }

  img {
      max-width: 100%;
      height: auto;
  }
}

@media (max-width: 480px) {
  #categorySearch a {
      width: 50px;
  }

  #search-text {
      width: 100%;
      font-size: 14px;
  }
}

/* ── PLAN PANEL SIDEBAR ──────────────────────────────────────────────────── */

/* Flex wrapper: sidebar sits left, map fills the rest */
.wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar — hidden (width:0) until .open is added by JS */
#plan-panel {
  width: 0;
  min-width: 0;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #2c3e50;
  color: #fff;
  transition: width 0.3s ease, min-width 0.3s ease;
  box-shadow: 4px 0 12px rgba(0,0,0,0.25);
}

#plan-panel.open {
  width: 25%;
  min-width: 25%;
}

/* Map area fills remaining width */
#mapView {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Establish a stacking context so ArcGIS sketch overlay SVGs
     (handles, rotation controls) stack above #header's z-index context. */
  position: relative;
  z-index: 0;
}

#view-mode-toggle {
  position: absolute;
  top: 16px;
  right: 100px;
  z-index: 1100;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 8px rgba(15, 23, 42, .16);
  color: #334155;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#view-mode-toggle:hover,
#view-mode-toggle:focus-visible {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  outline: none;
}

#view-mode-toggle:disabled {
  cursor: wait;
  opacity: .7;
}

#planning-object-categories {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 3px;
}

.planning-object-category h4 {
  margin: 0 0 5px;
  color: #a8b4c0;
  font-size: 12px;
  letter-spacing: 0;
}

.planning-object-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.planning-object-card {
  min-width: 0;
  border: 1px solid #405064;
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  background: #1e2a3a;
  color: #e5edf4;
  cursor: pointer;
  text-align: left;
}

.planning-object-card:hover,
.planning-object-card.active {
  border-color: #4da3d9;
  background: #24384d;
}

.planning-object-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #d9e1e5;
  color: #4a6070;
  font-size: 22px;
  object-fit: cover;
}

.planning-object-card strong {
  display: block;
  padding: 6px 7px;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#planning-transform-panel {
  margin-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 10px;
}

.planning-transform-heading,
.planning-object-actions,
.planning-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
}

.planning-transform-heading {
  justify-content: space-between;
  margin-bottom: 8px;
  color: #e5edf4;
}

#planning-live-area { color: #7fc7a3; font-size: 11px; }
.planning-transform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.planning-transform-grid label { color: #a8b4c0; font-size: 11px; }
.planning-transform-grid label span { display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.planning-transform-grid input { width: 100%; min-width: 0; border: 1px solid #405064; border-radius: 4px; padding: 5px; background: #14202d; color: #fff; }
.planning-toggle { margin: 9px 0; color: #cbd5df; font-size: 11px; }
.planning-object-actions .plan-btn { margin: 0; min-width: 40px; }
.planning-object-actions #planning-delete { margin-left: auto; }

@media (max-width: 700px) {
  #view-mode-toggle {
    top: 10px;
    right: 12px;
  }
}

#viewDiv {
  flex: 1;
  min-height: 0;
  width: 100% !important;
}

/* Pin ArcGIS sketch overlay (handles, control points) above all map tile/
   feature/graphics canvas layers so they are always hit-testable. */
#viewDiv .esri-overlay-surface {
  z-index: 1000 !important;
}
#viewDiv .esri-interactive {
  z-index: 1000 !important;
}

/* Panel header */
.plan-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to right, #0B1F2B, #1a56cc);
  color: #fff;
  padding: 14px 16px;
  flex-shrink: 0;
  font-size: 15px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

#plan-panel-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  opacity: 0.8;
}

#plan-panel-close:hover { opacity: 1; }

/* Panel body (scrollable form area) */
.plan-panel-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: #2c3e50;
}

.plan-panel-hint {
  font-size: 15px;
  color: #ccc;
  background: rgba(255,255,255,0.08);
  border-left: 3px solid #1a56cc;
  padding: 8px 10px;
  border-radius: 3px;
  line-height: 1.5;
}

/* ── Pre-Build Option grid ── */
#pbo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  height: 300px;
}
.pbo-card {
  background: #2c3e50;
  border: 2px solid #4a6278;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s, background .15s;
  position: relative;
  user-select: none;
}
.pbo-card:hover { border-color: #5b8dee; background: #334e68; }
.pbo-card.selected { border-color: #1a56cc; background: #1e3a5f; }
.pbo-card img {
  width: 100%; height: 64px;
  object-fit: cover; display: block;
}
.pbo-card-no-img {
  width: 100%; height: 64px;
  background: #1e2a3a;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #4a6278;
}
.pbo-card-body {
  padding: 5px 7px 6px;
}
.pbo-card-name {
  font-size: 11px; font-weight: 700; color: #e0eaf0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbo-card-dims {
  font-size: 10px; color: #8899a8; margin-top: 1px;
}
.pbo-card-check {
  position: absolute; top: 4px; right: 4px;
  background: #1a56cc; color: #fff;
  border-radius: 50%; width: 16px; height: 16px;
  font-size: 10px; line-height: 16px; text-align: center;
  display: none;
}
.pbo-card.selected .pbo-card-check { display: block; }

.plan-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #ecf0f1;
  margin-bottom: 2px;
}

.plan-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #4a6278;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  background: #34495e;
  color: #ecf0f1;
}

.plan-input:focus {
  outline: none;
  border-color: #1a56cc;
  box-shadow: 0 0 0 2px rgba(26,86,204,0.35);
}

.plan-color {
  width: 100%;
  height: 36px;
  padding: 2px 4px;
  border: 1px solid #4a6278;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  background: #34495e;
}

.plan-btn {
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: opacity 0.15s;
}

.plan-btn:hover { opacity: 0.85; }

.plan-btn-primary {
  background: #1a56cc;
  color: #fff;
}

.plan-btn-success {
  background: #27ae60;
  color: #fff;
}

.plan-btn-danger {
  background: #e74c3c;
  color: #fff;
}

.plan-btn-secondary {
  background: #6b7280;
  color: #fff;
  flex: 1;
  width: auto;
}

#plan-rect-dims,
#plan-circle-dims {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-tab-btn.disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

/* Shape badge shown at the top of the Cost tab when a shape is selected */
.plan-cost-shape-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26,86,204,0.22);
  border: 1px solid rgba(26,86,204,0.45);
  border-radius: 5px;
  padding: 8px 12px;
  margin-bottom: 8px;
}

.plan-cost-shape-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

#cost-shape-label-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Plan panel tabs ──────────────────────────────────────────────────────── */
.plan-tabs {
  display: flex;
  flex-shrink: 0;
  background: #243444;
  border-bottom: 2px solid rgba(26,86,204,0.5);
  overflow: hidden;
}

.plan-tab-btn {
  flex: 1;
  padding: 9px 4px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  color: #8899a8;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.plan-tab-btn:hover {
  color: #cdd8e3;
  background: rgba(255,255,255,0.05);
}

.plan-tab-btn.active {
  color: #fff;
  border-bottom-color: #1a56cc;
  background: rgba(26,86,204,0.18);
}

/* ── Cost Details tab ─────────────────────────────────────────────────────── */
.plan-cost-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #7fb3d3;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 5px;
  margin-bottom: 2px;
}

.plan-cost-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.plan-cost-row .plan-input {
  flex: 1;
  margin-bottom: 0;
}

.plan-cost-unit {
  font-size: 12px;
  color: #8899a8;
  white-space: nowrap;
  min-width: 28px;
}

.plan-cost-result {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,0.07);
}

.plan-cost-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #cdd8e3;
}

.plan-cost-result-row:last-of-type { border-bottom: none; }

.plan-cost-total {
  font-weight: 700;
  font-size: 14px !important;
  color: #fff !important;
  padding-top: 8px !important;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.18) !important;
  border-bottom: none !important;
}

/* ── Map Data tab ─────────────────────────────────────────────────────────── */
.plan-map-check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  font-size: 12px;
  color: #cdd8e3;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  user-select: none;
}

.plan-map-check:hover { color: #fff; }

.plan-map-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #1a56cc;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   MODERN PROPERTY THEME  — Landyfi
   Palette:
     --navy:       #0F2642  (deep executive navy — trust, authority)
     --navy-mid:   #1A3C5E  (primary interactive)
     --blue:       #2471A3  (accent blue — links, hover states)
     --amber:      rgb(37 99 235 / var(--tw-bg-opacity, 1))  (warm gold/amber — CTAs, nav hovers)
     --amber-dark: #B97512  (CTA pressed)
     --panel-bg:   #1C2B3C  (dark panel surfaces)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Header ──────────────────────────────────────────────────────────────── */
#header {
  background-color: #0F2642;
  background-image: linear-gradient(135deg, #070F1A 0%, #0F2642 50%, #1A3C5E 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

/* ── Hamburger / dropdown button ─────────────────────────────────────────── */
.dropbtn {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  transition: background 0.2s;
}
.dropdown:hover .dropbtn,
.dropbtn:hover {
  background-color: rgba(255,255,255,0.22) !important;
  color: #fff !important;
}

/* ── Dropdown menu ───────────────────────────────────────────────────────── */
.dropdown-content {
  background-color: #1C2B3C;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  border-radius: 8px;
}
.dropdown-content a {
  color: #D0DCE8;
  font-size: 14px;
  transition: background 0.18s;
}
.dropdown-content a:hover {
  background-image: linear-gradient(to right, #023b15, #6abb82);
  color: #fff;
}
.dropdown-content hr { border-top: 1px solid rgba(255,255,255,0.1); }

/* ── Property Search button (header bar) ─────────────────────────────────── */
.buttonSearchStyle {
  background: linear-gradient(135deg, #3b82f6 0%, rgb(37 99 235 / var(--tw-bg-opacity, 1)) 100%);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 6px;
  transition: background 0.2s;
}
.buttonSearchStyle:hover {
  /* background-color: #B97512; */
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.916);
}

/* ── ArcGIS map widget buttons (Data, List, Legend, Help, etc.) ──────────── */
.customIconStyle,
.customListStyle,
.customLegendStyle,
.customHelpStyle,
.feedbackStyle {
  /* background-color: #1A3C5E !important; */
  /* background: linear-gradient(135deg, #3b82f6 0%, #04ca44  100%); */
  background: #eee;
  color: rgb(118, 116, 116);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-radius: 6px !important;
  transition: background 0.18s, box-shadow 0.18s;
}
.customIconStyle:hover,
.customListStyle:hover,
.customLegendStyle:hover,
.customHelpStyle:hover,
.feedbackStyle:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)) !important;
  box-shadow: 0 4px 12px rgba(212,137,26,0.4);
}

.customHomeStyle {
  background-color: #dedfe0 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: background 0.18s;
}
.customHomeStyle:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)) !important;
}

.customSearchStyle {
   background-color: #dedfe0 !important;
  border-radius: 6px !important;
  transition: background 0.18s;
}
.customSearchStyle:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)) !important;
  color:#fff
}

/* ── Legend expand widget ────────────────────────────────────────────────── */
.legend-expand-widget .esri-expand__button {
  background-color: #1A3C5E !important;
  border-radius: 6px !important;
}
.legend-expand-widget .esri-expand__button:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)) !important;
}

/* ── ArcGIS widget chrome ────────────────────────────────────────────────── */
.esri-widget--button {
  color: #1A3C5E;
}
.esri-widget--button:hover {
  background-color: #D6EAF8 !important;
  color: #0F2642;
}
.esri-popup__header-container:hover {
  background-color: #1A3C5E !important;
}

/* ── Sliders (range inputs) ──────────────────────────────────────────────── */
.slider::-webkit-slider-thumb { background: rgb(37 99 235 / var(--tw-bg-opacity, 1)); }
.slider::-moz-range-thumb     { background: rgb(37 99 235 / var(--tw-bg-opacity, 1)); }

/* ── Data popup / tab buttons ────────────────────────────────────────────── */
.tablinks {
  background-color: #1A3C5E;
  border-radius: 5px;
  transition: background 0.18s;
}
.tablinks:hover,
.tab button:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)) !important;
  color: #fff;
}
.tablinks.active {
  background-color: #2471A3 !important;
}

/* ── Analyse button ──────────────────────────────────────────────────────── */
.Analyse {
  color: #0F2642;
  border-color: #2471A3;
}
.Analyse:hover {
  background-color: #1A3C5E;
  border-color: #1A3C5E;
  color: #fff;
}

/* ── figcaption image hover ──────────────────────────────────────────────── */
figure > img:hover {
  border: 3px solid #2471A3;
  filter: sepia(20%) saturate(200%) brightness(85%) hue-rotate(190deg);
}

/* ── List panel results ──────────────────────────────────────────────────── */
.panel-result {
  background-color: rgba(15,38,66,0.15);
}
.panel-result:hover,
.panel-result:focus {
  color: #fff;
  background-color: #1A3C5E;
}

.listclass {
  background-color: #1A3C5E;
  border: 2px solid rgba(255,255,255,0.3);
}

/* ── Navbar (Bootstrap) ──────────────────────────────────────────────────── */
.navbar-default {
  background-color: #1A3C5E;
  border-color: #0F2642;
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: #2471A3;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  background-color: #2471A3;
  color: #fff;
}
.navbar-inverse {
  background-color: #0F2642;
  border-color: #1A3C5E;
}

/* ── Plan panel sidebar ──────────────────────────────────────────────────── */
#plan-panel {
  background-color: #1C2B3C;
}
.plan-panel-body {
  background-color: #1C2B3C;
}
.plan-panel-header {
  background: linear-gradient(to right, #070F1A, #1A3C5E);
}
.plan-tabs {
  background: #16263A;
  border-bottom-color: rgba(36,113,163,0.5);
  font-size: 15px;
}
.plan-tab-btn.active {
  border-bottom-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
  background: rgba(212,137,26,0.15);
  color: #fff;
  font-size: 15px;
}
.plan-tab-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.plan-panel-hint {
  border-left-color: #2471A3;
}
.plan-btn-primary {
  background: #1A3C5E;
}
.plan-btn-primary:hover { background: #2471A3; }
.plan-input:focus {
  border-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
  box-shadow: 0 0 0 2px rgba(212,137,26,0.3);
}
.plan-cost-shape-badge {
  background: rgba(36,113,163,0.18);
  border-color: rgba(36,113,163,0.4);
}
.plan-map-check input[type="checkbox"] {
  accent-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}



/* ── #designPlanBtn ──────────────────────────────────────────────────────── */
#designPlanBtn {
  background-color: #1A3C5E;
}
#designPlanBtn:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

/* ── panel-primary border ────────────────────────────────────────────────── */
.panel-primary {
  border-color: #1A3C5E;
}
.panel-body .col-lg-3 {
  border-color: #2471A3;
}

/* ── Logo container ──────────────────────────────────────────────────────── */
#logo-container {
  background: #1A3C5E !important;
}

/* ── Login/signup buttons inside header ──────────────────────────────────── */
button[name="signup-submit"],
button[name="login-submit"],
button[name="logout-submit"] {
  background: #fff;
  color: #0F2642;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}
button[name="signup-submit"]:hover,
button[name="login-submit"]:hover,
button[name="logout-submit"]:hover {
  background: rgb(37 99 235 / var(--tw-bg-opacity, 1));
  color: #fff;
}
button[name="signup-submit"] a,
button[name="login-submit"] a {
  color: #0F2642;
}

/* ── nav links ───────────────────────────────────────────────────────────── */
header nav li a:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1)) !important;
  color: #fff;
}

/* ── Inquiry button ──────────────────────────────────────────────────────── */
.inquirenow {
  background-color: #1A3C5E;
  box-shadow: 3px 7px rgba(0,0,0,0.25);
}
.inquirenow:hover {
  background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

/* ── Popup / modal overlay background strips ─────────────────────────────── */
#search_data_popup_box,
#data_popup_box,
#list_popup_box {
  border-color: rgba(36,113,163,0.35);
  box-shadow: 0 8px 32px rgba(15,38,66,0.35);
}

/* ── Disclaimer / About close buttons ───────────────────────────────────── */
#disclaimer-container #close_button:hover {
  background-color: #3b82f6 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base fixes (all screen sizes) ──────────────────────────────────────── */

/* Remove fixed 110px height */
#header {
  height: auto !important;
  min-height: 56px;
  padding: 8px 10px;
  box-sizing: border-box;
  width: calc(100% - 6px);
}

.header-container {
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* Remove the -350px negative-margin title hack */
.title-container {
  margin-left: 0 !important;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.title-container h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-size: 1.1rem;
}

/* Search widget takes remaining space, can shrink */
#searchWidgetContainer {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
}

/* Property search button — drop fixed 250px width */
.buttonSearchStyle {
  width: auto !important;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 12px !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Tighten hamburger margin */
.dropbtn {
  margin-right: 4px !important;
  padding: 10px 12px !important;
}

/* ── Tablet (≤ 900px) ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .title-container { display: none; }
}

/* ── Mobile (≤ 600px) ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #header {
    padding: 6px 8px;
    margin: 2px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOTAL COST SUMMARY MODAL  (#cost-summary-overlay)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Backdrop */
#cost-summary-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 100000;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 30px;
  overflow-y: auto;
}

#cost-summary-overlay.open {
  display: flex;
}

/* A4 modal card — 210 mm wide, white, print-ready */
#cost-summary-modal {
  background: #fff;
  color: #1a2b3c;
  font-family: 'Georgia', serif;
  font-size: 11pt;
  width: 210mm;
  min-height: 297mm;
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex-shrink: 0;
}

/* Header bar */
#cost-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 22px 14px;
  background: linear-gradient(135deg, #0d1f35, #1a3c5e);
  color: #fff;
  flex-shrink: 0;
}

#cost-summary-title {
  font-family: 'Georgia', serif;
  font-size: 14pt;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.3;
}

#cost-summary-date {
  font-size: 9pt;
  color: #b0c8e0 !important;
  margin-top: 3px;
}

#cost-summary-header button {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background 0.15s;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

#cost-summary-header button:hover {
  background: rgba(255,255,255,0.24);
}

/* Two-map row */
#csm-maps-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 22px;
  background: #f4f7fa;
  border-bottom: 1px solid #d0dae4;
  flex-shrink: 0;
}

.csm-map-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* The image+canvas wrapper is always the 2nd child (after the label) */
.csm-map-box > div:nth-child(2) {
  height: 170px;
  flex-shrink: 0;
  background: #dde8f0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #b8ccd8;
}

/* Description panel below the overview map */
#csm-map-overview-description {
  background: #edf3f8;
  border: 1px solid #c8d8e4;
  border-radius: 5px;
  padding: 8px 10px;
  font-size: 8.5pt;
  color: #2a3f52;
  line-height: 1.6;
}

.csm-map-label {
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #4a6070;
}

/* The image wrapper targeted by nth-child above) */

/* ArcGIS mini-maps inside the summary modal */
#csm-leaflet-overview,
#csm-leaflet-detail {
  position: relative;
  height: 170px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #b8ccd8;
  background: #e8f0f8;
}
/* Hide Esri logo inside compact summary maps */
#csm-leaflet-overview .esri-attribution,
#csm-leaflet-detail   .esri-attribution,
#csm-leaflet-overview .esri-ui-bottom-left,
#csm-leaflet-detail   .esri-ui-bottom-left { display: none !important; }
/* Keep zoom controls tidy */
#csm-leaflet-overview .esri-zoom,
#csm-leaflet-detail   .esri-zoom { transform: scale(0.85); transform-origin: top left; }

/* Scrollable body */
#cost-summary-body {
  padding: 18px 22px 22px;
  flex: 1;
  background: #fff;
}

/* Section title */
.csm-section-title {
  font-family: 'Inter', sans-serif;
  font-size: 8pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #1a5c8a;
  border-bottom: 2px solid #1a5c8a;
  padding-bottom: 4px;
  margin: 18px 0 8px;
}

.csm-section-title:first-child {
  margin-top: 0;
}

/* Row: label + value */
.csm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10pt;
  color: #2a3f52;
  padding: 5px 0;
  border-bottom: 1px solid #e8eff4;
}

.csm-row:last-of-type {
  border-bottom: none;
}

.csm-row.total {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 11pt;
  color: #0d3a5c;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 2px solid #1a5c8a;
  border-bottom: none;
}

/* Per-shape card */
.csm-shape-card {
  background: #f4f8fb;
  border: 1px solid #c8d8e4;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.csm-shape-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 10.5pt;
  font-weight: 600;
  color: #0d2a40;
}

.csm-shape-type {
  font-size: 8.5pt;
  font-weight: 400;
  color: #6a8090;
}

/* Grand total banner */
.csm-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding: 13px 16px;
  background: linear-gradient(135deg, #0d3a5c, #1a5c8a);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13pt;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

/* Disclaimer */
.csm-disclaimer {
  margin-top: 18px;
  font-size: 8pt;
  color: #6a8090;
  line-height: 1.55;
  border-top: 1px solid #dde8f0;
  padding-top: 10px;
  font-style: italic;
}

/* ── Print styles ── */
@media print {
  body > *:not(#cost-summary-overlay) { display: none !important; }
  #cost-summary-overlay {
    display: block !important;
    position: static !important;
    background: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #cost-summary-modal {
    box-shadow: none !important;
    border-radius: 0 !important;
    width: 210mm !important;
    min-height: 297mm !important;
    page-break-inside: avoid;
  }
  #cost-summary-header button { display: none !important; }
  #cost-summary-body { overflow: visible !important; }
  #csm-maps-row { page-break-inside: avoid; }
}

@media (max-width: 600px) {
  #cost-summary-modal { width: 100%; min-height: auto; }
  #csm-maps-row { grid-template-columns: 1fr; }
  .csm-map-box > div:nth-child(2) { height: 140px; }
}

@media (max-width: 600px) {
  .header-container { gap: 4px; }

  .logo-container img { width: 40px !important; }

  .buttonSearchStyle {
    padding: 6px 9px !important;
    font-size: 12px !important;
  }

  /* Dropdown menu anchors to right edge */
  .dropdown-content {
    right: 0 !important;
    left: auto;
    min-width: 200px;
    max-width: 90vw;
  }

  /* Modals / popups full-width */
  #search_data_popup_box,
  #data_popup_box,
  #list_popup_box,
  #help-container,
  #about-container,
  #contact-container,
  #signup-container,
  #disclaimer-container,
  #designPlanBtn-container {
    width: 96% !important;
    height: 85% !important;
    left: 2% !important;
    top: 5% !important;
    box-sizing: border-box;
  }

  /* Plan panel: full-screen overlay on mobile */
  #plan-panel.open {
    width: 100% !important;
    min-width: 100% !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 9999;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base header fixes (all screen sizes) ────────────────────────────────── */

/* Remove fixed height so header can breathe */
#header {
  height: auto !important;
  min-height: 56px;
  padding: 8px 10px;
  box-sizing: border-box;
  width: calc(100% - 6px);
}

.header-container {
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* Remove the -350px negative-margin title hack */
.title-container {
  margin-left: 0 !important;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.title-container h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-size: 1.1rem;
}

/* Search widget takes remaining space */
#searchWidgetContainer {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
}

/* Property search button — no fixed width */
.buttonSearchStyle {
  width: auto !important;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 12px !important;
  font-size: 13px !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Tighten hamburger margin */
.dropbtn {
  margin-right: 4px !important;
  padding: 10px 12px !important;
}

/* ── Tablet (≤ 900px) ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .title-container { display: none; }
  #searchWidgetContainer { max-width: 280px; }
}

/* ── Mobile (≤ 600px) ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #header {
    padding: 6px 8px;
    margin: 2px;
  }

  .header-container { gap: 4px; }

  /* Remove search widget from header flow — repositioned below as fixed overlay */
  #searchWidgetContainer {
    position: fixed !important;
    top: 64px;          /* sits just below the header */
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 420px;
    z-index: 9990;
    background: rgba(15, 38, 66, 0.92);
    border-radius: 8px;
    padding: 6px 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.45);
    box-sizing: border-box;
    /* Keep flex: none so it doesn't affect header layout */
    flex: none !important;
  }

  /* Make the inner ArcGIS search fill the container */
  #searchWidgetContainer .esri-search,
  #searchWidgetContainer .esri-search__container,
  #searchWidgetContainer .esri-search__input-container {
    width: 100% !important;
    border-radius: 6px;
  }

  .buttonSearchStyle {
    padding: 6px 9px !important;
    font-size: 12px !important;
  }

  .logo-container img { width: 40px !important; }

  /* Dropdown menu: anchor to right edge, full-width cap */
  .dropdown-content {
    right: 0 !important;
    left: auto;
    min-width: 200px;
    max-width: 90vw;
  }

  /* Modals / popups: full-width on small screens */
  #search_data_popup_box,
  #data_popup_box,
  #list_popup_box,
  #help-container,
  #about-container,
  #contact-container,
  #signup-container,
  #disclaimer-container,
  #designPlanBtn-container {
    width: 96% !important;
    height: 85% !important;
    left: 2% !important;
    top: 5% !important;
    box-sizing: border-box;
  }

  /* Plan panel: full-screen overlay on mobile */
  #plan-panel.open {
    width: 100% !important;
    min-width: 100% !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 9999;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE / RESPONSIVE HEADER
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Base header fixes (all screen sizes) ────────────────────────────────── */

/* Remove fixed height so header shrinks/grows with content */
#header {
  height: auto !important;
  min-height: 56px;
  padding: 8px 10px;
  box-sizing: border-box;
  width: calc(100% - 6px); /* account for 3px margin on each side */
}

.header-container {
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}

/* Remove the negative-margin title hack — let flexbox handle positioning */
.title-container {
  margin-left: 0 !important;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}
.title-container h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-size: 1.1rem;
}

/* Search widget takes remaining space, but can shrink */
#searchWidgetContainer {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
}

/* Property search button — no fixed width */
.buttonSearchStyle {
  width: auto !important;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 12px !important;
  font-size: 13px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* Hamburger button — tighten margin */
.dropbtn {
  margin-right: 4px !important;
  padding: 10px 12px !important;
}

/* ── Tablet (≤ 900px) ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .title-container {
    display: none;
  }
  #searchWidgetContainer {
    max-width: 280px;
  }
}

/* ── Mobile (≤ 600px) ────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #header {
    padding: 6px 8px;
    margin: 2px;
  }

  .header-container {
    gap: 6px;
  }

  /* Hide ArcGIS address search bar — use Property Search popup instead */
  #searchWidgetContainer {
    display: none !important;
  }

  /* Shrink property search button to icon + short label */
  .buttonSearchStyle {
    padding: 7px 10px !important;
    font-size: 12px !important;
    gap: 4px;
  }
  /* Hide the text label, keep the icon */
  .buttonSearchStyle span,
  #searchdata .btn-label {
    display: none;
  }

  .logo-container img {
    width: 44px !important;
  }

  /* Dropdown menu: full-width on mobile */
  .dropdown-content {
    right: 0 !important;
    left: auto;
    min-width: 200px;
    max-width: 90vw;
  }

  /* Modals / popups: full-width on small screens */
  #search_data_popup_box,
  #data_popup_box,
  #list_popup_box,
  #help-container,
  #about-container,
  #contact-container,
  #signup-container,
  #disclaimer-container,
  #designPlanBtn-container {
    width: 96% !important;
    height: 85% !important;
    left: 2% !important;
    top: 5% !important;
    box-sizing: border-box;
  }

  /* Plan panel: full-width overlay on mobile */
  #plan-panel.open {
    width: 100% !important;
    min-width: 100% !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 9999;
  }
}

    /* ─── THE BUTTON STYLE ─── */
    .planProperty {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 12px 24px;
      font-size: 15px;
      font-weight: 600;
      font-family: 'Segoe UI', sans-serif;
      color: #ffffff;
      background: linear-gradient(135deg, #3b82f6 0%, #04ca44  100%);
      border: none;
      border-radius: 10px;
      cursor: pointer;
      letter-spacing: 0.3px;
      box-shadow: 0 4px 14px #55b4d4;
      transition: all 0.25s ease;
      position: relative;
      overflow: hidden;
    }

    /* Shimmer sweep on hover */
    .planProperty::before {
      content: '';
      position: absolute;
      top: 0;
      left: -75%;
      width: 50%;
      height: 100%;
      background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
      transition: left 0.45s ease;
    }

    .planProperty:hover::before {
      left: 130%;
    }

    .planProperty:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5);
      background: linear-gradient(135deg, #3b82f6 0%, rgb(37 99 235 / var(--tw-bg-opacity, 1)) 100%);
    }

    .planProperty:active {
      transform: translateY(0px);
      box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
    }

    .planProperty:focus-visible {
      outline: 3px solid #93c5fd;
      outline-offset: 3px;
    }

    .planProperty svg {
      flex-shrink: 0;
      width: 17px;
      height: 17px;
    }

    label {
      font-size: 11px;
      font-weight: 700;
      color: #9ca3af;
      text-transform: uppercase;
      letter-spacing: 1px;
    }


    #plan-panel-resizer {
  width: 8px;
  min-width: 8px;
  background: #ffffff;
  cursor: col-resize;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  transition: background 0.15s ease;
}
#plan-panel-resizer:hover,
#plan-panel-resizer.dragging { background: #d0e8ff; }

#plan-panel-resizer::before {
  content: '';
  display: block;
  width: 3px;
  height: 32px;
  border-left: 1px dotted #aac4e0;
  border-right: 1px dotted #aac4e0;
  border-radius: 2px;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   CHAT TAB
   --------------------------------------------------------------------------- */

/* Login prompt */
.chat-login-prompt { display:flex; flex-direction:column; align-items:center; padding:2rem 1rem; }

/* Group header */
.chat-group-name {
  font-size:2rem; font-weight:700; color:#e8f0fe;
  padding:8px 12px 2px;
  word-break:break-word; line-height:1.35;
  flex-shrink:0;
}
.chat-group-meta {
  font-size:1.3rem; color:#8899a8;
  padding:0 12px 4px;
  border-bottom:1px solid rgba(255,255,255,.07);
  flex-shrink:0;
}
.chat-switch-btn {
  margin:4px 12px 6px;
  background:none;
  border:1px solid rgba(77,166,255,.35);
  color:#4da6ff;
  border-radius:6px;
  padding:4px 10px;
  font-size:1.3rem;
  cursor:pointer;
  transition:background .15s;
  text-align:left;
}
.chat-switch-btn:hover { background:rgba(77,166,255,.1); }

/* Group picker list */
#chat-groups-list { display:flex; flex-direction:column; gap:6px; }
.chat-group-item {
  display:flex; align-items:center; justify-content:space-between;
  gap:8px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:8px;
  padding:8px 10px;
  cursor:pointer;
  transition:background .15s;
}
.chat-group-item:hover { background:rgba(77,166,255,.1); border-color:rgba(77,166,255,.3); }
.chat-group-item.active-group { border-color:#4da6ff; background:rgba(77,166,255,.14); }
.chat-group-item-name { font-size: 1.5rem; font-weight:600; color:#4da6ff; }
.chat-group-item-meta { font-size: 1.5rem; color:#8899a8; margin-top:2px; }
.chat-group-open-btn {
  flex-shrink:0;
  background:#1a56db;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:4px 10px;
  font-size:.78rem;
  cursor:pointer;
}

/* Inner tab bar */
.chat-inner-tab-bar {
  display:flex; border-bottom:1px solid rgba(255,255,255,.09); margin-bottom:0;
  flex-shrink:0;
}
.chat-inner-tab {
  flex:1; background:none; border:none; color:#8899a8;
  padding:8px 6px; font-size:1.3rem; cursor:pointer; transition:color .15s;
  border-bottom:2px solid transparent;
}
.chat-inner-tab.active { color:#4da6ff; border-bottom-color:#4da6ff; }
.chat-inner-tab:hover  { color:#c8e0ff; }

/* ── Chat layout: inner wrapper fills the plan-panel-body ── */

/* Outer shell — plan-panel-body suppresses its own scroll/padding */
#plan-tab-chat {
  overflow: hidden !important;
  padding: 0 !important;
}

/* Inner wrapper — fills plan-panel-body as a flex column */
.chat-tab-pane {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

/* Inner tabs wrapper — grows to fill space above input row */
#chat-inner-tabs {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Messages pane — grows, clips, scrolls internally */
#chat-pane-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* chat-inner-pane: default block for non-messages panes */
.chat-inner-pane {
  display: block;
}
/* Messages pane overrides to flex */
#chat-pane-messages.chat-inner-pane {
  display: flex;
}

/* Messages list — fills pane, scrolls */
.chat-messages-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #2e3f52 transparent;
}
.chat-messages-list::-webkit-scrollbar { width:5px; }
.chat-messages-list::-webkit-scrollbar-thumb { background:#2e3f52; border-radius:3px; }

.chat-loading { color:#8899a8; font-size:1rem; text-align:center; padding:1.5rem 0; }

/* Individual message bubble */
.chat-msg { display:flex; gap:8px; align-items:flex-start; }
.chat-msg.own { flex-direction:row-reverse; }

.chat-avatar {
  width:36px; height:36px; border-radius:50%; object-fit:cover;
  border:1.5px solid rgba(77,166,255,.3); flex-shrink:0;
}
.chat-avatar-ph {
  width:36px; height:36px; border-radius:50%; background:#1e3a5c;
  display:flex; align-items:center; justify-content:center;
  font-size:.9rem; color:#7ecece; font-weight:700; flex-shrink:0;
  border:1.5px solid rgba(77,166,255,.3);
}

.chat-bubble-wrap { display:flex; flex-direction:column; max-width:80%; }
.chat-msg.own .chat-bubble-wrap { align-items:flex-end; }

.chat-name  { font-size:1.5rem; color:#8899a8; margin-bottom:2px; }
.chat-bubble {
  background:#1e3a5c; color:#e8f0fe; font-size:1.5rem;
  border-radius:12px 12px 12px 2px;
  padding:7px 11px; line-height:1.45; word-break:break-word;
}
.chat-msg.own .chat-bubble {
  background:#02025b; border-radius:12px 12px 2px 12px;
}
.chat-message-meta { display:flex; align-items:center; gap:5px; margin-top:3px; }
.chat-msg.own .chat-message-meta { justify-content:flex-end; }
.chat-time  { font-size:1.3rem; color:#8899a8; }
.chat-delete-message-btn {
  width:24px; height:24px; padding:0; border:0; border-radius:4px;
  display:inline-flex; align-items:center; justify-content:center;
  background:transparent; color:#8899a8; cursor:pointer; font-size:.9rem;
}
.chat-delete-message-btn:hover { background:rgba(229,115,115,.16); color:#ff9b9b; }
.chat-delete-message-btn:disabled { opacity:.45; cursor:wait; }

/* Input row — flex-shrink:0 child at bottom of .chat-tab-pane */
.chat-input-row {
  flex-shrink: 0;
  display: flex;
  width: 100%;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: #111e2d;
  align-items: flex-end;
  box-sizing: border-box;
  margin-bottom: 90px;
}
.chat-composer {
  position:relative; flex:1; min-width:0;
  display:flex; flex-direction:column; gap:6px;
}
.chat-composer.is-dragging-file::after {
  content:'Drop image or file here';
  position:absolute; inset:0; z-index:8;
  display:flex; align-items:center; justify-content:center;
  border:2px dashed #7ec8ff; border-radius:8px;
  background:rgba(17,30,45,.94); color:#e8f0fe;
  font-size:1rem; font-weight:600; pointer-events:none;
}
.chat-input-shell { position:relative; display:flex; }
.chat-input {
  width:100%;
  background:#1a2a3a; border:1px solid rgba(77,166,255,.25);
  color:#e8f0fe; border-radius:8px; padding:7px 48px 7px 10px; font-size:1.5rem;
  resize:none; font-family:inherit; outline:none; transition:border-color .15s;
  min-height:200px; max-height:400px; box-sizing:border-box;
}
#chat-input { background:#1a2a3a !important; color:#e8f0fe !important; }
.chat-composer input[type="file"] { display:none !important; }
.chat-input:focus { border-color:#4da6ff; }
.chat-add-btn {
  position:absolute; right:8px; bottom:8px; width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(126,200,255,.4); border-radius:50%;
  background:#24394d; color:#e8f0fe; font-size:1.5rem; line-height:1;
  cursor:pointer; z-index:2;
}
.chat-add-btn:hover, .chat-add-btn[aria-expanded="true"] { background:#31506c; border-color:#7ec8ff; }
.chat-add-btn:disabled { opacity:.5; cursor:not-allowed; }
.chat-add-menu, .chat-emoji-picker {
  position:absolute; right:6px; bottom:46px; z-index:5;
  background:#172738; border:1px solid rgba(126,200,255,.3);
  border-radius:7px; box-shadow:0 8px 24px rgba(0,0,0,.4);
}
.chat-add-menu { min-width:170px; padding:5px; }
.chat-add-menu button {
  display:block; width:100%; padding:8px 10px; border:0; border-radius:4px;
  background:transparent; color:#e8f0fe; text-align:left; font:inherit; cursor:pointer;
}
.chat-add-menu button:hover { background:#243c53; }
.chat-emoji-picker {
  width:208px; padding:7px; display:grid; grid-template-columns:repeat(4, 1fr); gap:3px;
}
.chat-emoji-picker[hidden], .chat-add-menu[hidden] { display:none; }
.chat-emoji-btn {
  width:44px; height:38px; border:0; border-radius:4px;
  background:transparent; cursor:pointer; font-size:1.35rem;
}
.chat-emoji-btn:hover { background:#29445d; }
.chat-attachment-preview {
  display:flex; align-items:center; gap:7px; min-width:0;
  padding:6px 8px; border:1px solid rgba(126,200,255,.22); border-radius:6px;
  background:#172738; color:#cdd8e3; font-size:.82rem;
}
.chat-attachment-preview[hidden] { display:none; }
.chat-attachment-preview-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-attachment-preview-size { color:#8899a8; white-space:nowrap; }
#chat-remove-attachment { margin-left:auto; border:0; background:none; color:#a8b4c0; font-size:1.25rem; cursor:pointer; }
.chat-bubble-text + .chat-attachment-image, .chat-bubble-text + .chat-attachment-file { margin-top:7px; }
.chat-attachment-image { display:block; color:#cfe7ff; text-decoration:none; }
.chat-attachment-image img {
  display:block; width:min(280px, 100%); max-height:240px; object-fit:contain;
  border-radius:6px; background:rgba(0,0,0,.18);
}
.chat-attachment-image span { display:block; margin-top:4px; font-size:.75rem; opacity:.8; }
.chat-attachment-file {
  display:flex; align-items:center; gap:8px; min-width:180px; padding:7px 9px;
  border:1px solid rgba(255,255,255,.14); border-radius:6px;
  background:rgba(0,0,0,.16); color:#e8f0fe; text-decoration:none;
}
.chat-attachment-file-icon { font-size:1.2rem; }
.chat-attachment-file strong, .chat-attachment-file small { display:block; }
.chat-attachment-file strong { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-attachment-file small { color:#a8b4c0; margin-top:2px; }
.chat-send-btn {
  flex-shrink:0; padding:8px 13px;
  background:#1a56db; color:#fff;
  border:none; border-radius:8px;
  cursor:pointer; font-size:1rem;
  align-self:flex-end;
}
.chat-share-loc-btn {
  flex-shrink:0; padding:8px 13px;
  background:#0e3d22; color:#4ddb7e;
  border:1px solid rgba(77,219,126,.35); border-radius:8px;
  cursor:pointer; font-size:1rem; align-self:flex-end;
}
.chat-share-loc-btn:disabled { opacity:.38; cursor:not-allowed; }
.chat-link { color:#4da6ff; text-decoration:underline; word-break:break-all; font-style:normal; }
.chat-link:hover { color:#7ec8ff; }

/* Collaborators pane */
.chat-section-title {
  font-size:2; text-transform:uppercase; letter-spacing:.07em;
  color:#4da6ff; padding:10px 12px 4px; font-weight:600;
  flex-shrink:0;
}
.chat-invite-row { display:block; gap:6px; padding:4px 12px 0; }

/* Member / invitation rows */
.chat-member-row, .chat-inv-row {
  display:flex; align-items:center; gap:8px;
  padding:8px 12px; border-bottom:1px solid rgba(255,255,255,.05);
  font-size:2rem; color:#c0ccd8;
}
.chat-member-row:last-child, .chat-inv-row:last-child { border-bottom:none; }

.chat-badge {
  font-size:1.3rem; padding:2px 7px; border-radius:9999px; font-weight:600;
  flex-shrink:0;
}
.chat-badge-owner   { background:rgba(200,151,42,.15); color:#c8972a; border:1px solid rgba(200,151,42,.3); }
.chat-badge-collab  { background:rgba(42,138,138,.15); color:#7ecece; border:1px solid rgba(42,138,138,.3); }
.chat-badge-pending { background:rgba(77,166,255,.1);  color:#4da6ff; border:1px solid rgba(77,166,255,.25); }
.chat-badge-approved{ background:rgba(42,180,90,.12);  color:#4cdb7e; border:1px solid rgba(42,180,90,.3); }
.chat-badge-rejected{ background:rgba(196,98,45,.12);  color:#f5a67a; border:1px solid rgba(196,98,45,.3); }
.chat-badge-revoked { background:rgba(120,120,120,.1); color:#8899a8; border:1px solid rgba(120,120,120,.3); }

.chat-inv-email { flex:1; word-break:break-all; }
.chat-inv-actions { display:flex; gap:5px; flex-shrink:0; }

/* Invite link box */
.chat-invite-link-box {
  background:#0d1e30; border:1px solid rgba(77,166,255,.25);
  border-radius:.5rem; padding:8px 10px; margin:4px 12px 0;
  font-size:2rem; color:#7ecece; word-break:break-all;
  cursor:pointer; transition:background .15s;
}
.chat-invite-link-box:hover { background:#1a2e44; }

/* System messages */
.chat-sys-msg {
  text-align:center; font-size:2rem; color:#8899a8;
  padding:4px 0; font-style:italic;
}

/* Day divider */
.chat-day-divider {
  display:flex; align-items:center; gap:8px;
  font-size:2rem; color:#8899a8; margin:4px 0;
}
.chat-day-divider::before,
.chat-day-divider::after {
  content:''; flex:1; height:1px; background:rgba(255,255,255,.07);
}

/* ==========================================================================
   LANDYFI UI REDESIGN
   Authoritative visual layer based on LANDYFI-UI-REDESIGN. Existing IDs and
   layout ownership remain unchanged so ArcGIS and application behavior remain
   intact.
   ========================================================================== */
:root {
  --lf-blue: #2563eb;
  --lf-blue-dark: #1d4ed8;
  --lf-blue-soft: #eff6ff;
  --lf-emerald: #10b981;
  --lf-rose: #e11d48;
  --lf-slate-950: #0f172a;
  --lf-slate-800: #1e293b;
  --lf-slate-700: #334155;
  --lf-slate-600: #475569;
  --lf-slate-500: #64748b;
  --lf-slate-400: #94a3b8;
  --lf-slate-300: #cbd5e1;
  --lf-slate-200: #e2e8f0;
  --lf-slate-100: #f1f5f9;
  --lf-slate-50: #f8fafc;
  --lf-white: #ffffff;
  --lf-shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --lf-shadow-lg: 0 12px 30px rgba(15, 23, 42, .14);
}

html,
body {
  border-radius: 0;
  background: var(--lf-slate-100);
  color: var(--lf-slate-700);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
}

#header {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--lf-slate-200);
  border-radius: 0;
  background: var(--lf-white);
  background-image: none;
  box-shadow: var(--lf-shadow-sm);
  color: var(--lf-slate-700);
  box-sizing: border-box;
  z-index: 2000;
}

.header-container {
  height: 100%;
  justify-content: flex-start;
  gap: 12px;
}

.logo-container {
  width: 70px;
  height: 70px;
  margin: 0;
  border-radius: 8px;
  background: var(--lf-blue);
  box-shadow: 0 2px 6px rgba(37, 99, 235, .24);
  flex: 0 0 70px;
}

.logo-container a {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 5px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.logo-container img {
  display: block;
  width: 60px !important;
  height: 60px;
  object-fit: contain;
}

.title-container {
  margin: 0 10px 0 0;
  flex: 0 0 auto;
}

.title-container h3 {
  margin: 0;
  color: var(--lf-slate-800);
  font-size: 1.2em;
  font-weight: 700;
  letter-spacing: 0;
}

#searchWidgetContainer {
  flex: 1 1 320px;
  max-width: 430px;
  margin: 0;
  z-index: 2100;
}

#searchWidgetContainer .esri-search__container,
#searchWidgetContainer .esri-search__input-container,
#searchWidgetContainer .esri-search__input {
  min-height: 38px;
  border-radius: 8px;
}

#searchWidgetContainer .esri-search__input {
  border: 1px solid var(--lf-slate-200);
  background: var(--lf-slate-50);
  color: var(--lf-slate-700);
  font-family: inherit;
  font-size: 13px;
}

#searchWidgetContainer .esri-search__submit-button,
#searchWidgetContainer .esri-search__sources-button {
  border-color: var(--lf-slate-200);
  background: var(--lf-slate-50);
  color: #4da6ff;
}

#searchdata {
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
   /* background: #eee; */
  color: #fff;
  box-shadow: 0 2px 5px rgba(37, 99, 235, .2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

#searchdata:hover { background: var(--lf-blue-dark); }
#searchdata img { filter: brightness(0) invert(1); }

#select-user-projects { margin-left: auto; }

#header-project-select {
  max-width: 210px;
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--lf-slate-200);
  border-radius: 8px;
  outline: none;
  background: var(--lf-slate-50);
  color: var(--lf-slate-700);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

#menu { margin-left: auto; }
.dropdown { display: block; }

.dropbtn {
  display: flex;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lf-slate-200);
  border-radius: 50%;
  background: var(--lf-white);
  color: var(--lf-slate-600);
}

.dropbtn img {
  width: 45px !important;
  height: 45px !important;
  border: 0 !important;
}

.dropdown:hover .dropbtn,
.dropbtn:hover {
  border-color: #93c5fd;
  background: var(--lf-blue-soft) !important;
  color: var(--lf-blue-dark) !important;
}

.dropdown-content {
  top: 44px;
  right: 0;
  min-width: 220px;
  margin: 0;
  border: 1px solid var(--lf-slate-200);
  border-radius: 8px;
  background: var(--lf-white);
  box-shadow: var(--lf-shadow-lg);
  overflow: hidden;
}

.dropdown-content a {
  padding: 10px 14px;
  color: var(--lf-slate-700);
  font-size: 13px;
}

.dropdown-content a:hover {
  background: var(--lf-blue-soft);
  background-image: none;
  color: var(--lf-blue-dark);
}

#main {
  height: calc(100vh - 56px) !important;
  min-height: 0;
}

.wrapper { height: 100%; }

#plan-panel {
  border-right: 1px solid var(--lf-slate-200);
  background: var(--lf-white);
  color: var(--lf-slate-700);
  box-shadow: 4px 0 18px rgba(15, 23, 42, .08);
}

#plan-panel.open {
  width: 25%;
  min-width: 25%;
}

#plan-panel:not(.open) + #plan-panel-resizer { display: none; }
#plan-panel.open + #plan-panel-resizer { display: flex; }

.plan-panel-header {
  min-height: 52px;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--lf-slate-200);
  background: var(--lf-white);
  background-image: none;
  color: var(--lf-slate-700);
  font-size: 13px;
  letter-spacing: 0;
}

.plan-panel-header > span:first-child {
  color: var(--lf-slate-700);
  font-size: 13px;
}

.plan-panel-main {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.plan-panel-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#plan-panel-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  color: var(--lf-slate-400);
  font-size: 15px;
}

#plan-panel-close:hover {
  background: var(--lf-slate-100);
  color: var(--lf-slate-700);
}

#plan-property-info {
  padding: 9px 14px !important;
  border-bottom: 1px solid #bfdbfe !important;
  background: var(--lf-blue-soft) !important;
  color: var(--lf-slate-600) !important;
  font-size: 11px !important;
}

#plan-property-info span { color: var(--lf-slate-600) !important; }
#plan-property-info span[id] { color: var(--lf-slate-800) !important; }

.plan-tabs {
  display: flex;
  width: 54px;
  min-width: 54px;
  padding: 6px 0;
  flex-direction: column;
  border-right: 1px solid var(--lf-slate-200);
  border-bottom: 0;
  background: var(--lf-slate-50);
  overflow: hidden;
  pointer-events: auto;
  transition: width .18s ease, min-width .18s ease, box-shadow .18s ease;
}

.plan-tabs:not(.is-collapsed-after-select):hover,
.plan-tabs:not(.is-collapsed-after-select):focus-within {
  width: 180px;
  min-width: 180px;
  box-shadow: 5px 0 14px rgba(15, 23, 42, .08);
}

.plan-tab-btn {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  min-width: 100%;
  min-height: 48px;
  padding: 0;
  grid-template-columns: 51px minmax(0, 1fr);
  align-items: center;
  flex: 0 0 48px;
  border: 0;
  border-left: 3px solid transparent;
  color: #4da6ff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  overflow: hidden;
  pointer-events: auto;
  text-align: left;
}

.plan-tab-btn:hover {
  background: var(--lf-blue-soft);
  color: var(--lf-blue-dark);
}

.plan-tab-btn.active {
  border-left-color: var(--lf-blue);
  background: var(--lf-blue-soft);
  color: var(--lf-blue-dark);
}

.plan-tab-btn:focus-visible {
  outline: 2px solid var(--lf-blue);
  outline-offset: -3px;
}

.plan-tab-btn > .fa {
  width: 51px;
  pointer-events: none;
  text-align: center;
}

.plan-nav-label {
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-width: 0;
  padding-right: 12px;
  color: var(--lf-slate-700);
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateX(-5px);
  transition: opacity .12s ease, transform .18s ease;
  white-space: nowrap;
}

.plan-nav-label small {
  display: block;
  width: 100%;
  margin-top: 2px;
  overflow: hidden;
  color: var(--lf-slate-500);
  font-size: 10px;
  text-overflow: ellipsis;
}

.plan-tabs:not(.is-collapsed-after-select):hover .plan-nav-label,
.plan-tabs:not(.is-collapsed-after-select):focus-within .plan-nav-label {
  opacity: 1;
  transform: translateX(0);
}

.plan-nav-settings { margin-top: auto; }

.plan-settings-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--lf-slate-200);
}

.plan-settings-heading > .fa { color: var(--lf-blue); font-size: 20px; }
.plan-settings-heading strong,
.plan-settings-heading span { display: block; }
.plan-settings-heading span { margin-top: 2px; color: var(--lf-slate-500); font-size: 11px; }
.plan-settings-list { display: grid; gap: 7px; }

.plan-settings-action {
  display: grid;
  width: 100%;
  min-height: 54px;
  padding: 9px 10px;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--lf-slate-200);
  border-radius: 7px;
  background: var(--lf-white);
  color: var(--lf-slate-700);
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.plan-settings-action:hover,
.plan-settings-action:focus-visible {
  border-color: #bfdbfe;
  background: var(--lf-blue-soft);
  color: var(--lf-blue-dark);
  outline: none;
  text-decoration: none;
}

.plan-settings-action > .fa:first-child { color: var(--lf-blue); font-size: 16px; text-align: center; }
.plan-settings-action > .fa:last-child { color: var(--lf-slate-400); font-size: 10px; }
.plan-settings-action strong,
.plan-settings-action small { display: block; }
.plan-settings-action small { margin-top: 2px; color: var(--lf-slate-500); font-size: 10px; }

.plan-panel-body {
  gap: 10px;
  padding: 14px;
  background: var(--lf-white);
  color: var(--lf-slate-700);
  scrollbar-color: var(--lf-slate-300) transparent;
  scrollbar-width: thin;
}

.plan-panel-body::-webkit-scrollbar { width: 5px; }
.plan-panel-body::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background: var(--lf-slate-300);
}

.plan-design-subtabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--lf-slate-200);
  border-radius: 7px;
  background: var(--lf-slate-100);
}

.plan-design-subtab-btn {
  min-height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--lf-slate-600);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.plan-design-subtab-btn.active {
  background: var(--lf-white);
  color: var(--lf-blue-dark);
  box-shadow: var(--lf-shadow-sm);
}

.plan-design-subtab-pane {
  display: none;
}

.plan-design-subtab-pane.active {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-draw-style-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.plan-draw-style-row > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.plan-draw-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.plan-draw-actions .plan-btn {
  min-width: 0;
}

.plan-draw-actions .plan-draw-tool.active,
.plan-draw-actions .plan-draw-tool[aria-pressed="true"] {
  border-color: var(--lf-blue);
  background: var(--lf-blue);
  color: var(--lf-white);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.plan-draw-actions #plan-draw-cancel {
  grid-column: 1 / -1;
}

.plan-draw-status {
  min-height: 20px;
  color: var(--lf-blue-dark);
  font-size: 11px;
  line-height: 1.4;
}

.plan-draw-status.error {
  color: var(--lf-rose);
}

.plan-element-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
}

.plan-element-filters .plan-input { margin: 0; min-width: 0; }

.plan-elements-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 2px;
}

.plan-element-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid var(--lf-slate-200);
  border-radius: 7px;
  background: var(--lf-white);
  color: var(--lf-slate-700);
  text-align: left;
  cursor: pointer;
}

.plan-element-card:hover { border-color: #93c5fd; background: var(--lf-blue-soft); }
.plan-element-card.active { border-color: var(--lf-blue); box-shadow: 0 0 0 2px rgba(37,99,235,.14); }
.plan-element-card strong { display: block; font-size: 11px; line-height: 1.25; }
.plan-element-card small { display: block; margin-top: 3px; color: var(--lf-slate-500); font-size: 9px; line-height: 1.2; }
.plan-element-swatch { width: 26px; height: 26px; border: 2px solid; border-radius: 50%; align-self: center; }
.plan-element-swatch[data-geometry="polyline"] { height: 6px; border-radius: 2px; }
.plan-element-swatch[data-geometry="polygon"] { border-radius: 4px; }

.plan-element-selection {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: var(--lf-blue-soft);
}
.plan-element-selection strong { display: block; color: var(--lf-blue-dark); font-size: 11px; }
.plan-element-selection small { display: block; color: var(--lf-slate-500); font-size: 10px; }
.plan-element-label-controls { grid-column: 1 / -1; }
.plan-element-label-controls label { display: block; margin-bottom: 4px; color: var(--lf-slate-600); font-size: 10px; font-weight: 600; }
.plan-element-label-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 5px; }
.plan-element-label-row .plan-input { min-width: 0; margin: 0; }
.plan-element-label-row .plan-btn { padding: 5px 8px; white-space: nowrap; }
.plan-element-empty { padding: 18px 8px; color: var(--lf-slate-500); font-size: 11px; text-align: center; }

.plan-graphic-context-menu {
  position: fixed;
  z-index: 12000;
  display: none;
  width: 250px;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
  color: #1e293b;
}
.plan-graphic-context-menu.open { display: block; }
.plan-context-title { overflow: hidden; padding: 7px 9px; border-bottom: 1px solid #e2e8f0; color: #475569; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.plan-graphic-context-menu > button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #334155;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.plan-graphic-context-menu > button:hover:not(:disabled),
.plan-graphic-context-menu > button:focus-visible { background: #eff6ff; color: #1d4ed8; outline: none; }
.plan-graphic-context-menu > button.danger { color: #b91c1c; }
.plan-graphic-context-menu > button.danger:hover:not(:disabled) { background: #fef2f2; color: #991b1b; }
.plan-graphic-context-menu > button:disabled { color: #94a3b8; cursor: not-allowed; }
.plan-graphic-context-menu button span { text-align: center; }
.plan-graphic-context-menu .plan-context-action-label { text-align: left; white-space: nowrap; }
.plan-context-rename { padding: 8px; border-top: 1px solid #e2e8f0; }
.plan-context-rename label { display: block; margin-bottom: 4px; color: #64748b; font-size: 10px; font-weight: 600; }
.plan-context-rename input { box-sizing: border-box; width: 100%; padding: 6px 7px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 12px; }
.plan-context-rename > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 6px; }
.plan-context-rename button { padding: 5px; border: 1px solid #cbd5e1; border-radius: 4px; background: #f8fafc; color: #334155; cursor: pointer; }
.plan-context-status { min-height: 0; padding: 0 8px; color: #64748b; font-size: 10px; }
.plan-context-status:not(:empty) { padding-top: 6px; padding-bottom: 5px; }
.plan-context-status.error { color: #b91c1c; }

@media (max-width: 520px) {
  .plan-element-label-row { grid-template-columns: minmax(0, 1fr); }
  .plan-element-label-row .plan-btn { min-width: 0; width: 100%; overflow-wrap: anywhere; white-space: normal; }
}

.plan-panel-hint {
  margin: 0 0 2px;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  border-left: 3px solid #60a5fa;
  border-radius: 7px;
  background: var(--lf-blue-soft);
  color: #1e40af;
  font-size: 1em;
  line-height: 1.45;
}

#plan-panel .plan-label,
#plan-panel label {
  color: #4da6ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.plan-input,
#plan-panel input[type='text'],
#plan-panel input[type='number'],
#plan-panel input[type='email'],
#plan-panel select,
#plan-panel textarea {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--lf-slate-200);
  border-radius: 7px;
  background: var(--lf-slate-50);
  color: var(--lf-slate-700);
  font-family: inherit;
  font-size: 12px;
}

.plan-input:focus,
#plan-panel input:focus,
#plan-panel select:focus,
#plan-panel textarea:focus {
  border-color: #60a5fa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.plan-color {
  height: 38px;
  border: 1px solid var(--lf-slate-200);
  border-radius: 7px;
  background: var(--lf-slate-50);
}

#plan-panel input[type='range'] {
  min-height: 18px;
  padding: 0;
  accent-color: var(--lf-blue);
}

.pbo-card {
  border: 1px solid var(--lf-slate-200);
  border-radius: 7px;
  background: var(--lf-white);
  box-shadow: var(--lf-shadow-sm);
  height: 60px;
}

.pbo-card:hover {
  border-color: #93c5fd;
  background: var(--lf-blue-soft);
}

.pbo-card.selected {
  border-color: var(--lf-blue);
  background: var(--lf-blue-soft);
  box-shadow: 0 0 0 1px var(--lf-blue);
}

.pbo-card-name { color: var(--lf-slate-700); }
.pbo-card-dims { color: #4da6ff; }
.pbo-card-no-img { background: var(--lf-slate-100); color: var(--lf-slate-400); }
#pbo-selected-badge {
  border: 1px solid #bfdbfe;
  background: var(--lf-blue-soft) !important;
  color: var(--lf-slate-700) !important;
}
#pbo-selected-badge #pbo-badge-dims { color: #4da6ff !important; }

.plan-btn {
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 7px;
  box-shadow: none;
  font-family: inherit;
  font-size: 12px;
  transition: background .15s, border-color .15s, transform .15s;
}

.plan-btn:hover { opacity: 1; transform: translateY(-1px); }
.plan-btn-primary { background: var(--lf-blue); }
.plan-btn-primary:hover { background: var(--lf-blue-dark); }
.plan-btn-success { background: var(--lf-emerald); }
.plan-btn-danger {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: var(--lf-rose);
}
.plan-btn-danger:hover { background: #ffe4e6; }
.plan-btn-secondary {
  border: 1px solid var(--lf-slate-200);
  background: var(--lf-slate-100);
  color: var(--lf-slate-600);
}

.plan-cost-shape-badge,
.plan-cost-result,
#cost-no-selection-hint {
  border: 1px solid var(--lf-slate-200);
  background: var(--lf-slate-50);
  color: var(--lf-slate-600);
}

#cost-shape-label-text,
.plan-cost-result-row,
.plan-cost-total { color: var(--lf-slate-700) !important; }

.plan-cost-section-title {
  border-bottom-color: var(--lf-slate-200);
  color: #4da6ff;
}

.plan-cost-unit,
.plan-map-check { color: #4da6ff; }
.plan-map-check { border-bottom-color: var(--lf-slate-100); }
.plan-map-check:hover { color: var(--lf-blue-dark); }

#plan-save-bar {
  display: none;
  min-height: 52px;
  padding: 8px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
  border-top: 1px solid var(--lf-slate-200);
  background: var(--lf-white);
}

.plan-save-project {
  min-width: 0;
  overflow: hidden;
  color: var(--lf-slate-400);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#plan-save-bar-name { color: var(--lf-slate-700); font-weight: 600; }
#plan-save-bar-status { font-size: 0.7em; white-space: nowrap; }
#plan-save-all-btn {
  min-height: 34px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: var(--lf-blue);
  color: var(--lf-white);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

#plan-panel-resizer {
  width: 6px;
  min-width: 6px;
  background: var(--lf-white);
}

#plan-panel-resizer:hover,
#plan-panel-resizer.dragging { background: #dbeafe; }
#plan-panel-resizer::before { border-color: #93c5fd; }

#viewDiv .esri-widget,
#viewDiv .esri-component {
  border-radius: 8px;
  color: #928c90;
  box-shadow: var(--lf-shadow-sm);
}

#viewDiv .esri-widget--button {
  width: 36px;
  height: 36px;
  border-color: var(--lf-slate-200);
  background: var(--lf-white);
  color: var(--lf-slate-600);
}

#viewDiv .esri-widget--button:hover {
  background: var(--lf-blue-soft);
  color: var(--lf-blue-dark);
}

#viewDiv .esri-popup__main-container {
  border: 1px solid var(--lf-slate-200);
  border-radius: 10px;
  box-shadow: var(--lf-shadow-lg);
  overflow: hidden;
}

#viewDiv .esri-popup__header {
  border-bottom: 1px solid var(--lf-slate-100);
  background: var(--lf-slate-50);
}

.planProperty {
  border-radius: 7px;
  background: var(--lf-blue);
  background-image: none;
  box-shadow: 0 2px 5px rgba(37, 99, 235, .2);
  font-family: inherit;
}

.planProperty:hover {
  background: var(--lf-blue-dark);
  background-image: none;
}

/* Chat follows the same light workspace language. */
#plan-tab-chat,
.chat-tab-pane,
.chat-compose,
.chat-groups-view,
.chat-conversation-view { background: var(--lf-white) !important; color: var(--lf-slate-700); }
.chat-group-name { color: var(--lf-slate-800); font-size: 14px; }
.chat-group-meta { color: #4da6ff; border-color: var(--lf-slate-200); font-size: 11px; }
.chat-switch-btn,
.chat-manage-btn {
  border-color: var(--lf-slate-200);
  background: var(--lf-slate-50);
  color: var(--lf-slate-600);
}
.chat-member-row,
.chat-inv-row { border-color: var(--lf-slate-100); color: var(--lf-slate-700); font-size: 12px; }
.chat-invite-link-box { border-color: #bfdbfe; background: var(--lf-blue-soft); color: var(--lf-blue-dark); font-size: 11px; }
.chat-sys-msg,
.chat-day-divider { color: var(--lf-slate-400); font-size: 10px; }
.chat-day-divider::before,
.chat-day-divider::after { background: var(--lf-slate-200); }

@media (max-width: 900px) {
  #header { padding: 0 10px; }
  .title-container { display: none; }
  #searchWidgetContainer { max-width: none; }
  #header-project-select { max-width: 150px; }
  #searchdata { width: 38px; padding: 0; font-size: 0; }
  #searchdata img { width: 18px; }
}

@media (max-width: 640px) {
  #header { height: 52px; }
  #main { height: calc(100vh - 52px) !important; }
  .logo-container { width: 32px; height: 32px; flex-basis: 32px; }
  #select-user-projects { display: none !important; }
  #searchWidgetContainer { min-width: 0; }
  #plan-panel.open {
    top: 52px;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw;
    height: calc(100dvh - 52px) !important;
    max-height: calc(100dvh - 52px);
    box-sizing: border-box;
  }
  #plan-panel.open + #plan-panel-resizer { display: none; }
  .plan-panel-header { min-height: 48px; }
}

/* Keep all custom map controls visually consistent. Individual positioning is
   intentionally left to the existing class-specific rules. */
.customLegendStyle,
.customIconStyle,
.customListStyle,
.customHelpStyle,

.customSearchStyle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  border-radius: 5px;
  background: #eeeeee !important;
  color: #666666 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.customLegendStyle:hover,
.customIconStyle:hover,
.customListStyle:hover,
.customHelpStyle:hover,
.customHomeStyle:hover,
.customSearchStyle:hover,
.customLegendStyle:focus-visible,
.customIconStyle:focus-visible,
.customListStyle:focus-visible,
.customHelpStyle:focus-visible,
.customHomeStyle:focus-visible,
.customSearchStyle:focus-visible {
  background: #006aff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 106, 255, 0.35);
  outline: none;
}
