.location-field-container {
margin-bottom: 20px;
}

.location-input-wrapper {
position: relative;
}

.location-field-input {
width: 100%;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}

.location-autocomplete {
position: absolute;
top: 100%;
left: 0;
right: 0;
background: white;
border: 1px solid #ddd;
border-top: none;
max-height: 200px;
overflow-y: auto;
z-index: 1000;
display: none;
}

.location-autocomplete-item {
padding: 10px;
cursor: pointer;
border-bottom: 1px solid #eee;
}

.location-autocomplete-item:hover,
.location-autocomplete-item.active {
background-color: #f5f5f5;
}

.location-detect-btn {
margin-top: 10px;
padding: 8px 16px;
background: #0073aa;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

.location-detect-btn:hover {
background: #005a87;
}

.location-detect-btn:disabled {
background: #ccc;
cursor: not-allowed;
}

.location-map-preview {
border: 1px solid #ddd;
border-radius: 4px;
}

.location-coordinates {
margin-top: 5px;
color: #666;
}

/* Custom visibility option styles */
.visibility-option-exact_location .field-visibility-text {
padding: 5px;
border-radius: 3px;
}

.visibility-option-privacy_offset .field-visibility-text {
padding: 5px;
border-radius: 3px;
}

.visibility-option-hidden .field-visibility-text {
padding: 5px;
border-radius: 3px;
}

/* Info icon and tooltip styles */
.visibility-info-icon {
display: inline-block;
margin-left: 8px;
color: #0073aa;
font-size: 16px;
cursor: help;
position: relative;
border-radius: 50%;
width: 18px;
height: 18px;
text-align: center;
line-height: 18px;
font-weight: bold;
vertical-align: middle;
}

.visibility-info-icon:hover {
color: #005a87;
}

/* Use title attribute for tooltip, styled with CSS */
.visibility-info-icon:hover::after {
content: attr(title);
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 100%;
margin-bottom: 5px;
background: #333;
color: white;
padding: 5px 10px;
border-radius: 3px;
font-size: 12px;
white-space: nowrap;
z-index: 10;
font-weight: normal;
width: max-content;
max-width: 450px;
}

/* Tooltip arrow */
.visibility-info-icon:hover::before {
content: "";
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: 100%;
border: 5px solid transparent;
border-top-color: #333;
margin-bottom: -5px;
z-index: 10;
}
