﻿/* Modal */


.ad_input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d3d3d3;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    outline: none;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color .2s ease;
}

    .ad_input:focus {
        border-color: #0d6efd;
        box-shadow: 0 0 3px rgba(13,110,253,0.4);
    }

select.ad_input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' fill='gray' viewBox='0 0 16 16'%3E%3Cpath d='M3 5l5 5 5-5H3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 35px;
}

.map-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.map-modal-content {
    background: #fff;
    width: 95%;
    max-width: 650px;
    margin: 30px auto;
    border-radius: 16px;
    overflow: visible;
    padding-bottom: 10px;
    position: relative;
}

.map-header {
    padding: 12px 16px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.map-search {
    width: calc(100% - 32px);
    margin: 10px 16px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

.btn-current {
    margin: 0 16px 10px;
    width: calc(100% - 32px);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #0d6efd;
    background: #fff;
    color: #0d6efd;
    font-weight: 600;
}

#map {
    height: 360px;
    width: 100%;
}

.btn-confirm {
    width: calc(100% - 32px);
    margin: 12px 16px;
    padding: 12px;
    border-radius: 14px;
    border: none;
    background: #22c55e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

/* Autocomplete dropdown fix */
.pac-container {
    z-index: 10000 !important;
}

.map-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #111;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.map-close-btn:active {
    background: #e5e7eb;
}
