/* =====================================================
   SMART NURSERY TRACKING
   MAPPING MANAGEMENT
   ===================================================== */


/* =====================================================
   PAGE INTRO
===================================================== */

.mapping-page-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.mapping-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
}

.mapping-breadcrumb a {
    color: #14532D;
    text-decoration: none;
}

.mapping-breadcrumb a:hover {
    color: #166534;
}

.mapping-page-intro h2 {
    margin: 0 0 10px;
    color: #334155;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.mapping-page-intro p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}


/* =====================================================
   PAGE ACTIONS
===================================================== */

.mapping-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.mapping-primary-button,
.mapping-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.mapping-primary-button {
    border: 1px solid #14532D;
    background: #14532D;
    color: #ffffff;
}

.mapping-primary-button:hover {
    border-color: #166534;
    background: #166534;
}

.mapping-secondary-button {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #14532D;
}

.mapping-secondary-button:hover {
    border-color: #16A34A;
    background: #f0fdf4;
}


/* =====================================================
   MAP CARD
===================================================== */

.mapping-card {
    overflow: hidden;
    margin-bottom: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.025);
}

.mapping-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 26px;
    border-bottom: 1px solid #eef2f7;
}

.mapping-section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: #16A34A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mapping-card-header h3,
.mapping-records-header h3 {
    margin: 0 0 8px;
    color: #334155;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.mapping-card-header p,
.mapping-records-header p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
   MAP TOOLS
===================================================== */

.mapping-card-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mapping-card-tools button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #14532D;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.mapping-card-tools button:hover {
    border-color: #16A34A;
    background: #f0fdf4;
}


/* =====================================================
   MAP AREA
===================================================== */

.mapping-map {
    position: relative;
    width: 100%;
    min-height: 470px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            #f8fafc 0%,
            #eef7f1 100%
        );
}

.mapping-map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: min(90%, 430px);
    padding: 40px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    text-align: center;
    transform: translate(-50%, -50%);
    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.06);
}

.mapping-map-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #DCFCE7;
    color: #14532D;
    font-size: 28px;
}

.mapping-map-placeholder h4 {
    margin: 0 0 8px;
    color: #334155;
    font-size: 18px;
    font-weight: 700;
}

.mapping-map-placeholder p {
    max-width: 320px;
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
   LOCATION RECORDS CARD
===================================================== */

.mapping-records-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 2px 8px rgba(15, 23, 42, 0.025);
}

.mapping-records-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 26px;
    border-bottom: 1px solid #eef2f7;
}

.mapping-export-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #14532D;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.mapping-export-button:hover {
    border-color: #16A34A;
    background: #f0fdf4;
}


/* =====================================================
   FILTERS
===================================================== */

.mapping-filters {
    display: grid;
    grid-template-columns:
        minmax(240px, 1fr)
        190px
        170px;
    gap: 12px;
    padding: 20px 26px;
    border-bottom: 1px solid #eef2f7;
}

.mapping-search {
    position: relative;
    display: flex;
    align-items: center;
}

.mapping-search span {
    position: absolute;
    left: 13px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}

.mapping-search input,
.mapping-filters select {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mapping-search input {
    padding-left: 37px;
}

.mapping-search input::placeholder {
    color: #94a3b8;
}

.mapping-search input:focus,
.mapping-filters select:focus {
    border-color: #16A34A;
    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.10);
}


/* =====================================================
   TABLE
===================================================== */

.mapping-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.mapping-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
}

.mapping-table thead {
    background: #f8fafc;
}

.mapping-table th {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.mapping-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #eef2f7;
    color: #475569;
    font-size: 13px;
    vertical-align: middle;
}

.mapping-table tbody tr {
    transition: background 0.2s ease;
}

.mapping-table tbody tr:hover {
    background: #f8fafc;
}

.mapping-table tbody tr:last-child td {
    border-bottom: none;
}

.mapping-empty-row {
    padding: 45px 20px !important;
    color: #94a3b8 !important;
    text-align: center;
}


/* =====================================================
   TABLE FOOTER
===================================================== */

.mapping-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 15px 26px;
    border-top: 1px solid #eef2f7;
    background: #ffffff;
    color: #64748b;
    font-size: 12px;
}


