
.osm-picker-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.osm-picker-wrapper input {
    flex: 1;
    min-width: 0;
}

.osm-map-btn {
    background-color: var(--color-primary, #00a896);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.osm-map-btn:hover {
    background-color: var(--color-primary-dark, #008f7f);
}

.osm-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.osm-autocomplete-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.osm-autocomplete-item:last-child {
    border-bottom: none;
}

.osm-autocomplete-item:hover {
    background: #f5f5f5;
}

.osm-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.osm-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.osm-modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.osm-modal-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.osm-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.osm-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.osm-map-container {
    height: 400px;
    width: 100%;
    position: relative;
}

.osm-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 1000;
    pointer-events: none; 
}

.osm-modal-footer {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.osm-current-address {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.osm-confirm-btn {
    background-color: var(--color-primary, #00a896);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
}
