/* Define Theme Colors */
:root {
    --primary-color: #6200ea;
    /* Vibrant purple for accent */
    --secondary-color: #f5f5f5;
    /* Light gray for background */
    --text-color: #333333;
    /* Dark text color */
    --hover-bg-color: #ede7f6;
    /* Light purple hover */
    --button-color: #03dac6;
    /* Teal for buttons */
    --heading-color: var(--primary-color);
    --shadow-color: rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
    --glow-color: rgba(98, 0, 234, 0.5);
    /* Glow effect for animations */
}

/* Global Styles */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Form controls don't inherit font-family from body by default in browser
   UA stylesheets — without this they render in the OS/browser system font
   instead of Poppins, breaking visual consistency across the app. */
button, input, select, textarea, optgroup {
    font-family: inherit;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 15px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 15px var(--shadow-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 90dvw;
    z-index: 1000;
    /* animation: fadeInDown 0.5s ease-in-out; */
    border: 2px solid transparent;
    background-clip: padding-box;
    /* animation: glowing-border 3s infinite linear; */
}

#title {
    font-size: 20px;
    font-weight: bold;
    /* letter-spacing: 1px; */
    color: var(--secondary-color);
}

#nav-buttons {
    display: flex;
    gap: 15px;
}

#nav-buttons button {
    background: var(--button-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.4s ease;
    flex-wrap: wrap;
}

#nav-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
    background-color: var(--hover-bg-color);
    color: var(--text-color);
}

/* Menu */
#menu {
    position: absolute;
    top: calc(80px + 20px);
    /* Space below the navbar */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--secondary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 15px;
    width: 80%;
    max-width: 900px;
    z-index: 999;
    display: none;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#menu.hidden {
    display: none;
}

#menu.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#menu h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: var(--heading-color);
    font-weight: bold;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

#menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 15px 0;
}

#menu ul li {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--text-color);
}

#menu ul li input {
    margin-right: 8px;
}

/* Background Options */
.background-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.background-options button {
    display: inline-block;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
    box-shadow: 0 3px 6px var(--shadow-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease-in-out;
}

.background-options button:hover {
    background-color: var(--hover-bg-color);
    color: var(--text-color);
    transform: scale(1.1);
}

/* Full-Screen Map */
#map {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind the navbar */
    transition: all 0.5s ease-in-out;
}
#map canvas{
    z-index: -2;
}

/* Navbar Dropdowns */
.navbar-dropdowns {
    display: flex;
    gap: 15px;
    margin-left: 20px;
    padding-left: 10px;
    padding-right: 10px;
    flex-wrap: wrap;
    /* Wraps the dropdowns for smaller screens */
    width: 100%;
    /* Make the dropdowns occupy full width on smaller screens */
}

.navbar-dropdowns select {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    width: 150px;
    /* Fixed width for consistency */
}

/* Media Query for Small Screens */
@media (max-width: 768px) {
    #navbar {
        width: 100%;
        /* Full width for smaller screens */
        padding: 10px;
    }

    #nav-buttons {
        justify-content: center;
        /* Center the content on small screens */
        gap: 10px;
    }

    /* Stack the dropdowns on a new line */
    .navbar-dropdowns {
        flex-direction: column;
        /* Stack dropdowns vertically */
        align-items: stretch;
        /* Ensure dropdowns expand to full width */
    }

    /* Make dropdowns take up more space */
    .navbar-dropdowns select {
        width: 100%;
        /* Full width on smaller screens */
        margin-bottom: 10px;
        /* Add space between dropdowns */
    }
}

/* Style for Navbar Buttons */
.basemap-btn {
    background-color: #f0f0f0;
    color: #333;
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

/* Style for active (selected) background map button */
.basemap-btn.selected {
    background-color: #007BFF;
    /* Blue color for selected button */
    color: #fff;
    /* Text color for selected button */
    border-color: #0056b3;
    /* Border color for selected button */
}

/* Button Hover Effect */
.basemap-btn:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

/* Keyframe Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        /* Starts above */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Ends at the center */
    }
}

@keyframes glowing-border {
    0% {
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--glow-color), 0 0 30px var(--primary-color);
    }

    50% {
        box-shadow: 0 0 15px var(--primary-color), 0 0 25px var(--glow-color), 0 0 40px var(--primary-color);
    }

    100% {
        box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--glow-color), 0 0 30px var(--primary-color);
    }
}

/* Info PAnel */
#info-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    max-height: 80%;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#info-panel.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.info-title {
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.info-subtitle {
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.info-section {
    padding: 5px;
    overflow: auto;
    scrollbar-width: thin;
    
}

.info-section:last-child {
    border-bottom: none;
}

.info-section h3 {
    margin: 0;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 2px;
}

.section-content {
    padding-left: 10px;
    margin-top: 5px;
}

.value-row {
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.value-row strong {
    color: #333;
}

/* Animation for Panel */
@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    color: #777;
    cursor: pointer;
    outline: none;
    padding: 0;
    transition: color 0.2s ease-in-out;
}

.close-btn:hover {
    color: #2c3e50;
}

#simplified-info-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 500px;
    max-height: 80%;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#simplified-info-panel.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.info-survey-section {
    display: flex;
    justify-content: space-between;
    padding: 0px 5px 5px;
    column-gap: 10px;
    width: 100%;
    height: max-content;
    border-bottom: 1px solid #ddd;
}

.info-icon-img-style{
    width: 22px;
}

.district-icon.active .info-icon-img-style{
    padding-bottom: 6px;
    filter: invert(100%);
}


