body,
html {
  height: 100%;
  margin: 0;
}

/* Reset CSS */
.leaflet-right {
  right: 16px;
}
.leaflet-left {
    left: 16px;
    bottom: 16px;
}

/* Navbar with blur */
.navbar {
  /* background-color: rgba(44, 62, 80, 0.85); */
  background-color: var(--theme-dark);
  height: 60px;
  /* z-index: 2000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0; */
  /* backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px); */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #ecf0f1;
}

.project-title {
  font-weight: bold;
  color: #ecf0f1;
}

.branding{
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-branding{
  max-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
}

.logo-branding .logo1{
  width: 42px;
  height: 42px;
  display: block;
}
.logo-branding .logo2{
  width: 100px;
  height: 42px;
  display: block;
}
.logo-branding a img{
  display: block;
  width: 100%;
  height: 100%;
}



/* Floating Menu Above Navbar */
.offcanvas {
  z-index: 3000 !important;
  background: rgba(44, 62, 80, 0.6); /* match navbar */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ecf0f1;
}

/* Animated Hamburger/Close Button */
.menu-toggle {
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #ecf0f1;
  border-radius: 3px;
  left: 0;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 8px;
}
.menu-toggle span:nth-child(3) {
  top: 16px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 8px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 8px;
}

/* Modern Glassy Close Button */
.fancy-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover effect */
.fancy-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Cross lines */
.fancy-close::before,
.fancy-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.fancy-close::before {
  transform: rotate(45deg);
}

.fancy-close::after {
  transform: rotate(-45deg);
}

/* Pressed feedback */
.fancy-close:active {
  transform: scale(0.85);
}



.main-filter-menu{
  margin-left: auto;
  margin-right: 50px;
}


.site-footer {
  z-index: 1;
  position: fixed;
  bottom: 0;
  background: rgb(255, 255, 255, 0.8);
  left: 16px;
  font-size: 12px;
}



/* Map fills entire screen */
#map {
  /* position: relative;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;*/

  z-index: 1; 
  height: calc(100vh - 60px);
  width: 100%;
  top: 60px;
}

