body {
    margin: 0;
    font-family:serif;
    overflow: hidden;
}

nav {
    background-image: linear-gradient(to top, #4A90E2, #1E3C72);
    color: white;
    padding: 15px;
    text-align: center;
    position: relative;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
}
.nav-title {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Playfair Display', serif;
}
.nav-subtitle {
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    opacity: 0.8;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: end;
}
nav ul li {
    margin: 0 15px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: small;
    text-transform: uppercase;
}
nav ul li a:hover {
    color: #f1c40f;
}


/* Building Stats Popup */
#buildingStatsPopup {
    position: fixed;
    bottom: 10px;
    left: 33%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 210px;
}

.stats-popup {
    background: white;
    padding: 10px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.201);
    font-size: clamp(11px, 2vw, 12px);
    border: 1px solid #ccc;
}

.stats-popup p {
    margin: 8px 0 4px;
}

.progress {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    height: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #007bff;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-bar.rented {
    background-color: #ff9900;
}

.progress-bar.owned {
    background-color: #28a745;
}

.map-controls {
    position: absolute;
    top: 44.5%;
    left: 12px;
    
    display: flex;
    flex-direction: column;
    /* gap: 5px; */
    z-index: 1000;
}
.map-controls button {
    border: 1px solid #ccc;
    background: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
/*    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);*/
border: 1px solid #979494;
}
.button-container {
    position: absolute;
    top: 55%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.right-nav-btn{
    position: absolute;
    top: 38%;
    right: 5px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0px;
    text-align: center;
    z-index: 1000;
    background: #ffffff00;
    height: calc(100vh - 350px);
    width: 100px;
}
.map-btn, .map-btn-cat, .cat-search {
/*    background: linear-gradient(45deg,#ffcccc,white);*/

/*background: linear-gradient(45deg,#ffe7c0);*/

background: linear-gradient(45deg,#f5ede1);
    color: #1e3a55;
    border: 1px solid #aea8a8;
    padding: 8px 18px;
    font-size: small;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    font-weight: bolder;
    /* flex-wrap: wrap; */
    align-items: center;
    text-align: center;
    gap: 10px;
    font-family: 'Arial', sans-serif;
    text-transform: capitalize;
    transition: all 0.3s ease;
    /* width: 180px; */
    text-align: left;
    margin-top: 5px;
    box-shadow: none;
    text-decoration: none;
    box-shadow: 3px 3px 3px grey ;
    
    
}
/* .map-btn i, .map-btn-cat i {
    color: #333;
    font-size: 14px;
}
.map-btn i:hover .map-btn-cat i:hover{
    font-weight: bolder;
    color: #3246a8;
} */
.map-btn:hover, .map-btn-cat:hover ,.cat-search:hover {
    background: #f9c8b0;
    border-color: #aaa;
    color: #244463;
}

.map-btn:focus, .map-btn-cat:focus, .cat-search:focus {
    background: #f75656;
    border-color: #aaa;
    color: #fff;
}
.map-btn.active, .map-btn-cat.active,.cat-search.active {
    background: linear-gradient(45deg,#f75656) !important;
    border-color: #aaa;
    color: white !important;
    box-shadow: 4px 4px 3px grey !important;
}

.map-hover-btn {
    width: 55px; /* Adjust width to fit text */
    height: 55px; /* Adjust height to match proportion */
    border-radius: 12px; /* Rounded corners */
    background-image: url('image/mm.png'); /* Background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 10px;
    right: 20px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px; /* Space for text */
    font-family: Arial, sans-serif;
    color: white;
    font-size: x-small;
    /* font-weight: bold; */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Text shadow for visibility */
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    
    /* Inner bottom box shadow */
    box-shadow: inset 0px -15px 15px rgba(0, 0, 0, 0.5);
}



.layer-control {
    display: flex;
    position: absolute;
    bottom:20px ;
    right: 10px;
    background: rgba(255, 255, 255, 0);
    padding: 10px;
    border-radius: 5px;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); */
    gap: 10px;
    
}

.layer-control button {
    width: 55px;
    height: 55px;
    border-radius: 12px; /* Rounded corners */
    cursor: pointer;
     /* Background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative; /* Allows text positioning inside */
    border: none;
    font-family: Arial, sans-serif;
    color: #000;
    font-size: x-small;
/*    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Text shadow for visibility */
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    align-items: flex-end; /* Align text at the bottom */
    justify-content: center; /* Center text horizontally */
    padding-bottom: 5px; /* Space for text */
    transition: transform 0.2s ease-in-out, background-color 0.3s;
    /* Inner bottom box shadow */
    box-shadow:  0px -15px 15px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    border: 1px solid #aea8a8;
}

/* Style for the text inside the button */
.layer-control button span {
    display: block;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.7); /* Dark semi-transparent background for better visibility */
    border-radius: 4px;
}

.layer-control button:hover {
/*     background: #004b99; */
    border: 2px solid darkorange;
    transform: scale(1.1); /* Slight zoom-in effect */
}

/* Active (selected) state */
.layer-control button.active {
    border: 2px solid #e82424e3; /* Change color when selected */
    box-shadow: 0px -10px 20px rgba(0, 0, 0, 0.7), 0px 0px 8px rgba(0, 102, 204, 0.7); /* Enhanced shadow */
    transform: scale(1.15); /* Keep zoom effect when selected */
}

/* Allow multiple selections (toggle effect) */
.layer-control button.active:hover {
    border: 2px solid darkorange;
    transform: scale(1.15); /* Slightly larger on hover when active */
}
hr {
    border: none;
    border-top: 1px solid #2c2699;
    margin: 10px 0;
}

/* coordinates {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: x-small;
    z-index: 1000;
} */


@media print {
    body * {
        visibility: hidden;
    }
    #map, #map * {
        visibility: visible;
    }
    #map {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
    }
    
}
/* @keyframes slideRight {
0% {
transform: translateX(-5px);
opacity: 0.5;
}
50% {
transform: translateX(5px);
opacity: 1;
}
100% {
transform: translateX(-5px);
opacity: 0.5;
}
}

.map-btn i.fa-angle-double-right {
display: inline-block;
animation: slideRight 1.5s ease-in-out infinite;
} */
#movableOptions button ,.immovable-btn,.lapBuildingOptions{
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

