.base-body {
    font-family: "Poppins", sans-serif;
}

/* Map style */
#map { 
    height: 550px; 
    border: 1px solid #E9ECF0;
    border-radius: 10px;
    margin-left: 14px;
}

.dropdown { 
    position: relative; margin: 15px;
}

.btn-primary {
    color: #fff;
    background-color: #62289e;
    border-color: #62289e;
}
#mapid { 
    width: 100%;
    height: 430px; /* Set initial height */
    border-radius: 10px 10px 10px 10px;
    padding: 0;
}
/* Screen resolution */
@media only screen and (max-width: 767px) {
    /* Styles for mobile */
    #mapid {
    height: 300px; /* Adjust height for smaller mobile screens */
    }
}

span.category-name {
    color: aliceblue;
    margin-left: 12px;
}

.container {
    margin: 0px;
}

.col-md-9.detail-map {
    padding: 0px;
    width: 100%;
}

/* HEADER */
nav.navbar.navbar-expand-lg.navbar-light.navbar-gradient {
    top: 15px;
    position: relative;
    margin-top: -35px;
}

.bg-light {
    background-color: #ffffff!important;
    font-family: sans-serif;
}

.navbar-brand {
    font-size: 36px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.navbar-dark .navbar-brand:hover {
    color: rgb(0 159 255);
}

span.setting {
    color: limegreen;
}

.logo {
    font-size: 24px;
    color:  rgb(250 248 248);
    margin-bottom: 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-left: 25px;
}

.dropdown, .dropup {
    position: relative;
    color: white;
}

ul.dropdown-menu {
    padding: 12px;
    line-height: 3;
    width: 100%;
    font-size: 14px;
}

img.icons {
    margin: 8px;
    padding: 4px;
}


/* FOOTER */
.page-footer {
    background-color: #2323;
}

.footer-copyright {
    border-top: 1px solid #487579;
    margin: 30px;
    padding: 20px;
    font-family: sans-serif;
    color: rgb(40, 41, 41);
}

.list-name {
    border-right: 1px solid #dee2e6;
}

/* LIST */

.table-bordered {
    border: 1px solid #dee2e6;
    margin-top: -30px;
}

.form {
    margin-bottom: 0px;
}

.card {
    margin-bottom: 7px !important;
    margin: 7px;
    padding-left: 10px;
    flex-grow:1;
}
.container-fluid {
    background: #ffff;
}

.card-img-top {
    flex-grow: 1;
    object-fit:contain;
}

.card-body-list{
    flex-grow:0;
    margin: 15px;
    font-size: 14px;
}

h4.card-title {
    font-size: 16px;
    font-family: system-ui;
}

/* search button */
.has-search .form-control {
    padding-left: 2.375rem;
}

.has-search .form-control-feedback {
    position: absolute;
    z-index: 2;
    display: block;
    width: 2.375rem;
    height: 2.375rem;
    line-height: 2.375rem;
    text-align: center;
    pointer-events: none;
    color: #aaa;
}


h3 {
    margin: 30px;
    display: grid;
    padding-left: 40px;
}

/* Container and Row Spacing */
.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.row.g-4 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0;
    margin: 0;
}

/* Map Card Adjustments */
.col-lg-8 .card {
    height: calc(100vh - 180px); /* Adjust based on your header height */
    min-height: 600px;
}

#map {
    height: calc(100% - 56px); /* Subtract header height */
    width: 100%;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Info Cards Container */
.info-cards-container {
    height: calc(100vh - 180px); /* Match map height */
    min-height: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card Spacing */
.card {
    margin: 0 !important;
    border: none;
    border-radius: 0.5rem;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
}

.card-body {
    padding: 1rem;
}

/* Info Items Spacing */
.info-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.info-item:last-child {
    margin-bottom: 0;
}

/* Legend Items Spacing */
.legend-item {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.legend-item:last-child {
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .container-fluid {
        padding: 1rem;
    }

    .col-lg-8 .card,
    .info-cards-container {
        height: auto;
        min-height: auto;
    }

    #map {
        height: 400px;
    }

    .row.g-4 {
        --bs-gutter-y: 1rem;
    }
}