﻿/* Collapse z-index logic  */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    /*z-index: 10;*/
    z-index: 1;
    width: 100%;
    max-width: 500px;
    height: auto;
    padding: 1rem;
	height: 100vh;
}
.modal-backdrop {
    z-index: 4;
}
.modal.fade.sigout.show {
    top: 80px !important;
}

.modal {
    z-index: 15; 
}

/*Scroll step 4*/
/*.step-content[data-step="4"] .scrollable-content {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 500px;
}*/

/*.step-content[data-step="2"] .scrollable-content-2 {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 340px;
}*/

/* mapinfo */
.map-container-info {
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    background-color: #f8f9fa;
}

/* map-toggle */
.map-toggle {
    border: 2px solid #696cff;
    border-radius: 4px;
    padding: 5px;
    background-color: #ffffff;
    position: absolute;
    bottom: 49px;
    right: 0px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
/*Card css*/
.card input.form-control[readonly],
.card .readonly-input {
    background-color: #e9ecef !important;
    color: #495057eb !important;
}

.card {
    background-color: rgba(255, 255, 255, 0.85); 

}
    .card .form-control,
    .card select {
        background-color: rgba(255, 255, 255, 1) !important; 
        color: #000 !important; 
    }
    .card hr {
        border-color: rgba(0, 0, 0, 0.2); 
    }


.footer {
    z-index: 0 !important;
}
@media only screen and (max-width: 600px) {
    .footer {
        position: fixed !important;
        padding: 0 70px;
        font-size: 10px;
    }
}
/* Map */
.map-container {
    position: relative;
    height: 100vh;
}

#map-mobile {
    width: 100%;
    height: 100vh;
}
#mapinfo {
    height: 300px;
}
@media (max-width: 768px) {
    #mapinfo {
        height: 200px;
    }
}
@media (min-width: 1300px) and (max-width: 1450px) {
    .card {
        max-height: 650px;
        overflow-y: auto;
    }
}
.container-p-y:not([class^=pt-]):not([class*=" pt-"]) {
    padding-top: 3.625rem !important;
}
.layout-menu-collapsed .layout-navbar.navbar-detached,
.layout-without-menu .layout-navbar.navbar-detached {
    width: calc(100% - (-0.375rem * 2)) !important;
    z-index: 11 !important;
}
.maplibregl-ctrl-bottom-left {
    z-index: 0 !important;
}
.maplibregl-ctrl-bottom-right {
    z-index: 0 !important;
}
.maplibregl-ctrl-group:not(:empty) {
    box-shadow: unset !important;
}
.maplibregl-ctrl-top-right {
    padding-top: 68px !important;
}
.mapboxgl-ctrl-group.mapboxgl-ctrl {
    position: absolute;
    right: 46px;
    top: 10px;
    z-index: 10000;
    flex-direction: column;
    pointer-events: auto;
    padding-top: 3.625rem !important;
}
.mapbox-gl-draw_ctrl-draw-btn {
    width: 29px !important;
    height: 29px !important;
    display: block;
    padding: 0;
    outline: none;
    border: 0;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 10px;
}

.button_pin_center_location {
    width: 29px;
    height: 29px;
    display: block;
    padding: 0;
    outline: none;
    border: 0;
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 4px;
    pointer-events: auto;
}
.polygon-area-display {
    text-align: center;
    height: 66px;
    width: 152px;
    position: absolute;
    top: 58px;
    left: 45%;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 0;
    font-weight: bold;
    font-size: 14px;
    display: none;
    border-radius: 5px;
}
.coordinates-display {
    background: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    font-weight: bold;
    z-index: 0;
    position: fixed;
    bottom: 46px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px;
    border-radius: 5px;
}


#formCollapse .card-header span{
	margin-right:0.4rem !Important;
}
/* Responsive mobile */
@media (max-width: 576px) {
    .step-content h5, .fw-bold, .fw-bolder, .form-control::placeholder {
        font-size: 0.75rem !important;
    }

    .overlay {
        transform: scale(0.8) !important;
        padding: 2.5rem !important;
        position: absolute !important;
        left: 0 !important;
        transform: translateX(-11%) !important;
    }

        .overlay .card-body {
            padding: 0.8rem !important;
        }

    .steps {
        margin-bottom: 0.1rem !important;
    }

    .step-content {
        margin-bottom: 0.1rem !important;
    }

        .step-content .form-control,
        .step-content .input-group,
        .step-content label,
        .step-content .text-danger {
            font-size: 0.75rem !important;
        }

    .steps .step {
        margin-bottom: 0.1rem !important;
    }

    .button-group {
        flex-direction: column;
        padding: 0.5rem;
    }

        .button-group button {
            margin-bottom: 0.1rem !important;
            margin-left: 0;
            margin-right: 0;
            width: 100%;
        }

            .button-group button:last-child {
                margin-bottom: 0;
            }

    .card-header {
        padding: 0.1rem 0.7rem !important;
    }

    .h5.mb-1.fw-bolder,
    .fw-bold,
    .text-danger {
        font-size: 0.75rem !important;
        margin-bottom: 0.1rem !important;
    }

    .select2-container .select2-selection--single .select2-selection__rendered,
    .select2-container .select2-selection--multiple .select2-selection__rendered {
        font-size: 0.75rem !important;
    }

    .select2-container .select2-results__option {
        font-size: 0.75rem !important;
    }
    h5, .h5 {
        line-height: 1rem !important;
    }
    .mb-3 {
         margin-bottom: 0.2rem !important; 
    }
	#formCollapse .card-header span{
	margin-right:0.6rem !Important;
}
.draw_placemark_body{
	    max-height: 600px;
    overflow-y: auto;
}
}
@keyframes zoom {
    0%, 100% {
        transform: scale(1); /* Kích thước ban đầu */
    }
    50% {
        transform: scale(1.2); /* Phóng to */
    }
}
.place-mark-present{
    position: absolute;
    bottom: 70px;
    right: 10px;
    z-index: 2;
}
#place_mark_present{
    background: linear-gradient(145deg, #5ac2ed, #3796c9);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 5px 5px rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 5px;
    font-size: 31px;
    height: 90px;
    width: 90px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 70%;
    animation: zoom 1s ease-in-out infinite;
    transition: transform 0.3s;
}
#place_mark_present:hover {
    animation: zoomInOut 1s ease-in-out infinite;
    background: linear-gradient(145deg, #f77b72, #f54b3a);
}
#place_mark_present:active {
    background: linear-gradient(145deg, #f54b3a, #f77b72); /* Đảo gradient khi nhấn */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2), 0 2px 2px rgba(0, 0, 0, 0.1); /* Giảm độ nổi khi nhấn */
    transform: scale(0.95); /* Thu nhỏ khi nhấn */
}
.modal-welcome {
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    background-color: transparent !important;
}

.modal-content-welcome {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

@media (max-width: 768px) {
    .div_search_goong {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none; /* Loại bỏ đổ bóng */
        border-radius: 0; /* Loại bỏ bo góc */
    }
    #place_mark_present{
        height: 60px !important;
        width: 60px !important;
    }
    .place-mark-present{
        bottom:70px!important;
    }
}