body {
    background-color: #f8f9fa;
}

.card {
    border-radius: 10px;
}

.btn {
    border-radius: 50px;
}



/* Keep layout stable when content height changes */
html {
    scrollbar-gutter: stable;
    /* modern browsers */
}

/* Fallback for browsers that don't support scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
    html {
        overflow-y: scroll;
    }

    /* always show vertical scrollbar track */
}

/* Optional: keep tab panes tall enough so a scrollbar is usually present */
.tab-content {
    min-height: 60vh;
}

/* tweak 50–70vh to taste */


/* Additional custom styling */
/* Styling for geocoder recommendations */
.leaflet-control-geocoder .leaflet-control-geocoder-results {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 4px;
}



/* keep the tour popover above normal UI */
.popover.tour-pop {
    z-index: 1085;
}




#approvedTable,
#approvedTable tbody,
#approvedTable tbody tr {
    border: 2px solid rgb(36, 28, 28);
}


.btn-group .btn.active {
    font-weight: bold;
    background-color: #0056b3;
}

.coords-container {
    display: inline-block;
    margin-left: 10px;
}

.list-group-item {
    margin-bottom: 20px;
    border: 1px solid #e2e2e2;
    padding: 15px;
}

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

.admin-section {
    margin-top: 10px;
    padding: 10px;
    background-color: #fafafa;
    border-left: 4px solid #ddd;
    margin-left: 40px;
}

/* Position the single View Map button at the bottom left of the admin section */
.view-map-btn {
    display: block;
    margin-top: 10px;
    text-align: left;
}




.choices__list--multiple .choices__item {
    background-color: #007bff !important;
    /* Bootstrap blue */
    color: #fff !important;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    padding: 4px 10px;
    margin: 2px;
}




/* /* #typeSelectorWrapper {
    resize: vertical;
    overflow: hidden;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.25rem;
    min-height: 70px;
    /* ✅ Approx. 2 lines of tags */
/* max-height: 400px;
    height: 70px; */
/* Initial starting height */
/* } */
*/
/* 
#typeSelectorWrapper .choices__inner {
    height: 100% !important;
    /* Fill the wrapper */
/* max-height: none !important;
    overflow-y: auto;
    padding: 4px;
    box-sizing: border-box;
} */
*/
/* Dropdown stays unaffected */
/* #typeSelectorWrapper .choices__list--dropdown {
    max-height: 200px;
    overflow-y: auto;
}

#typeSelectorWrapper {
  transition: height 0.3s ease;
} */
*/
/* Keep wrapper resizeable and with min/max height */
/* #typeSelectorWrapper {
    resize: vertical;
    overflow: hidden;
    
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.25rem;
    min-height: 70px;
    max-height: 400px;
    height: 70px;
} */

/* Ensure choices__inner doesn't scroll */
/* #typeSelectorWrapper .choices__inner {
    height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
   
    padding: 4px;
    box-sizing: border-box;
} */

/* Only scroll the dropdown list */
/* #typeSelectorWrapper .choices__list--dropdown {
    max-height: 200px;
    overflow-y: auto;
} */

/* label.form-label {
    font-size: 14px;
    margin-bottom: 4px;
} */

/* #typeSelectorWrapper {
    position: relative;
    z-index: 1050;
    resize: vertical;
    overflow: visible;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.25rem;
    min-height: 70px;
    max-height: 400px;
    height: auto;
    background: white;
} */

/* Make the control tidy and full width */
#typeSelector {
    width: 100%;
}

/* Choices core sizing tweaks */
.choices {
    width: 100%;
}

/* Keep selected chips compact and scrollable */
.choices__inner {
    min-height: 44px;
    max-height: 120px;
    /* cap height */
    overflow-y: auto;
    /* scroll chips instead of pushing layout */
}

/* Long dropdown: scroll inside, stay above neighbors but below popovers */
.choices__list--dropdown,
.choices__list[aria-expanded] {
    max-height: 320px;
    /* more room */
    overflow-y: auto;
    z-index: 1060;
    /* under Bootstrap popovers (1070) */
}

/* Make chips a touch tighter (optional) */
.choices__list--multiple .choices__item {
    padding: 3px 8px;
    border-radius: 16px;
    font-weight: 600;
}





/* Properties tooltip on hover (when zoomed in) */
.leaflet-tooltip.area-tooltip {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #27ae60;
    color: #145a32;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    box-shadow: none;
}

/* Arrow indicator shown when zoomed out */
.area-arrow .area-arrow-inner {
    line-height: 16px;
    width: 16px;
    height: 16px;
    text-align: center;
    font-size: 14px;
    user-select: none;
    transform: rotate(315deg);
    /* gives a directional feel */
    color: #27ae60;
    text-shadow: 0 0 2px #fff;
}

.area-pulse .area-pulse-inner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2ecc71;
    /* fill */
    border: 2px solid #27ae60;
    /* ring */
    box-shadow: 0 0 0 0 rgba(39, 174, 96, .45);
    animation: areaPulse 2s infinite;
}

@keyframes areaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, .45);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(39, 174, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.area-badge .area-badge-inner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #27ae60;
    color: #fff;
    border: 1px solid #145a32;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    user-select: none;
}

.area-ring .area-ring-inner {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 3px solid #27ae60;
    background: rgba(46, 204, 113, 0.18);
}


/* coordinate chips */
.coord-chip {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .25rem .5rem;
    font-size: .875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* nicer tour popover */
.tour-pop .popover-header {
    font-weight: 600;
}

.tour-pop .popover-body .tour-actions {
    display: flex;
    gap: .5rem;
}

#typeLegendBody .border,
#legendTypeGrid .border {
    min-height: 38px;
}


/* Map/Split niceties */
#approvedMap {
    border-radius: 8px;
}

#viewerCol .card {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

@media (max-width: 991.98px) {
    #approvedMap {
        height: 55vh !important;
    }
}


/* Ensure the Filter-by-Type dropdown renders above nearby controls */
/* Put the Choices wrapper (chips control) above neighboring UI */
#typeSelector+.choices {
    position: relative;
    z-index: 2051;
}

/* And the opened dropdown above everything nearby */
.choices__list--dropdown {
    z-index: 2052;
}

/* Keep the view-mode buttons low in the stack so the dropdown overlays them */
.btn-group[aria-label="View mode"] {
    position: relative;
    z-index: 1;
}


/* Keep everything in the Map Options toolbar perfectly centered */
#mapOptionsBar {
    align-items: center;
}

/* Kill default bottom margins and odd vertical offsets inside switches */
#mapOptionsBar .form-check {
    margin: 0;
}

#mapOptionsBar .form-check-label {
    margin-bottom: 0;
}

#mapOptionsBar .form-check-input {
    margin-top: 0;
}

/* Tighten inline label alignment next to selects */
#mapOptionsBar label {
    margin-bottom: 0;
    line-height: 1.25;
}

/* Optional: if any switch still looks 1–2px high/low on some browsers, nudge it: */
/* #mapOptionsBar .form-check-input { transform: translateY(1px); } */