#movableOptions button:hover ,.immovable-btn:hover{
    background: linear-gradient(to right, #2575fc, #6a11cb);
    transform: scale(1.05);
}

/* Style for the active (selected) button */
#movableOptions button.active,.immovable-btn.active {
    background: rgb(0, 16, 84) !important;
    color: white;
    transform: scale(1.12);
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.271);
}
.road-btn,.water-btn,.streetlight-btn,.building-btn,.lap-btn{
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

#lapBuildingTableBody{
    font-weight: 100;

}


.custom-select {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 13px;
    background-color: #fff;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    max-width: 250px;
}

.road-btn:hover, .water-btn:hover,.streetlight-btn:hover,.building-btn:hover,.lap-btn:hover{
    background: linear-gradient(to right, #2575fc, #6a11cb);
    transform: scale(1.05);
}
.road-btn.active,.water-btn.active,.streetlight-btn.active,.building-btn.active,.lap-btn.active{
    background: rgb(0, 16, 84) !important;
    color: white;
    transform: scale(1.12);
    box-shadow: 5px 5px 2px rgba(0, 0, 0, 0.271);
}
#popupContainer{
    z-index: 17000;
    float: right;
    width: 550px;
    margin-top: 3%;
    margin-right: 6%;
}
.toggle-btn {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateX(100%);
    background: #110690BF;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    z-index: 14999;
}

.layer-popup {
    position: absolute;
    top: 22.5%;
    right: 16%;
    background: rgba(0, 0, 0, 0.51);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    color: white;
    font-size: small;
    text-align: center;
}
.layer-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}
.layer-item img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    margin-right: 10px;
    border: 1px solid rgb(198, 246, 5);
}
.layer-item img:hover{
    border: 3px solid rgb(255, 162, 0);
}
.layer-item img:focus{
    border: 3px solid rgb(255, 162, 0);
}
/* Elegant Select Box Styling */


select:focus {
border-color: #007bff;
outline: none;
box-shadow: 0px 0px 8px rgba(0, 123, 255, 0.3);
}

/* Stylish Search Button */
.custom-button {
width: 100%;
padding: 12px;
background: linear-gradient(to right, #007bff, #0056b3);
color: white;
font-size: 14px;
font-weight: bold;
border: none;
border-radius: 8px;
cursor: pointer;
margin-top: 15px;
transition: all 0.3s ease;
}

.custom-button:hover {
background: linear-gradient(to right, #0056b3, #004494);
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
/* Container for buttons */
#button-container {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    padding: 10px 0;
}

/* Common button styles */
#button-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid #6c57e2;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    font-family: Georgia, 'Times New Roman', Times, serif;
    cursor: pointer;
    background-color: #f8f9fa; /* Light background */
    color: #6c57e2; /* Elegant red */
    box-shadow: 3px 3px rgba(0, 0, 0, 0.148);
    transition: all 0.3s ease-in-out;
}

/* Icons inside buttons */
#button-container button i {
    font-size: 18px;
}

/* Hover effects */
#button-container button:hover {
    background-color: #6c57e2;
    color: rgb(0, 0, 0);
    transform: translateY(-2px);
}

/* Active state */
#button-container button:active {
    transform: scale(0.98);
}

/* Selected button */
#button-container button.active {
    background-color: #6c57e2;
    color: white;
}
#assetChart{
    height: 350px;
}
