﻿#MainContent {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
}

/* Make the container full-width and remove side padding */
body.map-page .container {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* Remove padding around the content area */
body.map-page .content-inner {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Make the map fill the viewport minus header height */
#map {
    width: 100%;
    height: calc(100vh - 140px); /* adjust if header is taller/shorter */
}

@media (max-width: 768px) {
    #map {
        height: calc(100vh - 100px);
    }
}   

.chip-container {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.person-chip {
    background: #0078d4;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
}

.chip-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* Add Map Person */
h2.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Page wrapper */
/* Page wrapper */
.page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    background: #f7f7f7;
    padding: 30px 35px;
    border-radius: 8px;
}

/* Page title */
.page-title {
    margin-bottom: 20px;
}

/* Section titles */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #dcdcdc;
}

/* Collapsible headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f3f5f7;
    padding: 10px 14px;
    border: 1px solid #cfd6dd;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 25px;
    font-weight: 600;
    font-size: 1.1rem;
}

    .section-header:hover {
        background: #e7ebef;
    }

/* + / – icon */
.toggle-icon {
    font-weight: 700;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

/* Collapsible content */
.collapse-section {
    display: none;
    margin-top: 15px;
}

/* Cards */
.form-card {
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    padding: 22px 25px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

/* Residence / Immigration rows */
.res-row, .imm-row {
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fafafa;
    padding: 15px 18px;
    margin-bottom: 15px;
}

    .res-row + .res-row,
    .imm-row + .imm-row {
        margin-top: 12px;
    }

/* Labels */
.form-label {
    font-weight: 600;
    margin-bottom: 4px;
}

/* Verify status text */
.verify-status {
    font-size: 0.85rem;
    color: #666;
    margin-top: 3px;
}

/* Footer */
.action-bar {
    margin-top: 40px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
}

/* Map Picker Modal */
/* Fullscreen overlay for the custom modal */
#mapPickerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    display: none; /* JS handles fadeIn/fadeOut */
}

    /* Centered modal box */
    #mapPickerModal .modal-content {
        background: #fff;
        padding: 20px;
        width: 80%;
        max-width: 800px;
        margin: 50px auto;
        border-radius: 6px;
        position: relative;
        box-sizing: border-box;
    }

/* The Leaflet map MUST have a stable height */
#mapPicker {
    width: 100%;
    height: 400px;
    display: block;
}

/*  Edit Map Person  */
.page-container {
    max-width: 900px;
    margin: 0 auto;
}

.card-header {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body .form-label {
    font-weight: 500;
}

.card-body .form-control,
.card-body .form-select {
    margin-bottom: 1rem;
}

.res-row,
.imm-row {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/*.toggle-header * {
    pointer-events: auto;
}
*/
.toggle-header {
    pointer-events: auto;
    cursor: pointer;
    user-select: none;
    z-index: 1;
    position: relative;
    display: block !important;
}

.collapse-section {
    display: none;
    z-index: 2;
    position: relative;
}   


/* Ensure the header does NOT overlap the body */
/*.toggle-header {
    position: relative;
    z-index: 1;
    display: block !important;
}*/

/* Ensure the section sits ABOVE the header */
/*.collapse-section {
    position: relative;
    z-index: 2;
}*/

.verified-badge {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #198754; /* Bootstrap success green */
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

    .verified-badge:not(.d-none) {
        opacity: 1;
    }

.verify-btn {
    white-space: nowrap;
    font-weight: 500;
    padding-left: 14px;
    padding-right: 14px;
}

.input-group .form-control {
    border-right: 0;
}

.input-group .verify-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
