/* Yoro Widget — styling for the Django form widget */

.yoro-widget {
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    font-family: system-ui, -apple-system, sans-serif;
    background: #fff;
}

.yoro-widget-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.yoro-code-input {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    width: 160px;
    text-transform: uppercase;
    transition: border-color 0.2s;
    background: #fff;
}

.yoro-code-input:focus {
    outline: none;
    border-color: #e65100;
}

.yoro-info {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.yoro-coords {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.yoro-map {
    width: 100%;
    min-height: 250px;
    background: #e8e8e8;
    cursor: crosshair;
}

/* Override Leaflet's default cursor inside the widget */
.yoro-widget .leaflet-container {
    cursor: crosshair;
}

/* Django admin compatibility */
.yoro-widget .leaflet-control-zoom a {
    text-decoration: none;
}

/* Responsive */
@media (max-width: 500px) {
    .yoro-widget-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .yoro-code-input {
        width: 100%;
    }
}