/* =====================================================
   STATUS BADGES
===================================================== */

.mapping-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.mapping-status.active {
    background: #DCFCE7;
    color: #166534;
}

.mapping-status.inactive {
    background: #f1f5f9;
    color: #64748b;
}


/* =====================================================
   TABLE ACTION BUTTONS
===================================================== */

.mapping-action-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mapping-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 6px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #ffffff;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.mapping-action-button:hover {
    border-color: #16A34A;
    background: #f0fdf4;
    color: #14532D;
}

.mapping-action-button.delete:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #dc2626;
}


/* =====================================================
   MODAL
===================================================== */

.mapping-modal-overlay {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.mapping-modal-overlay.active {
    display: flex;
}

.mapping-modal {
    width: min(700px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.20);
}

.mapping-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px;
    border-bottom: 1px solid #eef2f7;
}

.mapping-modal-header h3 {
    margin: 0;
    color: #334155;
    font-size: 20px;
    font-weight: 700;
}

.mapping-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.mapping-modal-close:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}


/* =====================================================
   FORM
===================================================== */

.mapping-form {
    padding: 26px;
}

.mapping-form-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mapping-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mapping-full-width {
    grid-column: 1 / -1;
}

.mapping-form-group label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.mapping-form-group input,
.mapping-form-group select,
.mapping-form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mapping-form-group input,
.mapping-form-group select {
    min-height: 44px;
}

.mapping-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.mapping-form-group input::placeholder,
.mapping-form-group textarea::placeholder {
    color: #94a3b8;
}

.mapping-form-group input:focus,
.mapping-form-group select:focus,
.mapping-form-group textarea:focus {
    border-color: #16A34A;
    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.10);
}


/* =====================================================
   MODAL ACTIONS
===================================================== */

.mapping-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #eef2f7;
}

.mapping-cancel-button,
.mapping-save-button {
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.mapping-cancel-button {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
}

.mapping-cancel-button:hover {
    background: #f8fafc;
}

.mapping-save-button {
    border: 1px solid #14532D;
    background: #14532D;
    color: #ffffff;
}

.mapping-save-button:hover {
    border-color: #166534;
    background: #166534;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {

    .mapping-filters {
        grid-template-columns:
            1fr
            1fr;
    }

    .mapping-search {
        grid-column: 1 / -1;
    }
}


@media (max-width: 768px) {

    .mapping-page-intro {
        flex-direction: column;
        gap: 20px;
    }

    .mapping-page-intro h2 {
        font-size: 25px;
    }

    .mapping-actions {
        width: 100%;
    }

    .mapping-primary-button,
    .mapping-secondary-button {
        flex: 1;
    }

    .mapping-card-header,
    .mapping-records-header {
        padding: 20px;
    }

    .mapping-map {
        min-height: 380px;
    }

    .mapping-filters {
        grid-template-columns: 1fr;
        padding: 16px 20px;
    }

    .mapping-search {
        grid-column: auto;
    }

    .mapping-form-grid {
        grid-template-columns: 1fr;
    }

    .mapping-full-width {
        grid-column: auto;
    }

    .mapping-form {
        padding: 20px;
    }

    .mapping-modal-header {
        padding: 20px;
    }

    .mapping-modal-actions {
        flex-direction: column;
    }

    .mapping-cancel-button,
    .mapping-save-button {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .mapping-actions {
        flex-direction: column;
    }

    .mapping-primary-button,
    .mapping-secondary-button {
        width: 100%;
    }

    .mapping-card-header,
    .mapping-records-header {
        flex-direction: column;
        gap: 16px;
    }

    .mapping-export-button {
        width: 100%;
    }

    .mapping-map {
        min-height: 330px;
    }

    .mapping-map-placeholder {
        padding: 30px 20px;
    }

    .mapping-table th,
    .mapping-table td {
        padding: 13px 15px;
    }
}

/* =========================================================
   MAPPING TABLE ACTION BUTTONS
========================================================= */

.mapping-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.mapping-actions button {
    border: 1px solid #dbe5df;
    background: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* VIEW */

.mapping-view-button {
    color: #2563eb;
}

.mapping-view-button:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}


/* EDIT */

.mapping-edit-button {
    color: #16a34a;
}

.mapping-edit-button:hover {
    background: #f0fdf4;
    border-color: #86efac;
}


/* DELETE */

.mapping-delete-button {
    color: #dc2626;
}

.mapping-delete-button:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}


/* BUTTON PRESS EFFECT */

.mapping-actions button:active {
    transform: translateY(1px);
}

/* =========================================================
   MAPPING MODAL
========================================================= */

.mapping-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.55);

    backdrop-filter: blur(3px);
}

