#map2 {
    width: 100% !important;
    height: 90vh;

    box-sizing: border-box;
}

/*Legend for Map*/

.legend {
    position: absolute;
    background: #ece6f0;
    padding: 10px;
    /* font-family: Arial, sans-serif; */
    left: 10px;
    bottom: 10px;
    display: none;
    min-width: 90%;
    max-height: 40vh;
    overflow-y: hidden;
    border-radius: 40px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1020;
    /* Above filter-toggle (1000) but below Bootstrap modals (1050) */
    overflow-x: hidden;
}

#legend_body,
#legend_body_main {
    max-height: 40vh;
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .legend {
        max-width: 80% !important;
    }
}

.legend li {
    font-size: 18px;
}

.legend h1 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 600 !important;
}

/**/
/*Legend for Map*/

.map-legend {
    position: absolute;
    top: 10px;
    /* below toggle button */
    right: 50px;
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: 230px;
    z-index: 1000;
}

.map-legend h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
}

.legend-item img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    margin-right: 8px;
    border-radius: 3px;
}

.legend-item span {
    color: #222;
}


/**/

.map_permit_short_preview {
    border: 1px groove rgb(165, 165, 165);
    border-radius: 40px;
}

.info-card {
    transition: all 0.3s ease;
    border-radius: 40px;
    padding: 1.0rem !important;
    /* background: linear-gradient(to bottom right, #ffffff, #f9f9f9); */
}

.info-card:hover {}

.info-card ul li {
    font-size: 0.95rem;
}

.nav-bg {
    background-color: #1a202c !important;
    /* Professional Slate */
    border-bottom: 2px solid rgb(237, 139, 0);
}

/* Premium Modern Search Bar */
.search-box {
    position: relative;
    width: 32rem;
    max-width: 100%;
    margin: 0 auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1030;
}

.search-input {
    padding: 14px 25px 14px 55px !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    outline: none;
    width: 100%;
    font-size: 16px;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.98) !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.search-input:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.3);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgb(237, 139, 0) !important;
    box-shadow:
        0 10px 25px -5px rgba(0, 0, 0, 0.4),
        0 8px 10px -6px rgba(0, 0, 0, 0.1),
        0 0 0 5px rgba(237, 139, 0, 0.15);
    transform: translateY(-1px) scale(1.01);
}

.search-icon,
.menu-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.search-icon {
    left: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

.menu-icon {
    right: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    cursor: pointer;
    pointer-events: auto;
}

.search-input:focus~.search-icon {
    color: rgb(237, 139, 0);
    transform: translateY(-50%) scale(1.1);
}

.search-input:focus~.menu-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* Dropdown styling */
.search_dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    max-height: 480px;
    overflow-y: auto;
    z-index: 1031;
    padding: 12px;
    display: none;
    /* Controlled by JS but styled for beauty */
    animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-dropdown-item {
    padding: 14px 18px;
    border-radius: 14px;
    margin: 4px 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    color: #1e293b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.search-dropdown-item:hover {
    background: rgba(237, 139, 0, 0.06);
    color: rgb(237, 139, 0);
    border-color: rgba(237, 139, 0, 0.1);
    transform: translateX(5px);
}

.search-dropdown-item i {
    margin-right: 12px;
    font-size: 16px;
    opacity: 0.7;
}

.click_to_get_more_result {
    display: block !important;
    width: calc(100% - 32px) !important;
    margin: 12px 16px !important;
    padding: 12px !important;
    text-align: center;
    background: rgba(237, 139, 0, 0.05) !important;
    border: 1px dashed rgba(237, 139, 0, 0.3) !important;
    border-radius: 12px !important;
    color: rgb(237, 139, 0) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.click_to_get_more_result:hover {
    background: rgba(237, 139, 0, 0.1) !important;
    border-style: solid !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 139, 0, 0.15);
}

@media (max-width: 991px) {
    .search-box {
        width: 100%;
        max-width: 35rem;
    }
}

@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
        z-index: 1030;
        /* Ensure it's above filter icon (1000) but below modals (1050) */
    }

    .search-input {
        padding: 12px 20px 12px 48px !important;
        font-size: 14px;
        border-radius: 12px;
    }

    /* Mobile Search UI fix for the collapsed topbar dropdown */
    .dropdown-menu .search-input {
        color: #2d3748 !important;
        /* Dark text for mobile dropdown */
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
    }

    .dropdown-menu .search-input::placeholder {
        color: #64748b !important;
        /* Darker placeholder */
        font-weight: 500;
        text-shadow: none !important;
    }

    /* Ensure results dropdown is above everything in mobile */
    .dropdown-menu.show {
        z-index: 1032 !important;
    }

    /* Search Result dropdown specifically */
    .dropdown-menu .search_dropdown {
        z-index: 1033 !important;
    }

    .search-icon {
        left: 16px;
        font-size: 16px;
        color: #64748b !important;
        /* Visible on light bg */
    }
}

.blue-dot {
    background-color: #1E90FF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* Table */
/* Responsive Table - Desktop View */
.responsive-table {
    display: block;
    max-height: 500px;
    overflow-x: auto;
    overflow-y: auto;
    white-space: nowrap;
    width: 100%;
}

.responsive-table li {
    display: flex;
    border-radius: 3px;
    padding: 0;
    margin-bottom: 5px;
    min-width: max-content;
}

.table-header {
    display: flex;
    background-color: #95A5A6;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: white;
}

.table-row {
    background-color: #ffffff;
    box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.col {
    flex: 0 0 150px;
    padding: 10px;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    overflow: visible;
    text-overflow: unset;
}

.th_heading {
    font-size: 15px;
    font-weight: bold;
}

.linkspan {
    cursor: pointer;
}

.linkspan:hover {
    color: #4226bd !important
}

/* Responsive Table - Mobile View */
@media all and (max-width: 767px) {

    /* Completely hide header */
    .table-header {
        display: none !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: none !important;
    }

    /* Convert rows to block */
    .responsive-table li {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        background: #fff;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
        border-radius: 4px;
    }

    .table-row {
        display: block;
        padding: 0;
        margin: 0;
        box-shadow: 0px 0px 9px 0px rgba(0, 0, 0, 0.05);
    }

    .col {
        display: flex;
        flex-basis: 100% !important;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 8px 12px;
        white-space: normal;
        word-break: break-word;
        overflow: visible;
        text-overflow: unset;
    }

    .col::before {
        content: attr(data-label);
        flex: 0 0 40%;
        max-width: 40%;
        font-weight: bold;
        color: #95A5A6;
        padding-right: 10px;
        text-align: left;
        display: inline-block;
    }
}