.district-taluk-village {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    column-gap: 5px;
    width: 100%;
    height: max-content;
}

.district-taluk-village div {
    font-size: 12px;
    color: #333;
    border: 0.5px solid rgba(0, 0, 0, 0.137);
    padding: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.062);
    border-radius: 20px;
}

.info-survey-section div {
    font-size: 12px;
    color: #333;
}
.district-taluk-village strong {
    color: #555;
}

.lgd-codes {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
    border-bottom: 1px solid #ddd;
}

.lgd-codes div {
    margin-bottom: 5px;
}

.lgd-codes strong {
    color: #333;
}

/* Loader */
.loader_wrap {
    position: fixed;
    top: 43%;
    left: 39%;
    z-index: 1002;
    width: 337px;
}

.note{
    font-size: 12px;
    color: red;
    margin-bottom: 1px !important;
}
/* Icons */
.info-icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    vertical-align: middle;
    margin-top: 5px;
    margin-bottom: 5px;
}

.info-icons i {
    cursor: pointer;
    font-size: 18px;
    /* color: white; */
    /* Icon color */
    /* padding: 10px; */
    border-radius: 50%;
    /* Makes it circular */
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.district-icon{
    /* color: #336c7b!important; */
    /* background-color: white!important; */
    padding: 0px!important;
    border-radius: 20px!important;
    border: none !important;
    width: 35px;    
}

.district-icon img{
    width: 100%;
    object-fit: cover;
}
/* .district-icon :hover{
    transform: scale(1.4);
    transition: all 0.4s ease-in-out;
} */
#myTab li:hover{
    transform: scale(1.1);
    transition: all 0.1s ease-in-out;
}
.district-icon.active{
    background-color: #336c7b!important;
    color: rgb(255, 255, 255)!important;
    border: inset 10px solid white;
}

.info-icons i:hover {
    opacity: 0.8;
    /* Slight dimming effect on hover */
}

#vertex-info-panel {
    position: absolute;
    top: 90px;
    right: 20px;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 500px;
    max-height: 328px;
    overflow: hidden;
    /* Prevent content from overflowing the panel */
    display: none;
    /* Initially hidden */
    z-index: 1010;
}

#vertex-info-title {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007bff;
    color: #fff;
    /* Background color for title */
    padding: 10px;
    position: sticky;
    top: 0;
    /* Stick to the top of the panel */
    z-index: 1011;
    /* Higher z-index to ensure it stays on top */
}

#close-panel-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

#close-panel-btn:hover {
    color: red;
}

#vertex-info-content {
    padding: 10px;
    max-height: 320px;
    /* Ensure it doesn't overflow the panel */
    overflow-y: auto;
    /* Enable vertical scrolling */
    background-color: #fff;
    /* Background for content area */
}

/* Areg Info Panel */
#areg-info-panel {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 500px;
    height: 328px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1010;
    display: none;
}

#areg-info-panel .panel-header {
    background-color: #007bff;
    color: white;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    position: sticky;
    /* Ensures it stays fixed at the top */
    top: 0;
    z-index: 1;
}

.panel-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#areg-info-panel .tabs {
    display: flex;
    justify-content: space-evenly;
    background-color: #eee;
    border-bottom: 1px solid #ccc;
    position: sticky;
    /* Keeps tabs fixed while scrolling */
    top: 40px;
    /* Adjust based on panel header height */
    z-index: 1;
}

#areg-info-panel .tabs button {
    flex: 1;
    padding: 10px;
    background-color: #fff;
    border: none;
    border-right: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
}

#areg-info-panel .tabs button.active {
    background-color: #ddd;
    font-weight: bold;
}

#areg-info-panel .tab-content {
    height: calc(100% - 80px);
    /* Adjust based on panel header and tabs height */
    overflow-y: auto;
    padding: 10px;
}
.tab-content{
    border: 1px solid #4b4b4b0c;
    padding: 9px;
    border-radius: 20px;
    margin: 10px -2px;
}

#areg-info-panel table {
    width: 100%;
    border-collapse: collapse;
}

#areg-info-panel table thead {
    position: sticky;
    top: 0;
    /* Keeps the table headers fixed */
    background-color: #ddd;
    z-index: 1;
}

#areg-info-panel table th,
#areg-info-panel table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ccc;
}

#areg-info-panel table th {
    background-color: #f2f2f2;
}


/* Map Icons on bottom left */
#bottom-left-container {
    /*position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    z-index: 1000;
    width: 100%;*/

    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    z-index: 1000;
    width: 100%;
/*    background: #585858;*/
    background: linear-gradient(45deg, rgb(3, 17, 61), rgb(61, 128, 137));
    justify-content: center;
    font-size: 10px;
    padding: 5px!important;
}

#company-logo img {
    width: 30px;
    /* Adjust logo size */
    height: auto;
/*    margin-top: 10px;*/
    text-align: center;
} 

.logo_tnega {
    width: 30px;
    height: auto;
    text-align: center;
}

#map-icons {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Space between icons */
}

.map-icon {
    display: flex !important;
    /* Override inline-block */
    background: var(--button-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.4s ease;

}

.map-icon:hover {
    background-color: #0056b3;
    /* Darker blue on hover */
    transform: scale(1.1);
    /* Slight zoom effect */
}

.map-icon:active {
    background-color: #003f7f;
    /* Even darker blue for active state */
    transform: scale(1);
    /* Reset scale on click */
}

/* FMB Sketch Panel */
#fmb-sketch-info-panel {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 454px;
    height: 430px;
    margin-bottom: 10px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.panel-header {
    background: #007BFF;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.panel-content {
    height: calc(100% - 40px);
}

#fmb-fullscreen-btn,
#fmb-close-btn {
    background: white;
    color: #007BFF;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#fmb-fullscreen-btn:hover,
#fmb-close-btn:hover {
    background: #0056b3;
    color: white;
}