.mapping-modal-overlay.active {
    display: flex;
}


/* =========================================================
   MODAL BOX
========================================================= */

.mapping-modal {
    width: 100%;
    max-width: 620px;

    max-height: 90vh;
    overflow-y: auto;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18);

    animation: mappingModalOpen 0.2s ease;
}


@keyframes mappingModalOpen {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   MODAL HEADER
========================================================= */

.mapping-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px 22px;

    border-bottom: 1px solid #e2e8f0;
}


.mapping-modal-header h3 {
    margin: 0;

    color: #334155;

    font-size: 18px;
    font-weight: 700;
}


.mapping-modal-close {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 7px;

    background: #f8fafc;

    color: #64748b;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;

    transition: all 0.2s ease;
}


.mapping-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}


/* =========================================================
   MODAL FORM
========================================================= */

.mapping-modal form {
    padding: 22px;
}


.mapping-form-group {
    margin-bottom: 16px;
}


.mapping-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #334155;

    font-size: 13px;
    font-weight: 600;
}


.mapping-form-group input,
.mapping-form-group select,
.mapping-form-group textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 10px 12px;

    border: 1px solid #dbe3ea;
    border-radius: 8px;

    background: #ffffff;

    color: #334155;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.mapping-form-group input:focus,
.mapping-form-group select:focus,
.mapping-form-group textarea:focus {
    border-color: #16a34a;

    box-shadow:
        0 0 0 3px rgba(22, 163, 74, 0.10);
}


.mapping-form-group textarea {
    min-height: 90px;

    resize: vertical;
}


.mapping-form-group input::placeholder,
.mapping-form-group textarea::placeholder {
    color: #94a3b8;
}


/* =========================================================
   COORDINATE FIELDS
========================================================= */

.mapping-coordinate-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}


/* =========================================================
   MODAL ACTIONS
========================================================= */

.mapping-modal-actions {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    padding-top: 6px;
}


.mapping-modal-actions button {
    min-height: 40px;

    padding: 9px 16px;

    border-radius: 8px;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.mapping-modal-actions .mapping-cancel-button {
    border: 1px solid #dbe3ea;

    background: #ffffff;

    color: #64748b;
}


.mapping-modal-actions .mapping-cancel-button:hover {
    background: #f8fafc;

    border-color: #cbd5e1;

    color: #334155;
}


.mapping-modal-actions .mapping-save-button {
    border: 1px solid #14532d;

    background: #14532d;

    color: #ffffff;
}


.mapping-modal-actions .mapping-save-button:hover {
    background: #166534;

    border-color: #166534;
}


/* =========================================================
   MOBILE MODAL
========================================================= */

@media (max-width: 600px) {

    .mapping-modal-overlay {
        padding: 12px;
    }

    .mapping-modal {
        max-height: 94vh;

        border-radius: 12px;
    }

    .mapping-modal-header {
        padding: 16px;
    }

    .mapping-modal form {
        padding: 16px;
    }

    .mapping-coordinate-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mapping-modal-actions {
        flex-direction: column-reverse;
    }

    .mapping-modal-actions button {
        width: 100%;
    }

}

/* =========================================================
   VIEW LOCATION MODAL
========================================================= */

.mapping-view-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.55);

    backdrop-filter: blur(3px);
}

.mapping-view-modal-overlay.active {
    display: flex;
}


/* =========================================================
   VIEW MODAL BOX
========================================================= */

.mapping-view-modal {
    width: 100%;
    max-width: 620px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.18);

    overflow: hidden;

    animation: mappingViewModalOpen 0.2s ease;
}


