﻿/* استایل نقشه */
#mapContainer {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
}
#map {
    width: 80%;
    height: 400px;
   /* margin: 20px auto;*/
    border: 2px solid #ccc;
    border-radius: 10px;
    background-color: #eaeaea;
}
.mapcomponent .btn-icon {
    padding: 10px;
    border: none;
    background: #0f5d98;
    color: #fff;
    display: flex;
    gap: 10px;
    justify-content: center;
}
/* استایل مارکر ثابت در وسط نقشه */
.fixed-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: url('https://static.neshan.org/sdk/leaflet/1.4.0/images/marker-icon.png') no-repeat center;
    background-size: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

#resetLocation {
    position: absolute;
    bottom: 50px;
    left: 10px;
    background: white;
    border: none;
    cursor: pointer;
    height: 40px;
    /* font-size: 24px; */
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}
#info-box {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 300px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 15px;
    z-index: 10;
}
/* متن نمایش موقعیت */
#info-box p {
    font-size: 16px;
    margin: 10px 0;
}

/* متن داخل اسپن موقعیت */
#location {
    font-weight: bold;
    color: #FF5733; /* نارنجی */
}

#confirm-location {
    position: absolute;
    left: 50%; /* موقعیت افقی */
    transform: translate(-50%, -50%); /* انتقال به مرکز */
    bottom: 20px;
    padding: 15px 30px; /* افزایش اندازه دکمه */
    font-size: 18px; /* افزایش اندازه متن */
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px; /* گرد کردن گوشه‌های دکمه */
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* افزودن سایه برای جذابیت */
}

    #confirm-location:hover {
        background-color: #0056b3; /* رنگ تیره‌تر هنگام هاور */
    }
#close-location {
    position: absolute;
    left: 20px;
    top: 20px;
    border-radius: 50px;
    width: 24px;
    height: 24px;
    background-color: #ff0000;
    color: #fff;
    z-index: 10;
    border: none;
}

#confirm-location:hover {
    background-color: #0056b3; /* رنگ تیره‌تر هنگام هاور */
}