/* IGR Info Panel */
#igr-info-panel {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 500px;
    height: 328px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1010;
    display: none;
    transition: all 0.3s ease-in-out;
}

#igr-info-panel-header {
    background: #007BFF;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}


#igr-close-btn {
    background: white;
    color: #007BFF;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#igr-close-btn:hover {
    background: #0056b3;
    color: white;
}

#igr-card-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two cards per row */
    gap: 15px;
    /* Space between cards */
    padding: 15px;
}

.igr-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.igr-card div {
    margin-bottom: 5px;
}

.igr-card strong {
    display: block;
    font-size: 12px;
    color: #555;
}

/* Crop Info Panel */
#crop-info-panel {
    position: absolute;
    top: 90px;
    right: 20px;
    width: 500px;
    height: 328px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1010;
    display: none;
    transition: all 0.3s ease-in-out;
}

#crop-info-panel-header {
    background: #007BFF;
    color: white;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}


#crop-close-btn {
    background: white;
    color: #007BFF;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

#crop-close-btn:hover {
    background: #0056b3;
    color: white;
}

#crop-card-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Two cards per row */
    gap: 15px;
    /* Space between cards */
    padding: 15px;
}

.crop-card {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.crop-card div {
    margin-bottom: 5px;
}

.crop-card strong {
    display: block;
    font-size: 12px;
    color: #555;
}




/* new styles */
header{
    background: linear-gradient(45deg,rgb(3, 17, 61),rgb(61, 128, 137));
    z-index: 99;
    position: fixed;
    width: 100%;
    padding: 5px;
    line-height: 50px;
}

.offcanvas.offcanvas-start.menu{
    background-color: rgba(0, 60, 100, 0.966);
    backdrop-filter: blur(5px);
}
.offcanvas.offcanvas-start.menu,
.offcanvas.offcanvas-end.menu{
    top: 72px;
    z-index: 98;
}
.toggle-menu{
    background-color: #1d000000;
    color: #ffffff;
    line-height: normal;
    font-weight: 800;
    font-size: 32px;
    border-radius:5px;
    border: none;
}
.toggle-menu:hover{
    background-color: #1d000000;
    color: #ffa600;
    line-height: normal;
    font-weight: 800;
    font-size: 32px;
    border-radius:5px;
    border: none;
}
.filter-menu{
    background-color: #1d000000;
    color: #ffffff;
    line-height: normal;
    font-weight: 800;
    font-size: 22px;
    border-radius:5px;
    border: none;
}
.filter-menu:hover{
    background-color: #1d000000;
    color: #ffa600;
    line-height: normal;
    font-weight: 800;
    font-size: 22px;
    border-radius:5px;
    border: none;
}
.download-menu{
    background-color: #1d000000;
    color: #ffffff;
    line-height: normal;
    font-weight: 800;
    font-size: 22px;
    border-radius:5px;
    border: none;
}
.download-menu:hover{
    background-color: #1d000000;
    color: #ffa600;
    line-height: normal;
    font-weight: 800;
    font-size: 22px;
    border-radius:5px;
    border: none;
}
.dashboard-menu{
    background-color: #1d000000;
    color: #ffffff;
    line-height: normal;
    font-weight: 800;
    font-size: 22px;
    border-radius:5px;
    border: none;
}
.dashboard-menu:hover{
    background-color: #1d000000;
    color: #ffa600;
    line-height: normal;
    font-weight: 800;
    font-size: 22px;
    border-radius:5px;
    border: none;
}

/* ===== Download boundary panel ===== */
.dl-icon-wrap{
    position: relative;
    display: inline-block;
    line-height: 1;
}
.dl-count-badge{
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg,#ff5f6d,#ff9a44);
    color:#fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.35);
    animation: dlBadgePop .25s ease;
    z-index: 5;
}
@keyframes dlBadgePop{
    0%{ transform: scale(0.4); opacity: 0; }
    70%{ transform: scale(1.15); opacity: 1; }
    100%{ transform: scale(1); }
}

.dl-header{
    background: linear-gradient(45deg,#03113d,#3d8089);
    border-radius: 14px;
    padding: 14px 20px !important;
    margin: -10px -10px 12px -10px;
    color:#fff;
    display: flex;
    align-items: center;
}
.dl-header .offcanvas-title{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color:#fff;
    margin: 0;
    line-height: 1.3;
}
.dl-header .btn-close{
    margin-left: auto;
    opacity: .9;
}

.dl-field-label{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color:#03113d;
    margin-bottom: 4px;
}
.dl-required{ color:#e11d48; }

.dl-select-all-wrap{
    background:#e6f6f8;
    border-radius: 999px;
    padding: 2px 10px 2px 8px;
}

.dl-village-list{
    max-height: 190px;
    overflow-y: auto;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    padding: 6px 10px;
    background: #f8fafc;
}
.dl-village-list .form-check{
    padding: 6px 8px 6px 2.2em;
    border-radius: 8px;
    transition: background .15s ease;
}
.dl-village-list .form-check:hover{
    background: #eef8f9;
}
.dl-village-list .form-check-label{
    width: 100%;
    cursor: pointer;
}

.dl-submit-btn{
    /* Neutralize Bootstrap's --bs-btn-*-color variables (base/hover/active/disabled) so
       our own white text wins in every state, not just the default one. */
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    --bs-btn-disabled-color: #fff;
    background: linear-gradient(135deg,#3d8089,#03113d);
    color:#fff;
    font-weight: 700;
    letter-spacing: .02em;
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    box-shadow: 0 6px 16px rgba(3,17,61,0.35);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.dl-submit-btn:hover:not(:disabled),
.dl-submit-btn:focus:not(:disabled),
.dl-submit-btn:active:not(:disabled){
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(3,17,61,0.45);
    color:#fff;
    background: linear-gradient(135deg,#3d8089,#03113d);
}
.dl-submit-btn:disabled{
    background: #b9c4d4;
    box-shadow: none;
    opacity: .8;
    color:#fff;
}

.dl-count-pill{
    display: inline-block;
    background: #3d8089;
    color:#fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 999px;
    padding: 2px 8px;
    margin-left: 4px;
}

.dl-selection-summary{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #eef8f0;
    border: 1px solid #bfe6c8;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 14px;
}
.dl-selection-summary-text{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #14532d;
    font-weight: 600;
}
.dl-selection-summary-text i{
    color: #16a34a;
    font-size: 16px;
}
.dl-edit-btn{
    background: #fff;
    border: 1px solid #16a34a;
    color: #16a34a;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.dl-edit-btn:hover{
    background: #16a34a;
    color: #fff;
}

.dl-progress-wrap .progress{
    border-radius: 999px;
    background: #e9edf3;
    overflow: hidden;
}
.dl-progress-wrap .progress-bar{
    background: linear-gradient(135deg,#3d8089,#5fb3ba);
    transition: background-color .3s ease, width .3s ease;
}
.dl-progress-wrap.completed .progress-bar{
    background: #16a34a !important;
    animation: none !important;
}
.dl-progress-wrap.completed #dl-progress-label{
    color:#16a34a !important;
    font-weight: 600;
}
.dl-progress-wrap.failed .progress-bar{
    background: #dc3545 !important;
    animation: none !important;
}
.dl-progress-wrap.failed #dl-progress-label{
    color:#dc3545 !important;
    font-weight: 600;
}

#dl-downloads-list .download-row{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #16a34a;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    animation: dlRowIn .25s ease;
    transition: box-shadow .15s ease;
}
#dl-downloads-list .download-row:hover{
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
@keyframes dlRowIn{
    from{ opacity: 0; transform: translateY(-6px); }
    to{ opacity: 1; transform: translateY(0); }
}
#dl-downloads-list .download-row .dl-info{
    font-size: 12px;
    line-height: 1.4;
    min-width: 0;
}
#dl-downloads-list .download-row .dl-info strong{
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
#dl-downloads-list .download-row .dl-actions{
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}
.offcanvas.offcanvas-end.menu{
    background-color: rgb(255, 255, 255);
    /* height: min-content; */
    height: 690px;
    overflow: overlay;
    border-radius: 20px;
    padding: 10px;
    backdrop-filter: blur(5px);
    border: none;
    font-size: 12px;
    width: 22%;
}

.dropdowns select{
    padding: 4px 10px;
    border-radius: 10px;
    background-color: #003f7f;
    color: rgb(255, 255, 255);
    width: 100%;
    margin: 5px 0px;
    font-size: 12px!important;
}
.dropdowns .form-select{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e")!important;
}
.dropdowns option{
    background-color: white;
    color:#003f7f ;
}

.listings{
    display: flex;
    flex-direction: column;
}
.listings input{
    margin: 2px 3px;
}

.thematic-listings{
    display: flex;
    flex-direction: row;
    gap: 22px;
}
.thematic-listings input{
    margin: 2px 3px;
}
.thematic-listings img:hover {
    transform: scale(1.2);
    transition: 0.2s;
}

.gears{
    display: flex;
    position: fixed;
    bottom: 10%;
    left: 0rem;
    flex-direction: column;
    z-index: 95;
    align-items: center;
  }
  .gears a{
    box-shadow: none;
  }
  .menu-body{
    height: 100%;
  }
  .map-view-layer{
    width: 90px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px;
    padding: 5px;
    background-color: #e4ebf5;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    margin: 3px;
  }
  .map-view-layer:hover,.map-view-layer.active {
    background-color: var(--primary);
    color: white;
    cursor: pointer;
    transition: 0.2s all ease;
  }
  .map-view-layer img{
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 3/2;
    object-fit: cover;
  }
  .map-view-layer p{
    margin-bottom: 0px;
  }
  
  .tab-one .controls{
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .offcanvas.offcanvas-start.side-menu{
    position: absolute;
    top: 0;
  }
  
  .whole-screen{
    position: relative;
    overflow: hidden;
  }
  .rotation {
    position: relative;
  }
  .sub-rotate-btns{
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;  
    /* gap: 40px; */
    top: 50%;
    transform: translate(-50%,-50%) scale(0);
    transition: all 0.2s linear;
    left: 50%;
    width: 80px;
    height: 80px;
    border-radius: 100px;
    overflow: hidden;
    z-index: -1;
  }
  .rotation-right,
  .rotation-left{
    border: none;
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: #e4ebf5;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
  }
  .rotation-right:hover,
  .rotation-left:hover{
  background-color:rgb(167, 167, 167);
  }
  .rotation-left{
  padding-left: 25px;
  padding-right: 10px;
  }
  .rotation-right{
    padding-left: 10px;
    padding-right: 25px;
  }
  .sub-rotate-btns.active{
    transform: translate(-50%,-50%) scale(1);
    transition: all 0.2s linear;
  }
  
  #arrows-inside{
    width: 100%;    
    transform: translate(0);
    position: static;
  }
  .map-footer{
    display: flex;
    position: fixed;
    bottom: 0px;
    left: 20px;
    flex-direction: column;
    align-items: unset;
    text-align: left;
  }
  .scaling{
    display: flex;
    border: none;
    flex-direction: row;
    align-items: baseline;
    gap: 5px;
    width: max-content;
    padding: 2px 4px;
    border-radius: 5px;
    justify-content: end;
  }
  #paaa{
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    height: 5px;
  }

  
.layer-btns{
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-top: 10px;
    cursor: pointer;
    background-color: #ffffff;
    color: rgb(0 38 117);
    transition: all 0.2s ease;
    margin-left: 20px;
    border: none;
}
    .layer-btns.rotation{
      color: var(--primary);
      /* background-color:#ffffff; */
      }
      .layer-btns.rotation:hover,.layer-btns:hover {
        color: #ffffff;
        background-color: rgb(0 38 117)!important;
      }
    
    .layer-btns:hover{
    box-shadow: 0.3rem 0.3rem 0.6rem var(--greyLight-2), -0.2rem -0.2rem 0.5rem var(--white);
    }
    .north{
        width: 30px;
        margin-top: -5px;
    }
    .maptype {
        display: inline-block;
        padding: 4px 12px;
        border: 2px solid #ccc;
        border-radius:20px;
        cursor: pointer;
        transition: background 0.3s, color 0.3s;
        margin-bottom: 5px;
    }
    
    .maptype input {
        display: none; /* Completely hide the radio button */
    }
    
    .maptype input:checked + label,
    .maptype:has(input:checked) { 
        background-color: #003f7f;
        color: white;
        border-color: #003f7f;
    }

    .accordion-item,.accordion-item .accordion-button{
        border-radius: 20px 20px 20px 20px!important;
    }
    .accordion-button{
        padding: 6px 1.25rem!important;
        font-size: 12px !important;
    }
    .offcanvas-body{
        padding: 0.25rem!important;
    }
button.accordion-button{
    background-color: #003f7f!important;
}

button.accordion-button{
    color: white!important;
}
.accordion-button::after{
filter: invert(100%);
}

/* .info-icons{
    width: 50px;
    height: 35px;
} */
.modal {
    pointer-events: none;
}

.modal-dialog {
    position: absolute;
    pointer-events: auto;
    top: 10%;
    left: 2rem;
    max-width: 470px!important;
    cursor: auto;
    /* transform: translateX(-50%)!important; */
    margin: 0px 0px!important;
}
#legendmodal .modal-dialog {
    position: absolute;
    pointer-events: auto;
    top: 20%;
    left: 4rem;
    max-width: 470px!important;
    cursor: auto;
    /* transform: translateX(-50%)!important; */
    margin: 0px 0px!important;
}
.modal-body{
    cursor: initial;
}
.modal-header{
    padding: 4px 1rem!important;
}