@keyframes mappingViewModalOpen {

    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   VIEW HEADER
========================================================= */

.mapping-view-modal-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    padding: 20px 22px;

    border-bottom: 1px solid #e2e8f0;
}


.mapping-view-label {
    display: block;

    margin-bottom: 5px;

    color: #16a34a;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.08em;
}


.mapping-view-modal-header h3 {
    margin: 0;

    color: #334155;

    font-size: 20px;

    font-weight: 700;
}


.mapping-view-modal-close {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border: 0;

    border-radius: 7px;

    background: #f8fafc;

    color: #64748b;

    font-size: 21px;

    cursor: pointer;

    transition: all 0.2s ease;
}


.mapping-view-modal-close:hover {
    background: #fee2e2;

    color: #dc2626;
}


/* =========================================================
   VIEW BODY
========================================================= */

.mapping-view-modal-body {
    padding: 22px;
}


.mapping-view-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;
}


.mapping-view-item {
    padding: 14px;

    border: 1px solid #eef2f7;

    border-radius: 9px;

    background: #f8fafc;
}


.mapping-view-item span,
.mapping-view-description span {
    display: block;

    margin-bottom: 6px;

    color: #64748b;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}


.mapping-view-item strong {
    display: block;

    color: #334155;

    font-size: 13px;

    font-weight: 600;

    word-break: break-word;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.mapping-view-description {
    margin-top: 14px;

    padding: 14px;

    border: 1px solid #eef2f7;

    border-radius: 9px;

    background: #ffffff;
}


.mapping-view-description p {
    margin: 0;

    color: #475569;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   VIEW FOOTER
========================================================= */

.mapping-view-modal-footer {
    display: flex;

    justify-content: flex-end;

    padding: 16px 22px;

    border-top: 1px solid #e2e8f0;

    background: #f8fafc;
}


.mapping-view-close-button {
    min-height: 40px;

    padding: 9px 18px;

    border: 1px solid #14532d;

    border-radius: 8px;

    background: #14532d;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: all 0.2s ease;
}


.mapping-view-close-button:hover {
    background: #166534;

    border-color: #166534;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .mapping-view-modal-overlay {
        padding: 12px;
    }

    .mapping-view-modal {
        max-height: 94vh;

        overflow-y: auto;

        border-radius: 12px;
    }

    .mapping-view-grid {
        grid-template-columns: 1fr;
    }

    .mapping-view-modal-footer {
        padding: 14px 16px;
    }

    .mapping-view-close-button {
        width: 100%;
    }

}

/* =========================================================
   MAP CLICK SELECTION WHILE ADD LOCATION MODAL IS OPEN
========================================================= */

#mappingModalOverlay {
    pointer-events: none;
}

#mappingModalOverlay .mapping-modal {
    pointer-events: auto;
}

/* =========================================================
   ADD LOCATION MODAL MAP
========================================================= */

.mapping-modal-map-help {
    margin-bottom: 8px;
    font-size: 13px;
    color: #64748b;
}

.mapping-modal-map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe3ea;
    background: #f1f5f9;
}

.mapping-modal-map .leaflet-container {
    width: 100%;
    height: 100%;
}

.mapping-modal-map .leaflet-control-zoom {
    margin-top: 10px;
    margin-left: 10px;
}


/* =========================================================
   MAPPING PRIMARY BUTTON
========================================================= */

button.mapping-primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;

    min-width: 145px !important;
    height: 44px !important;

    padding: 0 18px !important;

    border: none !important;
    border-radius: 9px !important;

    background-color: #166534 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    white-space: nowrap !important;

    box-shadow:
        0 4px 10px rgba(22, 101, 52, 0.15) !important;

    opacity: 1 !important;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease !important;
}


button.mapping-primary-button:hover {
    background-color: #14532d !important;
    color: #ffffff !important;

    transform: translateY(-1px);

    box-shadow:
        0 6px 14px rgba(22, 101, 52, 0.22) !important;
}


button.mapping-primary-button:active {
    background-color: #14532d !important;
    color: #ffffff !important;

    transform: translateY(0);
}


button.mapping-primary-button:focus,
button.mapping-primary-button:focus-visible {
    background-color: #166534 !important;
    color: #ffffff !important;

    outline: none !important;
}