/* Frontend styles for OSM Advanced Map */
.osm-map-container,
.osm-item-map-container,
.osm-search-map-container,
.osm-home-map-container,
.osm-user-map-container {
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.osm-popup {
    min-width: 200px;
    max-width: 250px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.osm-popup strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #333;
}

.osm-popup .osm-popup-link {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background 0.3s;
}

.osm-popup .osm-popup-link:hover {
    background: #005a87;
}

.osm-popup-image {
    max-width: 150px;
    max-height: 100px;
    margin-bottom: 5px;
    border-radius: 3px;
}

.osm-coords-fields {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.osm-coords-fields h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.osm-coords-fields .help {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.osm-coord-input {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 5px 8px;
    width: 200px;
    border-radius: 3px;
}

.osm-publish-map-wrapper {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.osm-publish-map-wrapper h3 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #333;
}

.osm-publish-map-wrapper .help {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.osm-publish-controls {
    margin-top: 15px;
}

.osm-btn {
    padding: 6px 15px;
    margin-right: 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
}

.osm-btn-secondary {
    background: #f0f0f0;
    border: 1px solid #ccc;
}

.osm-btn-secondary:hover {
    background: #e0e0e0;
}

.osm-btn-primary {
    background: #0073aa;
    color: #fff;
}

.osm-btn-primary:hover {
    background: #005a87;
}

.osm-search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

#osm-address-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
}

.osm-address-result {
    padding: 8px 12px;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 3px;
    color: #2e7d32;
    font-size: 13px;
}

/* Radius search styles */
.osm-radius-wrapper {
    margin: 15px 0;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.osm-radius-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.osm-radius-wrapper select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background-color: #fff;
    font-size: 13px;
}

.osm-radius-wrapper select:hover {
    border-color: #999;
}

.osm-radius-wrapper select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 3px rgba(0,115,170,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    #osm-address-input {
        width: 100%;
    }
    
    .osm-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .osm-search-box {
        flex-direction: column;
    }
}