.modal-header {
    cursor: grab;
    background: linear-gradient(45deg, #061841, #3c7d87);
    color: white;
    border-radius: 20px 20px 0 0!important;
}

.modal-content{
    background-color: #ffffff!important;
    border-radius: 20px!important;
}

/* .modal-dialog above is pinned to a fixed top/left corner (position:
   absolute; top:10%; left:2rem) for every modal on the page, which breaks
   Bootstrap's .modal-dialog-centered flex centering (it only works when
   .modal-dialog keeps its default position:relative). This modal needs
   genuine viewport centering, so restore the default here, scoped to just
   this modal to avoid touching the app-wide corner-positioned modals. */
#ruralCollablandModal .modal-dialog {
    position: relative;
    top: auto;
    left: auto;
    max-width: 1140px!important;
    margin: 1.75rem auto!important;
}
/* Scoped scroll instead of Bootstrap's .modal-dialog-scrollable: that class
   forces .modal-dialog itself to calc(100% - 1rem) tall, and since this
   modal's actual content is much shorter than a full viewport, .modal-
   dialog-centered then centers the short card inside that oversized
   invisible wrapper — leaving transparent gaps above/below the card where
   this app's deliberately-transparent backdrop (.modal-backdrop.show,
   z-index:-1 above) reveals whatever page content sits behind it. Capping
   just .modal-body directly gives the same "scroll when content overflows"
   behavior without inflating the wrapper. */
