﻿/* Container for the autocomplete input */
.autocomplete-container {
    position: fixed;
    z-index: 401;
    margin: 5px 5px 0 0;
    left: 25px;
    right: 25px;
}

/* Input field styling */
.autocomplete-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    padding-right:40px;
}

    .autocomplete-input:focus {
        border-color: #007bff;
    }

/* Styling for the list */
.autocomplete-list {
    margin: 0;
    padding: 0;
    list-style: none;
    /*border: 1px solid #ccc;*/
    /*border-top: none;*/
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    position: absolute;
    width: 100%;
    z-index: 1000;
    border-radius: 0 0 5px 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styling for each list item */
.autocomplete-item {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 14px;
}

    .autocomplete-item:hover {
        background-color: #007bff;
        color: #fff;
    }

    /* Selected item styling */
    .autocomplete-item.selected {
        background-color: #007bff;
        color: #fff;
    }

    /* No results message */
    .autocomplete-item.no-results {
        color: #aaa;
        text-align: center;
        cursor: default;
    }

.autocomplete-list {
    animation: fadeIn 0.3s ease;
}

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.myLocation {
    position: absolute;
    bottom: 125px;
    right: 0;
    left: 0;
    z-index: 401;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background-color: white;
    padding: 3px 15px;
    color: black;
    font-size: 16px;
    font-weight: bold;
}

.myMapBtns {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 60px;
    z-index: 401;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 15px;
}
.leaflet-control-attribution{
    display:none;
}

div[style*="z-index: 999999"] {
    display: none !important;
}





.map-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.map-modal__icon {
    position: absolute;
    bottom: 120px;
    right: 5px;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: #000;
    cursor: pointer;
    z-index: 401;
}

    .map-modal__icon.loading {
        color: #4CAF50;
        animation: blink 1s infinite;
    }

.map-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.map-modal__content {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-modal__map {
    flex: 1;
    width: 100%;
    height: 100%;
}

.map-modal__actions {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    border-top: 1px solid #eee;
    background: #fafafa;
    z-index: 1052;
    width: 100%;
    position: fixed;
    bottom: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

    .btn.btn-confirm {
        background-color: #4CAF50;
        color: white;
        font-family: IRANSans;
        min-width: 80px;
    }

    .btn.btn-cancel {
        background-color: #ccc;
        color: #333;
        font-family: IRANSans;
        min-width: 80px;
    }

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/*input:focus + label, textarea:focus + label, input:valid + label, textarea:valid + label {
    top: -13px;
    font-size: 12px;
    color: #3f51b5;
}*/

/*اعتبار سنجی*/
@keyframes blink-border {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.blink-error {
    animation: blink-border 0.5s ease-in-out 5;
    border: 2px solid red !important;
}