/* Floating advanced search panel */
.search-panel {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1000;
  /* background: rgba(44, 62, 80, 0.85); */
  background-color: var(--theme-dark);
  /* backdrop-filter: blur(6px); */
  /* -webkit-backdrop-filter: blur(6px); */
  /* padding: 15px; */
  border-radius: 8px;
  width: 280px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.search-panel h6 {
  font-weight: bold;
  margin-bottom: 10px;
  color: #f1c40f;
}
.search-panel select {
  margin-bottom: 10px;
}

.search-panel .search-panel-body{
  
}

.search-panel .search-panel-body .tab-content{
  padding: 16px 16px 20px;
  background-color: #233240;
}

.search-panel .search-panel-body .nav-tabs{
  border-color: #566573;
}

.search-panel .search-panel-body .nav-tabs .nav-link{
  color: #fff;
}

.search-panel .search-panel-body .nav-tabs .nav-link.active{
  background-color: #233240;
  color : #fff;
  border-color: #233240;
  border-bottom-color: #233240;
  box-shadow: 0px -3px 3px 0px rgb(72, 135, 202, 0.2);
}


.search-panel .search-panel-body .nav-tabs .nav-link:hover{
  border-color: #566573;
  border-bottom-color: #2c3e50;
  box-shadow: 0px -3px 3px 0px rgb(72, 135, 202, 0.2);
}

.search-panel .search-panel-body .nav-tabs .nav-link.active:hover{
  border-bottom-color: #233240;
}


.search-result-panel {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 1001;
  background-color: #fff;
  border-radius: 8px;
  width: 360px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateX(calc(-100% + -28px));
  transition: all 0.3s ease;
}

.search-result-panel.show{
  transform: translateX(0);
}


.search-result-panel .result-header{
  padding: 15px;
  color: #fff;
  background: var(--theme-dark);
  text-align: center;
  position: relative;
}

.search-result-panel .result-header .back-to-search {
  width: 26px;
  height: 26px;
  border: 0;
  outline: 0;
  padding: 0;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #fff;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.search-result-panel .result-body{
  height: calc(100vh - 163px);
  padding: 15px;
}

.search-result-panel .result-body .result-item{
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-result-panel .result-body .result-item th,
.search-result-panel .result-body .result-item td{
  background-color: transparent;
}

.search-result-panel .result-body .result-item:hover {
  transform: translateX(8px);
  background-color: #94a3b8;
}

.search-result-panel .result-body .result-item.active{
  transform: translateX(8px);
  background-color: #94a3b8;
}


.result-item + .result-item{
  margin-top: 15px;
}

.search-result-panel .result-body .result-disp-cont{
  overflow-Y: auto;
  padding: 10px;
}


.menu {
  padding: 20px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.6); /* semi-transparent dark */
}

.menu-item {
  font-size: 18px;
  margin: 15px 0;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s;
}

.menu-item:hover {
  color: #ffcc00; /* accent color */
  text-decoration: underline;
}

.offcanvas-body .menu-footer{
  position: fixed;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  width: calc(100% - 32px);
}


.plot-info-wrap{
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10001;
  background-color: #FFFFFF;
  transform: translateY(100%);
  transition: all;
}

.plot-info-wrap.show{
  transform: translateX(0);
}

.plot-info-wrap .header{
  padding: 15px;
  color: #fff;
  background: var(--theme-dark);
}


.plot-info-wrap .info-toggle-btn{
  width: 38px;
  height: 50px;
  position: absolute;
  top: -40px;
  background: var(--theme-dark);
  border: none;
  outline: none;
  padding: 12px 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 8px 8px 0 0;
  color: #fff;
  font-size: 18px;
  display: none;
}

.plot-info-wrap.active .info-toggle-btn{
  display: block;
}

@keyframes upMove {
  0% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-6px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
}

@keyframes downMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-6px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.up-arrow {
  animation: upMove 1s infinite;
  display: inline-block;
}

.down-arrow {
  animation: downMove 1s infinite;
  display: inline-block;
}

.plot-info-wrap .info-details-container{
  min-height: 230px;
}



/* Generic dashed square */
.dash-square {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px dashed;
  margin-right: 6px;
  vertical-align: middle;
}

/* Colors for different types */
.dash-square.purple { border-color: purple; }
.dash-square.red { border-color: red; }

/* Solid box */
.box {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  vertical-align: middle;
}
.box.vegetation { background: #32CD32; }
.box.misc { background: #216963; }


/* Line */
.line {
  display: inline-block;
  width: 20px;
  height: 4px;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 2px;
}
.line.blue { background: #0000CD; }
.line.bridge { background: #6E8B99; }
.line.compline { background: #67001A; }
.line.e33kv { background: #B41080; }
.line.e11kv { background: #ABFD00; }
.line.roads { background: #FF0000; }


.park-info-btn-wrap {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1000;
  background: #FFF;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  padding: 5px;
  box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  display: none;
}

.park-info-btn-wrap.show{
  display: block;
}

.park-info-btn-wrap>button {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0;
  font-size: 20px;
  background: #fff;
  color: var(--theme-dark);
}

.park-info-container {
  position: absolute;
  width: 450px;
  top: 28px;
  right: 16px;
  bottom: 19px;
  z-index: 1001;
  border: none;
  visibility: hidden;
  transform: translateX(calc(100% + 16px));
  transition:all 0.3s ease;
}

.park-info-container.show {
  visibility: visible;
  transform: translateX(0)
}

.park-info-container>.card-body{
  max-height: calc(100vh - 156px);
  overflow-y: scroll;
}

.park-info-container > .card-header{
  background-color: var(--theme-dark);
  color: #fff;
}
.park-info-container .accordion-button:focus{
  box-shadow: none !important;
}

.park-info-container .accordion-button:not(.collapsed) {
  box-shadow: none;
}

.park-info-container .accordion-body{
  padding: 10px;
}

.contact-link{
  text-decoration: none;
  font-weight: 600;
  display: block;
}

.btn-custom {
  --bs-btn-color: #fff;
  --bs-btn-bg: #18BC9C;
  --bs-btn-border-color: #18BC9C;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #128D75;
  --bs-btn-hover-border-color: #128D75;
  --bs-btn-focus-shadow-rgb: 60, 153, 110;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #128D75;
  --bs-btn-active-border-color: #128D75;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #18BC9C;
  --bs-btn-disabled-border-color: #18BC9C;
}


/* PLOT STATUS PILLS */
.bg-allotted {
  --bs-bg-opacity: 1;
  background-color: #9fbd3f !important;
}
.bg-cancelled {
  --bs-bg-opacity: 1;
  background-color: #c75462 !important;
}
.bg-closed {
  --bs-bg-opacity: 1;
  background-color: #e7a227 !important;
}
.bg-encroachment {
  --bs-bg-opacity: 1;
  background-color: #c79582 !important;
}
.bg-in-production {
  --bs-bg-opacity: 1;
  background-color: #5c3b68 !important;
}

.bg-litigation {
  --bs-bg-opacity: 1;
  background-color: #596c41 !important;
}

.bg-others {
  --bs-bg-opacity: 1;
  background-color: #787979 !important;
}
.bg-reserved {
  --bs-bg-opacity: 1;
  background-color: #f0c816 !important;
  color : #212529 !important;
}
.bg-residentia-purpose {
  --bs-bg-opacity: 1;
  background-color: #c15495 !important;
}
.bg-transfered{
  --bs-bg-opacity: 1;
  background-color: #755243 !important;
}
.bg-under-construction{
  --bs-bg-opacity: 1;
  background-color: #b62e38 !important;
}
.bg-vacant{
  --bs-bg-opacity: 1;
  background-color: #323232 !important;
}

.bg-na{
  --bs-bg-opacity: 1;
  background-color: #0dcaf0 !important;
  color : #212529 !important;
}