#ruralCollablandModal .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* This app's floating panels (Land Parcel Information, FMB Sketch, the
   Layers and Tools offcanvas, etc.) are all deliberately non-blocking —
   several can be open over the map at once — so which one visually wins an
   overlap comes down to z-index/DOM order, not modal exclusivity. This
   verification modal should always read as the topmost one when open. */
#ruralCollablandModal {
    z-index: 2000!important;
}




  .new-div {
    margin: 10px;
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
  }

/* This modal's .modal-dialog is otherwise pinned to the app-wide fixed
   top/left corner position (same issue #ruralCollablandModal above already
   works around) and capped at modal-xl's ~1140px — override both so it
   centers properly. Fixed size (not per-image) is deliberate: every raster,
   regardless of its own dimensions, opens in the exact same size box every
   time, with the image fit-scaled inside it (see .raster-preview-viewport
   below) — min() keeps it safe on narrow/short screens without changing the
   size on a normal desktop. */
#rasterPreviewModal .modal-dialog {
    position: relative;
    top: auto;
    left: auto;
    width: min(1200px, 95vw) !important;
    max-width: min(1200px, 95vw) !important;
    margin: 1.75rem auto!important;
}

/* This app's modal backdrops are app-wide transparent/non-blocking (z-index:-1,
   see the .modal-backdrop.show rule further down) so several floating panels
   can stay open over the map at once. That reads as broken for a focused
   image viewer like this one, though — the map/top bar/Filter panel stay
   fully lit up behind it. Scoped fix: scripts.js toggles body.raster-preview-open
   only while THIS modal is open, restoring a real dark backdrop just for it
   without touching any other modal's intentionally non-blocking behavior. */
#rasterPreviewModal {
    z-index: 2000!important;
}
body.raster-preview-open .modal-backdrop {
    z-index: 1990!important;
    opacity: 0.65!important;
    background-color: #000!important;
}

/* Raster Preview modal — zoom/pan/rotate toolbar + viewport. Pushed between
   the title and the close button via margin-left:auto on the toolbar itself
   (flex order follows DOM order), so it stays inside the same dark-gradient
   header as every other modal in this app with no header-specific override. */
.raster-preview-toolbar {
    display: flex;
    gap: 6px;
    margin-left: auto;
    margin-right: 12px;
}
.raster-preview-toolbar .btn {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.raster-preview-toolbar .btn:hover {
    color: #061841;
    background-color: #fff;
}

/* Fixed-height clipping viewport the canvas pans/zooms/rotates inside —
   without this, scaling the canvas up via CSS transform would just overflow
   the modal instead of staying contained. */
.raster-preview-viewport {
    /* Fixed size, same every time this modal opens, for any raster — the
       image itself is fit-scaled to this box in _initRasterView() rather
       than the box being resized to match the image. */
    width: 100%;
    height: min(650px, 70vh);
    position: relative;
    overflow: hidden;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: grab;
}
.raster-preview-viewport.raster-preview-grabbing {
    cursor: grabbing;
}
#rasterPreviewCanvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    /* transform (translate/scale/rotate) is set inline by scripts.js on every
       interaction — this base transform only centers the canvas before any
       pan/zoom/rotate has been applied. */
    transform: translate(-50%, -50%);
}



.lpi-modal-body{
    padding: 0px!important;
}

/* Scrollable tab content */
.tab-content {
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
}

/* Style for tabs */
.nav-tabs .nav-link {
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 0.5rem 1rem;
}

.nav-tabs .nav-link.active {
    background-color: #007bff !important ;
    color: white !important;
}

#areg-tab-container{
    max-height: 400px;
}
#staticBackdrop #lpi-container{
    font-size: 12px;
}
#legend-content {
    max-height: 200px;
    overflow-y: auto;
    background: #003f7f;
    padding: 10px;
    border-radius: 5px;
    text-align: left;
}
#accordionPanelsStayOpenExample .accordion-item{
    margin-bottom: 3px;
}
.copyrights{
    color: #fff;
    /* font-size: 10px; */
}
.mousePosition{
    color: #fff;
    /* font-size: 12px; */
}
.offcanvas-header{
    padding: 1rem 1rem 0rem 0rem !important;
}
.more_info{
    position: relative;
    top: 55px;
    font-size: 12px;
    z-index: 2;
    width: 100%;
    text-align: -webkit-center;
}
.more_info_content{
    background-color: #042fc5;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    padding: 6px;
    border-radius: 10px;
    width: 20%;
    text-shadow: 0px 0px 1px white;
    box-shadow: 2px 2px 10px rgb(0, 0, 0);
}

.disclaimer .modal-dialog {
    position: initial !important;
    max-width: auto;
    cursor: auto;
    transform: none !important;
    margin: 0px auto !important;
    transform: none !important;
}
.font12 {
    font-size: 12px;
    cursor: pointer;
}
.txt-aligns {
    text-decoration: none;
    position: relative;
    top: 1.5px;
}
.toast-top-right{
    top: 0px !important;
}

#JSB,#EC{
    width: 16px;
    padding-bottom: 6px;
    filter: invert(29%) sepia(92%) saturate(746%) hue-rotate(130deg) brightness(93%) contrast(90%);
}
#subdivisionDropdown{
    padding: 0px 5px;
    font-size: 13px !important;
}
#backto{
    font-size: xx-small;
}
/* Style the main accordion items */
#accordionPanelsLayers > .accordion-item > .accordion-header > .accordion-button {
    background-color: #003f7f !important; /* Main accordion background */
    color: white !important;
    font-weight: bold;
    border-radius: 5px;
}

/* Style the nested accordion items */
#accordionPanelsLayers .accordion-body .accordion .accordion-item .accordion-header .accordion-button {
    background-color: #00adaa !important; /* Nested accordion background */
    color: #fff !important;
    font-weight: normal;
}

/* Optional: Change color on hover for better UI */
#accordionPanelsLayers > .accordion-item > .accordion-header > .accordion-button:hover {
    background-color: #0a6aca !important;
}

#accordionPanelsLayers .accordion-body .accordion .accordion-item .accordion-header .accordion-button:hover {
    background-color: #0dcac7 !important;
}
.accordion-body{
    padding: 0.5rem 1.0rem !important;
}
.pdfheader{
    background: linear-gradient(360deg, #061841, #3c7d87);
    color: white;
}
.pdf-close:hover{
    color: #fff;
}

.thematic-icon-card {
    background: #ffffff;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    /* border-radius: 6px; */
    /* padding: 8px 12px; */
    margin: 4px;
    /* width: 180px;  height: 80px; */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: center; */
    text-align: center;
    position: relative;
    width: 100px;
    /* height: 100px; */
    /* padding-bottom: 40px; */
    overflow: visible;
    /* justify-content: center; */
    /* border: 1px solid #ddd; */
}

.thematic-icon-card-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: left;
    background: #e0e0e000 !important;
}
.thematic-icon-card div{
    line-height: 8px;
    margin-top: 2px;
}

.thematic-icon-card strong{
    text-wrap: wrap;
}

.JSB-icon-card,.thematic-icon-card,.masterplan-icon-card{
    cursor: pointer!important;
    transition: all 0.1s ease-in-out;

}
 .thematic-icon-card:hover, .thematic-icon-card.active{
    background: #e0e0e000 !important;
    transform: scale(1.1);
    color: blue;
    font-weight: 600;
    transition: all 0.5s ease-in-out;
}

.thematic-icon-card:hover img, .thematic-icon-card.active img{
    /* background: #e0e0e000 !important; */
    transform: scale(1.1) rotateZ(360deg);
    transition: all 0.2s ease-in-out;
}


.thematic-icon-card-content {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem; /* optional spacing between cards */
    padding: 0.5rem;
  }
  
  /* Optional: Hide scrollbar */
  .thematic-icon-card-content::-webkit-scrollbar {
    display: none;
  }
  .thematic-icon-card-content {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
  }
  /* .p-a{
    position: absolute;
    left:50%;
    transform: translateX(-50%);
    width: 12ch;
    text-overflow: wrap;
  } */
  







.JSB-icon-card:hover,.JSB-icon-card.active{
    /* background: linear-gradient(to right, rgb(26 49 102), rgb(25 47 82)) !important; */
    transform: scale(1.1);
    transition: all 0.1s ease-in-out;
    font-weight: 600!important;
}
.JSB-icon-card img{
    /* width: 100%; */
    /* height: 50px; */
    padding: 2px;
    margin: 0px;
    border-radius: 10px;
    /* background:linear-gradient(to right, rgb(26 49 102), rgb(25 47 82)); */
    background-color: #2d816c;
}
.masterplan-icon-card img{
    /* width: 100%; */
    /* height: 50px; */
    padding: 2px;
    margin: 0px;
    border-radius: 10px;
    /* background:linear-gradient(to right, rgb(26 49 102), rgb(25 47 82)); */
    background-color: #2d816c;
}
.masterplan-icon-card:hover,.masterplan-icon-card.active{
    /* background: linear-gradient(to right, rgb(26 49 102), rgb(25 47 82)) !important; */
    transform: scale(1.1);
    transition: all 0.1s ease-in-out;
    font-weight: 600!important;
}
@keyframes glowBorder {
    0% {
        box-shadow: 0 0 5px rgba(60, 125, 135, 0.5);
    }
    50% {
        box-shadow: 0 0 10px rgba(60, 125, 135, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(60, 125, 135, 0.5);
    }
}

#subdivisionDropdown:focus {
    outline: none; /* Remove default focus outline */
    animation: glowBorder 1s infinite alternate ease-in-out;
    border: 1px solid rgb(60, 125, 135); /* Visible border with animation */
    border-radius: 5px;
}
.animated-border {
    animation: glowBorder 1s infinite alternate ease-in-out;
}
.loading-message {
    position: absolute;
    top: 70px;
    left: 218px;
    font-weight: bold;
    font-size: 16px;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dots::after {
    content: '.';
    animation: dots 1.2s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: '.'; }
    25%  { content: '..'; }
    50%  { content: '...'; }
    75%  { content: '....'; }
    100% { content: '.'; }
}



.dot-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    font-size: 20px;
    font-weight: bold;
}

.dot-loader span {
    animation: blink 1.5s infinite;
    padding: 0 2px;
}

.dot-loader span:nth-child(2) {
    animation-delay: 0.2s;
}

.dot-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
#accordionPanelsStayOpenExampleThematic .accordion-item{
    margin-bottom: 3px;
}
.lpi-style{
    font-size: 10px;
    color: #ffe903;
}
.error-message{
    padding: 0px 10px 14px 12px;
    max-width: 600px;
    margin: 4px auto;
    font-size: 10px;
    border-left: 6px solid #dc3545;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
    display: none;
}
#legend-container{
    position: absolute;
    z-index: 99;
    bottom: 40px;
    left: 18px;
    overflow: overlay;
    font-size: 10px !important;
}
#legend-headingOne .accordion-button::after{
    flex-shrink: 0;
    width: 1.05rem;
    height: 0.85rem;
    margin-left: auto;
    content: "";
    background-size: 1.05rem;
    transition: transform .2s ease-in-out;
}
#subdivisionDropdown .form-select{
    background-position:right 5px !important;
}

.thematic-icon-card {
    width: max-content!important;
}
.jsb-dept-logo{
    aspect-ratio: 1/1;
    width: 50px;
}
.error-message{
    font-size: 16px;
    text-align: center;
}
#legendmodal .modal-content{
    width: 350px;
}
.bgcolordiv{
    background: #fff;
}
#toast-container > .toast {
    width: 400px !important;  /* Adjust as needed */
    height: 64px !important;  /* Or set a fixed height like 100px */
}
.font-size-9{
    font-size: 8px !important;
    font-weight: 500;
    margin: 0px;
    padding-top: 4px;
}
.facility-list{
    list-style: none;
    padding: 0px;
}
.facilities-details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    font-size: 10px !important;
}

.facility-name {
    flex: 2;
    text-align: left;
}

.facility-distance {
    flex: 1;
    text-align: left;
    color: red;
}

.facility-action {
    flex: 0;
}

.facility-action img {
    width: 20px;
    height: 20px;
}

.thematic-icon-card.active {
    transform: scale(1.1);
    /* border: 2px solid #42abff; */
    background: #e6f3ff;
}
.thematic-icon-card {
    transition: transform 0.3s, border 0.3s, background 0.3s;
}
.district-icon-active{
    transform: scale(1.2);
    transition: all 0.1s ease-in-out;
    filter: invert(86%) sepia(85%) saturate(646%) hue-rotate(111deg) brightness(113%) contrast(90%);
    box-shadow: 1px 1px 4px rgb(13 242 166);
    border-radius: 5px;
}
.district-icon img:hover{
    transform: scale(1.2);
    transition: all 0.1s ease-in-out;
    filter: invert(86%) sepia(85%) saturate(646%) hue-rotate(111deg) brightness(113%) contrast(90%);
    box-shadow: 1px 1px 4px rgb(13 242 166);
    border-radius: 5px;
}
.JSB-icon-card-active{
    background: #d83157 !important;
    /* filter: drop-shadow(1px 1px 4px #000000); */
    border-radius: 300px !important;
    padding: 4px !important;
}
.JSB-icon-card-active:focus {
    outline: none; /* Removes default focus outline */
    background: linear-gradient(to right, rgb(50, 130, 255), rgb(10, 90, 220)) !important; /* Slightly different gradient for focus */
}

.masterplan-icon-card-active{
    background: #d83157 !important;
    /* filter: drop-shadow(1px 1px 4px #000000); */
    border-radius: 300px !important;
    padding: 4px !important;
}
.masterplan-icon-card-active:focus {
    outline: none; /* Removes default focus outline */
    background: linear-gradient(to right, rgb(50, 130, 255), rgb(10, 90, 220)) !important; /* Slightly different gradient for focus */
}
#subinfo{
    display: none;
}
div#staticBackdrop {
    top: 12%;
    width: 500px;
    height: auto;
}

.modal-backdrop.show {
    z-index: -1;
}
.latlongdiv{
    font-size: 11px !important;
}
.latitude_lable{
font-size: 0.8rem !important;
}



.search-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); */
    padding: 1rem;
    border: 1px solid #ced4da;
    max-width: 550px;
    width: 100%;
    transition: all 0.3s ease-in-out;
  }  

  .search-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #212529;
  }

  .search-input-group {
    background: white;
    
  }

  .search-card .form-control {
    border: none;
    border-radius: 5px !important;
  }

  .search-card.form-control:focus {
    box-shadow: none;
  }

  .btn-search {
    border: none;
    background-color: #0b5ed7 !important;
    border-radius: 0 50px 50px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    transition: background-color 0.3s;
  }

  .btn-search:hover {
    background-color: #0b5ed7 !important;
  }

  .search-icon {
    transition: transform 0.4s ease;
    color: #fff;
  }

  .btn-search:hover .search-icon {
    transform: scale(1.3) rotate(20deg);
  }
  .search-results {
    list-style: none;
    margin: 0;
    padding: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 10px 10px;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    top: 100%;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  .search-result-item:hover {
    background-color: #71a1e9;
    padding: 10px 15px;
    color: #fff;
  }

  .search_noresult {
    padding: 10px 15px;
    color: #777;
  }

  .clear-btn {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #999;
  }

  .clear-btn:hover {
    color: #333;
  }

  .patta-btn-search {
    background-color: #28a745 !important;
    color: white !important;
    border: none;
    padding: 4px !important;
    font-size: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.patta-btn-search:hover {
    background-color: #218838 !important;
    transform: translateY(-1px);
}

.patta-btn-search i {
    font-size: 12px;
    padding: 5px;
}
.search-container .input-group {
    border-radius: 4px;
    overflow: hidden;
}
.search-container .form-control {
    border: 1px solid #ced4da;
    padding: 10px;
    font-size: 12px;
}

.search-container .form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    border-color: #28a745;
}
#search_query_text{
    font-size: 12px !important;
}
.location_search_by_name{
    background: #a3bcf7b8 !important;
}
.gotolocation{
    background: #aae5ffad !important;
}

.patta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.patta-modal-content {
    background-color: #fff;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 16px;
    position: relative;
}

.patta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.patta-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.patta-header-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.patta-close {
    background: transparent;
    border: none;
    font-size: 28px;
    color: #000;
    cursor: pointer;
    padding: 0 6px;
}

.patta-fullscreen {
    background: transparent;
    border: none;
    font-size: 22px;
    color: #333;
    cursor: pointer;
    padding: 0 6px;
}

.patta-iframe {
    width: 100%;
    height: 350px;
    border: none;
    object-fit: contain;
}

.icon-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    filter: brightness(0.5);
    cursor: no-drop;
}
.icon-disabled:hover {
    cursor: not-allowed !important;
    cursor: no-drop;
}
#loadingDots::after {
    content: '';
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0%   { content: ''; }
    33%  { content: '.'; }
    66%  { content: '..'; }
    100% { content: '...'; }
}
#apiStatus{
    text-align: center;
    font-size: 14px;
    display: none;
}

/* Collabland-vs-cadastral gaps report (Reports panel) — the detail table can run to
   several hundred rows across many pages, so it scrolls inside its own fixed-height
   box within the panel instead of growing the whole dropdown; the header stays
   pinned to the top of that scroll area so column names are visible no matter how
   far down the current page's rows you've scrolled. */
#collablandGapsReportTableWrap .table-responsive {
    max-height: 320px;
    overflow-y: auto;
}
#collablandGapsReportTableWrap thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #fff;
}